/* GGL-Whitelist DE — Schwarz-Rot-Gold als wuerdevolle Akzentfarben.
   Helles Grundlayout, Anthrazit fuer Struktur/Text, Gold als Leitakzent,
   Rot ausschliesslich fuer Warnungen und widerrufene Lizenzen. */

:root{
  /* Semantic tokens */
  --ink:#1b1b1d;          /* Anthrazit: Text, Header, Footer */
  --ink-soft:#3c3c40;
  --muted:#5f5f66;
  --bg:#fcfcfa;           /* warmes Off-White */
  --surface:#f4f3ee;      /* Karten/Infoflaechen */
  --line:#e3e1d9;
  --gold:#f5c400;         /* Flaechen-Gold (immer mit dunklem Text) */
  --gold-deep:#8a6d00;    /* Gold fuer Linien/Fokus auf hellem Grund */
  --gold-tint:#fdf6dc;    /* zarte Gold-Hinterlegung */
  --red:#c1121f;          /* nur Warnung/Widerruf */
  --red-tint:#fdf0f0;
  --ok:var(--gold-deep);
  --radius:8px;
}

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

body{
  margin:0;
  font:16px/1.65 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--ink);
  background:var(--bg);
}
:root{--shell:960px}
.container{max-width:var(--shell);margin:0 auto;padding:1.5rem}

h1{font-size:1.75rem;line-height:1.25;letter-spacing:-.01em}
h2{font-size:1.25rem;line-height:1.3;margin-top:2rem;padding-bottom:.35rem;
   border-bottom:2px solid var(--gold)}
article > h2:first-of-type{margin-top:1.5rem}

a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--gold);
  text-decoration-thickness:2px;text-underline-offset:3px;
  transition:background-color .15s ease,color .15s ease}
a:hover{background:var(--gold-tint)}
:focus-visible{outline:3px solid var(--gold-deep);outline-offset:2px;border-radius:2px}

/* ---- Header: Anthrazit + Trikolore-Band ---- */
.site-header{
  background:var(--ink);
  border-top:4px solid;
  border-image:linear-gradient(to right,
    #000 0 33.3%, var(--red) 33.3% 66.6%, var(--gold) 66.6% 100%) 1;
}
.header-inner{
  max-width:var(--shell);margin:0 auto;padding:1rem 1.5rem;
  display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;
}
.logo{display:inline-flex;align-items:center;gap:.55rem;text-decoration:none;color:#fff}
.logo:hover{background:none}
.logo-mark{display:inline-flex;flex:0 0 auto;line-height:0;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
.logo-text{font-weight:700;font-size:1.15rem;letter-spacing:-.01em}
.logo-accent{color:var(--gold)}
.logo-tld{color:#9a9a97;font-weight:600}
.logo:hover .logo-text{color:#fff}
.logo:hover .logo-accent{color:#ffd633}
.main-nav{display:flex;align-items:center}
.nav-links{display:flex;flex-wrap:wrap;gap:.25rem}
.main-nav a{
  color:#f2f2f0;text-decoration:none;padding:.55rem .7rem;border-radius:4px;
  border-bottom:2px solid transparent;min-height:44px;display:inline-flex;align-items:center;
}
.main-nav a:hover{background:rgba(255,255,255,.08);border-bottom-color:var(--gold);color:#fff}
/* Desktop: Umschalter/Checkbox aus, Links als Zeile. Mobil -> siehe Media Query unten. */
.nav-checkbox,.nav-toggle{display:none}

/* ---- Grounding / Breadcrumb ---- */
.grounding{
  font-size:1.05rem;background:var(--gold-tint);
  border-left:4px solid var(--gold);padding:.85rem 1.1rem;border-radius:0 var(--radius) var(--radius) 0;
}
.breadcrumb{font-size:.85rem;color:var(--muted);margin-bottom:.5rem}
.breadcrumb a{color:var(--muted)}
.breadcrumb .sep{color:var(--line)}

/* ---- Status-Karte ---- */
.status-card{
  border:1px solid var(--line);border-top:3px solid var(--gold);
  border-radius:var(--radius);padding:1rem 1.2rem;margin:1.2rem 0;background:#fff;
}
.status-card--revoked{border-color:var(--red);border-top-color:var(--red);background:var(--red-tint)}
.revoked-banner{color:var(--red);font-weight:600}
.kv{display:grid;grid-template-columns:max-content 1fr;gap:.25rem .9rem;margin:.5rem 0}
.kv dt{color:var(--muted)}
.kv dd{margin:0}

.license-list{list-style:none;padding:0;margin:.5rem 0}
.license-list li{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;padding:.4rem 0;border-top:1px solid var(--line)}
.license-type{font-weight:600}
.license-since,.license-follow{color:var(--muted);font-size:.9rem;font-variant-numeric:tabular-nums}
.license-badge{font-size:.75rem;font-weight:600;padding:.15rem .55rem;border-radius:999px}
.badge-ok{background:var(--gold);color:var(--ink)}
.badge-check{background:none;border:1px solid var(--gold-deep);color:var(--gold-deep)}
.source-note{font-size:.85rem;color:var(--muted);margin-top:.5rem}
.kv .hint{color:var(--muted);font-size:.9em}
.scope-note{font-size:.88rem;color:var(--muted);margin:.6rem 0 0;padding-top:.5rem;border-top:1px dashed var(--line)}

/* ---- Marken-Icons (selbst gehostet, siehe gate/fetch_logos.php) ---- */
.mark{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  border-radius:6px;border:1px solid var(--line);overflow:hidden;
  font-weight:700;letter-spacing:-.02em;line-height:1;
}
.mark--sm{width:28px;height:28px;font-size:.72rem}
.mark--lg{width:56px;height:56px;font-size:1.25rem;border-radius:10px}
/* Logos monochrom: haelt die Seite bei einem Register-Charakter statt Werbekatalog.
   Fuer Farbe diese eine Zeile entfernen. */
.mark--logo{object-fit:cover;background:#fff;filter:grayscale(1)}
.mark--mono[data-tone="0"]{background:var(--gold-tint);color:#7a5c00}
.mark--mono[data-tone="1"]{background:#eef0f3;color:#3d4753}
.mark--mono[data-tone="2"]{background:#eef2e8;color:#4a5a34}
.mark--mono[data-tone="3"]{background:#f1efe9;color:#5a5040}
.mark--mono[data-tone="4"]{background:#e9f1f0;color:#2f5551}
.mark--mono[data-tone="5"]{background:#f1ecf2;color:#54395c}

.page-head{display:flex;align-items:center;gap:.9rem;margin-bottom:.2rem}
.page-head h1{margin:0}
.brand-cell{display:inline-flex;align-items:center;gap:.55rem;text-decoration-color:transparent}
.brand-cell:hover{background:none}
.brand-cell:hover span{background:var(--gold-tint)}
.brand-cell span{text-decoration:underline;text-decoration-color:var(--gold);
  text-decoration-thickness:2px;text-underline-offset:3px}
.hit{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}

/* ---- Karten / Hubs ---- */
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin:1.4rem 0}
@media (max-width:820px){.cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:460px){.cards{grid-template-columns:1fr}}
.card{
  display:block;border:1px solid var(--line);border-radius:var(--radius);
  padding:1rem;text-decoration:none;color:inherit;background:#fff;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.card:hover{border-color:var(--gold-deep);box-shadow:0 2px 10px rgba(27,27,29,.08);background:#fff}
.card h2,.card h3{margin:.1rem 0 .3rem;border:none;padding:0;font-size:1.05rem}
.card-icon{display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:10px;background:var(--gold-tint);
  color:var(--gold-deep);margin-bottom:.7rem}
.card-icon svg{width:24px;height:24px}
.card:hover .card-icon{background:var(--gold);color:var(--ink)}

.hub-list{list-style:none;padding:0}
.hub-list li{padding:.7rem 0;border-bottom:1px solid var(--line)}
.hub-desc{display:block;color:var(--muted);font-size:.92rem}

/* ---- Tabellen ---- */
.whitelist-table, article table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:.92rem}
.whitelist-table th, article table th{
  text-align:left;padding:.55rem .6rem;background:var(--surface);
  border-bottom:2px solid var(--gold);font-weight:600;
}
.whitelist-table td, article table td{text-align:left;padding:.55rem .6rem;border-bottom:1px solid var(--line);vertical-align:top}
.row-revoked{opacity:.6}
.row-revoked td:first-child{color:var(--red)}

/* ---- Suche / Formulare ---- */
input[type=search]{
  width:100%;padding:.75rem .95rem;min-height:44px;
  border:1px solid var(--line);border-radius:var(--radius);font-size:1rem;margin:.5rem 0;background:#fff;
}
input[type=search]:focus{border-color:var(--gold-deep);outline:3px solid var(--gold);outline-offset:0}
.hit{padding:.3rem 0}
.hit--revoked{color:var(--red)}
.miss{color:var(--red)}

/* ---- FAQ ---- */
.faq-item{border-bottom:1px solid var(--line);padding:.45rem 0}
.faq-item summary{cursor:pointer;font-weight:600;padding:.35rem .2rem;border-radius:4px;min-height:44px;display:flex;align-items:center}
.faq-item summary:hover{background:var(--gold-tint)}
.faq-answer{padding:.2rem .2rem .6rem}

/* ---- Spielerschutz ---- */
.spielerschutz{
  border:1px solid var(--line);border-radius:var(--radius);
  padding:1rem 1.2rem;margin:1.8rem 0;background:var(--surface);font-size:.92rem;
}
.ss-head{margin:0 0 .35rem}
.ss-head strong{
  display:inline-block;background:var(--red);color:#fff;border-radius:999px;
  padding:.05rem .55rem;font-size:.85rem;margin-right:.25rem;
}

/* ---- Affiliate ---- */
.aff-box{margin:1.2rem 0}
.aff-btn{
  display:inline-flex;align-items:center;min-height:44px;
  background:var(--gold);color:var(--ink);padding:.7rem 1.3rem;border-radius:var(--radius);
  text-decoration:none;font-weight:700;border:1px solid var(--gold-deep);
}
.aff-btn:hover{background:#ffd633}
.aff-disclosure{font-size:.8rem;color:var(--muted);margin-top:.4rem}

/* ---- Lizenz-Verlauf / Position ---- */
.rank-note{font-size:.95rem;background:var(--surface);border-left:3px solid var(--gold-deep);
  padding:.6rem .9rem;border-radius:0 var(--radius) var(--radius) 0;margin:1rem 0}
.timeline{list-style:none;padding:0;margin:.8rem 0 0}
.timeline li{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .8rem;
  padding:.5rem 0 .5rem 1rem;border-left:2px solid var(--line);position:relative}
.timeline li::before{content:"";position:absolute;left:-5px;top:.85rem;width:8px;height:8px;
  border-radius:50%;background:var(--gold);border:1px solid var(--gold-deep)}
.tl-date{font-weight:700;font-variant-numeric:tabular-nums;min-width:6.5em}
.tl-kind{color:var(--ink)}
.tl-type{color:var(--muted);font-size:.9rem}
.change-day{margin:1.5rem 0}
.change-day h2{font-size:1.1rem}

/* ---- Schwester-Marken ---- */
.related-brands{margin:2rem 0;padding-top:1.2rem;border-top:2px solid var(--gold)}
.related-brands h2{border:none;padding:0;margin:0 0 .4rem}
.brand-grid{list-style:none;padding:0;margin:.8rem 0 0;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.5rem .9rem}
.brand-grid li{margin:0}
.brand-grid .brand-cell{padding:.35rem .2rem}

/* ---- Weiterlesen / Provenienz ---- */
.related ul{padding-left:1.2rem}
.provenance{font-size:.85rem;color:var(--muted);border-top:1px solid var(--line);padding-top:.8rem;margin-top:2rem}

/* ---- Footer: Anthrazit + Trikolore-Abschluss ---- */
.site-footer{
  margin-top:3rem;
  background:var(--ink);color:#c9c9c5;font-size:.85rem;
  border-top:4px solid;
  border-image:linear-gradient(to right,
    #000 0 33.3%, var(--red) 33.3% 66.6%, var(--gold) 66.6% 100%) 1;
}
.footer-inner{max-width:var(--shell);margin:0 auto;padding:1.6rem 1.5rem 2rem}
.site-footer a{color:#f2f2f0;text-decoration-color:var(--gold)}
.site-footer a:hover{background:rgba(255,255,255,.08)}
.legal-nav{display:flex;flex-wrap:wrap;gap:.2rem 1.2rem}
.legal-nav a{margin:0;padding:.35rem 0;min-height:44px;display:inline-flex;align-items:center}
.footer-note{margin-top:.8rem;line-height:1.6}

/* ---- Mobil ---- */
@media (max-width:640px){
  .container{padding:1rem}
  h1{font-size:1.45rem}
  .site-header{padding:.8rem 1rem}
  .kv{grid-template-columns:1fr}
  .kv dt{margin-top:.35rem}

  /* Mobil: Navigation als aufklappbares Akkordeon (Checkbox-Umschalter, kein JS). */
  .main-nav{position:relative}
  .nav-toggle{display:inline-flex;align-items:center;gap:.6rem;color:#fff;font-weight:600;
    cursor:pointer;min-height:44px;padding:.4rem .3rem;-webkit-tap-highlight-color:transparent}
  .burger{position:relative;display:inline-block;width:20px;height:2px;background:#fff;
    border-radius:2px;transition:background .15s}
  .burger::before,.burger::after{content:"";position:absolute;left:0;width:20px;height:2px;
    background:#fff;border-radius:2px;transition:transform .15s}
  .burger::before{top:-6px}
  .burger::after{top:6px}
  /* offen: Hamburger wird zum X */
  .nav-checkbox:checked ~ .nav-toggle .burger{background:transparent}
  .nav-checkbox:checked ~ .nav-toggle .burger::before{transform:translateY(6px) rotate(45deg)}
  .nav-checkbox:checked ~ .nav-toggle .burger::after{transform:translateY(-6px) rotate(-45deg)}
  .nav-links{display:none;position:absolute;right:0;top:calc(100% + .5rem);flex-direction:column;
    gap:.1rem;background:var(--ink);border:1px solid #33333a;border-radius:var(--radius);
    min-width:220px;padding:.4rem;z-index:1000;box-shadow:0 10px 30px rgba(0,0,0,.45)}
  .nav-checkbox:checked ~ .nav-links{display:flex}
  .nav-links a{width:100%;border-bottom:none;border-radius:6px}
  .nav-links a:hover{border-bottom:none}

  /* Schmale Tabellen (Statistik, Ratgeber): horizontal scrollen statt clippen. */
  article table:not(.card-table){display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}

  /* Entity-Tabellen (Whitelist, Hubs, Änderungen, Neueste): je Zeile eine Karte. */
  table.card-table,table.card-table tbody,table.card-table tr,table.card-table td{display:block;width:auto}
  table.card-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  table.card-table tr{border:1px solid var(--line);border-top:3px solid var(--gold);
    border-radius:var(--radius);padding:.6rem .85rem;margin:0 0 .75rem;background:#fff}
  table.card-table tr.row-revoked{border-top-color:var(--red)}
  table.card-table td{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;
    text-align:right;border:0;padding:.28rem 0}
  table.card-table td::before{content:attr(data-label);font-weight:600;color:var(--muted);
    text-align:left;flex:0 0 auto}
  table.card-table td:first-child{justify-content:flex-start;text-align:left;
    border-bottom:1px solid var(--line);padding-bottom:.45rem;margin-bottom:.35rem;font-size:1.02rem}
  table.card-table td:first-child::before{display:none}
}
