/* ============================================================
   KüchenOS — Gateway-Landing, Erscheinungsbild.
   Zerlegt aus gateway/mockups/kuechenos-landing.html (Entwurf vom 16.08.2026),
   Design unverändert übernommen.

   KEIN HEXWERT hier. Die Farbtoken standen vorher als zweiter, handgepflegter
   Satz am Anfang dieser Datei. Sie kommen jetzt aus tokens.css, das
   scripts/gen-design-tokens.js aus docs/specs/design-tokens-kuechenos.json
   erzeugt — dieselbe Quelle, aus der auch das Lager-Frontend zieht.
   tokens.css muss VOR dieser Datei geladen werden.
   ============================================================ */
/* ============================================================
   LOGO — Wortmarke, Pill, Theme-Switch
   ============================================================ */
/* Originallogo von Markus. Zwei Fassungen, je Theme eine.
   Umschaltung ohne JS über die Sichtbarkeit, damit beide vorgeladen sind. */
.kos-logo { display: inline-flex; align-items: center; }
.kos-logo img { display: block; height: 100%; width: auto; }
.kos-logo .lg-light { display: none; }
html[data-theme="light"] .kos-logo .lg-dark  { display: none; }
html[data-theme="light"] .kos-logo .lg-light { display: block; }

/* Navigation: Pille und Wortmarke sind getrennte Dateien, weil die Kapsel
   tiefer reicht als die Schrift und sich mit der Tagline vertikal überlappt.
   Getrennt lassen sie sich exakt auf gemeinsame Mitte setzen. */
.nav-brand .kos-pill-wrap { height: 30px; display: block; }
.nav-brand .kos-word-wrap { height: 21px; display: block; margin-left: 9px; }
.nav-brand .kos-pill-wrap img,
.nav-brand .kos-word-wrap img { height: 100%; width: auto; }

/* Theme-Switch */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-muted);
  cursor: pointer;
  flex: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Weicher Übergang beim Umschalten, aber nicht für Leute mit Motion-Sperre */
@media (prefers-reduced-motion: no-preference) {
  html.theme-anim, html.theme-anim body,
  html.theme-anim .nav, html.theme-anim .panel,
  html.theme-anim .stack-card, html.theme-anim .why {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  }
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--accent-ink); }

main { width: 100%; max-width: 100%; overflow-x: clip; }

.wrap {
  width: min(1240px, 94vw);
  margin-inline: auto;
}

/* ---------- Körnung (inline SVG, kein externer Request) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  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='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   NAVIGATION — Floating Glass Pill
   ============================================================ */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: box-shadow 0.5s ease, border-color 0.5s ease, background 0.5s ease;
}
.nav.scrolled {
  box-shadow: 0 12px 40px var(--shadow);
  border-color: var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.nav-brand .os { color: var(--accent); }
.nav-links {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
}
.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease, background 0.3s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 30px;
  font-size: 1rem;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-soft);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-nav { padding: 9px 20px; font-size: 0.9rem; }
.btn .arrow { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover .arrow { transform: translateX(4px); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   HERO — Cinematic Center
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(38% 42% at 28% 26%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(42% 46% at 74% 68%, color-mix(in srgb, var(--accent-2) 34%, transparent), transparent 72%),
    radial-gradient(30% 34% at 62% 18%, color-mix(in srgb, var(--accent-soft) 9%, transparent), transparent 70%),
    var(--bg);
  will-change: transform;
}
.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 65% at 50% 42%, transparent 30%, var(--wash) 78%, var(--bg) 100%);
}
.hero-inner { width: min(1240px, 94vw); }

.hero-mark {
  display: inline-flex;
  align-items: center;
  height: clamp(64px, 9vw, 104px);          /* Originallogo trägt die Tagline bereits */
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  max-width: 100%;
}
.hero-mark img { max-width: 100%; object-fit: contain; }
.hero-mark svg { display: block; }
.hero-wordmark {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-wordmark .os { color: var(--accent); }

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: min(1240px, 94vw);
  margin-inline: auto;
  text-wrap: balance;
}
.hero h1 .accent-word {
  color: var(--accent);
  font-weight: 800;
}

.hero-sub {
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  max-width: 560px;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-cta { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.hero-cta .btn-primary {
  padding: 18px 44px;
  font-size: 1.1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: var(--line);
}
.hero-scroll::after {
  content: "";
  position: absolute;
  top: -60%;
  left: 0;
  width: 100%;
  height: 60%;
  background: var(--accent);
  animation: scrollhint 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scrollhint {
  0%   { top: -60%; }
  60%, 100% { top: 110%; }
}

/* Hero-Entrance */
.hero [data-stage] {
  opacity: 0;
  transform: translateY(26px);
  animation: stagein 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero [data-stage="1"] { animation-delay: 0.1s; }
.hero [data-stage="2"] { animation-delay: 0.22s; }
.hero [data-stage="3"] { animation-delay: 0.36s; }
.hero [data-stage="4"] { animation-delay: 0.52s; }
.hero [data-stage="5"] { animation-delay: 0.68s; }
@keyframes stagein {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MARQUEE — Infinite, CSS-getrieben
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line-soft);
  padding: 26px 0;
  overflow: hidden;
  background: var(--bg-elev);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-seq {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.marquee-seq span {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-faint);
  padding-inline: 1.4rem;
  transition: color 0.4s ease;
}
.marquee-seq span:hover { color: var(--ink); }
.marquee-seq i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.7rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   SEKTIONS-GERÜST
   ============================================================ */
.section { padding-block: var(--section-pad); }
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-head p {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  max-width: 620px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

/* Scroll-Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rd, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   MODULE — Horizontal Accordion (lückenlos)
   ============================================================ */
.accordion {
  display: flex;
  gap: 0;
  height: clamp(480px, 62vh, 600px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.panel {
  position: relative;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  border: 0;
  border-left: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-family: var(--font-sans);
  overflow: hidden;
  transition: flex 0.85s cubic-bezier(0.22, 1, 0.36, 1), background 0.6s ease;
}
.panel:first-child { border-left: none; }
.panel.active {
  flex: 3.6;
  background: var(--surface-2);
}
.panel:not(.active):hover { background: var(--surface-2); }

.panel-collapsed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  transition: opacity 0.45s ease;
}
.panel.active .panel-collapsed { opacity: 0; pointer-events: none; }
.panel-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.panel-vname {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  transition: color 0.4s ease;
}
.panel:hover .panel-vname { color: var(--ink); }

.panel-expanded {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.25s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
  min-width: clamp(280px, 30vw, 420px);
}
.panel.active .panel-expanded { opacity: 1; transform: none; }

.panel-motif {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  width: clamp(80px, 9vw, 130px);
  height: clamp(80px, 9vw, 130px);
  color: var(--accent);
  opacity: 0.85;
}
.panel-motif svg { width: 100%; height: 100%; }

.panel-expanded .panel-mono { margin-bottom: 12px; }
.panel-expanded h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.panel-kicker {
  margin-top: 6px;
  font-weight: 500;
  color: var(--accent-soft);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}
.panel-desc {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 0.98rem;
  max-width: 46ch;
}

/* Accordion mobil: vertikaler Stapel, ebenfalls lückenlos */
@media (max-width: 700px) {
  .accordion {
    flex-direction: column;
    height: auto;
  }
  .panel {
    flex: none;
    border-left: none;
    border-top: 1px solid var(--line-soft);
    min-height: 76px;
  }
  .panel:first-child { border-top: none; }
  .panel.active { flex: none; min-height: 340px; }
  .panel-collapsed {
    flex-direction: row;
    padding: 0 22px;
    justify-content: space-between;
  }
  .panel-vname {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .panel-expanded { position: relative; inset: auto; padding: 24px 22px 30px; min-width: 0; }
  .panel:not(.active) .panel-expanded { display: none; }   /* kollabiert wirklich kollabiert */
  .panel-motif { top: 20px; right: 20px; width: 60px; height: 60px; }
}

/* ============================================================
   WARUM KÜCHENOS — Pinned Split + Card Stacking
   ============================================================ */
.why { background: var(--bg-elev); border-block: 1px solid var(--line-soft); }
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.why-pin {
  position: sticky;
  top: 120px;
}
.why-pin h2 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.why-pin p {
  margin-top: 1.5rem;
  color: var(--ink-muted);
  max-width: 40ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}
.why-pin .pin-meter {
  margin-top: 2.5rem;
  width: 120px;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.why-pin .pin-meter i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

.stack { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); }
.stack-card {
  position: sticky;
  top: 120px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  min-height: clamp(300px, 40vh, 380px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 24px 60px var(--shadow);
  will-change: transform, filter;
  transition: border-color 0.5s ease;
}
.stack-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.stack-card:nth-child(2) { top: 140px; }
.stack-card:nth-child(3) { top: 160px; }
.stack-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.stack-num svg { width: 22px; height: 22px; }
.stack-card h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 22ch;
}
.stack-card p {
  color: var(--ink-muted);
  max-width: 58ch;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-pin { position: static; }
  .stack-card, .stack-card:nth-child(2), .stack-card:nth-child(3) { top: 96px; }
}

/* ============================================================
   ACTION — Footer-CTA
   ============================================================ */
.cta-final {
  text-align: center;
  position: relative;
  isolation: isolate;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 60% at 50% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 75%);
}
.cta-logo {
  height: clamp(72px, 12vw, 150px);
  margin-inline: auto;
  justify-content: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 100%;
}
.cta-logo img { max-width: 100%; object-fit: contain; }
.cta-sub {
  margin: 1.75rem auto 0;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 1vw, 0.85rem);
}
.cta-final .btn-primary {
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
  padding: 20px 52px;
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 40px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-brand .os { color: var(--accent); }
.footer-tagline {
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}
.footer-credit {
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.footer-credit b { color: var(--ink-muted); font-weight: 600; }

@media (max-width: 640px) {
  .nav { gap: 0.5rem; padding-left: 16px; }
  .nav-links { display: none; }
  .footer-row { flex-direction: column; text-align: center; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero [data-stage] { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   ANSICHTSUMSCHALTUNG — Marketing / Anmeldung / Bereichsauswahl

   ⚠️ Nicht sichtbare Ansichten kommen AUS DEM FLUSS, nicht nur auf
   opacity:0. Die Vorgängerfassung hat nur die Deckkraft geschaltet;
   die unsichtbare Ansicht behielt ihre min-height:100vh und schob die
   Bereichsauswahl exakt eine Bildschirmhöhe unter den Sichtbereich.
   Man sah nach der Anmeldung eine leere Seite.
   ============================================================ */
.ansicht { display: none; }
.ansicht.aktiv { display: block; }

/* Bis der Anmeldezustand bekannt ist, wird NICHTS gezeigt. Sonst blitzt
   die Marketing-Seite auf, obwohl man angemeldet ist — oder umgekehrt. */
body.lade .ansicht,
body.lade .nav,
body.lade .footer { visibility: hidden; }

body.lade::after {
  content: '';
  position: fixed; inset: 0;
  background: var(--bg);
  display: block;
}

.nowrap { white-space: nowrap; }

/* ============================================================
   KOPFZEILE — angemeldeter Teil
   ============================================================ */
.nav-konto { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-verwaltung {
  font-size: 0.82rem; color: var(--ink-muted); text-decoration: none;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-verwaltung:hover { color: var(--accent-soft); border-color: var(--accent); }
.nav-benutzer { font-size: 0.86rem; color: var(--ink); font-weight: 500; }

/* ============================================================
   ANMELDUNG
   ============================================================ */
.anmeldung {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 8rem 1.5rem 4rem;
}
.anmelde-karte {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  box-shadow: 0 30px 80px var(--shadow);
}
.anmelde-marke { height: 30px; margin-bottom: 1.8rem; }
.anmelde-marke .kos-pill-wrap { height: 30px; display: block; }
.anmelde-marke .kos-word-wrap { height: 21px; display: block; margin-left: 9px; }
.anmelde-marke .kos-pill-wrap img,
.anmelde-marke .kos-word-wrap img { height: 100%; width: auto; }

.anmelde-titel { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.anmelde-unter { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 1.8rem; }

.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.1rem; }
.feld label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-faint); font-weight: 600;
}
.feld input {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans); font-size: 0.95rem;
  padding: 12px 14px; border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feld input:hover { border-color: var(--line-soft); }
.feld input:focus { outline: none; border-color: var(--accent); background: var(--surface-3); }

.anmelde-fehler {
  font-size: 0.84rem; color: var(--ink);
  background: var(--surface-3);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 10px 13px; margin-bottom: 1rem;
}

.btn-breit { width: 100%; justify-content: center; padding: 13px 20px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.anmelde-zurueck {
  display: block; width: 100%; margin-top: 1.2rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.82rem; color: var(--ink-faint);
  transition: color 0.2s ease;
}
.anmelde-zurueck:hover { color: var(--accent-soft); }

/* ============================================================
   BEREICHSAUSWAHL
   ============================================================ */
.bereiche { min-height: 100vh; padding: 9rem 0 5rem; }
.bereiche-kopf { text-align: center; margin-bottom: 3.2rem; }
.bereiche-kopf h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 0.4rem;
}
.bereiche-unter { color: var(--ink-muted); font-size: 0.95rem; }

.modul-raster {
  display: grid;
  /* 260px statt 300px: bei 300px passten in die 1240er Spur nur drei Karten
     (4*300 + 3*22 = 1266), und die vierte — Rezepte — stand allein in einer
     zweiten Reihe. Mit 260px passen vier in eine Reihe (4*260 + 3*22 = 1106).
     Bei drei Karten ändert sich nichts: auto-fit kollabiert die leere Spur,
     die drei teilen die Breite weiterhin unter sich auf. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.modul-karte {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-decoration: none; color: var(--ink);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease, box-shadow 0.35s ease;
}
.modul-karte:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--akzent, var(--accent)) 45%, var(--line));
  box-shadow: 0 24px 60px color-mix(in srgb, var(--akzent, var(--accent)) 14%, transparent);
}

/* Je Modul ein eigener Ton — ausschließlich über eine Variable, damit kein
   Hexwert im Anwendungscode landet und ein Kundentheme sie mit umfärbt. */
.modul-karte.ton-frost   { --akzent: var(--accent-2); }
.modul-karte.ton-kantine { --akzent: var(--accent-soft); }
.modul-karte.ton-lager   { --akzent: var(--accent); }
.modul-karte.ton-rezepte { --akzent: var(--accent-2); }
.modul-karte.ton-bestpreis { --akzent: var(--accent-soft); }
.modul-karte.ton-neutral { --akzent: var(--ink-muted); }

.modul-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--akzent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--akzent) 26%, transparent);
  color: var(--akzent);
  margin-bottom: 1.3rem;
}
.modul-icon svg { width: 22px; height: 22px; }

.modul-karte h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.modul-karte p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.55; }

.modul-punkte { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 8px; }
.modul-punkte li {
  font-size: 0.85rem; color: var(--ink-muted);
  display: flex; align-items: center; gap: 9px;
}
.modul-punkte li::before {
  content: ''; flex: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--akzent);
}

.modul-oeffnen {
  margin-top: auto; padding-top: 1.6rem;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--akzent);
}
.modul-karte:hover .modul-oeffnen .arrow { transform: translateX(4px); }
.modul-oeffnen .arrow { transition: transform 0.3s ease; display: inline-block; }

.bereiche-leer {
  text-align: center; color: var(--ink-muted); font-size: 0.95rem;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.4rem;
}

@media (max-width: 720px) {
  .bereiche { padding: 7rem 0 3rem; }
  .nav-benutzer { display: none; }
  .nav-verwaltung { padding: 5px 9px; font-size: 0.76rem; }
  .anmeldung { padding: 6.5rem 1.2rem 3rem; }
  .anmelde-karte { padding: 1.8rem 1.4rem; }
}

/* ============================================================
   KOPFZEILE auf schmalen Geräten

   Die Kopfzeile ist eine mittig fixierte Pille (position:fixed,
   left:50%, translateX(-50%)). Ohne Breitenbegrenzung wächst sie über
   den Bildschirmrand hinaus und ragt links UND rechts heraus — bei
   390 px gemessen: -93 bis 483 statt 0 bis 390.

   Sie ist fixiert, verursacht also keine waagrechte Scrollleiste, wohl
   aber abgeschnittene Bedienelemente: der Abmelden-Knopf lag außerhalb
   des Bildschirms und war nicht erreichbar.
   ============================================================ */
.nav {
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .nav {
    gap: 0.5rem;
    padding: 8px 8px 8px 12px;
    top: 10px;
  }
  /* Die Wortmarke weicht als Erstes: die Pille allein ist als Marke
     erkennbar, und der Platz gehört den Bedienelementen. */
  .nav-brand .kos-word-wrap { display: none; }
  .nav-links { display: none; }
  .nav-konto { gap: 8px; }
  .nav-benutzer { display: none; }
  .nav-verwaltung {
    padding: 5px 9px; font-size: 0.72rem;
    max-width: 5.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .btn-nav { padding: 8px 14px; font-size: 0.82rem; }
  .theme-toggle { width: 34px; height: 34px; }
  .theme-toggle svg { width: 15px; height: 15px; }
}

/* ============================================================
   [hidden] MUSS gewinnen.

   Das HTML-Attribut `hidden` wirkt nur über die Browser-Grundregel
   `[hidden] { display: none }` — und die hat die Spezifität einer
   Typ-Auswahl. Jede Klassenregel mit eigenem display schlägt sie:
   `.nav-links { display: flex }` und `.btn { display: inline-flex }`
   haben dazu geführt, dass angemeldete Benutzer gleichzeitig
   „Anmelden" UND „Abmelden" sowie die Marketing-Links gesehen haben,
   obwohl das JavaScript sie korrekt auf hidden gesetzt hatte.

   Eine Regel für alle statt display:none an jeder Stelle einzeln —
   sonst tritt derselbe Fehler beim nächsten neuen Element wieder auf.
   ============================================================ */
[hidden] { display: none !important; }

/* ── Schlanke Startseite (seit 01.09.2026) ────────────────────────────────
   Solange KüchenOS 2.0 nicht fertig ist, zeigt die Startseite nur Logo und
   Anmelden. Additiv angehängt, damit beim Zurückholen der vollen Seite nur
   dieser Block entfernt werden muss. */
.hero.hero-schlank {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
}
.hero-schlank .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 7vh, 5rem);
  text-align: center;
}
.hero-schlank .hero-mark img { max-width: min(560px, 82vw); height: auto; }
.hero-schlank .btn-primary { font-size: 1.05rem; padding: 0.95em 2.4em; }
