/* ==========================================================================
   Archivo, selbst gehostet. Variable Schrift, deckt 400 bis 800 in einer Datei ab.
   Bewusst nicht über das Google-CDN eingebunden: dabei würde bei jedem Aufruf
   die IP-Adresse des Besuchers an Google gehen. Lizenz: assets/fonts/OFL.txt
   ========================================================================== */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/archivo-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-ext.woff2') format('woff2');
  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;
}

/* Schneider Webstudio — brand tokens from Branding/Farben.png */
:root {
  --navy: #1B3A4B;
  --navy-deep: #142C39;
  --orange: #D9773D;
  --orange-dark: #B85E28;
  --orange-text: #A9531F;   /* Orange als Schriftfarbe: 5,2:1 auf Papier, 4,6:1 auf Creme */
  --ink-tief: #1F1F1F;      /* Schrift auf Orange: 5,2:1, Weiß schaffte nur 3,2:1 */
  --orange-hell: #E59A66;   /* Orange auf Navy: 5,2:1, das Markenorange nur 3,8:1 */
  --cream: #E8DCC8;
  --green: #4A6B4F;
  --ink: #2E2E2E;
  --paper: #FDFBF7;
  --muted: #5E5A55;
  --line: #E4DCCF;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1180px;
  /* linker Anschlag von Logo und Hero-Text: bis 1440 px der normale Seitenrand,
     darueber bleibt er stehen, statt mit der zentrierten .wrap nach rechts zu wandern */
  --rand-links: clamp(16px, calc((100% - 1180px) / 2), 130px);
  --shadow: 0 1px 2px rgba(27, 58, 75, .06), 0 12px 32px -12px rgba(27, 58, 75, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-text); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 10px;
  background: linear-gradient(var(--navy) 0 25%, var(--orange) 25% 50%, var(--cream) 50% 75%, var(--green) 75%);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--orange);
  background: var(--orange); color: var(--ink-tief); font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--ink-tief); border-color: var(--ink-tief); color: var(--paper); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px;
}
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-small { padding: 9px 18px; font-size: .92rem; }

/* Header */
.site-header .wrap { width: auto; max-width: none; margin-inline: 0; padding-inline: var(--rand-links); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 247, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.08rem; letter-spacing: -.01em; }
.brand img { width: 64px; height: auto; }
.brand b { font-weight: 800; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--orange-dark); }
.nav-toggle { display: none; }

/* Header über dem dunklen Startbereich: erst durchsichtig, beim Scrollen hell */
.brand-logo-hell { display: none; }
.site-header-over { background: transparent; backdrop-filter: none; }
.site-header-over .brand { color: #F6F1E8; }
.site-header-over .brand-logo-dunkel { display: none; }
.site-header-over .brand-logo-hell { display: block; }
.site-header-over .nav a:not(.btn) { color: rgba(246, 241, 232, .82); }
.site-header-over .nav a:not(.btn):hover { color: #fff; }
/* Über dem Startbereich: ganz oben durchsichtig, sobald gescrollt wird dunkel
   unterlegt. Ohne das laufen Überschrift und Karten ungedimmt unter der Leiste durch. */
.site-header-over.haftet {
  background: rgba(20, 44, 57, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: rgba(246, 241, 232, .12);
}
.site-header-over.scrolled {
  background: rgba(253, 251, 247, .9); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line);
}
.site-header-over.scrolled .brand { color: var(--ink); }
.site-header-over.scrolled .brand-logo-dunkel { display: block; }
.site-header-over.scrolled .brand-logo-hell { display: none; }
.site-header-over.scrolled .nav a:not(.btn) { color: var(--ink); }
.site-header-over.scrolled .nav a:not(.btn):hover { color: var(--orange-dark); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(168deg, #16323F 0%, var(--navy) 48%, #142C39 100%);
  color: #F6F1E8;
  padding: clamp(88px, 8.5vw, 112px) 0 clamp(24px, 2.5vw, 32px);
  margin-top: -72px;                      /* der durchsichtige Kopf liegt darüber */
}
/* warmer Lichtschein hinter den Entwürfen */
.hero::before {
  content: ""; position: absolute; z-index: -2; inset: -20% -10% auto 30%; height: 90%;
  background: radial-gradient(50% 50% at 60% 40%, rgba(217, 119, 61, .3), transparent 70%),
              radial-gradient(45% 45% at 25% 70%, rgba(74, 107, 79, .28), transparent 70%);
  filter: blur(10px);
}
/* feines Korn, damit die Fläche nicht digital-flach wirkt */
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-copy { max-width: 620px; }
.hero > .wrap { position: relative; z-index: 1; margin-left: var(--rand-links); margin-right: auto; }

.hero-label {
  display: inline-flex; align-items: center; gap: 16px; margin: 0 0 26px;
  font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(246, 241, 232, .66);
}
.hero-label::before { content: ""; width: 34px; height: 1px; background: var(--orange); }

.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -.035em; line-height: 1.02; margin-bottom: .34em; }
.hero h1 em { font-style: normal; color: var(--orange); white-space: nowrap; }
.hero .lead { color: rgba(246, 241, 232, .8); font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 27em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 36px 0 0; }
.hero-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 2px;
  color: #F6F1E8; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(246, 241, 232, .3); transition: color .2s, border-color .2s;
}
.hero-link:hover { color: var(--orange); border-bottom-color: var(--orange); }
.hero-link svg { width: 17px; height: 17px; transition: translate .25s; }
.hero-link:hover svg { translate: 0 3px; }

/* Hintergrundbild fuellt den Header bis Oberkante und Unterkante, nur nach links laeuft es aus */
.hero-art {
  position: absolute; inset: 0 0 0 28%; z-index: 0; pointer-events: none;
}
.hero-art img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: 0 50%;
  /* einziger Uebergang: das Bild loest sich zur Textseite hin auf */
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .45) 7%, #000 17%);
          mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .45) 7%, #000 17%);
  filter: brightness(1.1) saturate(1.05);
  animation: bildRein 1s cubic-bezier(.2, .7, .2, 1) .15s both;
}
/* Schleier ueber die volle Hero-Breite: haelt den Text lesbar und hat selbst keine Kante.
   Zweite Lage dunkelt den Streifen hinter der Kopfzeile ab. */
.hero-schleier {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20, 44, 57, .7) 0, rgba(20, 44, 57, 0) 24%),
    linear-gradient(100deg,
      rgba(20, 44, 57, .96) 0 calc(var(--rand-links) + 500px),
      rgba(20, 44, 57, .6) calc(var(--rand-links) + 700px),
      rgba(20, 44, 57, .2) calc(var(--rand-links) + 840px),
      rgba(20, 44, 57, 0) calc(var(--rand-links) + 980px));
}
@keyframes bildRein { from { opacity: 0; scale: 1.04; } }

/* Handy und Tablet: nebeneinander wird es zu eng. Das Bild sitzt oben ueber die volle
   Breite und laeuft nach unten ins Navy aus, darunter stehen Ueberschrift und Text. */
@media (max-width: 1180px) {
  .hero {
    --hero-bild: clamp(260px, 44vh, 430px);
    padding-top: calc(var(--hero-bild) + clamp(20px, 5vw, 40px));
  }
  .hero-copy { max-width: none; }
  .hero-art {
    inset: 0 0 auto 0; height: var(--hero-bild);
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 48%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 48%, transparent 100%);
  }
  .hero-art img {
    object-position: 50% 42%;
    /* der einzige Uebergang ist hier der nach unten */
    -webkit-mask-image: none; mask-image: none;
  }
  /* nur noch der dunkle Streifen hinter der Kopfzeile; kraeftig genug, dass die hellen
     Netzlinien nicht durch Logo und Menue laufen */
  .hero-schleier {
    background: linear-gradient(to bottom, rgba(20, 44, 57, .9) 0, rgba(20, 44, 57, .55) 72px, rgba(20, 44, 57, 0) 150px);
  }
}

/* Merkmale auf einer Haarlinie */
.hero-points {
  list-style: none; padding: 22px 0 0; margin: clamp(32px, 4.5vw, 56px) 0 0;
  border-top: 1px solid rgba(246, 241, 232, .14);
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  color: rgba(246, 241, 232, .68); font-size: .93rem; font-weight: 600;
  letter-spacing: .02em;
}
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

/* Brand band */
.band { display: grid; grid-template-rows: repeat(4, 5px); }
.band span:nth-child(1) { background: var(--navy); }
.band span:nth-child(2) { background: var(--orange); }
.band span:nth-child(3) { background: var(--cream); }
.band span:nth-child(4) { background: var(--green); }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section-dark { background: var(--navy); color: #F4EFE6; }
.section-dark .eyebrow { color: var(--orange-hell); }
.section-dark .lead { color: #C9D3D8; }
.section-cream { background: #F4EDE1; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  --c: var(--navy);
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 28px; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.service:hover { transform: translateY(-3px); border-color: #D6CCBD; }
.c-navy { --c: var(--navy); } .c-orange { --c: var(--orange); } .c-green { --c: var(--green); }
.service-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--c); margin-bottom: 20px; }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); }
.service ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .95rem; }
.service li { display: flex; gap: 10px; }
.service li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--c); opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.why-list dt { font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; padding-left: 16px; border-left: 4px solid var(--orange); }
.why-list div:nth-child(2) dt { border-color: var(--cream); }
.why-list div:nth-child(3) dt { border-color: #7FA184; }
.why-list div:nth-child(4) dt { border-color: #7EA3B8; }
.why-list dd { margin: 0; color: #C9D3D8; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--orange); }
.step-no { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--cream); line-height: 1; margin-bottom: 14px;
  -webkit-text-stroke: 1.5px var(--navy); }
.steps p { color: var(--muted); font-size: .98rem; }

/* Paket und Module */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: stretch; max-width: 1080px; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.plan h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan-for { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.plan-preis { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 10px;
  font-variant-numeric: tabular-nums; }
.plan-featured .plan-preis { color: #fff; }
.plan-row { display: grid; gap: 3px; align-content: start; padding: 13px 0; border-top: 1px solid var(--line); }
.plan-label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.plan-value { font-size: 1rem; }
.plan .btn { align-self: start; margin-top: 24px; }
.plan-featured { background: var(--navy); color: #F4EFE6; border-color: var(--navy); box-shadow: 0 30px 60px -24px rgba(20,44,57,.55); }
.plan-featured .plan-for { color: #C9D3D8; }
.plan-featured .plan-row { border-top-color: rgba(255,255,255,.16); }
/* Die rechte Spalte ist höher: Zeilen teilen sich den Rest, statt unten ein Loch zu lassen */
.plan-featured .plan-row { flex: 1; }
.plan-featured .plan-label { color: #9FB1BB; }

/* Module: Preisliste mit Preis rechtsbündig */
/* Rechte Spalte: Module und Marke untereinander, unten bündig mit der Webseiten-Karte */
.plans-seite { display: flex; flex-direction: column; gap: 24px; }
.module { flex: 1; }
.module .plan-for { margin-bottom: 20px; }
.module-liste { list-style: none; padding: 0; margin: 0; }
.module-liste li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--line); }
.module-preis { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--orange-text); }
.module-hinweis { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* Zusatz zur Webseite */
.addon { background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 32px 32px; display: grid; gap: 22px; }
.addon-kopf h3 { font-size: 1.35rem; margin-bottom: 6px; }
.addon-kopf p { margin: 0; color: var(--muted); font-size: .96rem; }
.addon-stufen { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.addon-stufe { border-top: 1px solid var(--line); padding-top: 18px; }
.addon-stufe h4 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.addon-preis { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 12px;
  font-variant-numeric: tabular-nums; }
.addon ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.addon li { padding-left: 24px; position: relative; color: var(--muted); }
.addon li::before { content: ""; position: absolute; left: 0; top: .62em; width: 13px; height: 3px;
  background: var(--green); border-radius: 2px; }
.addon-kombi { margin: 0; padding: 14px 18px; border-radius: 10px; font-size: .98rem;
  background: color-mix(in srgb, var(--orange) 12%, #fff); border: 1px solid color-mix(in srgb, var(--orange) 32%, #fff); }
.addon-kombi strong { font-weight: 800; }
.addon .btn { justify-self: start; }
.preis-hinweis { max-width: 1080px; margin: 18px 0 0; font-size: .88rem; color: var(--muted); }


/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 60ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact-list span { color: #9FB1BB; font-size: .9rem; font-weight: 600; padding-top: 2px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--orange); }

.contact-form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.45); }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .92rem; padding: 0; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1.5px solid #D9D0C2; border-radius: 10px; background: #fff;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(27,58,75,.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field .invalid { border-color: #B3401F; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #D9D0C2; font-size: .92rem; font-weight: 600; background: #fff; transition: all .15s; }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.consent { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .92rem; min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-note.error { color: #B3401F; }
.form-note.ok { color: var(--green); font-weight: 600; }

/* ===== Typografische Feinarbeit ===== */
/* Überschriften ohne Schusterjungen: die letzte Zeile bekommt genug Wörter ab */
h1, h2, h3 { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
/* Zeilenlänge begrenzen, sonst ermüdet Fließtext */
.lead, .section-head p:not(.eyebrow), .service p, .faq details p, .work p, .why-list dd, .steps p { max-inline-size: 62ch; }
/* Ziffern mit gleicher Laufweite, damit Schrittnummern und Kennzahlen in einer Flucht stehen */
.step-no { font-variant-numeric: tabular-nums; }
::selection { background: var(--orange); color: var(--ink-tief); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9D3D8; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center; padding: 40px 0; }
.brand-inverted { color: #F4EFE6; }
.site-footer p { margin: 0; font-size: .95rem; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--orange); }
.copy { grid-column: 1 / -1; font-size: .85rem !important; color: #7F95A1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }

/* Reveal on scroll */
/* html prefix outranks the per-component transitions while the reveal runs; JS drops the class afterwards */
html .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .why, .faq-grid, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead { max-width: none; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .preis-hinweis { max-width: 560px; }
  .addon-stufen { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 44px; height: 44px;
    border: 0; background: transparent; cursor: pointer; padding: 0;
  }
  .nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
  /* Über dem dunklen Startbereich hell, sonst verschwindet das Symbol im Bild */
  .site-header-over:not(.scrolled) .nav-toggle span { background: #F6F1E8; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  /* Das aufgeklappte Menü ist immer hell, auch wenn die Kopfzeile noch über dem Startbereich liegt */
  .site-header-over .nav a:not(.btn) { color: var(--ink); }
  .site-header-over .nav a:not(.btn):hover { color: var(--orange-dark); }
  .nav .btn { margin-top: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* Schmaler Ausschnitt: auf die Weltkugel ausrichten, sonst bleibt nur der orange Lichtstreifen */
  .hero-art img { object-position: 60% 40%; }
  .hero-label { flex-wrap: wrap; gap: 4px 10px; font-size: .68rem; letter-spacing: .18em; }
  .hero-label::before { width: 20px; }
  .hero h1 em { white-space: normal; }
  .hero-actions { gap: 14px 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { gap: 10px 24px; font-size: .86rem; }
  .steps, .why-list { grid-template-columns: 1fr; }
  .brand span { font-size: .98rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 0; }
}

/* ===== Arbeitsproben ===== */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.work { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
/* Browserrahmen über dem Screenshot, damit die Entwürfe als Webseiten lesbar sind */
.work-shot { position: relative; padding-top: 30px; background: #EDE6DA; border-bottom: 1px solid var(--line); }
.work-shot::before {
  content: ""; position: absolute; top: 11px; left: 14px; width: 52px; height: 8px;
  background-image: radial-gradient(circle at 4px 4px, #C7BCA9 4px, transparent 4px);
  background-size: 18px 8px; background-repeat: repeat-x;
}
.work-shot img { width: 100%; height: auto; }
.work figcaption { padding: 22px 24px 26px; }
.work h3 { margin-bottom: .35em; }
.work p { margin: 0; color: var(--muted); font-size: .96rem; }
.works-note { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: .95rem; }
.works-note a { color: var(--orange-text); font-weight: 600; }

/* ===== Arbeitsprobe anklickbar ===== */
.work-shot { display: block; text-decoration: none; cursor: pointer; }
.work-cta {
  position: absolute; z-index: 2; left: 50%; top: calc(50% + 15px); transform: translate(-50%, -50%) scale(.96);
  padding: 13px 24px; border-radius: 999px; background: var(--orange); color: var(--ink-tief);
  font-weight: 700; font-size: .96rem; white-space: nowrap;
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.work-shot::after {           /* abdunkelnde Fläche über dem Screenshot */
  content: ""; position: absolute; inset: 30px 0 0; z-index: 1;
  background: rgba(27,58,75,.5); opacity: 0; transition: opacity .25s; pointer-events: none;
}
.work:hover .work-cta, .work-shot:focus-visible .work-cta { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work:hover .work-shot::after, .work-shot:focus-visible::after { opacity: 1; }
.work-shot:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ===== Vorschaufenster ===== */
.peek {
  width: min(96vw, 1180px); max-width: none; height: min(90vh, 880px); max-height: none; padding: 0; border: 0;
  border-radius: var(--radius); background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.65); overflow: hidden;
}
.peek[open] { display: grid; grid-template-rows: auto 1fr auto; }
.peek::backdrop { background: rgba(20,44,57,.74); }
.peek-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; background: #EDE6DA; border-bottom: 1px solid var(--line); }
.peek-title { margin: 0; font-weight: 700; font-size: .96rem; padding-left: 6px; }
.peek-tools { display: flex; align-items: center; gap: 10px; }
.peek-sizes { display: flex; border: 1.5px solid #D9D0C2; border-radius: 999px; overflow: hidden; background: #fff; }
.peek-sizes button { border: 0; background: transparent; font: inherit; font-size: .85rem; font-weight: 600;
  padding: 7px 15px; cursor: pointer; color: var(--muted); }
.peek-sizes button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.peek-extern { font-size: .85rem; font-weight: 600; color: var(--orange-dark); text-decoration: none; white-space: nowrap; }
.peek-extern:hover { text-decoration: underline; }
.peek-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent;
  font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; }
.peek-close:hover { background: rgba(27,58,75,.1); color: var(--ink); }
.peek-stage { background: #E4DBCC; display: flex; justify-content: center; overflow: hidden; }
.peek-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .3s ease; }
.peek-stage[data-size="mobil"] iframe { width: 390px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.peek-note { margin: 0; padding: 11px 20px; font-size: .84rem; color: var(--muted);
  background: var(--paper); border-top: 1px solid var(--line); text-align: center; }
html.peek-offen, html.peek-offen body { overflow: hidden; }   /* Seite dahinter nicht mitscrollen */

@media (max-width: 560px) {
  .peek { width: 100vw; height: 100dvh; border-radius: 0; margin: 0; inset: 0; }
  .peek-title { display: none; }
  .peek-tools { width: 100%; justify-content: space-between; }
  /* Auf dem Handy kann der Umschalter nichts zeigen, was nicht ohnehin zu sehen wäre */
  .peek-sizes { display: none; }
  .peek-stage iframe, .peek-stage[data-size="mobil"] iframe { width: 100%; }
  .peek-note { font-size: .78rem; padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .peek-stage iframe, .work-cta { transition: none; }
}

/* ===== Rückruf im Kontaktformular ===== */
.callback { display: grid; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; background: #FFFCF6; }
.callback-toggle { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; font-weight: 600; cursor: pointer; }
.callback-toggle input { margin-top: 3px; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }
.callback-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.callback-fields[hidden] { display: none; }

/* ===== Aktionsleiste am Handy ===== */
.action-bar { display: none; }

@media (max-width: 960px) {
  .works { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .action-bar {
    display: grid; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s;
  }
  .action-bar .btn { padding: 13px; }
  /* Die Klasse setzt das Skript. Ohne JavaScript bleibt die Leiste sichtbar. */
  .action-bar-auto:not(.sichtbar) { transform: translateY(115%); opacity: 0; pointer-events: none; }
  body { padding-bottom: 74px; }   /* Platz für die feste Leiste */
}
@media (max-width: 560px) {
  .callback-fields { grid-template-columns: 1fr; }
}

/* Hover details — only for real pointers, kept deliberately small */
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--navy) 0 25%, var(--orange) 25% 50%, var(--cream) 50% 75%, var(--green) 75%);
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.service::before { transition: height .3s; }
.service-icon { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.why-list dt { transition: padding-left .3s, border-left-width .3s; }
.why-list dd { transition: color .3s; }
.steps li::before { transition: width .5s cubic-bezier(.2,.7,.2,1); }
.step-no { transition: color .35s, -webkit-text-stroke-color .35s; }
.plan { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.faq summary { transition: color .2s; }
.faq summary::after { transition: transform .2s, right .2s; }
.chips span:hover { border-color: var(--navy); }
.contact-list a { background: linear-gradient(var(--orange), var(--orange)) left bottom / 0 2px no-repeat; transition: background-size .3s, color .2s; }
.footer-nav a { transition: color .2s; }

@media (hover: hover) {
  .nav a:not(.btn):hover::after { transform: scaleX(1); }
  .service:hover::before { height: 7px; }
  .service:hover .service-icon { transform: translateY(-2px) rotate(-4deg); }
  .why-list div:hover dt { padding-left: 20px; border-left-width: 6px; }
  .why-list div:hover dd { color: #E6ECEF; }
  .steps li:hover::before { width: 100%; }
  .steps li:hover .step-no { color: var(--orange); -webkit-text-stroke-color: var(--orange); }
  .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D6CCBD; }
  .plan-featured:hover { box-shadow: 0 36px 70px -24px rgba(20,44,57,.6); }
  .faq summary:hover { color: var(--orange-dark); }
  .faq summary:hover::after { right: 2px; }
  .contact-list a:hover { background-size: 100% 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-art img { opacity: 1; scale: none; }
  html .reveal { opacity: 1; transform: none; }
}
