/* Paper Engines – Stil der Landingpage.
   Farben laut Entscheidung des Inhabers (04.11.2026, überarbeitet am selben Tag): immer hell, warmes Papierweiß,
   Text in tiefem Blaugrau statt Schwarz, das Monogramm-Blau als Akzent, Geräterahmen in Graphit. Kein Dunkelmodus
   („zu schwarz“). Alle Textpaare WCAG AA (≥ 4,5:1, geprüft mit axe). Schrift Space Grotesk (SIL OFL 1.1),
   selbst ausgeliefert. Keine Inline-Styles in den Seiten: Die CSP erlaubt Styles nur aus dieser Datei. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --grund: #fbf8f2;          /* warmes Papierweiß */
  --flaeche: #f4efe4;        /* Bühne der Produktbilder */
  --text: #2e3a4d;           /* tiefes Blaugrau, 10,8:1 auf Grund */
  --sekundaer: #5b6678;      /* 5,5:1 auf Grund, 5,0:1 auf Akzentfläche */
  --linie: #e4ded1;
  --akzent: #334dcc;         /* Monogramm-Blau, 6,4:1 auf Grund */
  --akzent-flaeche: #e9edfa;
  --gehaeuse: #4a5160;       /* Graphit für Handy- und Tablet-Rahmen */
  --schatten: rgb(46 58 77 / 0.22);
  --breite: 72rem;
  --rand: clamp(1.25rem, 4vw, 2.5rem);
  --abstand: clamp(3rem, 6vw, 5rem);
}


*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--akzent); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 1px; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: var(--rand); top: -4rem; z-index: 10;
  padding: 0.5rem 0.875rem; background: var(--text); color: var(--grund); text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.rahmen { max-width: var(--breite); margin: 0 auto; padding-inline: var(--rand); }

/* Kopf */
.kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; flex-wrap: wrap;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--linie);
}
.marke { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.625rem; color: var(--text); text-decoration: none; font-weight: 500; letter-spacing: -0.01em; }
.marke svg { width: 2rem; height: 2rem; flex: none; }
.kopf nav { display: flex; gap: clamp(0.875rem, 3vw, 2rem); font-size: 0.9375rem; }
.kopf nav a { color: var(--text); text-decoration: none; padding-block: 0.25rem; }
.kopf nav a:hover { color: var(--akzent); text-decoration: underline; text-decoration-thickness: 1px; }

/* Monogramm (Kopf, Zeichnung) */
.mono-blatt { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.mono-zeichen { fill: none; stroke: var(--akzent); stroke-width: 4; stroke-linecap: square; stroke-linejoin: miter; }

/* Hero */
.hero {
  display: grid; gap: clamp(2.5rem, 6vw, 4rem);
  padding-block: clamp(2rem, 5vw, 4rem) var(--abstand);
  align-items: center;
}
@media (min-width: 56rem) { .hero { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5rem);
  line-height: 0.98; letter-spacing: -0.035em; font-weight: 500;
}
.hero h1 span { display: block; }
.lead { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.5; color: var(--sekundaer); }

/* Konstruktionszeichnung des Monogramms */
.zeichnung { margin: 0; max-width: 26rem; width: 100%; justify-self: center; }
.zeichnung svg { display: block; width: 100%; height: auto; overflow: visible; }
.z-raster { stroke: var(--linie); stroke-width: 1; vector-effect: non-scaling-stroke; }
.z-hilf { fill: none; stroke: var(--sekundaer); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: 0.8; }
.z-mass { fill: none; stroke: var(--sekundaer); stroke-width: 1; vector-effect: non-scaling-stroke; }
.z-punkt { fill: var(--akzent); }
.z-text { fill: var(--sekundaer); font-family: "Space Grotesk", sans-serif; font-size: 2.6px; font-variant-numeric: tabular-nums; }
.zeichnung .mono-blatt { stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.zeichnung .mono-zeichen { stroke-width: 3; }

@media (prefers-reduced-motion: no-preference) {
  .zeichnung .mono-zeichen path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen 1.4s cubic-bezier(.6, 0, .2, 1) 0.2s forwards; }
  .zeichnung .mono-zeichen path + path { animation-delay: 0.6s; }
  @keyframes zeichnen { to { stroke-dashoffset: 0; } }
}

/* Abschnitte */
.abschnitt { padding-block: var(--abstand); border-top: 1px solid var(--linie); display: grid; gap: 1.5rem 3rem; }
@media (min-width: 56rem) { .abschnitt { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.abschnitt > h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.text { max-width: 38rem; display: grid; gap: 1.25rem; font-size: 1.125rem; }

/* Über: Porträt wie ein aufgeklebter Abzug auf dem Papier, mobil über dem Text */
.ueber { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 40rem) { .ueber { grid-template-columns: 14rem minmax(0, 1fr); } }
.foto {
  position: relative; width: 11rem; padding: 0.5rem 0.5rem 1.75rem; background: #fff;
  box-shadow: 0 1rem 2rem -1.25rem var(--schatten), 0 0 0 1px var(--linie);
  transform: rotate(-2deg); margin: 0.75rem 0 0 0.25rem;
}
@media (min-width: 40rem) { .foto { width: 14rem; } }
.foto::before {
  content: ""; position: absolute; top: -0.75rem; left: 50%; width: 5rem; height: 1.5rem;
  transform: translateX(-50%) rotate(3deg); background: rgb(233 237 250 / 0.85);
  box-shadow: 0 0 0 1px rgb(51 77 204 / 0.08);
}
.foto img { display: block; width: 100%; height: auto; }

/* Produkte: je Produkt ein großer Abschnitt, Bilder auf einer Bühne mit Zeichenraster */
@media (min-width: 56rem) { .abschnitt.abschnitt-breit { grid-template-columns: minmax(0, 1fr); } }
.abschnitt-breit { gap: 0; }
.produkt {
  display: grid; gap: 2.5rem 4rem; align-items: center;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.produkt + .produkt { border-top: 1px solid var(--linie); }
@media (min-width: 56rem) {
  .produkt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .produkt.gespiegelt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .produkt.gespiegelt .produkt-text { order: 2; }
}
.produkt-icon { display: block; width: 3.5rem; height: 3.5rem; border-radius: 0.8rem; }
.produkt h3 { margin-top: 1.5rem; font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem); letter-spacing: -0.03em; line-height: 1; }
.by { display: block; margin-top: 0.5rem; font-size: 0.9375rem; font-weight: 400; color: var(--sekundaer); letter-spacing: 0; line-height: 1.4; }
.produkt-text > p:not(.produkt-fuss) { margin-top: 1.25rem; max-width: 30rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.produkt-fuss { margin-top: 2rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.5rem; font-size: 0.9375rem; color: var(--sekundaer); }
.adresse {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.125rem;
  border: 1px solid var(--akzent); color: var(--akzent); text-decoration: none; font-weight: 500;
}
.adresse:hover { background: var(--akzent-flaeche); }
/* App-Store-Badge nach Apple-Vorgaben: unverändert, 40 px hoch, Freiraum ≥ ¼ der Höhe (Abstand der Fußzeile 12 px) */
.store { display: inline-block; line-height: 0; }
.store img { display: block; width: auto; height: 2.5rem; }
.status { padding: 0.25rem 0.75rem; background: var(--akzent-flaeche); color: var(--akzent); font-weight: 500; }

.buehne {
  --raster: color-mix(in srgb, var(--linie) 75%, transparent);
  position: relative; border: 1px solid var(--linie);
  background-color: var(--flaeche);
  background-image: linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px);
  background-size: 2rem 2rem; background-position: -1px -1px;
}
.buehne-handys { aspect-ratio: 1 / 1; }
.buehne-browser { aspect-ratio: 20 / 15.5; }
.buehne-handys .geraet, .buehne-browser .geraet { position: absolute; }
.buehne-handys .vorne { left: 11%; top: 5%; width: 38%; z-index: 1; }
.buehne-handys .hinten { right: 11%; top: 15%; width: 34%; }
.buehne-browser .gross { left: 4%; top: 7%; width: 82%; }
.buehne-browser .klein { right: 4%; top: 29%; width: 24%; z-index: 1; }
.buehne-browser.links .gross { left: auto; right: 4%; }
.buehne-browser.links .klein { right: auto; left: 4%; }

.geraet { box-shadow: 0 1.5rem 3rem -1.75rem var(--schatten); }
.geraet img { display: block; width: 100%; height: auto; }
.handy { padding: 1.2%; background: var(--gehaeuse); border-radius: clamp(0.875rem, 3.4vw, 2rem); }
.buehne-handys .handy { padding: 1.6%; }
.handy img { border-radius: clamp(0.75rem, 2.9vw, 1.7rem); }
/* Kleine Handys zeigen Bildschirmausschnitte ohne Statuszeile: engere Ecken, damit oben nichts abgeschnitten wird */
.handy.klein { border-radius: clamp(0.625rem, 2vw, 1.25rem); }
.handy.klein img { border-radius: clamp(0.4rem, 1.4vw, 0.9rem); }
.browser { overflow: hidden; border: 1px solid var(--linie); border-radius: 0.5rem; background: var(--grund); }
.browser-leiste {
  margin: 0; padding: 0.375rem 0.75rem; border-bottom: 1px solid var(--linie);
  font-size: 0.75rem; line-height: 1.4; color: var(--sekundaer); text-align: center;
}
.tablet { padding: 1.6%; background: var(--gehaeuse); border-radius: clamp(0.75rem, 2.4vw, 1.5rem); }
.tablet img { border-radius: clamp(0.25rem, 0.9vw, 0.625rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Kontakt */
.mail { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }

/* Fuß als Schriftfeld einer technischen Zeichnung */
.fuss { padding-block: 0 3rem; }
.schriftfeld {
  margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--text); border-left: 1px solid var(--linie);
}
.schriftfeld > div { padding: 0.75rem 1rem 1rem; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.schriftfeld dt { font-size: 0.75rem; color: var(--sekundaer); margin-bottom: 0.25rem; }
.schriftfeld dd { margin: 0; font-size: 0.9375rem; }
.schriftfeld dd a + a { margin-left: 0.75rem; }
.schriftfeld > div:last-child { grid-column: 1 / -1; }
@media (min-width: 56rem) { .schriftfeld { grid-template-columns: repeat(5, minmax(0, 1fr)); } .schriftfeld > div:last-child { grid-column: auto; } }
.fuss-zeile { margin-top: 1rem; font-size: 0.8125rem; color: var(--sekundaer); }

/* Rechtstexte und 404 */
.text-seite { max-width: 44rem; padding-block: clamp(3rem, 8vw, 5rem) var(--abstand); }
.text-seite h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); letter-spacing: -0.03em; margin-bottom: 0.75rem; hyphens: auto; }
.text-seite h2 { font-size: 1.25rem; margin: 2.75rem 0 0.75rem; }
.text-seite p + p { margin-top: 0.875rem; }
.text-seite ul { margin-top: 0.875rem; padding-left: 1.25rem; list-style: square; }
.text-seite li + li { margin-top: 0.375rem; }
.stand { color: var(--sekundaer); font-size: 0.9375rem; }
.text-seite address { font-style: normal; }
.text-seite address + p { margin-top: 0.875rem; }
.text-seite .zurueck { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--linie); }
.leer { min-height: 60vh; }
.leer .knopf { display: inline-block; margin-top: 2rem; padding: 0.75rem 1.25rem; border: 1px solid var(--akzent); text-decoration: none; }
.leer .knopf:hover { background: var(--akzent-flaeche); }

@media print {
  .kopf nav, .skip, .zeichnung { display: none; }
  :root { --grund: #fff; --text: #000; --sekundaer: #4a4f4a; --linie: #bbb; --akzent: #1f3aa8; --akzent-flaeche: #fff; }
}
