/* Rahmen um die App-Demos: Stintwerk-Look (Salzweiß, Petrol, Instrument Sans).
   Die App selbst liegt in app.css und hat bewusst einen eigenen, neutralen App-Look. */
@font-face {
  font-family: "Instrument Sans";
  src: url("../../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --sw-canvas: #F6F3EE;
  --sw-sunken: #ECE7DF;
  --sw-hairline: #C9C1B5;
  --sw-muted: #4F656A;
  --sw-text: #0E3B43;
  --sw-water: #D6E6E4;
  --sw-accent: #C4512D;
  --sw-sans: "Instrument Sans", system-ui, sans-serif;
  --sw-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--sw-canvas); }
body {
  margin: 0;
  font-family: var(--sw-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--sw-text);
  background: var(--sw-canvas);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Demoleiste oben, wie bei den anderen Musterseiten */
.muster { border-bottom: 1px solid var(--sw-hairline); padding: 10px 24px; font-family: var(--sw-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.muster__inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.muster a { text-decoration: none; border-bottom: 1px solid var(--sw-hairline); }

/* Bühne: Text links, Handy rechts */
.buehne { max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px; display: grid; gap: 32px; }
.buehne__text { display: grid; gap: 20px; align-content: start; }
.buehne__text > * { margin: 0; }
.eyebrow { font-family: var(--sw-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sw-muted); }
.buehne h1 { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 18px; max-width: 34em; }
.punkte { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.punkte li { position: relative; padding-left: 36px; }
.punkte li::before { content: "><>"; position: absolute; left: 0; top: 4px; font-family: var(--sw-mono); font-size: 12px; color: var(--sw-muted); line-height: 1.5; }
.preis { font-family: var(--sw-mono); font-size: 14px; color: var(--sw-muted); }
.preis strong { font-family: var(--sw-sans); font-size: 24px; font-weight: 700; color: var(--sw-text); display: block; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; text-decoration: none; border-radius: 6px; padding: 12px 28px; border: 2px solid var(--sw-text); box-shadow: rgba(0, 0, 0, 0.05) 0 1px 2px 0; cursor: pointer; transition: transform 120ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sw-text); color: var(--sw-canvas); }
.btn--ghost { background: transparent; color: var(--sw-text); }
.weitere { font-size: 14px; color: var(--sw-muted); }
.weitere a { color: var(--sw-text); font-weight: 600; }
.hinweis { font-size: 14px; color: var(--sw-muted); border-top: 1px solid var(--sw-hairline); padding-top: 16px; }

/* Das gezeichnete Handy. Innen drin lebt die App (app.css). */
.handy { justify-self: center; width: 100%; max-width: 420px; order: -1; } /* am Handy zuerst die App, dann der Text */
.phone { position: relative; width: 100%; height: min(820px, calc(100svh - 80px)); min-height: 560px; background: #fff; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--sw-hairline); border-radius: 16px; }
@media (min-width: 900px) {
  .buehne { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; padding-top: 56px; align-items: start; }
  .buehne h1 { font-size: 55px; }
  .handy { position: sticky; top: 24px; order: 0; }
  .phone { width: 399px; height: min(820px, calc(100vh - 48px)); border: 12px solid var(--sw-text); border-radius: 48px; background: #fff; }
  .phone::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; background: var(--sw-text); border-radius: 9999px; z-index: 5; }
}

/* Übersicht (index.html) */
.kacheln { display: grid; gap: 24px; }
@media (min-width: 900px) { .kacheln { grid-template-columns: repeat(3, 1fr); } }
.kachel { display: grid; gap: 12px; align-content: start; padding: 28px; border: 1px solid var(--sw-hairline); border-radius: 16px; background: var(--sw-sunken); text-decoration: none; }
.kachel h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.kachel p { margin: 0; color: var(--sw-muted); font-size: 17px; }
.kachel__preis { font-family: var(--sw-mono); font-size: 14px; }
.kachel__cta { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Eingebettet auf werkzeuge.html (Aufruf mit ?embed): nur die App, kein Rahmen, kein Text */
html.embed, html.embed body { background: #fff; }
html.embed .muster, html.embed .buehne__text { display: none; }
html.embed .buehne { padding: 0; display: block; max-width: none; }
html.embed .handy { max-width: none; position: static; }
html.embed .phone { width: 100%; height: 100vh; min-height: 0; border: 0; border-radius: 0; }
html.embed .phone::before { display: none; }
