/* Schrift: auf Apple-Geräten die Systemschrift (SF Pro), sonst Inter Tight
   (SIL Open Font License, lokal gehostet, keine Daten an Dritte). */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-tight-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-tight-latin-wght-normal.woff2) format('woff2-variations');
  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;
}

/* Farben im schlichten Apple-Look: Weiss und Hellgrau im Wechsel, fast schwarze Schrift,
   Apple-Blau als einzige Akzentfarbe (Knöpfe, Links). */
:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --white: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --text-strong: #1d1d1f;
  --text-soft: #6e6e73;
  --line-strong: rgba(0, 0, 0, 0.12);
  --accent: #0071e3;
  --accent-2: #0077ed;
  --chrome: #e8e8ed;   /* Leiste im Browserfenster */
  --chrome-2: #c7c7cc; /* Punkte im Browserfenster, Bildlaufleiste */
  --error: #b00012;    /* Fehlermeldungen im Formular */
  --error-bg: #fff0f0;
  --link: #0066cc; /* etwas dunkler als --accent: gut lesbar als Textlink, auch auf Hellgrau */
  /* Dunkle Kontaktfläche */
  --on-dark: #f5f5f7;
  --on-dark-soft: #a1a1a6;
  --on-dark-line: rgba(255, 255, 255, 0.24);
  --link-on-dark: #2997ff;
  --error-on-dark: #ff6961;
  --error-on-dark-bg: rgba(255, 105, 97, 0.14);
  --device: #2c2c2e;      /* Handy-Rahmen (Titan dunkel) */
  --logo-stone: #b8b8c0;  /* hinterer Berg im Logo-A */
  --sky: #d6e6fb;         /* heller Himmel in der Intro-Animation */
  --swiss-red: #da291c;   /* Schweizer Flagge auf dem Gipfel */
  /* Beispiel-Farben im Website-Planer-Hinweis */
  --demo-1: #0071e3; --demo-2: #1f7a4d; --demo-3: #c2410c; --demo-4: #7c3aed; --demo-5: #1d1d1f;
  --device-edge: #8e8e93; /* Glanzkante am Rahmen */
  --device-screen: #000;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter Tight', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter Tight', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  /* Pfeile als gezeichnete SVGs, eingefärbt über currentColor */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E");
  --arrow-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5l7-7M5.5 4.5h6v6'/%3E%3C/svg%3E");
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); background: var(--paper); scrollbar-color: var(--chrome-2) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--text); caret-color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.6; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
/* Fusszeile sitzt auf jeder Seite ganz unten, auch wenn der Inhalt kurz ist */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; overflow-x: clip; } /* nichts darf seitlich herausragen (schmale Faltgeräte) */
main { flex: 1 0 auto; }
main:focus { outline: none; }
.foot { flex-shrink: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
img, video, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--ink); color: var(--white); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(0, 113, 227, 0.2); color: inherit; }

/* Pfeile hinter Knöpfen und Projekt-Titeln */
.btn::after, .work-arrow {
  content: ''; display: inline-block; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform 300ms var(--ease-out);
}
.work-arrow { width: 20px; height: 20px; margin-left: 10px; vertical-align: -2px; -webkit-mask-image: var(--arrow-out); mask-image: var(--arrow-out); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 54px; padding: 0 20px 0 22px;
  border: 1px solid var(--ink); border-radius: 980px; background: var(--ink); color: var(--white); text-decoration: none;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-outline { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
  .btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
  .btn-outline:hover { background: var(--ink-2); border-color: var(--ink-2); }
  .btn:hover::after { transform: translateX(3px); }
}

/* ---------- Navigation (dunkel, wie das Intro) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255, 255, 255, 0.82); color: var(--text);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
/* Unten in der Menüleiste eine flache Bergkette (wie die Fusszeile), die Berge stehen auf der Unterkante */
.nav-ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(12px, 1.4vw, 20px); pointer-events: none; overflow: visible; }
.nav-ridge .nr-back { fill: var(--sky); opacity: 0.55; }
.nav-ridge .nr-fill { fill: color-mix(in srgb, var(--sky) 55%, var(--white)); }
.nav-ridge .nr-line { fill: none; stroke: color-mix(in srgb, var(--accent) 35%, var(--white)); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.nav-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 100%; }
/* Logo: Schriftzug, A = zwei Berge (vorne blau mit Schneekappe, hinten grau) (siehe logo() in inc/bootstrap.php) */
.logo { display: inline-flex; align-items: baseline; color: inherit; text-decoration: none; }
.logo-word { position: relative; isolation: isolate; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.035em; text-transform: lowercase; line-height: 1; white-space: nowrap; }
.logo-glyph { display: inline-block; vertical-align: baseline; overflow: visible; }
/* A in Grossbuchstaben-Höhe der Schrift (cap), steht auf der Grundlinie */
.lg-a { height: 0.72em; height: 1cap; width: auto; aspect-ratio: 86 / 72; margin-right: 0.01em; }
.lg-a .lg-back { fill: var(--logo-stone); }
.lg-a .lg-rock { fill: var(--accent); }
.lg-a .lg-snow { fill: var(--white); }
.lg-a .lg-edge { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linejoin: round; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-soft); font-size: 15px; font-weight: 500; text-decoration: none; transition: color 200ms ease; }
.nav-links a.is-active:not(.nav-cta) { color: var(--text-strong); }
/* Sprachumschalter DE · EN */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--mist); font-size: 13px; font-weight: 600; }
.lang-switch > a, .lang-switch > span { padding: 4px 9px; border-radius: 999px; color: var(--text-soft); line-height: 1.2; }
.lang-switch abbr { text-decoration: none; }
.lang-switch [aria-current] { background: var(--white); color: var(--text-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
@media (hover: hover) and (pointer: fine) { .lang-switch a:hover { color: var(--text-strong); } }
.nav-links .nav-cta { padding: 7px 15px; border: 1px solid var(--accent); border-radius: 980px; background: var(--accent); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.nav-cta):hover { color: var(--text-strong); }
  .nav-links .nav-cta:hover { border-color: var(--accent-2); background: var(--accent-2); color: var(--white); }
}
.nav-toggle { display: none; }
.nav :focus-visible, .hero :focus-visible { outline-color: var(--accent); }
.contact :focus-visible { outline-color: var(--link-on-dark); }

/* ---------- Intro (dunkel; Video oder Foto als helle Bildfläche rechts neben dem Text) ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); padding: clamp(64px, 9vw, 120px) 0; background: var(--white); color: var(--text); overflow: hidden; isolation: isolate; }
.hero-inner { width: 100%; }
/* Text links, Video rechts: das Video ist die grössere Spalte und läuft bis an den rechten Bildschirmrand */
.hero-has-media .hero-inner { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-visual {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--mist);
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.5);
}
.hero-has-media .hero-visual {
  /* Abstand vom Inhaltsrand bis zum Bildschirmrand (Inhalt ist höchstens --max breit) */
  margin-right: calc(-1 * (max(0px, (100vw - var(--max)) / 2) + var(--gutter)));
  border-radius: var(--radius) 0 0 var(--radius);
}
.hero-media { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: min(78vh, 760px); object-fit: cover; }
/* Vektor-Animation im Intro: abstrakte Berge (inc/hero-animation.php, Ablauf in assets/site.js) */
.hero-anim { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--white); }
.hero-anim .hm-sky-top { stop-color: var(--white); }
.hero-anim .hm-sky-bottom { stop-color: var(--sky); }
.hero-anim .hm-ridge { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; stroke-opacity: 0; }
.hero-anim .hm-back { fill: color-mix(in srgb, var(--sky) 70%, var(--white)); }
.hero-anim .hm-mid { fill: var(--logo-stone); }
.hero-anim .hm-front { fill: var(--accent); }
.hero-anim .hm-snow { fill: var(--white); }
.hero-anim .hm-trail { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.85; }
.hero-anim .hm-dot circle { fill: var(--white); stroke: var(--ink); stroke-width: 3; }
.hero-anim .hm-dot { transform: translate(408px, 152px); }
.hero-anim .hm-pole { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.hero-anim .hm-banner { fill: var(--swiss-red); }
.hero-anim .hm-cross { fill: var(--white); }
.hero-anim .hm-flag { transform-box: fill-box; transform-origin: 0 100%; }
.hero-anim .hm-pulse circle { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
/* Ablauf: Linien zeichnen sich, Flächen füllen sich, Schnee, Aufstieg (Punkt per site.js), Fahne und Ringe */
.hero-anim.is-running .hm-ridge { stroke-opacity: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 1400ms var(--ease-out), fill-opacity 900ms ease, stroke-opacity 600ms ease; }
.hero-anim.s1 .hm-back, .hero-anim.s2 .hm-mid, .hero-anim.s3 .hm-front { stroke-dashoffset: 0; }
.hero-anim.s4 .hm-ridge { fill-opacity: 1; stroke-opacity: 0; transition-delay: 0s, 0s, 400ms; }
.hero-anim.is-running .hm-snow { opacity: 0; transform: translateY(8px); transition: opacity 500ms ease, transform 600ms var(--ease-out); }
.hero-anim.s5 .hm-snow { opacity: 1; transform: none; }
.hero-anim.is-running .hm-dot { opacity: 0; transition: opacity 400ms ease; }
.hero-anim.s6 .hm-dot { opacity: 1; }
.hero-anim.is-running .hm-trail { stroke-dashoffset: var(--trail, 1); }
.hero-anim.is-running .hm-flag { opacity: 0; transform: scaleY(0.2); transition: opacity 300ms ease, transform 500ms var(--ease-out); }
.hero-anim.s7 .hm-flag { opacity: 1; transform: none; }
.hero-anim.s7 .hm-pulse circle { animation: hm-pulse 2400ms ease-out infinite; }
.hero-anim.s7 .hm-pulse circle:nth-child(2) { animation-delay: 800ms; }
.hero-anim.s7 .hm-pulse circle:nth-child(3) { animation-delay: 1600ms; }
@keyframes hm-pulse { from { opacity: 0.55; transform: scale(0.3); } to { opacity: 0; transform: scale(3.2); } }
/* Ende der Schleife: alles blendet aus und es beginnt von vorne */
.hero-anim.is-fading > :not(.hm-sky) { opacity: 0 !important; transition: opacity 700ms ease !important; }

/* Tablets und aufgeklappte Faltgeräte: Text oben, Video darunter über die ganze Breite */
@media (max-width: 1024px) {
  .hero-has-media .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-has-media .hero-visual { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; box-shadow: none; }
  .hero-media { max-height: 70vh; }
  .hero { min-height: 0; }
}
/* Referenz im Browserfenster: die Seitenaufnahme läuft langsam nach unten und wieder zurück */
.browser { display: block; background: var(--white); }
.browser-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: var(--chrome); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--chrome-2); }
.browser-bar span { position: absolute; left: 50%; transform: translateX(-50%); padding: 3px 18px; border-radius: 6px; background: var(--white); color: var(--muted); font-size: 12px; }
.browser-view { display: block; aspect-ratio: var(--ratio, 1.6); overflow: hidden; }
.browser-view img { width: 100%; height: auto; animation: browse 10s cubic-bezier(0.35, 0, 0.35, 1) 1.5s infinite alternate; }
/* Mit JavaScript startet das Durchlaufen erst, wenn das Fenster ins Bild kommt (site.js setzt .in-view) */
.js .browser:not(.in-view) .browser-view img { animation: none; }
.work-media.work-browser, .work-odd .work-card:first-child .work-media.work-browser { aspect-ratio: auto; }
@keyframes browse { 0%, 8% { transform: translateY(0); } 94%, 100% { transform: translateY(var(--travel, 0%)); } }
/* Scroll-Effekt (assets/site.js setzt --p von 0 bis 1): Bild zoomt leicht, Text gleitet nach oben
   und blendet aus. Endet, sobald das Intro weggescrollt ist. */
.hero-has-media { --p: 0; }
.hero-has-media .hero-media { transform: scale(calc(1 + var(--p) * 0.08)); }
.hero-has-media .hero-text { transform: translateY(calc(var(--p) * -56px)); opacity: calc(1 - var(--p) * 1.1); }
.hero-title { max-width: 14ch; font-size: clamp(48px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-has-media .hero-title { font-size: clamp(44px, 5.2vw, 76px); }
/* Intro ohne Bild: grössere Schrift, unten ein Hinweis auf das neuste Projekt */
.hero:not(.hero-has-media) .hero-title { max-width: 15ch; font-size: clamp(52px, 8vw, 96px); }
.hero-latest { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-top: clamp(56px, 8vw, 104px); padding-top: 24px; border-top: 1px solid var(--line-strong); color: var(--text-strong); text-decoration: none; }
.hero-latest-label { color: var(--text-soft); font-size: 15px; }
.hero-latest-title { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.hero-latest-title::after { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hero-latest:hover .hero-latest-title { color: var(--accent); }
  .hero-latest:hover .hero-latest-title::after { transform: translateX(3px); }
}
.hero-accent { color: var(--muted); }
.hero-sub { max-width: 46ch; margin-top: 28px; color: var(--text-soft); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-actions .btn { min-width: 250px; }
.hero-has-media .hero-actions .btn { min-width: 0; }

/* Pause-Knopf für Bewegung (Video, durchlaufendes Browserfenster) */
[data-motion] { position: relative; }
.motion-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(29, 29, 31, 0.6); color: var(--white); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color 200ms ease;
}
/* Zeichen: zwei Balken (anhalten) oder Dreieck (abspielen) */
.motion-toggle::before { content: ''; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
.motion-toggle[aria-pressed="true"]::before { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
@media (hover: hover) and (pointer: fine) { .motion-toggle:hover { background: rgba(29, 29, 31, 0.85); } }
.motion-toggle:focus-visible { outline-color: var(--accent); }
/* Bei Browserfenstern sitzt der Knopf in der grauen Leiste, damit er nichts auf der Seite verdeckt */
.work-card > .motion-toggle, .case-visual .motion-toggle { top: 3px; bottom: auto; width: 32px; height: 32px; }
.work-card > .motion-toggle::before, .case-visual .motion-toggle::before { transform: scale(0.8); }
.case-visual .motion-toggle { right: calc(var(--gutter) + 6px); }
.is-paused .browser-view img { animation-play-state: paused; }

/* ---------- Bereiche ---------- */
.hero + .block { border-top: 1px solid var(--line); }
.block { padding: clamp(88px, 11vw, 144px) 0; }
.block-mist { background: var(--mist); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 72px); }
.section-title { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
.section-sub { max-width: 44ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }

/* Leistungen: Liste zum Aufklappen */
/* Leistungen: kompakte Liste in zwei Spalten, durch feine Linien getrennt */
.block-services { padding: clamp(72px, 8vw, 112px) 0; }
.block-services .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.block-services .section-title { font-size: clamp(32px, 4vw, 48px); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin: 0; padding: 0; list-style: none; }
.service { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.service h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.service p { max-width: 46ch; margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.55; }
/* Plus/Minus-Symbol der häufigen Fragen */
.service-icon { position: relative; justify-self: end; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; transition: background-color 250ms ease, border-color 250ms ease, transform 500ms var(--ease-out); }
.service-icon::before, .service-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px; background: var(--text); transition: transform 500ms var(--ease-out), background-color 250ms ease; }
.service-icon::after { transform: rotate(90deg); }
@media (hover: hover) and (pointer: fine) {
}

/* Warum Alpenstudio: Vorteile nebeneinander, oben eine Linie */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 32px; }
.benefit { padding-top: 22px; border-top: 2px solid var(--ink); }
.benefit h3 { margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Häufige Fragen: Titel links, Fragen rechts zum Aufklappen */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.faq-layout .section-head { display: block; margin-bottom: 0; }
.faq-layout .section-sub { margin-top: 20px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] .service-icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq-item[open] .service-icon::before, .faq-item[open] .service-icon::after { background: var(--white); }
.faq-item[open] .service-icon::after { transform: rotate(0deg); }
.faq-item p { max-width: 60ch; margin-top: -6px; padding-bottom: 24px; color: var(--muted); font-size: 17px; line-height: 1.65; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover .service-icon { border-color: var(--ink); } }

/* Ablauf: Schritte auf einer Linie */
.steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px 32px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px;
  border: 1px solid var(--ink); border-radius: 50%; background: var(--mist); color: var(--ink);
  font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
}
button.step-num { padding: 0; font-family: inherit; cursor: pointer; transition: background 200ms ease, color 200ms ease, transform 200ms var(--ease-out); }
.js .step { cursor: pointer; }
.step.is-done .step-num { background: var(--white); }
.step::before { transition: background 300ms ease; }
.step.is-done::before { background: var(--ink) !important; }
.step.is-active .step-num, .step.is-done .step-num { border-color: var(--ink); }
.step.is-active .step-num { background: var(--ink); color: var(--white); transform: scale(1.08); }
@media (hover: hover) and (pointer: fine) { .step:not(.is-active):hover .step-num { background: var(--white); transform: scale(1.05); } }
.js .step:not(.is-active) h3 { color: var(--text-soft); transition: color 200ms ease; }
html:not(.js) .step:first-child .step-num { background: var(--ink); color: var(--white); }
/* Details zum gewählten Schritt */
.step-details { margin-top: clamp(32px, 5vw, 48px); }
.step-detail {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: "main facts" "nav facts"; gap: 28px clamp(32px, 5vw, 72px);
  padding: clamp(26px, 4vw, 44px); border-radius: clamp(20px, 2.6vw, 30px); background: var(--mist);
}
html:not(.js) .step-detail + .step-detail { margin-top: 16px; }
/* Alle Boxen liegen im selben Feld übereinander: die Fläche ist so hoch wie die längste Erklärung, nichts springt */
.js .step-details { display: grid; }
.js .step-detail { grid-area: 1 / 1; }
.js .step-detail[data-hidden] { visibility: hidden; }
.js .step-detail.is-in { animation: step-in 300ms ease; }
@keyframes step-in { from { opacity: 0; } }
.step-detail-count { margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.step-detail h3 { font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.02em; }
.step-detail-main > p:not(.step-detail-count) { max-width: 54ch; margin-top: 12px; color: var(--text-soft); }
.step-detail-main { grid-area: main; }
.step-detail-facts { grid-area: facts; }
/* Knöpfe unten in der Box, Zurück links, Weiter rechts und immer gleich breit: durchklicken ohne die Maus zu bewegen */
.step-detail-nav { grid-area: nav; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.step-next { flex: 0 1 auto; width: min(19em, 100%); max-width: 100%; white-space: normal; text-align: left; }
.step-go-back { padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .step-go-back:hover { text-decoration: underline; } }
html:not(.js) .step-detail-nav { display: none; }
.step-detail-facts { display: grid; gap: 20px; align-content: start; margin: 0; }
.step-detail-facts div { padding-top: 16px; border-top: 1px solid var(--line-strong); }
.step-detail-facts dt { margin-bottom: 4px; font-size: 15px; font-weight: 600; }
.step-detail-facts dd { margin: 0; color: var(--text-soft); font-size: 16px; line-height: 1.55; }
/* Handy: Schritte als kompakte Zeile (Zahl + Titel), die Erklärung steht direkt darunter */
@media (max-width: 760px) {
  .js .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  .js .step { text-align: center; }
  .js .step-num { margin: 0 auto 10px; }
  .js .step:not(:last-child)::before { left: calc(50% + 26px); right: calc(-50% + 18px); }
  .js .step h3 { margin: 0; font-size: 13px; line-height: 1.25; hyphens: auto; }
  .js .step p { display: none; }
  .step-details { margin-top: 20px; }
}
/* Verbindungslinie zum nächsten Schritt */
.step:not(:last-child)::before { content: ''; position: absolute; top: 22px; left: 56px; right: -20px; height: 1px; background: var(--line); }
.step h3 { margin-bottom: 8px; }
/* Hinweis auf den Website-Planer (unter dem Ablauf) */
@property --demo { syntax: '<color>'; inherits: true; initial-value: transparent; }
.planer-teaser {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center;
  margin-top: clamp(56px, 8vw, 96px); padding: clamp(28px, 4.5vw, 56px); border-radius: clamp(20px, 2.6vw, 30px); background: var(--mist);
}
.planer-teaser h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; }
.planer-teaser .btn { max-width: 100%; white-space: normal; text-align: left; }
.planer-teaser p { max-width: 46ch; margin: 14px 0 24px; color: var(--text-soft); }
.planer-demo { --demo: var(--accent); min-width: 0; display: grid; gap: 16px; justify-items: center; animation: demo-colors 12s steps(1) infinite; }
.planer-demo-window { display: grid; gap: 10px; width: 100%; max-width: 420px; padding-bottom: 14px; overflow: hidden; border-radius: 14px; background: var(--white); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line); }
.planer-demo-window i, .planer-demo-window b, .planer-demo-window em { display: block; border-radius: 3px; }
.planer-demo-bar { display: flex; gap: 5px; padding: 9px 12px; background: var(--chrome); }
.planer-demo-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--chrome-2); }
.planer-demo-nav { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.planer-demo-nav b { width: 54px; height: 9px; background: var(--ink); }
.planer-demo-nav i { width: 28px; height: 5px; margin-left: 4px; background: var(--chrome-2); }
.planer-demo-nav i:first-of-type { margin-left: auto; }
.planer-demo-nav em { width: 40px; height: 14px; border-radius: 999px; background: var(--demo); transition: background 600ms ease; }
.planer-demo-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 16px 4px; }
.planer-demo-hero > span:first-child { display: grid; gap: 6px; }
.planer-demo-hero b { width: 92%; height: 12px; background: var(--ink); }
.planer-demo-hero b + b { width: 64%; }
.planer-demo-hero i { width: 90%; height: 5px; background: var(--chrome); }
.planer-demo-hero em { width: 56px; height: 16px; margin-top: 4px; border-radius: 999px; background: var(--demo); transition: background 600ms ease; }
.planer-demo-img { display: block; aspect-ratio: 4 / 3; border-radius: 8px; background: linear-gradient(150deg, color-mix(in srgb, var(--demo) 60%, var(--white)), color-mix(in srgb, var(--demo) 20%, var(--white))); transition: background 600ms ease; }
.planer-demo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px; }
.planer-demo-cards i { height: 34px; border-top: 2px solid var(--demo); border-radius: 0; background: linear-gradient(var(--chrome) 0 5px, transparent 5px 12px, var(--chrome) 12px 17px, transparent 17px); background-position: 0 8px; background-repeat: no-repeat; background-size: 80% 100%; transition: border-color 600ms ease; }
.planer-demo-dots { display: flex; gap: 8px; }
.planer-demo-dots i { width: 16px; height: 16px; border-radius: 50%; }
.planer-demo-dots i:nth-child(1) { background: var(--demo-1); }
.planer-demo-dots i:nth-child(2) { background: var(--demo-2); }
.planer-demo-dots i:nth-child(3) { background: var(--demo-3); }
.planer-demo-dots i:nth-child(4) { background: var(--demo-4); }
.planer-demo-dots i:nth-child(5) { background: var(--demo-5); }
@keyframes demo-colors {
  0% { --demo: var(--demo-1); } 20% { --demo: var(--demo-2); } 40% { --demo: var(--demo-3); } 60% { --demo: var(--demo-4); } 80% { --demo: var(--demo-5); }
}
.step p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Referenzen */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
.work-odd .work-card:first-child { grid-column: 1 / -1; }
.work-odd .work-card:first-child .work-media { aspect-ratio: 16 / 8; }
.work-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.work-link:not(:has(.work-media)) { padding: 28px 28px 30px; border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgba(0, 0, 0, 0.3); }
.work-media { aspect-ratio: 4 / 3; margin-bottom: 20px; overflow: hidden; border-radius: var(--radius); background: var(--mist); box-shadow: 0 0 0 1px var(--line); }
.work-media:not(.work-browser) img, .work-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.work-body h3 { font-size: clamp(22px, 2.2vw, 28px); }
.work-client { margin-top: 4px; color: var(--muted); font-size: 15px; }
.work-text { max-width: 54ch; margin-top: 12px; color: var(--muted); font-size: 17px; }
@media (hover: hover) and (pointer: fine) {
  a.work-link:hover .work-media:not(.work-browser) img, a.work-link:hover .work-media video { transform: scale(1.03); }
  a.work-link:hover .work-arrow { transform: translate(2px, -2px); }
  a.work-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
}

.work-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--link); font-size: 15px; font-weight: 600; }
.work-more::after { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.work-link:hover .work-more::after { transform: translateX(3px); } }

/* ---------- Referenz im Detail (Fallstudie) ---------- */
.case-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(120px, 14vw, 200px); background: var(--mist); color: var(--text); }
.case-back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(32px, 5vw, 56px); color: var(--text-soft); font-size: 15px; text-decoration: none; }
.case-back::before { content: ''; width: 16px; height: 16px; background: currentColor; transform: scaleX(-1); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.case-title { max-width: 16ch; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
.case-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); margin-top: clamp(32px, 4vw, 48px); }
.case-intro > p { max-width: 52ch; color: var(--text-soft); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; }
.case-facts { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.case-facts dl { display: grid; gap: 10px; width: 100%; margin: 0; }
.case-facts dl div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.case-facts dt { color: var(--text-soft); font-size: 15px; }
.case-facts dd { margin: 0; font-size: 16px; font-weight: 600; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.case-tags li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-strong); font-size: 14px; }
.case-visual { margin-top: clamp(-160px, -12vw, -88px); }
/* Handy-Video in 3D */
.case-phone-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.case-phone .section-sub { max-width: 46ch; margin-top: 20px; color: var(--text-soft); }
.phone-stage { position: relative; display: grid; place-items: center; padding: 24px 0 40px; perspective: 1800px; }
.phone {
  position: relative; width: min(300px, 72vw); padding: 11px; border-radius: 52px;
  background: linear-gradient(140deg, var(--device-edge), var(--device) 18%, var(--device) 82%, var(--device-edge));
  box-shadow: inset 0 0 0 1.5px var(--device-edge), inset 0 0 0 4px var(--device), 14px 0 0 -2px var(--device), 60px 70px 90px -40px rgba(0, 0, 0, 0.45);
  transform: rotateY(-20deg) rotateX(6deg) rotateZ(1.5deg); transform-style: preserve-3d;
  animation: phone-float 9s ease-in-out infinite alternate;
}
.phone::before, .phone::after { content: ''; position: absolute; right: -3px; width: 4px; border-radius: 0 3px 3px 0; background: var(--device); }
.phone::before { top: 26%; height: 14%; }
.phone::after { top: 18%; height: 5%; }
.phone-screen { position: relative; display: block; aspect-ratio: 9 / 17; overflow: hidden; border-radius: 42px; background: var(--device-screen); }
.phone-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-island { position: absolute; top: 10px; left: 50%; width: 30%; height: 24px; border-radius: 20px; background: var(--device-screen); transform: translateX(-50%); }
@keyframes phone-float {
  from { transform: rotateY(-20deg) rotateX(6deg) rotateZ(1.5deg) translateY(0); }
  to { transform: rotateY(-8deg) rotateX(3deg) rotateZ(0deg) translateY(-12px); }
}
.is-paused .phone { animation-play-state: paused; }
/* Startseite: kleines Handy steht vor dem Browserfenster und ragt unten heraus */
.work-stage { position: relative; margin-bottom: clamp(40px, 6vw, 72px); }
.work-stage .work-media { margin-bottom: 0; }
.work-phone { position: absolute; right: clamp(16px, 5%, 64px); bottom: clamp(-64px, -6vw, -32px); z-index: 1; width: clamp(96px, 17%, 200px); perspective: 1400px; pointer-events: none; }
.work-phone .phone { width: 100%; padding: 4%; border-radius: 16% / 8%; box-shadow: inset 0 0 0 1.5px var(--device-edge), inset 0 0 0 3px var(--device), 8px 0 0 -2px var(--device), 30px 40px 60px -20px rgba(0, 0, 0, 0.5); }
.work-phone .phone-screen { border-radius: 13% / 6.5%; }
.work-phone .phone-island { top: 3.5%; height: 4%; }
.work-stage + .work-body { padding-right: clamp(0px, 22%, 260px); }
/* Breite Bildschirme: Handy steht tiefer, damit es keine Schrift und Knöpfe der Vorschau verdeckt */
@media (min-width: 801px) {
  .work-phone { bottom: -40%; }
  .work-stage + .work-body { min-height: 260px; }
}
.phone-stage .motion-toggle { right: 8px; bottom: 8px; top: auto; }
.case-visual .browser, .case-img { overflow: hidden; border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line); }
.case-img { width: 100%; height: auto; }
.case-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); }
.case-story-grid h2 { margin-bottom: 12px; padding-top: 20px; border-top: 2px solid var(--ink); font-size: 22px; letter-spacing: -0.02em; }
.case-story-grid p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.case-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px clamp(40px, 6vw, 96px); align-items: center; }
.case-step + .case-step { margin-top: clamp(64px, 8vw, 112px); }
.case-step-flip .case-step-text { order: 2; }
.case-step-text-only { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.case-step-num { display: block; margin-bottom: 16px; color: var(--muted); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.case-step-text h3 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.03em; }
.case-step-text p { max-width: 50ch; color: var(--muted); font-size: 17px; line-height: 1.65; }
.case-step-img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line); }
.case-hero :focus-visible { outline-color: var(--accent); }

/* Über uns */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.about-with-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.8fr); }
.about-text p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.about-text p + p { margin-top: 16px; }
.about-text .statement { color: var(--text); font-family: var(--display); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.35; letter-spacing: -0.02em; font-weight: 500; text-wrap: pretty; }
.about-text .statement + p { margin-top: 24px; }
.about-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* Kontakt: dunkle Fläche als Abschluss der Seite. Links Text und direkte Wege, rechts das Formular
   mit schlichten Linien-Feldern (wie Notizzeilen) statt Kästchen. */
.contact { padding: clamp(64px, 9vw, 120px) 0; background: var(--white); color: var(--on-dark); }
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px clamp(40px, 6vw, 112px); align-items: start;
  padding: clamp(32px, 6vw, 88px); border-radius: clamp(24px, 3vw, 36px); background: var(--ink);
}
.contact .section-title { max-width: 12ch; color: var(--on-dark); font-size: clamp(40px, 5.6vw, 64px); }
.contact .section-sub { max-width: 38ch; margin-top: 20px; color: var(--on-dark-soft); }
.contact-direct { margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.contact-direct li { display: grid; gap: 2px; padding: 0 0 18px; font-size: 17px; color: var(--on-dark); }
.contact-direct span { color: var(--on-dark-soft); font-size: 14px; }
.contact-direct a { width: fit-content; color: var(--on-dark); font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--on-dark-line); transition: border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .contact-direct a:hover { border-color: var(--on-dark); } }

/* Formular */
.contact-form { min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.form-field { position: relative; margin-bottom: 26px; }
.form-field label { display: block; margin-bottom: 2px; color: var(--on-dark-soft); font-size: 14px; font-weight: 500; transition: color 150ms ease; }
.form-field label span { color: var(--on-dark-soft); font-weight: 400; }
.form-field:focus-within label { color: var(--on-dark); }
.form-field input, .form-field textarea {
  display: block; width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--on-dark-line); border-radius: 0; background: transparent;
  color: var(--on-dark); font: inherit; font-size: 19px; line-height: 1.4; caret-color: var(--link-on-dark); transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-field textarea { min-height: 112px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--link-on-dark); box-shadow: 0 1px 0 0 var(--link-on-dark); }
.form-field input:-webkit-autofill { -webkit-text-fill-color: var(--on-dark); box-shadow: 0 0 0 100px var(--ink) inset; }
.form-field [aria-invalid="true"] { border-color: var(--error-on-dark); }
.form-error { margin-top: 8px; color: var(--error-on-dark); font-size: 14px; font-weight: 500; }
.form-error-top { margin: 0 0 24px; padding: 12px 16px; border-radius: 12px; background: var(--error-on-dark-bg); }
.form-konzept { margin: 0 0 24px; padding: 12px 16px; border-radius: 12px; background: var(--on-dark-line); color: var(--on-dark); font-size: 15px; }
.contact-planer { margin-top: clamp(28px, 4vw, 40px); padding-top: 24px; border-top: 1px solid var(--on-dark-line); color: var(--on-dark-soft); font-size: 15px; }
.contact-planer a { display: inline-block; margin-top: 4px; color: var(--on-dark); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--on-dark-line); }
@media (hover: hover) and (pointer: fine) { .contact-planer a:hover { border-color: var(--on-dark); } }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.form-send .btn { flex: none; }
.form-note { flex: 1 1 220px; color: var(--on-dark-soft); font-size: 14px; line-height: 1.5; }
.form-note a { color: var(--on-dark); }
/* Themen zum Antippen */
.form-topics { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.form-topics legend { margin-bottom: 12px; padding: 0; color: var(--on-dark-soft); font-size: 14px; font-weight: 500; }
.form-topics legend span { font-weight: 400; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; }
.topic input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.topic span { display: block; padding: 9px 16px; border: 1px solid var(--on-dark-line); border-radius: 999px; color: var(--on-dark); font-size: 15px; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.topic input:checked + span { border-color: var(--on-dark); background: var(--on-dark); color: var(--ink); }
.topic input:focus-visible + span { outline: 2px solid var(--link-on-dark); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .topic input:not(:checked):hover + span { border-color: var(--on-dark-soft); } }
.form-count { position: absolute; right: 0; bottom: -22px; color: var(--on-dark-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.form-count.is-near { color: var(--error-on-dark); }
.form-submit[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.form-submit[aria-busy="true"]::after { display: none; }
/* Danke */
.contact-thanks { display: flex; flex-direction: column; align-items: flex-start; align-self: center; }
.contact-thanks:focus { outline: none; }
.thanks-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; border-radius: 50%; background: var(--on-dark); }
.thanks-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick 0.5s ease-out 0.2s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.contact-thanks h3 { margin-bottom: 10px; color: var(--on-dark); font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; }
.contact-thanks p { max-width: 40ch; color: var(--on-dark-soft); }
.thanks-link { margin-top: 24px; color: var(--link-on-dark); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .thanks-link:hover { text-decoration: underline; } }
@media (prefers-reduced-motion: reduce) { .thanks-icon svg { animation: none; stroke-dashoffset: 0; } .topic span { transition: none; } }

/* Impressum, Datenschutz */
.page { padding: clamp(64px, 9vw, 120px) 0 clamp(80px, 10vw, 136px); }
.page .wrap { max-width: 800px; }
.page h1 { margin-bottom: 40px; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; line-height: 1.05; }
.page h2 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -0.02em; }
.page p { max-width: 60ch; color: var(--ink-2); }
.page p + p { margin-top: 12px; }
.page a { color: var(--link); text-decoration-thickness: 1px; }
.small { color: var(--muted); font-size: 15px; }

/* Fusszeile (hell) */
/* Fusszeile: flache Bergsilhouette als Abschluss, darunter hellgraue Fläche mit Logo, Knopf und vier Spalten */
.foot { margin-top: calc(-1 * clamp(24px, 4vw, 56px)); color: var(--muted); font-size: 15px; }
.foot-mountains { display: block; width: 100%; height: clamp(56px, 7vw, 110px); margin-bottom: -1px; }
.foot-mountains .fm-back { fill: color-mix(in srgb, var(--sky) 70%, var(--white)); }
.foot-mountains .fm-mid { fill: var(--logo-stone); opacity: 0.55; }
.foot-mountains .fm-front { fill: var(--mist); }
.foot-body { padding: clamp(28px, 4vw, 48px) 0 28px; background: var(--mist); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.foot .logo { color: var(--ink); }
.foot .lg-a .lg-snow { fill: var(--mist); }
.foot .logo-word { font-size: 26px; }
.foot-slogan { margin-top: 10px; color: var(--text-soft); font-size: 16px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; padding: clamp(28px, 4vw, 40px) 0; }
.foot-col { display: grid; align-content: start; gap: 4px; min-width: 0; }
.foot-col h2 { margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.foot-col a, .foot-col span { padding: 5px 0; color: var(--text-soft); text-decoration: none; overflow-wrap: anywhere; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.foot .lang-switch { background: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .foot-col a:hover { color: var(--ink); text-decoration: underline; }
}

/* Fehler- und Wartungsseiten (404, 500, 503): ruhig, mittig, mit Weg zurück */
.status-body { display: flex; min-height: 100vh; min-height: 100svh; background: var(--mist); }
.status { flex: 0 0 auto; width: 100%; max-width: 640px; margin: auto; padding: 48px var(--gutter); text-align: center; }
.status-logo { display: flex; justify-content: center; margin-bottom: clamp(40px, 8vw, 72px); }
.status-code { margin-bottom: 12px; color: var(--muted); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status-title { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.status-text { max-width: 44ch; margin: 20px auto 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Hinweis in der Admin-Vorschau */
.preview-badge {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; transform: translateX(-50%);
  padding: 12px 20px; border-radius: var(--radius-sm); white-space: nowrap;
  background: var(--accent); color: var(--white); font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
}

.preview-badge-closed { background: var(--ink); }

/* ---------- Einstieg: nur im Intro, Titel zuerst, dann der Rest ---------- */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 140ms);
  animation: reveal-fallback 0s 2.5s forwards; /* falls das Script nicht lädt, trotzdem anzeigen */
}
.js .reveal.in { opacity: 1; transform: none; animation: none; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .about-with-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .about-with-img .about-media { grid-column: 1; grid-row: 2; max-width: 360px; }
  .step:not(:last-child)::before { display: none; }
}

/* ---------- Handy ---------- */
@media (max-width: 800px) {
  :root { --nav-h: 64px; }
  .logo-word { font-size: 22px; }
  .js .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -6px; padding: 0;
    border: 0; background: none; color: var(--text-strong); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 250ms ease; }
  .bars { position: relative; background: transparent; }
  .bars::before, .bars::after { content: ''; position: absolute; left: 0; }
  .bars::before { transform: translateY(-4px); }
  .bars::after { transform: translateY(4px); }
  .nav.open .bars::before { transform: rotate(45deg); }
  .nav.open .bars::after { transform: rotate(-45deg); }

  .js .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px;
    background: var(--white); overflow-y: auto;
    visibility: hidden; transform: translateX(-100%);
    transition: transform 320ms var(--ease-out), visibility 0s 320ms;
  }
  .js .nav.open .nav-links { visibility: visible; transform: none; transition-delay: 0s; }
  /* Kein grauer Tipp-Schimmer und kein Farbwechsel, während das Menü wegfährt */
  .js .nav-links a { transition: none; }
  .js .nav-links a:not(.nav-cta) { padding: 16px 0; border-bottom: 1px solid var(--line-strong); color: var(--text-strong); font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
  .js .nav-links .lang-switch { align-self: flex-start; margin-top: 24px; font-size: 15px; }
  .js .nav-links .lang-switch a { padding: 6px 14px; border: 0; color: var(--text-soft); font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; }
  .js .nav-links .nav-cta { margin-top: 28px; padding: 16px 20px; text-align: center; font-size: 17px; background: var(--accent); border-color: var(--accent); color: var(--white); }
  html:not(.js) .nav { height: auto; }
  html:not(.js) .nav-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  html:not(.js) .nav-links { width: 100%; gap: 20px; overflow-x: auto; }

  .hero { padding-top: 72px; }
  .hero { min-height: 0; }
  .hero-has-media .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-has-media .hero-visual { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; box-shadow: none; }
  .hero-media { max-height: none; }
  .hero-actions .btn { flex: 1 1 100%; min-width: 0; }

  .section-head, .contact-layout, .form-row, .case-phone-grid, .planer-teaser { grid-template-columns: minmax(0, 1fr); }
  .step-detail { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "main" "facts" "nav"; }
  .step-detail-nav { align-self: end; }

  .services { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 18px 0 20px; }

  .work { grid-template-columns: 1fr; gap: 40px; }
  .work-stage + .work-body { padding-right: 0; }
  .work-odd .work-card:first-child .work-media:not(.work-browser) { aspect-ratio: 4 / 3; }

  .about, .about-with-img { grid-template-columns: 1fr; }
  .about-with-img .about-media { grid-column: auto; grid-row: auto; }
  .about-media { max-width: 340px; }

  .case-intro, .case-story-grid, .case-step { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 18px; grid-template-columns: 1fr 40px; }
  .case-step-flip .case-step-text { order: 0; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 400ms ease; transition-delay: 0s; }
  .browser-view img { animation: none; }
  [data-motion]:not(.hero-visual) > .motion-toggle { display: none; }
  .btn, .btn::after, .work-arrow, .service-icon, .service-icon::before, .service-icon::after, .work-media img, .work-media video { transition: none; }
  .js .nav-links { transition: visibility 0s; }
  .phone { animation: none; }
  .planer-demo { animation: none; }
  .hero-anim .hm-pulse circle { animation: none !important; }
  .js .step-detail.is-in { animation: none; }
  button.step-num { transition: none; }
}
