/* BayernRP – site.css (keine externen Ressourcen) */
:root {
  --bg: #071a36;
  --bg-deep: #0a1220;
  --bg-elev: rgba(255, 255, 255, 0.045);
  --bg-elev-2: rgba(255, 255, 255, 0.07);
  --line: rgba(143, 192, 255, 0.16);
  --line-strong: rgba(143, 192, 255, 0.32);
  --text: #ffffff;
  --text-2: #c9d6ea;
  --text-3: #93a6c4;
  --accent: #1c6fd1;
  --accent-2: #8fc0ff;
  --accent-hover: #2a80e6;
  --ok: #3ddc84;
  --off: #ff6b6b;
  --warn-bg: #fff4c2;
  --warn-text: #3d2f00;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --container: 1180px;
  --header-h: 72px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(28, 111, 209, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(143, 192, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 70%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.015em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: #fff; color: var(--bg-deep); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Rauten-Streifen (weiß-blau) */
.rauten {
  height: 16px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #1c6fd1 25%, transparent 25%),
    linear-gradient(135deg, #1c6fd1 25%, transparent 25%),
    linear-gradient(225deg, #1c6fd1 25%, transparent 25%),
    linear-gradient(315deg, #1c6fd1 25%, transparent 25%);
  background-size: 16px 16px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: 0.95;
}
.rauten--thin { height: 10px; background-size: 10px 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 20, 42, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 47px; object-fit: contain; }
.brand span b { color: var(--accent-2); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; background: var(--bg-elev-2); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-elev-2); border: 1px solid var(--line); color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px;
    background: rgba(7, 20, 42, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 14px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 26px rgba(28, 111, 209, 0.45); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(28, 111, 209, 0.6); }
.btn-ghost { background: var(--bg-elev-2); color: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-2px); }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 1.08rem; }
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 0.95rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Status-Pill */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(10, 18, 32, 0.6); border: 1px solid var(--line-strong);
  font-weight: 600; font-size: 0.95rem; color: var(--text-2);
}
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex: none; }
.status-pill[data-state="online"] .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse 2s infinite; }
.status-pill[data-state="offline"] .dot { background: var(--off); }
.status-pill[data-state="online"] { color: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* Hero */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; padding: 64px 0 80px; overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 50% 35%, rgba(28, 111, 209, 0.35), transparent 70%),
    repeating-linear-gradient(90deg, rgba(143,192,255,0.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(143,192,255,0.04) 0 1px, transparent 1px 80px);
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: clamp(140px, 22vw, 210px); filter: drop-shadow(0 18px 40px rgba(28, 111, 209, 0.55)); margin-bottom: 22px; }
.hero h1 { margin-bottom: 0.15em; background: linear-gradient(180deg, #fff 30%, #b9d7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tagline { font-size: clamp(1.1rem, 2.6vw, 1.45rem); color: var(--text-2); max-width: 680px; margin: 0 auto 26px; }
.hero .tagline strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 28px 0 14px; }
.hero-hint { font-size: 0.9rem; color: var(--text-3); margin: 0; }
.hero-hint a { color: var(--accent-2); }
.hero-rauten { width: 140px; margin: 0 auto 26px; border-radius: 3px; }
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--text-3); font-size: 0.8rem; text-decoration: none; letter-spacing: .12em; text-transform: uppercase;
}

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.1rem; margin: 0; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 12px;
}

/* Cards / Grid */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--bg-elev-2); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--text-2); margin: 0; font-size: 0.98rem; }
.card ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--text-2); font-size: 0.95rem; }
.card li { margin: 4px 0; }
.card li::marker { color: var(--accent-2); }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(28,111,209,0.35), rgba(143,192,255,0.12));
  border: 1px solid var(--line-strong); color: var(--accent-2);
}
.icon svg { width: 24px; height: 24px; }

/* Fraktionen */
.faction { overflow: hidden; padding-top: 34px; }
.faction::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--fc, var(--accent)); }
.faction .tag {
  display: inline-block; margin-top: 18px; font-size: 0.82rem; font-weight: 700; color: var(--accent-2);
  padding: 5px 12px; border-radius: 999px; background: rgba(28,111,209,0.16); border: 1px solid var(--line);
}

/* Schritte */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(28,111,209,0.5);
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-elev);
  transition: border-color .2s, background .2s;
}
.faq details[open] { border-color: var(--line-strong); background: var(--bg-elev-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:focus-visible { border-radius: var(--radius-sm); }
.faq .answer { padding: 0 22px 20px; color: var(--text-2); }
.faq .answer p:last-child { margin: 0; }

/* CTA-Band */
.cta-band {
  text-align: center; padding: clamp(40px, 6vw, 64px) 24px; border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, rgba(28,111,209,0.4), rgba(10,18,32,0.6));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.cta-band p { color: var(--text-2); max-width: 560px; margin: 0 auto 24px; }
.cta-band .hero-actions { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(5, 10, 20, 0.6); padding: 48px 0 28px; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-brand { display: flex; gap: 14px; align-items: center; max-width: 420px; }
.footer-brand img { width: 48px; height: 59px; object-fit: contain; }
.footer-brand p { margin: 0; color: var(--text-3); font-size: 0.92rem; }
.footer-brand strong { color: #fff; display: block; font-size: 1.1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: 0.86rem; }
.footer-bottom p { margin: 0; }

/* Unterseiten */
.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero p { color: var(--text-2); max-width: 680px; margin: 0 auto; font-size: 1.08rem; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
.prose { max-width: 820px; margin: 0 auto; color: var(--text-2); }
.prose h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2em 0 0.6em; }
.prose h3 { color: #fff; margin: 1.6em 0 0.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent-2); }
.prose address { font-style: normal; }
.prose strong { color: #fff; }

.warn-box {
  background: var(--warn-bg); color: var(--warn-text); border: 2px solid #e6c100; border-radius: var(--radius-sm);
  padding: 18px 20px; margin: 0 0 32px; font-weight: 600;
}
.warn-box strong { color: var(--warn-text); }
.warn-box p { margin: 0; }
.ph { background: #ffe066; color: #3d2f00; padding: 1px 6px; border-radius: 4px; font-weight: 700; }

.panel { padding: 24px 26px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); margin: 18px 0; }

/* Regelwerk */
.rules-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc {
  position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto;
  padding: 20px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line);
}
.toc h2 { font-size: 0.82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 0.93rem; font-weight: 600; }
.toc a:hover, .toc a.is-active { color: #fff; background: var(--bg-elev-2); }
.toc a span { color: var(--accent-2); display: inline-block; min-width: 2.2em; }
.rules { min-width: 0; }
.rule-section { padding: 28px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); margin-bottom: 22px; }
.rule-section h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); display: flex; gap: 12px; align-items: baseline; margin-bottom: 18px; }
.rule-section h2 .num { color: var(--accent-2); }
.rule { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.rule:first-of-type { border-top: 0; }
.rule .num { color: var(--accent-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.rule p { margin: 0; }
.rule strong { color: #fff; }
.rules-meta { color: var(--text-3); font-size: 0.92rem; text-align: center; margin-top: 10px; }

@media (max-width: 960px) {
  .rules-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card, .rule-section { padding: 22px 18px; }
  .rule { grid-template-columns: 1fr; gap: 2px; }
  .hero-actions .btn { width: 100%; }
  .brand { font-size: 1.05rem; }
  .footer-bottom { flex-direction: column; }
}

/* Scroll-Reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
  .card:hover, .btn:hover { transform: none; }
  .status-pill .dot { animation: none !important; }
}

code { font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; font-size: 0.9em; background: rgba(143,192,255,0.12); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: #fff; word-break: break-word; }
