/* design-ki – Grundlagen für alle Seiten
   Farben, Schriften und Bedienelemente von Konzept A „Cinematic Premium“.
   Variablennamen wie in Variante A, damit deren Bausteine weiter passen. */

:root {
  --night: #0A0F1C;
  --night-2: #111A2D;
  --night-3: #16213A;
  --ivory: #F2EEE6;
  --mist: #AEB6C6;
  --steel: #5C6880;
  --copper: #E39A3B;          /* Bernstein, Markenlicht */
  --glow: #F2B35C;            /* heller Bernstein */
  --civic: #9DB5DE;           /* Akzent für Verwaltung */
  --line: rgba(242, 238, 230, 0.12);

  --f-display: "Syne", "Arial Narrow", sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --t-hero: clamp(2.6rem, 1rem + 6.4vw, 7.4rem);
  --t-section: clamp(2rem, 1.1rem + 3.4vw, 4rem);
  --t-lede: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --space: clamp(5rem, 3rem + 8vw, 10rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font: 400 1rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--copper); color: var(--night); padding: .7rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; }

/* Wortmarke */
.mark, .foot-mark {
  font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ivory);
}
.mark b, .foot-mark b { font-weight: 800; }
.mark span, .foot-mark span {
  display: inline-block; margin-left: .35em; padding: .05em .4em;
  border: 1px solid var(--copper); border-radius: 999px; color: var(--copper);
  font-size: .72em; vertical-align: .15em;
}

/* Überschriften */
.h-section {
  font: 700 var(--t-section)/1.04 var(--f-display);
  letter-spacing: -0.03em; margin: 0; max-width: 18ch; text-wrap: balance;
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.2rem; padding: 0 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn-ember { background: var(--copper); color: var(--night); }
.btn-ember:hover { background: var(--glow); transform: translateY(-2px); box-shadow: 0 12px 40px -12px rgba(227, 154, 59, .6); }
.btn-light { background: var(--ivory); color: var(--night); }
.btn-light:hover { background: var(--glow); box-shadow: 0 0 40px rgba(242, 179, 92, .35); }
.btn-ghost { border-color: var(--line); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--ivory); }

/* Kopfzeile */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.bar.is-solid { background: rgba(10, 15, 28, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: .75rem; border-bottom-color: var(--line); }
.menu-open .bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.bar-actions { display: flex; align-items: center; gap: 1.25rem; }
.pill {
  font-size: .9rem; font-weight: 600; text-decoration: none;
  padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.pill:hover { border-color: var(--copper); background: rgba(227, 154, 59, .08); }
.menu-toggle {
  display: flex; align-items: center; gap: .6rem; min-height: 2.75rem;
  background: none; border: 0; color: var(--ivory); cursor: pointer;
  font: 600 .9rem/1 var(--f-body); padding: .5rem 0;
}
.menu-lines { position: relative; width: 26px; height: 10px; }
.menu-lines::before, .menu-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-lines::before { top: 0; }
.menu-lines::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { top: 4px; transform: rotate(-45deg); }

/* Vollbild-Menü: öffnet als Kreis von der Menütaste aus (Konzept A) */
.overlay {
  position: fixed; inset: 0; z-index: 30;
  background: radial-gradient(120% 80% at 80% 10%, #1A2747 0%, var(--night) 60%);
  display: grid; grid-template-rows: 1fr auto; gap: 2.5rem;
  padding: 6.5rem var(--gutter) 2rem;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0% at calc(100% - 3rem) 2.5rem);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s linear .7s;
}
.overlay[hidden] { display: grid; }
.overlay.is-open { clip-path: circle(150% at calc(100% - 3rem) 2.5rem); visibility: visible; transition: clip-path .7s var(--ease); }
.overlay-body { align-self: center; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: end; }
.overlay-list { list-style: none; margin: 0; padding: 0; }
.overlay-list li { overflow: hidden; }
.overlay-list a {
  display: flex; align-items: baseline; gap: 1.2rem; text-decoration: none;
  font: 700 clamp(2rem, 1rem + 4vw, 4.4rem)/1.12 var(--f-display); letter-spacing: -0.025em;
  transform: translateY(105%); transition: transform .7s var(--ease), color .25s;
}
.overlay.is-open .overlay-list a { transform: none; }
.overlay.is-open .overlay-list li:nth-child(2) a { transition-delay: .04s; }
.overlay.is-open .overlay-list li:nth-child(3) a { transition-delay: .08s; }
.overlay.is-open .overlay-list li:nth-child(4) a { transition-delay: .12s; }
.overlay.is-open .overlay-list li:nth-child(5) a { transition-delay: .16s; }
.overlay.is-open .overlay-list li:nth-child(6) a { transition-delay: .2s; }
.overlay-list small { font: 500 .85rem var(--f-body); color: var(--mist); width: 7rem; flex: none; letter-spacing: 0; }
.overlay-list a:hover, .overlay-list a:focus-visible, .overlay-list a[aria-current="page"] { color: var(--copper); }
.overlay-sub { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.overlay.is-open .overlay-sub { opacity: 1; transform: none; transition-delay: .25s; }
.overlay-sub p { margin: 0 0 .8rem; color: var(--mist); font-size: .9rem; }
.overlay-sub ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.overlay-sub a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: color .25s, padding .4s var(--ease); }
.overlay-sub a:hover, .overlay-sub a:focus-visible, .overlay-sub a[aria-current="page"] { color: var(--copper); padding-left: .4rem; }
.overlay-foot { display: flex; flex-wrap: wrap; gap: .6rem 2rem; color: var(--mist); font-size: .9rem; }
.overlay-foot p { margin: 0; }
.overlay-foot a { text-decoration: none; color: var(--ivory); }
.overlay-foot a:hover { color: var(--copper); }

/* Fuß */
.foot { padding: 4.5rem var(--gutter) 2.5rem; border-top: 1px solid var(--line); background: #070B15; color: var(--mist); font-size: .92rem; }
.foot-mark { display: block; font-size: clamp(2rem, 7vw, 5.5rem); line-height: 1; margin: 0 0 3rem; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.foot-cols h2 { font: 600 .9rem/1.4 var(--f-body); color: var(--copper); margin: 0 0 .6rem; letter-spacing: 0; }
.foot-cols p { margin: 0; line-height: 1.85; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: .25em; }
.foot-legal { margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot-note { margin: 1rem 0 0; font-size: .8rem; color: var(--steel); }

/* Responsiv */
@media (max-width: 960px) {
  .overlay-body { grid-template-columns: 1fr; align-self: start; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .pill { display: none; }
}
@media (max-width: 640px) {
  .overlay { padding-top: 5.5rem; gap: 2rem; }
  .overlay-list small { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
}
