/* ==========================================================================
   Frankfurt RP – Stylesheet (kompakt und modern)
   Alles kommt von dieser Domain: keine Google-Schriften, keine externen
   Skripte, keine Cookies.
   Farben: Rot #fa3019, Balken #ff0000, Text #f4f4f6
   ========================================================================== */

:root {
  --red: #fa3019;
  --red-bright: #ff6a55;
  --red-deep: #c4160a;
  --bar: #ff0000;
  --text: #f4f4f6;
  --muted: #b4b4bd;
  --bg: #08080b;
  --panel: rgba(16, 16, 21, 0.78);
  --line: rgba(255, 255, 255, 0.09);
  --line-red: rgba(250, 48, 25, 0.42);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 980px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  /* Montserrat wird genutzt, wenn sie lokal vorhanden ist, sonst die Systemschrift. */
  --font: Montserrat, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #3a3a45 var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font: 15px/1.65 var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 420px at 50% -140px, rgba(250, 48, 25, 0.2), transparent 70%),
    linear-gradient(rgba(6, 6, 9, 0.9), rgba(6, 6, 9, 0.96)),
    url("bild-frankfurt-rp-banner-1024.jpg") center top / cover no-repeat,
    var(--bg);
  background-attachment: fixed;
}

@media (min-width: 1100px) {
  body {
    background:
      radial-gradient(1100px 420px at 50% -140px, rgba(250, 48, 25, 0.2), transparent 70%),
      linear-gradient(rgba(6, 6, 9, 0.9), rgba(6, 6, 9, 0.96)),
      url("bild-frankfurt-rp-banner-2048.jpg") center top / cover no-repeat,
      var(--bg);
    background-attachment: fixed;
  }
}

::selection { background: var(--red); color: #fff; }

/* Ausgeblendete Elemente (zum Beispiel per Verwaltung) bleiben wirklich unsichtbar. */
[hidden] { display: none !important; }

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

a { color: var(--red); transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s; }
a:hover { color: var(--red-bright); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 8px 14px;
  background: #fff; color: #000;
  border-radius: var(--radius-sm);
}
.skip:focus { top: 8px; }

/* ---------- Obere rote Leiste ---------- */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 12px;
  padding: 6px 14px;
  background: var(--bar);
  color: #000; font-size: .875rem;
}
.topbar p { margin: 0; }
.topbar a {
  padding: 2px 12px;
  border: 1px solid #000; border-radius: 999px;
  color: #000; text-decoration: none; letter-spacing: .2px;
}
.topbar a:hover, .topbar a:focus-visible { background: #000; color: #fff; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 8, 11, 0.74);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 48, 25, 0.85), transparent);
}
.site-header .inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 6px 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-size: .98rem; font-weight: 600; letter-spacing: .01em;
}
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav a {
  padding: 5px 12px; border-radius: 999px;
  color: var(--muted); font-size: .88rem; text-decoration: none;
}
.nav a:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.nav a[aria-current="page"] {
  background: rgba(250, 48, 25, 0.16); color: #fff;
  box-shadow: inset 0 0 0 1px var(--line-red);
}

/* ---------- Banner ---------- */
.hero-img {
  width: min(var(--maxw), calc(100% - 32px)); margin: 18px auto 0;
  aspect-ratio: 3 / 1; max-height: 320px;
  object-fit: cover; object-position: 50% 52%;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(250, 48, 25, 0.1);
}

.hero {
  position: relative; isolation: isolate;
  display: grid; place-items: center; text-align: center;
  min-height: clamp(84px, 11vw, 124px);
  background: #000 url("bild-hero-strip-1024.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.58));
}
@media (min-width: 900px) {
  .hero { background-image: url("bild-hero-strip-2048.jpg"); }
}
.hero h1 {
  margin: 0; padding: 0 16px;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 700; letter-spacing: .02em;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

/* ---------- Startseite: Karten mit Banner ---------- */
.home { max-width: var(--maxw); margin: 0 auto; padding: 20px 16px 0; display: grid; gap: 20px; }

.showcase {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.showcase > img {
  width: 100%; aspect-ratio: 4 / 1;
  object-fit: cover; object-position: 50% 55%;
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
}

.rule-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: -14px 0 0; padding: 0 clamp(12px, 2.4vw, 20px) clamp(14px, 2.4vw, 20px); list-style: none;
}
.btn {
  display: block; padding: 10px 12px;
  border: 1px solid var(--line-red); border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  color: var(--red); font-size: .9rem; font-weight: 500; text-align: center; text-decoration: none;
}
.btn:hover, .btn:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #ff4a36, var(--red-deep));
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(250, 48, 25, 0.32);
}

.social {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px;
  margin: -10px 0 0; padding: 0 16px 20px; list-style: none;
}
.social a {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
}
.social a:hover, .social a:focus-visible { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5); }
.social svg { width: 23px; height: 23px; fill: #fff; }
.social .tiktok { background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.social .discord { background: #5865f2; }
.social .youtube { background: #f00; }

/* ---------- Unterseiten ---------- */
.page { max-width: 860px; margin: 0 auto; padding: 20px 16px 8px; }
.panel {
  padding: clamp(16px, 3vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.back {
  display: inline-block; margin: 0 0 12px; padding: 4px 14px;
  border: 1px solid var(--line-red); border-radius: 999px;
  font-size: .86rem; text-decoration: none;
}
.back:hover, .back:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }

.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.subnav a {
  display: inline-block; padding: 3px 11px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .8rem; text-decoration: none;
}
.subnav a:hover { border-color: var(--line-red); color: var(--text); }
.subnav a[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }

.doc-title { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.doc-meta { margin: -8px 0 16px; color: var(--muted); font-size: .84rem; }
.prose h2 {
  margin: 26px 0 10px; padding: 2px 0 2px 12px;
  border-left: 3px solid var(--red);
  font-size: 1.08rem; line-height: 1.35;
}
.prose .doc-title + h2, .prose .doc-meta + h2, .prose section:first-of-type > h2 { margin-top: 0; }
.prose h3 { margin: 18px 0 6px; font-size: 1rem; }
.prose h4 { margin: 14px 0 4px; font-size: .94rem; font-weight: 600; }
.prose p { margin: 0 0 10px; }
.prose a { color: var(--red-bright); }
.prose address { margin: 0 0 10px; font-style: normal; }
.num { color: var(--red); font-weight: 700; }

.rules { margin: 0; padding: 0; list-style: none; }
.rules > li { display: grid; grid-template-columns: 2.7em 1fr; gap: 0 .35em; margin: 0 0 9px; }
.examples { margin: 5px 0 0; padding-left: 1.2em; color: var(--muted); }
.examples li { margin: 2px 0; }
.sublist { margin: 5px 0 0; padding-left: 1.2em; }
.sublist li { margin: 2px 0; }
.plain { margin: 0 0 10px; padding-left: 1.3em; }
.plain li { margin: 3px 0; }

.prose .note {
  margin: 0 0 12px; padding: 9px 14px;
  border-left: 3px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(250, 48, 25, 0.09);
}
.prose .closing {
  margin: 24px 0 0; padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .86rem;
}

/* Team */
.team {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin: 0; padding: clamp(12px, 2.4vw, 20px);
}
.member {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 10px;
}
.member dt { color: var(--red); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.member dd { margin: 3px 0 0; font-size: 1.05rem; font-weight: 600; }

/* ---------- Fußzeile ---------- */
.site-footer { margin-top: 28px; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px;
  padding: 12px 16px;
  background: rgba(8, 8, 11, 0.88); border-top: 1px solid var(--line);
  font-size: .88rem;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--text); text-decoration: underline; }

.disclaimer {
  position: relative; isolation: isolate;
  background: #000 url("bild-frankfurt-rp-banner-1024.jpg") center / cover no-repeat;
}
.disclaimer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.84); }
.disclaimer .inner { max-width: var(--maxw); margin: 0 auto; padding: 22px 16px 28px; }
.disclaimer p { margin: 0 0 8px; color: #cfcfd6; font-size: .8rem; line-height: 1.6; }
.disclaimer .stand { color: var(--text); font-size: .95rem; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 760px) {
  .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-img { aspect-ratio: 5 / 2; }
  .showcase > img { aspect-ratio: 3 / 1; }
}
@media (max-width: 480px) {
  .rule-grid { grid-template-columns: 1fr; }
  .rules > li { grid-template-columns: 2.6em 1fr; }
  .team { grid-template-columns: 1fr; }
  .site-header .inner { justify-content: center; }
}
