/* KARKO – Übergangsseite (Branch "simple"), reines CSS ohne Präprozessor */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-v25-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-v25-latin-700.woff2") format("woff2");
}

:root {
  /* Farben aus dem Jubiläumsbild abgenommen */
  --navy-deep: #151f5d;
  --navy: #19256f;
  --band: #284195;
  --yellow: #f6eb3b;
  --ink: #e9ecf8;
  --muted: #aab3dc;
  --paper: #f7f7fb;
  --text: #1d2346;
  --text-muted: #5a6086;
  --rule: #dfe2ef;

  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

/* ── Bühne: Bild + Hinweis ───────────────────────────── */

.stage {
  background: var(--navy-deep);
  color: var(--ink);
}

.stage__image {
  max-width: 1920px;
  margin: 0 auto;
  font-size: inherit;
}

.stage__image img { width: 100%; }

/* Das Bild endet mit einem helleren Balken (#284195) –
   der Hinweis setzt genau diesen Balken nahtlos fort. */
.notice {
  background: var(--band);
  padding: clamp(28px, 5vw, 56px) var(--gutter);
}

.notice__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
}

.notice p {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.notice p:first-child { text-align: right; }

.notice p[lang="en"] {
  font-weight: 400;
  color: var(--ink);
}

.notice__lang {
  display: block;
  margin-bottom: 0.35em;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

.notice__divider {
  width: 3px;
  align-self: stretch;
  min-height: 3.5rem;
  background: var(--yellow);
  border-radius: 2px;
}

@media (max-width: 600px) {
  .notice__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .notice p:first-child { text-align: center; }
  .notice__divider {
    width: 48px;
    height: 3px;
    min-height: 0;
    justify-self: center;
  }
}

/* ── Rechtliches ─────────────────────────────────────── */

.legal {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(32px, 5vw, 56px);
}

.legal__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 clamp(32px, 5vw, 56px);
  padding: 0;
  list-style: none;
}

.legal__nav a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  transition: border-color 0.2s, background-color 0.2s;
}

.legal__nav a:hover,
.legal__nav a:focus-visible {
  border-color: var(--band);
  background: #eef1fb;
}

/* Pfeil zeigt an, dass der Knopf auf- und zuklappt (nur mit JS) */
.legal__nav a[aria-expanded]::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}

.legal__nav a[aria-expanded="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.legal__nav a[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-1px);
}

.legal__nav:has(a[aria-expanded="true"]) {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.legal__nav:has(a[aria-expanded]):not(:has(a[aria-expanded="true"])) {
  margin-bottom: 0;
}

/* Sanftes Einblenden des geöffneten Textes */
.legal section:not([hidden]) {
  animation: reveal 0.3s ease-out;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.section-title {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 10px;
  background: var(--yellow);
  border-radius: 2px;
}

/* Impressum als Karte mit zwei Spalten */
.imprint {
  scroll-margin-top: 24px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.imprint:has(+ .privacy[hidden]) { margin-bottom: 0; }

.imprint__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.imprint__col {
  padding: clamp(20px, 3vw, 32px);
}

.imprint__col + .imprint__col {
  border-left: 1px solid var(--rule);
}

.imprint h3 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.imprint address {
  font-style: normal;
}

.imprint .company {
  font-weight: 700;
  color: var(--navy);
}

.imprint dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
}

.imprint dl.imprint__contact { margin-top: 16px; }

.imprint dt { color: var(--text-muted); }
.imprint dd { margin: 0; }

.imprint__note {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .imprint__card { grid-template-columns: 1fr; }
  .imprint__col + .imprint__col {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

/* Datenschutz: aufklappbar, ohne JavaScript */
.privacy {
  scroll-margin-top: 24px;
}

.privacy__lead {
  max-width: var(--measure);
  margin: 0 0 24px;
}

.privacy details {
  border-top: 1px solid var(--rule);
}

.privacy details:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.privacy summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--navy);
}

.privacy summary::-webkit-details-marker { display: none; }

.privacy summary .num {
  flex: 0 0 2rem;
  font-variant-numeric: tabular-nums;
  color: var(--band);
  opacity: 0.6;
}

.privacy summary::after {
  content: "";
  margin-left: auto;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--band);
  border-bottom: 2px solid var(--band);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}

.privacy details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.privacy summary:hover,
.privacy summary:focus-visible {
  background: #eef1fb;
  outline: none;
}

.privacy .body {
  max-width: var(--measure);
  padding: 0 4px 20px calc(2rem + 20px);
}

.privacy .body p { margin: 0 0 12px; }
.privacy .body ul { margin: 0 0 12px; padding-left: 1.2em; }

@media (max-width: 600px) {
  .privacy .body { padding-left: 4px; }
}

/* ── Fuß ─────────────────────────────────────────────── */

.footer {
  padding: 24px var(--gutter);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--navy-deep);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
