/* =========================================================
   Webdesign Renner – Relaunch (Apple-inspiriertes Design)
   Foundations: Typografie, Farbe, Layout, Barrierefreiheit
   ========================================================= */

:root {
  /* Farbe – Rollen · STANDARD = Dark Mode (manuell per Umschalter wechselbar) */
  --surface:        #000000;   /* Grundfläche            */
  --surface-2:      #141416;   /* abgesetzte Sektion     */
  --surface-dark:   #000000;   /* KI-Sektion (immer dunkel) */
  --content:        #f5f5f7;   /* Primärtext             */
  --content-2:      #a1a1a6;   /* Sekundärtext           */
  --accent:         #35B1A8;   /* helleres Petrol · auf Schwarz 8:1 */
  --accent-hover:   #4FC3BA;
  --link:           #35B1A8;
  --border:         #2a2a2c;
  --radius:         18px;
  --radius-lg:      28px;
  --maxw:           1040px;
  --nav-h:          52px;
  --ease:           cubic-bezier(.22,.61,.36,1);

  /* Typo-Variante: Mix aus Futura (Überschriften/Text) und Monospace (Labels).
     Reine Systemschriften (DSGVO-freundlich). */
  --font: "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* Heller Modus – manuell per Umschalter (data-theme="light") */
:root[data-theme="light"] {
  --surface:    #ffffff;
  --surface-2:  #f5f5f7;
  --content:    #1d1d1f;   /* ~16:1 */
  --content-2:  #6e6e73;   /* ~5.1:1 */
  --accent:     #0A6B66;   /* dunkles Petrol · Weiß 6.35:1 */
  --accent-hover:#0C7A74;
  --link:       #0A6B66;
  --border:     #d2d2d7;
}
/* Logo: im Dunkelmodus (Standard) invertiert, im Hellmodus normal */
.brand-logo { filter: invert(1); }
:root[data-theme="light"] .brand-logo { filter: none; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font);
  color: var(--content);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.07; font-weight: 600; }

/* Lange deutsche Komposita (z. B. „Verbraucherstreitbeilegung") auf schmalen Displays
   sauber trennen statt über den Rand schieben; lang="de" ermöglicht die Silbentrennung */
h1, h2, h3, h4, p, li, dd, dt, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; }

a { color: var(--link); text-decoration: none; }

/* Sichtbarer Fokus (Tastaturbedienung) */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px;
  z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Buttons (Pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 44px; padding: 0 22px;
  max-width: 100%; text-align: center;
  border-radius: 980px; font-size: 17px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: background .25s var(--ease), transform .1s var(--ease), color .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--link); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--content-2); }
.btn--small { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Navigation (translucent floating bar) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 28px; padding: 0 22px;
}
.nav__brand { color: var(--content); font-size: 19px; letter-spacing: .02em; display: inline-flex; align-items: center; padding: 5px 0; }
.nav__brand-web { font-weight: 300; }
.nav__brand-renner { font-weight: 600; letter-spacing: .16em; margin-left: 2px; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-logo--footer { height: 38px; opacity: .9; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--content); font-size: 14px; opacity: .85; }
.nav__links a:hover { opacity: 1; }
.nav__cta { margin-left: 4px; }
.nav__burger {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
}
.nav__burger span { width: 20px; height: 1.5px; background: var(--content); transition: .3s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav__mobile {
  display: none; flex-direction: column; gap: 4px; padding: 14px 22px 22px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.nav__mobile a { color: var(--content); font-size: 19px; padding: 12px 0; }
.nav__mobile .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  max-width: 820px; margin: 0 auto; padding: 88px 22px 40px; text-align: center;
}
.hero__eyebrow { color: var(--accent); font-weight: 500; font-size: 19px; margin-bottom: 10px; }
.hero__title { font-size: clamp(44px, 9vw, 88px); font-weight: 600; }
.hero__sub {
  color: var(--content-2); font-size: clamp(19px, 2.4vw, 25px);
  max-width: 620px; margin: 22px auto 0; line-height: 1.35;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.hero__note { color: var(--content-2); font-size: 14px; margin-top: 18px; }

/* Hero mit Partikel-Canvas (Neuronen-Netz, mausreaktiv) */
.herowrap { position: relative; overflow: hidden; }
.herowrap > #net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
}
.herowrap .hero { position: relative; z-index: 1; }

.hero__visual { margin-top: 56px; perspective: 1400px; }
.browser {
  max-width: 760px; margin: 0 auto; border-radius: var(--radius-lg);
  background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.35); overflow: hidden;
  transform: rotateX(6deg); transform-origin: top center;
}
.browser__bar { display: flex; gap: 7px; padding: 14px 18px; }
.browser__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.browser__screen { position: relative; padding: 34px; min-height: 230px; background: var(--surface); }
.bl { height: 16px; border-radius: 8px; background: var(--surface-2); margin-bottom: 16px;
      background-image: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--accent) 14%, var(--surface-2))); }
.bl--xl { width: 70%; height: 30px; }
.bl--l  { width: 52%; }
.bl--m  { width: 38%; }
.browser__chip {
  position: absolute; right: 30px; bottom: 30px; width: 74px; height: 74px;
  border-radius: 22px; background: linear-gradient(135deg, var(--accent), #1FA89B);
  color: #fff; font-weight: 600; font-size: 24px; display: grid; place-items: center;
  box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}

/* ---------- Sektionen ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 22px; }
.section--muted { background: var(--surface-2); max-width: none; }
.section--muted > * { max-width: var(--maxw); margin-inline: auto; }
.section--contact { background: var(--surface-2); max-width: none; }
.section--contact > * { max-width: var(--maxw); margin-inline: auto; }
.section--dark { background: var(--surface-dark); max-width: none; color: #f5f5f7; position: relative; overflow: hidden; }
.section--dark .section__lead { color: #a1a1a6; }
/* Matrix-/AI-Banner als Hintergrund der KI-Sektion */
.ki__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .95; z-index: 0; pointer-events: none;
}
.section--dark::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(2,4,7,.18), rgba(2,4,7,.55));
}
.section--dark > :not(.ki__bg) { position: relative; z-index: 1; }
/* Lesbarkeit über dem Matrix-Hintergrund */
.section--dark .section__title { text-shadow: 0 2px 22px rgba(0,0,0,.75); }
.section--dark .section__lead { text-shadow: 0 1px 12px rgba(0,0,0,.85); }
.section--dark .section__eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,.8); }

.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section__eyebrow, .hero__eyebrow { letter-spacing: 0; }
.section__eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.section__title { font-size: clamp(30px, 5vw, 50px); }
.section__lead { color: var(--content-2); font-size: clamp(18px, 2.2vw, 22px); margin-top: 16px; }

/* Leistungs-Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0,0,0,.4); }
.card--accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 20px; }
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 22px; margin-bottom: 10px; }
.card__text { color: var(--content-2); font-size: 17px; }

/* KI-Grid (dunkel) */
.kigrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.kitile { background: #141416; border: 1px solid #2a2a2c; border-radius: var(--radius-lg); padding: 30px; }
.kitile h3 { font-size: 20px; margin-bottom: 10px; }
.kitile p { color: #a1a1a6; font-size: 16px; }
.kicta { text-align: center; margin-top: 46px; }

/* Arbeiten */
.work { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.work__item { flex: 0 1 calc((100% - 48px) / 3); }
.work__item h3 { font-size: 20px; margin: 18px 0 8px; }
.work__item p { color: var(--content-2); font-size: 16px; }
.work__thumb { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden;
  /* als echtes <button>: native Chrome entfernen, Optik 1:1 beibehalten */
  display: block; width: 100%; padding: 0; margin: 0; background: none; color: inherit; font: inherit; text-align: left;
  -webkit-appearance: none; appearance: none; cursor: pointer; }
.work__thumb--1 { background: linear-gradient(135deg, #0A6B66, #1FA89B); }
.work__thumb--2 { background: linear-gradient(135deg, #ff8a3d, #ff4d6d); }
.work__thumb--3 { background: linear-gradient(135deg, #16c79a, #0A6B66); }
.work__thumb--4 { background: linear-gradient(135deg, #5e5ce6, #0a84ff); }
.work__thumb--5 { background: linear-gradient(135deg, #ff375f, #ff8a3d); }
.work__thumb--6 { background: linear-gradient(135deg, #30d158, #16c79a); }
.work__thumb picture { display: block; width: 100%; height: 100%; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb--top img { object-position: 50% 0; }
.thumb--bottom img { object-position: 50% 100%; }
.work__thumb--logo { background: #fff; }
.work__thumb--logo img { object-position: 50% 62%; }
.work__tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255,255,255,.9); color: #1d1d1f; font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 980px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.work__note { text-align: center; color: var(--content-2); font-size: 16px; margin-top: 36px; }

/* Klickbare Vorschau + Lightbox */
.work__thumb.is-clickable { cursor: zoom-in; }
.work__thumb.is-clickable::after {
  content: "⤢"; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(20,22,25,.55); color: #fff; display: grid; place-items: center;
  font-size: 16px; opacity: 0; transition: opacity .25s var(--ease);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none;
}
.work__item:hover .work__thumb.is-clickable::after,
.work__thumb.is-clickable:focus-visible::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(8,10,13,.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: lbIn .25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox__inner { margin: 0; max-width: 1000px; width: 100%; text-align: center; }
.lightbox__img {
  display: block; margin: 0 auto; max-width: 100%; max-height: 72vh;
  border-radius: var(--radius); box-shadow: 0 30px 90px -20px rgba(0,0,0,.7);
}
.lightbox__cap { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__title { color: #fff; font-size: 20px; font-weight: 600; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 1;
  transition: background .2s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,.28); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; font-size: 30px; line-height: 1;
  display: grid; place-items: center; transition: background .2s var(--ease);
}
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
@media (max-width: 820px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }

/* Schnell-Kontakt-Widget (WhatsApp + FAQ-Bot) */
.chatw { position: fixed; right: 20px; bottom: 20px; z-index: 150; }
.chatw__fab {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--accent) 65%, transparent);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.chatw__fab:hover { background: var(--accent-hover); }
.chatw__fab:active { transform: scale(.94); }
.chatw__fab svg { width: 26px; height: 26px; }
.chatw__fab-close { display: none; }
.chatw.is-open .chatw__fab-open { display: none; }
.chatw.is-open .chatw__fab-close { display: block; }
.chatw__panel {
  position: absolute; right: 0; bottom: 72px; width: 340px; max-width: calc(100vw - 40px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px -20px rgba(0,0,0,.45); overflow: hidden;
  display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 120px));
  animation: chatIn .25s var(--ease);
}
.chatw__panel[hidden] { display: none; }
.chatw__head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.chatw__title { font-weight: 600; font-size: 16px; }
.chatw__close { border: none; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--content-2); }
.chatw__close:hover { color: var(--content); }
.chatw__body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 84px; }
.chatw__msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.chatw__msg--bot { align-self: flex-start; background: var(--surface-2); color: var(--content); border-bottom-left-radius: 5px; }
.chatw__msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.chatw__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; flex: 0 1 auto; max-height: 232px; overflow-y: auto; }
.chatw__chip { border: 1px solid var(--border); background: var(--surface); color: var(--content);
  border-radius: 980px; padding: 7px 13px; font-size: 13px; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease); }
.chatw__chip:hover { border-color: var(--accent); color: var(--accent); }
.chatw__actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.chatw__actions .btn { flex: 1; gap: 6px; }
.chatw__wa { background: #128040; border-color: #128040; color: #fff; }
.chatw__wa:hover { background: #148a42; }
/* Eingabefeld + Senden (nur KI-Modus) */
.chatw__input { display: flex; gap: 8px; align-items: center; padding: 10px 16px 4px; }
.chatw__input[hidden] { display: none; }
.chatw__text {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--content);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 980px;
  padding: 10px 15px; transition: border-color .2s var(--ease);
}
.chatw__text:focus { outline: none; border-color: var(--accent); }
.chatw__send {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.chatw__send:hover { background: var(--accent-hover); }
.chatw__send:active { transform: scale(.92); }
.chatw__note { padding: 0 18px 12px; margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--content-2); }
.chatw__note[hidden] { display: none; }
.chatw__chip--consent { border-color: var(--accent); color: var(--accent); font-weight: 600; }
/* Tipp-Indikator */
.chatw__typing { display: inline-flex; gap: 4px; align-items: center; }
.chatw__typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--content-2);
  animation: chatDot 1s infinite ease-in-out;
}
.chatw__typing span:nth-child(2) { animation-delay: .15s; }
.chatw__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chatw__typing span { animation: none; opacity: .6; } }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chatw__panel { animation: none; } }
@media (max-width: 480px) {
  .chatw { right: 14px; bottom: 14px; }
  .chatw__panel { width: calc(100vw - 28px); }
}

/* Über mich */
.about { display: grid; grid-template-columns: 1.4fr .9fr; gap: 54px; align-items: center; }
.about__text p { color: var(--content-2); font-size: 18px; margin-top: 16px; max-width: 54ch; }
.about__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about__tags li { background: var(--surface); border: 1px solid var(--border); border-radius: 980px; padding: 7px 15px; font-size: 14px; color: var(--content); }
.about__stats { display: grid; gap: 16px; }
.about__stats div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.about__stats strong { display: block; font-size: 34px; }
.about__stats span { color: var(--content-2); font-size: 15px; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1.5fr .8fr; gap: 40px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; }
.req { color: #ff4d6d; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--content);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 15px; min-height: 48px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
/* Barrierefreiheit: ungültige Felder sichtbar markieren (nicht nur über Farbe – Statusmeldung erklärt den Fehler) */
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #e5674f;
  box-shadow: 0 0 0 3px color-mix(in srgb, #e5674f 20%, transparent);
}
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { min-height: auto; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }
.field--check label { font-size: 14px; color: var(--content-2); font-weight: 400; }
.form__status { font-size: 15px; margin-top: 12px; }
.form__status.is-ok { color: #16a34a; }
.form__status.is-err { color: #ff4d6d; }
/* Light-Mode: kräftigeres Rot, da #ff4d6d auf hellem Grund nur 2,95:1 erreicht (Dark-Mode bleibt bei 5,3:1) */
:root[data-theme="light"] .req,
:root[data-theme="light"] .form__status.is-err { color: #c81e3a; }

.contact__aside { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.contact__aside h3 { font-size: 19px; margin-bottom: 18px; }
.contact__line { display: flex; align-items: center; gap: 12px; color: var(--content); font-size: 18px; font-weight: 500; padding: 10px 0; }
.contact__line svg { width: 22px; height: 22px; color: var(--accent); }
.contact__hint { color: var(--content-2); font-size: 14px; margin-top: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 34px 22px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer__brand { font-weight: 300; font-size: 17px; }
.footer__brand strong { font-weight: 600; letter-spacing: .14em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.footer__links a { color: var(--content-2); font-size: 14px; display: inline-block; padding: 7px 0; }
.footer__links a:hover { color: var(--content); }
.footer__copy { color: var(--content-2); font-size: 14px; }

/* Mobil: Footer aufgeräumt – Logo, Links als 2-Spalten-Raster, Copyright gestapelt */
@media (max-width: 640px) {
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; width: 100%; }
  .footer__copy { margin-top: 4px; }
}

/* ---------- Scroll-Reveal & Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(.97);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero-Intro beim Laden (gestaffelt) */
.hero > * { opacity: 0; transform: translateY(26px); }
body.loaded .hero > * {
  animation: heroIn .55s var(--ease) forwards;
}
body.loaded .hero__eyebrow { animation-delay: 0s; }
body.loaded .hero__title   { animation-delay: .05s; }
body.loaded .hero__sub     { animation-delay: .15s; }
body.loaded .hero__actions { animation-delay: .25s; }
body.loaded .hero__note    { animation-delay: .32s; }
body.loaded .hero__visual  { animation-delay: .4s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* Dezenter Zoom der Hero-Vorschau beim Scrollen */
.browser { transition: transform .6s var(--ease); }

/* Karten-Hover-Zoom auf dem Bild-Thumb */
.work__thumb { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.work__item:hover .work__thumb { transform: scale(1.03); box-shadow: 0 24px 50px -24px rgba(0,0,0,.45); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: 0; }
  .nav__mobile.is-open { display: flex; }
  /* Bedienelemente rechts beim Burger bündeln, weg vom Logo */
  .nav__inner { gap: 8px; }
  #fontToggle { margin-left: auto; }
  .cards, .kigrid, .work { grid-template-columns: 1fr; }
  .work__item { flex-basis: 100%; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact { display: block; }
  .contact__aside { margin-top: 32px; }
  .form { grid-template-columns: 1fr; }
  .section { padding: 72px 22px; }
  .hero { padding-top: 60px; }
}

/* Smartphone: Kennzahlen untereinander statt drei nebeneinander (sonst zu eng / Overflow) */
@media (max-width: 560px) {
  .about__stats { grid-template-columns: 1fr; }
  .about__text p { max-width: none; }
}

/* Reduced Motion respektieren – alles sofort sichtbar, keine Bewegung */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .browser { transform: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Typo-Mix: Labels & UI-Elemente in Monospace ---------- */
.section__eyebrow, .hero__eyebrow,
.nav__links a, .nav__mobile a,
.btn,
.work__tag,
.about__stats strong, .about__stats span,
.field label, .field--check label,
.chatw__title, .chatw__chip, .chatw__wa,
.footer__brand strong {
  font-family: var(--font-mono);
}
/* Mono ist breiter – kleine Labels etwas enger setzen */
.nav__links a { letter-spacing: -0.01em; }
.btn { letter-spacing: -0.01em; }

/* Petrol: Akzent-Text/Links auf dauerhaft dunkler Sektion aufhellen (Kontrast ~8:1) */
.section--dark .section__eyebrow,
.section--dark .kitile a { color: #35B1A8; }

/* Button-/FAB-Text je nach Petrol-Helligkeit (Kontrast auf dem Petrol) */
.btn--primary, .chatw__fab, .skip-link { color: #06201e; }     /* Standard (dunkel): dunkler Text auf hellem Petrol → 6.5:1 */
:root[data-theme="light"] .btn--primary,
:root[data-theme="light"] .chatw__fab,
:root[data-theme="light"] .skip-link { color: #ffffff; }       /* Hell: weißer Text auf dunklem Petrol → 6.35:1 */

/* Theme-Umschalter (Nav) */
.nav__theme {
  width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto;
  background: none; border: none; cursor: pointer; color: var(--content);
  border-radius: 50%; transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__theme:hover { background: var(--surface-2); color: var(--accent); }
.nav__theme svg { width: 19px; height: 19px; }
.theme-sun { display: block; }     /* Standard (dunkel): Sonne zeigen → Klick wechselt zu hell */
.theme-moon { display: none; }
:root[data-theme="light"] .theme-sun { display: none; }
:root[data-theme="light"] .theme-moon { display: block; }  /* Hell: Mond zeigen → Klick wechselt zu dunkel */

/* Schriftgrößen-Umschalter (Nav) */
.nav__fontsize {
  width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto;
  background: none; border: none; cursor: pointer; color: var(--content);
  border-radius: 50%; font-family: var(--font); font-weight: 600; line-height: 1;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__fontsize:hover { background: var(--surface-2); color: var(--accent); }
.nav__fontsize span { font-size: 16px; letter-spacing: -.02em; }

/* Schriftgröße: ganze Seite dezent vergrößern (px-basiertes Layout → via zoom) */
:root[data-fontsize="gross"] body { zoom: 1.12; }
:root[data-fontsize="groesser"] body { zoom: 1.25; }
/* Nav-Leiste (Logo + Bedienelemente) über Gegen-Zoom konstant halten – sonst läuft sie auf sehr
   schmalen Displays über und „springt" beim Vergrößern */
:root[data-fontsize="gross"] .nav { zoom: 0.8929; }
:root[data-fontsize="groesser"] .nav { zoom: 0.8; }

/* ---------- Content-/Landingpages & Ratgeber ---------- */
.page { max-width: 820px; margin: 0 auto; padding: clamp(66px,9vw,104px) 22px 64px; }
.page__crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--content-2); margin-bottom: 22px; }
.page__crumbs a { color: var(--content-2); }
.page__crumbs a:hover { color: var(--accent); }
.page__eyebrow { font-family: var(--font-mono); color: var(--accent); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.page h1 { font-size: clamp(31px,5.4vw,50px); line-height: 1.07; letter-spacing: -.02em; margin-bottom: 18px; }
.page__lead { color: var(--content-2); font-size: clamp(18px,2.2vw,21px); line-height: 1.5; margin-bottom: 8px; }
.prose h2 { font-size: clamp(22px,3vw,29px); margin: 40px 0 12px; letter-spacing: -.01em; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p { color: var(--content-2); font-size: 17px; line-height: 1.66; margin-bottom: 14px; }
.prose ul { color: var(--content-2); font-size: 17px; line-height: 1.55; margin: 0 0 16px 20px; display: grid; gap: 7px; }
.prose a { color: var(--link); }
.prose strong { color: var(--content); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; margin: 20px 0 10px; -webkit-overflow-scrolling: touch; }
.ctable { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 540px; }
.ctable th, .ctable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ctable thead th { font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.ctable tbody th { color: var(--content); font-weight: 600; white-space: nowrap; }
.ctable td { color: var(--content-2); }
.ctable tbody tr:last-child td, .ctable tbody tr:last-child th { border-bottom: none; }
.prose .table-note { font-size: 14px; color: var(--content-2); margin-top: 4px; }
.cta-band { margin-top: 48px; padding: clamp(22px,4vw,32px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-band p { font-size: 18px; font-weight: 500; color: var(--content); margin: 0; }
.cta-band .btn { flex: 0 0 auto; }
.related { margin-top: 44px; border-top: 1px solid var(--border); padding-top: 22px; }
.related h2 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--content-2); margin-bottom: 12px; }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.related a { color: var(--accent); font-size: 15.5px; }
/* Ratgeber-Index */
.posts { display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 700px) { .posts { grid-template-columns: 1fr 1fr; } }
.post-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface-2); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.post-card h2 { font-size: 21px; margin: 8px 0; letter-spacing: -.01em; }
.post-card p { color: var(--content-2); font-size: 15.5px; line-height: 1.55; }
/* Homepage: Detail-Links unter den Leistungen */
.lp-links { margin-top: 30px; font-size: 16px; color: var(--content-2); line-height: 1.9; }
.lp-links strong { color: var(--content); font-weight: 600; }
.lp-links a { color: var(--accent); white-space: nowrap; }
