/* =========================================================
   MegaCLS – Stylesheet KOMPLETT (aufgeräumt)
   ========================================================= */

:root{
  --bg: 12 12 16;
  --fg: 240 240 255;
  --muted: 180 190 210;
  --brand-1:#FFD200;
  --brand-2:#FF0033;
  --accent:#FF7A00;
  --glass: 255 255 255 / 0.06;
  --stroke: 255 255 255 / 0.12;
  --radius-xl: 22px;
  --radius-md: 14px;

  --corner-gap: 20px;
  --safe-right: env(safe-area-inset-right, 0px);

  --header-h: 64px;
  --header-h-closed: 64px;
  --header-h-pad: var(--header-h);
  --header-offset: 14px;
  --top-gap: 24px;

  /* Hover-Standardwerte (werden per JS je nach Intensität angepasst) */
  --hover-y: -4px;
  --hover-scale: 1.01;

  --nav-indicator-speed: 1.8s;

  /* Hintergrund-Variablen */
  --bg-gradient-1: radial-gradient(1200px 800px at 0% 0%, rgba(255,210,0,.25), transparent 60%);
  --bg-gradient-2: radial-gradient(900px 700px at 100% 10%, rgba(255,0,51,.20), transparent 60%);
  --bg-gradient-3: radial-gradient(800px 600px at 50% 100%, rgba(255,122,0,.16), transparent 60%);
}

/* =========================
   Theme-Varianten (gekürzt)
   ========================= */

[data-theme="dark"] {
  --bg: 8 8 10;
  --fg: 200 200 220;
  --muted: 140 145 165;
  --brand-1: #9B9B9B;
  --brand-2: #6B6B6B;
  --accent: #8B8B8B;
  --bg-gradient-1: radial-gradient(1200px 800px at 0% 0%, rgba(100,100,120,.15), transparent 60%);
  --bg-gradient-2: radial-gradient(900px 700px at 100% 10%, rgba(60,60,80,.12), transparent 60%);
  --bg-gradient-3: radial-gradient(800px 600px at 50% 100%, rgba(80,80,100,.10), transparent 60%);
}

[data-theme="ocean"] {
  --bg: 8 12 20;
  --fg: 228 238 255;
  --muted: 160 180 205;
  --brand-1: #00D4FF;
  --brand-2: #0066FF;
  --accent: #00FFAA;
  --bg-gradient-1: radial-gradient(1200px 800px at 0% 0%, rgba(0,100,200,.25), transparent 60%);
  --bg-gradient-2: radial-gradient(900px 700px at 100% 10%, rgba(0,150,255,.20), transparent 60%);
  --bg-gradient-3: radial-gradient(800px 600px at 50% 100%, rgba(0,200,180,.16), transparent 60%);
}

[data-theme="forest"] {
  --bg: 10 16 12;
  --fg: 230 245 230;
  --muted: 160 185 165;
  --brand-1: #7FFF00;
  --brand-2: #228B22;
  --accent: #90EE90;
  --bg-gradient-1: radial-gradient(1200px 800px at 0% 0%, rgba(50,150,50,.25), transparent 60%);
  --bg-gradient-2: radial-gradient(900px 700px at 100% 10%, rgba(34,139,34,.20), transparent 60%);
  --bg-gradient-3: radial-gradient(800px 600px at 50% 100%, rgba(100,180,100,.16), transparent 60%);
}

/* Weiß – Hintergrund bleibt dunkel, Schrift wird hell */
[data-theme="white"]{
  --bg: 12 12 16;
  --fg: 255 255 255;
  --muted: 200 205 215;
  --brand-1: #EDEDED;
  --brand-2: #CFCFCF;
  --accent: #FFFFFF;
  --bg-gradient-1: radial-gradient(1200px 800px at 0% 0%, rgba(255,255,255,.14), transparent 60%);
  --bg-gradient-2: radial-gradient(900px 700px at 100% 10%, rgba(255,255,255,.10), transparent 60%);
  --bg-gradient-3: radial-gradient(800px 600px at 50% 100%, rgba(255,255,255,.08), transparent 60%);
}

/* Weitere Farb-Themes (gelb/orange/rot/pink/purple/brown/darkgreen/darkblue) könnten hier wieder aktiviert werden */

/* Motion reduzieren */
@media (prefers-reduced-motion: reduce){
  :root{ --hover-y: 0; --hover-scale: 1; }
}

/* Base */
*{ box-sizing: border-box; }
html,body{ height:100% }
html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--header-offset) + 20px);
  color-scheme: dark;
}
body{
  margin:0;
  color: rgb(var(--fg));
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial;
  background:
    var(--bg-gradient-1),
    var(--bg-gradient-2),
    var(--bg-gradient-3),
    rgb(var(--bg));
  background-attachment: fixed;
  padding-top: calc(var(--header-h) + var(--header-offset) + var(--top-gap));
  position: relative;
}
body > :first-child{ margin-top: 0; }

/* Cursor Override - NUR für klickbare Elemente */
a, button, input, select, textarea, [role="button"] { cursor: pointer !important; }

html, body { overscroll-behavior-y: contain; }

html.menu-open{ --header-h-pad: var(--header-h-closed); }
html.menu-open, html.menu-open body{ overscroll-behavior-y: auto !important; }

.container{ width:min(1120px, 92vw); margin-inline:auto }

/* === Fixierter Header === */
.header{
  position: fixed;
  top: var(--header-offset);
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1120px);
  z-index: 1000;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;

  padding: 8px 14px;
  border-radius: 999px;

  backdrop-filter: saturate(130%) blur(10px);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.header.scrolled{
  background: rgba(10,10,12,.65);
  box-shadow: 0 10px 32px rgba(0,0,0,.35);
}

/* Brand */
.brand{
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; font-weight: 800; letter-spacing:.3px;
}
.brand img{ width:28px; height:28px; display:block; border-radius:12px; object-fit:cover }

/* Toggle */
.menu-toggle{
  position: relative;
  justify-self: end;
  appearance: none;
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background-color: rgba(255,255,255,.06);
  color: rgb(var(--fg));
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: bold;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-toggle:hover { transform: scale(1.05); background-color: rgba(255,255,255,.1); }
.menu-toggle::after { content: "↓"; display:block; transition: transform .3s ease; line-height: 1; }
.header.open .menu-toggle::after { transform: rotate(180deg); }

.menu-icon, .menu-bar { display:none; }

/* Desktop sichtbar */
@media (min-width: 920px){
  .menu-toggle{ display:none !important }
  .nav-links{ display:inline-flex !important; opacity: 1 !important; max-height: none !important; }
}
@media (max-width: 919px){ .menu-toggle{ display:flex !important } }

/* Nav-links */
.nav-links{
  list-style:none; margin:0; padding:0;
  display:none; align-items:center; gap:12px;
  position: relative; grid-column: 2;
}
.nav-links li{ display:block }
.nav-links a{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:10px; text-decoration:none; color:rgb(var(--fg));
  border:none; outline:none; box-shadow:none; background:none;
}

@media (min-width: 920px){
  .nav-links{ display:inline-flex !important; justify-self:end; opacity: 1 !important; max-height: none !important; }
  .nav-links li{ display:inline-flex }
}

/* Mobile Menu */
@media (max-width:919px){
  .header{
    padding: 8px 14px;
    border-radius: 22px;
    overflow: hidden;
    max-height: calc(90vh - var(--header-offset) * 2);
  }
  .brand span{ line-height:1 }

  .nav-links{
    grid-column: 1 / -1;
    display: grid;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0; padding: 0;
    background: none !important; border: 0 !important; box-shadow: none !important;
    transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .22s ease;
  }
  .header.open .nav-links{ margin-top: 8px; padding: 8px 8px 0 8px; max-height: calc(70vh - 100px); opacity: 1; }
  .nav-links li{ list-style: none; position: relative; display: flex; flex-direction: column; align-items: center; }
  .nav-links li::before{ content:""; display:block; height:1px; width: 100%; background: rgba(255,255,255,.10); }
  .nav-links li:first-child::before{ display: block; }

  .nav-links a{
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 16px 12px; margin: 0; border-radius: 0;
    text-decoration: none; text-align: center; color: rgb(var(--fg)); position: relative;
  }
  .nav-links a:hover, .nav-links a:focus-visible{ background: rgba(255,255,255,.04); outline: none; }

  .nav-links a[aria-current="page"]::after{
    content:""; position:absolute; left: 50%; transform: translateX(-50%);
    bottom: 4px; width: var(--ul-w, 60%); height: 3px; border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  }
  .nav-links li:last-child::after{ content:""; display:block; height:1px; width: 100%; margin: 8px 0 0 0; background: rgba(255,255,255,.10); }

  .header.open #navIndicator{ opacity:0 }
}

/* Desktop Underline */
#navIndicator{
  position:absolute; left:0; bottom:0;
  width:0; height:3px; border-radius:999px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  opacity:0; transform: translate3d(0,0,0);
  transition: transform var(--nav-indicator-speed) cubic-bezier(.4,0,.2,1),
              width     var(--nav-indicator-speed) cubic-bezier(.4,0,.2,1),
              opacity   .25s ease;
}
#navIndicator.show{ opacity:1 }

/* Hero */
.hero{
  display:grid; grid-template-columns: 1.1fr .9fr;
  gap:24px; align-items:flex-start;
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-gradient-1), var(--bg-gradient-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
}
@media (max-width:980px){ .hero{ grid-template-columns:1fr } }

.hero-title{ line-height:1.05; font-size: clamp(32px, 4.6vw, 52px); margin:0; }
.hero-title .brand-word{
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color:transparent; font-weight:800;
}
.hero-subline{ margin-top:4px; margin-bottom:4px; line-height:1.0; font-size: clamp(18px, 3vw, 26px); opacity:.95; }

/* Buttons, Cards */
.badge{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px; border-radius:999px; font-size:12px; font-weight:700;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
}
.actions{ display:flex; flex-wrap:wrap; gap:10px }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 16px; border-radius:14px; text-decoration:none;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); font-weight:700; color:rgb(var(--fg));
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  width: fit-content; max-width: 100%;
}
.btn:hover{
  transform: translateY(var(--hover-y)) scale(var(--hover-scale));
  box-shadow:0 10px 28px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.28);
  background-color: rgba(255,255,255,.08);
}
.btn.cta{ background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); color:#101214; border:none }
.btn.cta:hover{
  transform: translateY(var(--hover-y)) scale(var(--hover-scale));
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.card{
  padding:16px; border-radius:18px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
  will-change: transform;
}
.card:hover, .card:focus-within{
  transform: translateY(var(--hover-y)) scale(var(--hover-scale));
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08) inset;
  background-color: rgba(255,255,255,.08);
}

/* Status Card */
.status-card {
  background: var(--bg-gradient-1), var(--bg-gradient-2), rgba(255,255,255,.05) !important;
  border:1px solid rgba(255,255,255,.14) !important;
}
.status-card:hover {
  background: var(--bg-gradient-1), var(--bg-gradient-2), rgba(255,255,255,.08) !important;
}

/* Layout */
.grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap:14px }

/* Typo */
.section{ padding:52px 0 }
.section-title{ font-size: clamp(22px,3vw,34px); margin:0 0 14px }
.section-sub{ color: rgb(var(--muted)); margin:0 0 24px }
.underline{ height:2px; width:64px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); border-radius:2px; margin-bottom:16px }
.lead{ color: rgb(var(--muted)); font-size: clamp(16px, 1.8vw, 20px); margin: 8px 0 20px }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "JetBrains Mono", monospace }
.center{ text-align:center }

/* Footer */
.footer{ padding: 34px 0 70px; color: rgb(var(--muted)) }
.footer-grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap:16px }
.footer-card{ grid-column: span 4; padding:16px; border-radius:16px; background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12) }
@media (max-width:900px){ .footer-card{ grid-column: span 12 } }

/* ToTop */
#toTop {
  position: fixed;
  right: calc(var(--safe-right) + var(--corner-gap));
  bottom: 20px !important;
  width: 56px !important; height: 56px !important;
  border: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #000; font-size: 30px !important; line-height: 1; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(30px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, right .3s ease;
  z-index: 900;
}
#toTop:hover { transform: translateY(0) scale(1.05); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
#toTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:focus-visible { outline: 2px solid color-mix(in oklab, white 70%, transparent); outline-offset: 3px; }

@media (max-width:600px){
  #toTop{
    right: calc(var(--safe-right) + var(--corner-gap));
    width: 56px !important; height: 56px !important; font-size: 30px !important; bottom: 20px !important;
  }
}

/* Fonts */
@font-face{
  font-family:"Minecraft Chat";
  src:url("/assets/fonts/minecraft.woff2") format("woff2"),
      url("/assets/fonts/minecraft.woff") format("woff");
  font-weight:400; font-style:normal; font-display:swap;
}
.mc{ 
  font-family:"Minecraft Chat","Minecraftia","Press Start 2P",monospace; 
  letter-spacing:.02em;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Typewriter */
.typewriter{ display:inline-flex; align-items:baseline; gap:.25ch; min-height:1.2em; }
.typewriter .cursor{ display:inline-block; opacity:1; animation: tw-blink 1s steps(1,end) infinite; }
@keyframes tw-blink{ 0%,49%{opacity:1} 50%,100%{opacity:0} }
@media (prefers-reduced-motion: reduce){ .typewriter .cursor{ animation:none } }

/* Startseite */
.status-wrap { display:grid; gap:14px; }
.widget-img { width:100%; height:auto; display:block; border-radius:14px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); }
.badges-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.badges-row img { height:20px; width:auto; }

/* Spielmodi - 2x2 Grid */
.modes { display:grid; grid-template-columns: repeat(2, 1fr); gap:14px; }
.mode-card { display:flex; flex-direction: column; gap:8px; padding:18px; border-radius:18px; min-height: 150px; }
.mode-card h3 { margin: 8px 0; }
.mode-card .section-sub { flex: 1; margin: 0 0 12px 0; }
.mode-tag {
  display:inline-block; width: fit-content; padding:6px 12px; border-radius:999px;
  font-size:12px; font-weight:700; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18);
}
.crazy-tag{ background: rgba(255,255,255,.08) !important; border:1px solid rgba(255,255,255,.18) !important; }
@media (max-width: 900px){ .modes { grid-template-columns: 1fr; } }

/* Warum */
.why { display:grid; grid-template-columns: repeat(12,1fr); gap:14px; }
.why .card { grid-column: span 6; }
@media (max-width:900px){ .why .card{ grid-column: span 12; } }

/* Stats */
.stats { display:grid; grid-template-columns: repeat(12,1fr); gap:14px; }
.stat-card {
  grid-column: span 4; text-align:center; padding:18px; border-radius:16px;
  background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.stat-card:hover {
  transform: translateY(var(--hover-y)) scale(var(--hover-scale));
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08) inset;
  background-color: rgba(255,255,255,.08);
}
.stat-card h3 { font-size: clamp(22px,3.5vw,28px); margin: 4px 0; }
.stat-card p { opacity:.85; margin:0; }
@media (max-width:900px){ .stat-card{ grid-column: span 12; } }

/* CTA */
.cta-section { margin-top: 28px; }
.cta-strip {
  display:grid; gap:14px; align-items:center; text-align:center;
  padding:28px; border-radius:18px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand-1) 55%, transparent), color-mix(in oklab, var(--brand-2) 55%, transparent));
  border: 1px solid rgba(255,255,255,.18);
}
.cta-strip h3 { font-size: clamp(22px, 3vw, 28px); margin: 0; }
.cta-strip .section-sub { margin: 0; opacity: .9; }
#copy-ip { cursor: pointer; font-weight: 700; color: #101214; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; width: fit-content; margin-inline: auto; }
#copy-ip.copied { background: linear-gradient(90deg, #00e676, #00c853); color: #000; transform: scale(1.05); box-shadow: 0 0 18px rgba(0,255,120,.4); }
#copy-ip.copied { animation: pulseSuccess 0.6s ease-out; }
@keyframes pulseSuccess { 0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,255,120,0); } 50% { transform: scale(1.08); box-shadow: 0 0 25px rgba(0,255,120,.45); } 100% { transform: scale(1.05); box-shadow: 0 0 18px rgba(0,255,120,.4); } }

/* Header & Footer Linkfarben – FINAL */
@media (min-width: 920px){
  .header .nav-links a,
  .header .brand,
  .header .brand a,
  .header .logo a,
  .header .site-title a{
    color: rgb(var(--fg)); font-weight: 600; text-decoration: none;
    transition: color .25s ease, text-shadow .25s ease;
  }
  .header .nav-links a[aria-current="page"],
  .header .nav-links a.active{
    color: var(--brand-1);
    text-shadow: 0 0 6px color-mix(in oklab, var(--brand-1) 60%, transparent);
  }
  @supports selector(:has(*)){
    .header .nav-links a[aria-current="page"],
    .header .nav-links a.active{ color: rgb(var(--fg)); text-shadow: none; }
    .header:not(:has(.nav-links a:hover)) .nav-links a[aria-current="page"],
    .header:not(:has(.nav-links a:hover)) .nav-links a.active{
      color: var(--brand-1);
      text-shadow: 0 0 6px color-mix(in oklab, var(--brand-1) 60%, transparent);
    }
  }
  .header .nav-links a:hover,
  .header .nav-links a:focus-visible,
  .header .brand:hover,
  .header .brand a:hover,
  .header .logo a:hover,
  .header .site-title a:hover,
  .header .brand:focus-visible,
  .header .brand a:focus-visible,
  .header .logo a:focus-visible,
  .header .site-title a:focus-visible{
    color: var(--brand-1);
    text-shadow: 0 0 6px color-mix(in oklab, var(--brand-1) 60%, transparent);
  }
}

@media (max-width: 919px){
  .header .nav-links a,
  .header .brand,
  .header .brand a,
  .header .logo a,
  .header .site-title a{
    color: rgb(var(--fg)); font-weight: 600; text-decoration: none;
  }
  .header .nav-links a[aria-current="page"],
  .header .nav-links a.active{
    color: var(--brand-1);
    text-shadow: 0 0 6px color-mix(in oklab, var(--brand-1) 60%, transparent);
  }
}

/* Buttons neutral lassen bzgl. Textfarbe */
.btn, .btn a{ color: inherit !important; text-decoration: none !important; text-shadow: none !important; }

/* Footer Links */
.footer a{
  color: var(--brand-1);
  text-decoration: underline;
  text-decoration-thickness: 1.4px;
  text-underline-offset: 2px;
  transition: color .25s ease, text-decoration-color .25s ease, opacity .25s ease;
  opacity: .9; font-weight: 600;
}
.footer a:hover, .footer a:focus-visible{ color: var(--brand-2); text-decoration-color: var(--brand-2); opacity: 1; }

/* Impressum & Datenschutz – ohne Hover-Änderung */
.legal-page-card{
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl, 22px);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  width: min(1120px, 92vw);
  margin-inline: auto; margin-bottom: 40px;
  transition: none;
}
.legal-page-card:hover, .legal-page-card:focus-within{
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.legal-header-wrap{ width: min(1120px, 92vw); margin: 28px auto 0 auto; }
.legal-header-wrap .section-title{ text-align: left; }
.legal-header-wrap .underline{ margin-left: 0; }

.legal-page-card a{
  color: var(--brand-1);
  text-decoration: underline; text-decoration-thickness: 1.4px; text-underline-offset: 2px; text-decoration-color: var(--brand-1);
  transition: color .2s ease, text-decoration-color .2s ease; font-weight: 600;
}
.legal-page-card a:hover, .legal-page-card a:focus-visible{ color: var(--brand-2); text-decoration-color: var(--brand-2); }

/* Mobile: Brand-Tap neutral */
@media (max-width: 919px){
  .header .brand, .header .brand a, .header .logo a, .header .site-title a{
    color: rgb(var(--fg)) !important; text-shadow: none !important; -webkit-tap-highlight-color: transparent;
  }
  .header .brand:hover, .header .brand a:hover, .header .logo a:hover, .header .site-title a:hover,
  .header .brand:focus-visible, .header .brand a:focus-visible, .header .logo a:focus-visible, .header .site-title a:focus-visible{
    color: inherit !important; text-shadow: none !important; outline: none;
  }
}

/* Weiß-Theme Fix – helle Buttons */
html[data-theme="white"] .btn.cta,
html[data-theme="white"] .btn.cta:hover,
html[data-theme="white"] .theme-btn.active,
html[data-theme="white"] #copy-ip,
html[data-theme="white"] .menu-item-btn:hover,
html[data-theme="white"] .menu-item-btn:focus-visible{
  color: #101214 !important; text-shadow: none !important;
}
html[data-theme="white"] .btn.cta{ background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); border: none; }
html[data-theme="white"] .theme-btn.active{
  background: color-mix(in oklab, var(--brand-1) 20%, white 30%);
  border-color: color-mix(in oklab, var(--brand-1) 60%, white 20%);
}

/* Menü Buttons Weiß-Theme – wie Standard/Dunkel, Text weiß */
html[data-theme="white"] .menu-item-btn{
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
}
html[data-theme="white"] .menu-item-btn:hover,
html[data-theme="white"] .menu-item-btn:focus-visible{
  background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.24) !important; color: #fff !important; box-shadow: 0 4px 16px rgba(0,0,0,.3) !important;
}

/* Haupt-Menü Header – X links, Titel rechts (stabil) */
#settingsPanel .settings-header{ display: grid !important; grid-template-columns: 40px 1fr; align-items: center !important; justify-content: stretch !important; }
#settingsPanel .settings-header .settings-close{ grid-column: 1 !important; justify-self: start !important; margin: 0 !important; }
#settingsPanel .settings-header h3{ grid-column: 2 !important; justify-self: end !important; margin: 0 !important; text-align: right !important; }

/* Settings FAB + Panels */
.settings-fab{
  position: fixed; bottom: 20px; right: calc(var(--safe-right) + var(--corner-gap));
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); z-index: 899;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease, bottom .3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
}
.settings-fab:hover { transform: scale(1.05); background: rgba(255,255,255,.15); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.settings-fab.raised { bottom: 90px; }

.hamburger-icon{ position: relative; display:block; width: 20px; height: 2px; background: rgb(var(--fg)); margin: 0 auto; border-radius: 2px; transition: background .3s ease; }
.hamburger-icon::before, .hamburger-icon::after{ content:""; position:absolute; left:0; width:20px; height:2px; background: rgb(var(--fg)); border-radius:2px; transition: transform .3s ease; }
.hamburger-icon::before{ transform: translateY(-7px); }
.hamburger-icon::after{ transform: translateY(7px); }

.settings-overlay{
  position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 1000;
}
.settings-overlay.active{ opacity: 1; visibility: visible; }

.settings-panel{
  position: fixed; right: -400px; top: 0; bottom: 0; width: min(400px, 85vw);
  background: rgba(var(--bg), 0.98); backdrop-filter: saturate(130%) blur(20px);
  border-left: 1px solid rgba(255,255,255,.14); box-shadow: -4px 0 28px rgba(0,0,0,.4);
  z-index: 1001; transition: right .4s cubic-bezier(.4,0,.2,1); overflow-y: auto;
}
.settings-panel.active{ right: 0; }
.settings-panel.submenu{ z-index: 1002; }

.settings-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 1px solid rgba(255,255,255,.12);
  position: sticky; top: 0; background: rgba(var(--bg), 0.98); backdrop-filter: blur(10px); z-index: 10;
}
.settings-header h3{ margin: 0; font-size: 24px; }
.settings-close{
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: rgb(var(--fg)); font-size: 20px; line-height: 1;
  padding: 0; display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.settings-close:hover{ background: rgba(255,255,255,.1); }

.back-btn{
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  color: rgb(var(--fg));
  font-size: 15px; font-weight: 600;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.back-btn:hover{ transform: translateX(-4px); background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.06)); box-shadow: 0 4px 12px rgba(0,0,0,.3); }

.settings-content{ padding: 24px; }

.menu-item-btn{
  width: 100%; display:flex; align-items:center; justify-content:space-between;
  padding: 16px; margin-bottom: 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
  color: rgb(var(--fg)); font-size: 16px; font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.menu-item-btn:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.08); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.menu-item-btn .arrow{ font-size: 20px; transition: transform .2s ease; }
.menu-item-btn:hover .arrow{ transform: translateX(4px); }

.theme-options{ display: grid; gap: 12px; }
.theme-btn{
  display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:14px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
  color: rgb(var(--fg)); font-size: 16px; font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.theme-btn:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.08); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.theme-btn.active{
  border-color: var(--brand-1);
  background: color-mix(in oklab, var(--brand-1) 15%, transparent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand-1) 20%, transparent);
}
.theme-preview{ width: 48px; height: 48px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); flex-shrink: 0; }

/* Hover Submenu – Zusatz */
.hover-row .theme-preview{ background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }
.hover-control{ margin-top: 12px; }
.hover-label{ display:flex; justify-content: space-between; align-items:center; font-weight:700; margin-bottom: 6px; }
.hover-value{ opacity:.9; font-weight:700; }
.hover-control input[type="range"]{ width: 100%; }
.hover-control .hint{ opacity:.75; margin:8px 0 0; font-size: 14px; }
.hover-actions{ margin-top: 14px; display:flex; gap:10px; }

/* Switch (iOS-Style) */
.switch{ position:relative; display:inline-block; width:48px; height:28px; }
.switch input{ display:none; }
.switch .slider{
  position:absolute; inset:0; cursor:pointer; border-radius:999px;
  background: rgba(255,255,255,.2); transition: background .2s ease;
  border:1px solid rgba(255,255,255,.25);
}
.switch .slider::before{
  content:""; position:absolute; height:22px; width:22px; left:3px; top:50%;
  transform: translateY(-50%); border-radius:50%;
  background: rgb(var(--fg)); transition: transform .2s ease;
}
.switch input:checked + .slider{
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-color: transparent;
}
.switch input:checked + .slider::before{ transform: translate(21px, -50%); }

/* Verhindere Auto-Öffnen beim Zoomen */
@media (max-width: 600px) {
  .settings-panel { display: none !important; }
  .settings-panel.active { display: block !important; }
  .settings-fab{ right: calc(var(--safe-right) + var(--corner-gap)); bottom:16px; }
  .settings-fab.raised { bottom: 90px; }
  .settings-panel { width: 100vw; }
}

/* ====== HOVER OFF – ALLES RUHIG STELLEN ====== */
html[data-hover="off"]{
  --hover-y: 0px;
  --hover-scale: 1;
}

/* Buttons */
html[data-hover="off"] .btn:hover,
html[data-hover="off"] .btn:focus-visible{
  transform:none !important;
  box-shadow:none !important;
  background-color: inherit !important;
  border-color: inherit !important;
}
html[data-hover="off"] .btn.cta:hover{ transform:none !important; box-shadow:none !important; }

/* Cards */
html[data-hover="off"] .card:hover,
html[data-hover="off"] .card:focus-within,
html[data-hover="off"] .status-card:hover{
  transform:none !important; box-shadow: none !important;
  background-color: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.12) !important;
}
html[data-hover="off"] .stat-card:hover{
  transform:none !important; box-shadow:none !important;
  background-color: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.10) !important;
}

/* Menü-Kacheln & Theme-Buttons & Back-Button */
html[data-hover="off"] .menu-item-btn:hover,
html[data-hover="off"] .menu-item-btn:focus-visible,
html[data-hover="off"] .theme-btn:hover,
html[data-hover="off"] .theme-btn:focus-visible,
html[data-hover="off"] .back-btn:hover{
  transform:none !important; box-shadow:none !important;
  background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.12) !important;
}

/* Header-Links: bei HOVER OFF keine Farbumschaltung */
@media (min-width:920px){
  html[data-hover="off"] .header .nav-links a:hover,
  html[data-hover="off"] .header .nav-links a:focus-visible,
  html[data-hover="off"] .header .brand:hover,
  html[data-hover="off"] .header .brand a:hover,
  html[data-hover="off"] .header .logo a:hover,
  html[data-hover="off"] .header .site-title a:hover{
    color: rgb(var(--fg)) !important; text-shadow: none !important;
  }
}

/* Mobile Nav: kein Hover-Hintergrund */
@media (max-width:919px){
  html[data-hover="off"] .nav-links a:hover,
  html[data-hover="off"] .nav-links a:focus-visible{
    background: none !important;
  }
}

/* Back-to-top Button ruhiger */
html[data-hover="off"] #toTop:hover{ transform:none !important; box-shadow: 0 6px 24px rgba(0,0,0,.35) !important; }

/* Bilder/Medien ohne Hover */
html[data-hover="off"] img:hover,
html[data-hover="off"] picture:hover,
html[data-hover="off"] video:hover,
html[data-hover="off"] canvas:hover,
html[data-hover="off"] svg:hover{
  transform:none !important; filter:none !important; opacity:1 !important; box-shadow:none !important; outline: none !important;
}
html[data-hover="off"] a:hover img,
html[data-hover="off"] a:focus-visible img{
  transform:none !important; filter:none !important; opacity:1 !important; box-shadow:none !important;
}
