/* ============================================================
   Tim Rübenach — Shell-Stylesheet für alle Pflicht-/Unterseiten
   Blaue CI, Tokens aus DESIGN.md. Wird von der Root-App unter
   /_assets/page.css für jede Seite ausgeliefert.

   Scope: alle Regeln unter .page — so kollidiert eingebettetes
   Fremd-CSS (meetergo-Widget) nicht mit der Seite.
   ============================================================ */

.page *, .page *::before, .page *::after { box-sizing: border-box; margin: 0; padding: 0 }

.page {
  --fd: "Inter", system-ui, sans-serif;
  --bg: #04080f; --bg-soft: #0a1220; --bg-elev: #13233a;
  --accent: #2ea3e0; --accent-deep: #0077b5; --accent-glow: #7fd0ff;
  --ink: #eaf2f8; --body: #c3d3e0; --muted: #8da3b5;
  --hairline: rgba(255, 255, 255, .08); --on-accent: #ffffff;
  --ease: cubic-bezier(.16, 1, .3, 1); --wrap: 1160px;
  --wrap-prose: 820px;

  font-family: var(--fd);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.page img { max-width: 100%; display: block }
.page a { color: var(--accent); text-decoration: none }
.page a:hover { color: var(--accent-glow); text-decoration: underline }
.page :focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 3px; border-radius: 4px }

.page h1, .page h2, .page h3 {
  font-family: var(--fd); color: var(--ink);
  line-height: 1.12; letter-spacing: -.02em; font-weight: 700;
}
.page h1 { font-size: clamp(30px, 5vw, 46px) }
.page h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 40px; margin-bottom: 12px }
.page h3 { font-size: 18px; margin-top: 26px; margin-bottom: 8px }
.page .num { font-variant-numeric: tabular-nums; font-weight: 700 }

.page .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px }
.page .wrap-prose { max-width: var(--wrap-prose) }

/* ---------- Kicker / Badge ---------- */
.page .kicker {
  display: inline-block; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-glow);
  background: rgba(0, 119, 181, .1); border: 1px solid rgba(0, 119, 181, .5);
  padding: 7px 16px; border-radius: 99px; margin-bottom: 20px;
}
.page .lead { font-size: 19px; color: var(--body); max-width: 60ch }

/* ---------- Header ---------- */
.page .hdr {
  border-bottom: 1px solid var(--hairline);
  background: rgba(4, 8, 15, .8); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.page .hdr .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.page .hdr img { height: 30px; width: auto }
.page .hdr .back { font-size: 14px; color: var(--muted) }
.page .hdr .back:hover { color: var(--accent-glow) }

/* ---------- Main ---------- */
.page main { flex: 1 0 auto; padding: 56px 0 80px }
.page .page-head { margin-bottom: 36px }
.page .page-head .meta { font-size: 14px; color: var(--muted); margin-top: 10px }

/* ---------- Prose (Rechtstexte) ---------- */
.page .prose { font-size: 16px }
.page .prose > * + * { margin-top: 14px }
.page .prose h2:first-child { margin-top: 0 }
.page .prose strong { color: var(--ink); font-weight: 600 }
.page .prose ul, .page .prose ol { padding-left: 22px }
.page .prose li + li { margin-top: 6px }
.page .prose address { font-style: normal }
.page .prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 32px 0 }

/* Definition-Grid für Impressums-Angaben */
.page .dl { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 10px 24px }
.page .dl dt { color: var(--muted); font-size: 14px; padding-top: 2px }
.page .dl dd { color: var(--ink) }
@media (max-width: 560px) {
  .page .dl { grid-template-columns: 1fr; gap: 2px 0 }
  .page .dl dd { margin-bottom: 12px }
}

/* ---------- Card ---------- */
.page .card {
  background: var(--bg-soft); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 26px;
}
/* Nur gestapelte Karten brauchen Abstand. Innerhalb von .grid regelt das gap —
   ohne :not() schob diese Regel das zweite Grid-Item 16px nach unten. */
.page .card + .card:not(.grid > *) { margin-top: 16px }
.page .grid { display: grid; gap: 16px; align-items: stretch }
@media (min-width: 760px) { .page .grid-2 { grid-template-columns: 1fr 1fr } }
@media (min-width: 900px) { .page .grid-3 { grid-template-columns: repeat(3, 1fr) } }

/* ---------- Buttons ---------- */
.page .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 10px;
  font-family: var(--fd); font-size: 16px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
  text-decoration: none;
}
.page .btn:hover { transform: translateY(-2px); text-decoration: none }
.page .btn-accent {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--on-accent);
}
.page .btn-accent:hover { color: var(--on-accent) }
.page .btn-ghost { border-color: var(--hairline); color: var(--ink); background: transparent }
.page .btn-ghost:hover { color: var(--ink); border-color: var(--accent) }
.page .btn-lg { min-height: 62px; font-size: 19px; padding: 0 40px }
@media (max-width: 560px) { .page .btn { width: 100% } }

/* ---------- Steps (Danke-/Bestätigungsseiten) ---------- */
.page .steps { list-style: none; counter-reset: s; padding: 0 }
.page .steps > li {
  counter-increment: s; position: relative;
  padding: 0 0 0 56px; margin-bottom: 26px;
}
.page .steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
}
.page .steps h3 { margin-top: 0 }

/* ---------- Statusbanner ---------- */
.page .banner {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid rgba(0, 119, 181, .45);
  border-radius: 14px; padding: 22px 24px;
}
.page .banner .ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
}
.page .banner .ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.5 }

/* ---------- Glow (max 2 pro Seite, DESIGN.md) ---------- */
.page .glow {
  position: absolute; pointer-events: none; z-index: 0;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 163, 224, .16), transparent 68%);
  filter: blur(38px);
}
.page .glow-top { top: -280px; left: 50%; transform: translateX(-50%) }
.page main > .wrap { position: relative; z-index: 1 }

/* ---------- Testimonials ---------- */
.page .quote { display: flex; flex-direction: column; height: 100% }
.page .quote blockquote { font-size: 17px; color: var(--ink); flex: 1 0 auto }
.page .quote blockquote::before { content: "\201C"; color: var(--accent); font-size: 30px; line-height: 0; vertical-align: -6px; margin-right: 4px }
.page .quote figcaption { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--muted) }
.page .quote figcaption b { display: block; color: var(--ink); font-size: 15px; font-weight: 600 }

/* ---------- Kalender-Embed ---------- */
.page .cal-shell {
  background: var(--bg-soft); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 12px; min-height: 640px;
}
.page .meetergo-iframe { width: 100%; min-height: 620px }

/* ---------- Footer ---------- */
.page .foot {
  border-top: 1px solid var(--hairline);
  background: var(--bg-soft); padding: 40px 0 48px; margin-top: auto;
}
.page .foot .links { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-bottom: 22px }
.page .foot .links a { font-size: 15px; color: var(--body) }
.page .foot .links a:hover { color: var(--accent-glow) }
.page .foot .disc { font-size: 12px; color: var(--muted); line-height: 1.65; text-align: justify }
.page .foot .copy { font-size: 13px; color: var(--muted); margin-top: 18px }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .page *, .page *::before, .page *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .page .btn:hover { transform: none }
}
