/* ux.css – Andock-Leiste, Hell/Dunkel-Umschalter, 2-Klick-Rechner, Dunkelmodus (24.11.2026) */
:root{--ux-flaeche:#fff;--ux-text:#1f2937;--ux-leise:#5b6573;--ux-linie:rgba(0,0,0,.14);--ux-grund:#f4f7f6;--strom-gruen:#166534}

/* Umschalter im Kopf */
nav ul{align-items:center}
.theme-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;border:1px solid var(--ux-linie);background:transparent;color:var(--text-dark);cursor:pointer}
.theme-btn:hover{background:rgba(0,86,179,.08)}
.theme-btn:focus-visible{outline:3px solid rgba(0,86,179,.35);outline-offset:2px}
.theme-sonne{display:none}
[data-theme="dark"] .theme-mond{display:none}
[data-theme="dark"] .theme-sonne{display:block}

/* Quelle PLZ-Daten im Fuß */
.footer-quelle{text-align:center;font-size:12px;color:#999;margin:10px 0 0}
.footer-quelle a{color:#bbb}

/* Hinweis bei unbekannter PLZ */
.plz-fehler-hinweis{background:#fff3cd;color:#664d03;border:1px solid #ffe69c;border-radius:8px;padding:10px 12px;font-size:14px;margin:30px 0 0}

/* 2-Klick-Kasten CHECK24 */
.zweiklick{text-align:center;padding:28px 18px;border:1px dashed #b9c6d6;border-radius:12px;background:var(--ux-flaeche)}
.zweiklick-titel{font-size:1.25rem;font-weight:700;margin:0 0 10px;color:var(--text-dark)}
.zweiklick-text{margin:0 auto 18px;max-width:640px;font-size:15px;line-height:1.6;color:var(--ux-leise)}
.zweiklick-btn{font:inherit;font-weight:700;font-size:17px;padding:14px 28px;border:0;border-radius:10px;background:var(--accent-orange);color:#fff;cursor:pointer}
.zweiklick-btn:hover,.zweiklick-btn:focus-visible{background:#d9562a}
.zweiklick-btn:focus-visible{outline:3px solid rgba(0,86,179,.4);outline-offset:2px}
.zweiklick-hinweis{margin:14px auto 0;max-width:640px;font-size:12.5px;color:var(--ux-leise)}

/* Andock-Leiste */
.andock{position:fixed;left:0;right:0;top:0;z-index:990;background:var(--ux-flaeche);border-bottom:1px solid var(--ux-linie);box-shadow:0 6px 20px rgba(15,30,50,.14);
  transform:translateY(-110%);visibility:hidden;transition:transform .22s ease,visibility 0s linear .22s}
.andock.an{transform:none;visibility:visible;transition:transform .22s ease}
.andock-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding-block:8px}
.andock-titel{font-weight:700;color:var(--primary-blue);font-size:.95rem;margin-right:4px;white-space:nowrap}
.andock-art{display:inline-flex;border:1px solid var(--ux-linie);border-radius:999px;padding:2px;background:var(--ux-grund)}
.andock-art label{position:relative;cursor:pointer}
.andock-art input{position:absolute;opacity:0;width:1px;height:1px}
.andock-art span{display:inline-block;padding:6px 12px;border-radius:999px;font-size:.9rem;font-weight:600;color:var(--ux-leise);white-space:nowrap}
.andock-art input[value="gasvergleich"]:checked+span{background:var(--primary-blue);color:#fff}
.andock-art input[value="stromvergleich"]:checked+span{background:var(--strom-gruen);color:#fff}
.andock-art input:focus-visible+span{outline:3px solid rgba(0,86,179,.4);outline-offset:1px}
.andock-feld{flex:1 1 180px;min-width:140px}
.andock-feld input{width:100%;padding:9px 12px !important;font-size:16px;color:var(--ux-text);background:var(--ux-flaeche);box-sizing:border-box}
.andock-los{font:inherit;font-weight:700;padding:9px 18px;border:0;border-radius:10px;background:var(--accent-orange);color:#fff;cursor:pointer}
.andock-los:hover{background:#d9562a}
.andock-rechner{font-size:.9rem;font-weight:600;white-space:nowrap}
.andock-rechner[hidden]{display:none}
.andock-form>.plz-feld-hilfe,.andock-form>.plz-feld-liste{flex-basis:100%;margin-top:0;order:10}
.andock .plz-feld-hilfe:empty{display:none}
.andock-los .kurz{display:none}
.andock-zu{background:none;border:0;color:var(--ux-leise);font-size:1.5rem;line-height:1;padding:4px 6px;cursor:pointer;border-radius:6px}
.andock-zu:hover{color:var(--ux-text)}
@media(max-width:640px){
  .andock-titel,.andock-rechner{display:none}
  .andock-art span{padding:6px 9px}
  .andock-art b{display:none}
  .andock-form{gap:6px 8px}
  .andock-feld{flex:1 1 90px;min-width:90px}
  .andock-los{padding:9px 12px}
  .andock-los .lang{display:none}
  .andock-los .kurz{display:inline}
}
@media(prefers-reduced-motion:reduce){.andock,.andock.an{transition:none}}

/* ───────── Dunkelmodus ───────── */
:root[data-theme="dark"]{
  color-scheme:dark;
  --primary-blue:#2f72c4;--text-dark:#e6ebf2;--bg-light:#0e1621;--white:#172231;
  --muted:rgba(230,235,242,.7);--border:rgba(255,255,255,.14);--light-gray:#1b2737;--bg-white:#172231;
  --ux-flaeche:#172231;--ux-text:#e6ebf2;--ux-leise:#a9b4c3;--ux-linie:#2c3a4d;--ux-grund:#0e1621;--strom-gruen:#1f7a44;
  --plz-feld-flaeche:#1e2a3a;--plz-feld-linie:#3a4558;--plz-feld-text:#e5e7eb;--plz-feld-leise:#a8b3c4;--plz-feld-akzent:#7db6f0;--plz-feld-fehler:#ff8a80
}
[data-theme="dark"] body{background:var(--bg-light);color:var(--text-dark)}
[data-theme="dark"] a{color:#8cc0f5}
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] h4{color:#eef2f7}
[data-theme="dark"] header{box-shadow:0 2px 8px rgba(0,0,0,.4)}
[data-theme="dark"] .logo a,[data-theme="dark"] .andock-titel{color:#8cc0f5}
[data-theme="dark"] nav a{color:var(--text-dark)}
[data-theme="dark"] nav a:hover{background:rgba(140,192,245,.12);color:#fff}
/* Flächen */
[data-theme="dark"] .card,[data-theme="dark"] .content-section,[data-theme="dark"] .quick-card,[data-theme="dark"] .dynamic-cities,
[data-theme="dark"] .accordion,[data-theme="dark"] .panel,[data-theme="dark"] .result-header,
[data-theme="dark"] [style*="background:white"],[data-theme="dark"] [style*="background: white"],[data-theme="dark"] [style*="background-color: white"],
[data-theme="dark"] [style*="background:#fff;"],[data-theme="dark"] [style*="background:#fff\""],[data-theme="dark"] [style*="background: #fff;"],[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background-color: #fff;"],[data-theme="dark"] [style*="background:var(--white)"],[data-theme="dark"] [style*="background: var(--white)"],
[data-theme="dark"] [style*="background:var(--bg-white)"],[data-theme="dark"] [style*="background: linear-gradient(to bottom, #ffffff"]{background:var(--ux-flaeche) !important;color:var(--text-dark)}
[data-theme="dark"] [style*="background:#f8f9fa"],[data-theme="dark"] [style*="background-color: #f8f9fa"],[data-theme="dark"] [style*="background: #f9f9f9"],
[data-theme="dark"] [style*="background-color: #f9f9f9"],[data-theme="dark"] [style*="background:#f1f3f5"],[data-theme="dark"] [style*="background:var(--light-gray)"]{background:#1b2737 !important}
[data-theme="dark"] .accordion{color:var(--text-dark)}
[data-theme="dark"] .accordion:hover{background:#1e2b3c !important}
[data-theme="dark"] .quick-card p,[data-theme="dark"] .panel p{color:var(--ux-leise)}
[data-theme="dark"] .quick-card h2,[data-theme="dark"] .city-list a{color:#8cc0f5}
[data-theme="dark"] .tab-btn{background:#243246;color:#c9d3df}
[data-theme="dark"] .tab-input:checked+.tab-btn{background:var(--primary-blue);color:#fff}
/* Formulare */
[data-theme="dark"] .hero-form,[data-theme="dark"] .form-card{background:rgba(17,27,40,.86) !important;border-color:rgba(255,255,255,.12) !important}
[data-theme="dark"] .hero-form label,[data-theme="dark"] .form-card label,[data-theme="dark"] .input-group label{color:#c9d3df !important}
[data-theme="dark"] input[type="text"],[data-theme="dark"] input[type="number"],[data-theme="dark"] select{background:#101a27 !important;color:var(--text-dark) !important;border-color:#3a4a5f !important}
[data-theme="dark"] .form-disclaimer,[data-theme="dark"] .form-poweredby{color:var(--ux-leise) !important}
[data-theme="dark"] .form-poweredby{background:rgba(255,255,255,.08) !important;border-color:rgba(255,255,255,.14) !important}
/* Inline-Schriftfarben (dunkle Schrift auf hellem Grund) */
[data-theme="dark"] [style*="color:#1a1a1a"],[data-theme="dark"] [style*="color: #1a1a1a"],[data-theme="dark"] [style*="color:#222"],[data-theme="dark"] [style*="color: #222"],
[data-theme="dark"] [style*="color:#333"],[data-theme="dark"] [style*="color: #333"],[data-theme="dark"] [style*="color:#444"],[data-theme="dark"] [style*="color: #444"]{color:#e6ebf2 !important}
[data-theme="dark"] [style*="color:#555"],[data-theme="dark"] [style*="color: #555"],[data-theme="dark"] [style*="color:#666"],[data-theme="dark"] [style*="color: #666"],
[data-theme="dark"] [style*="color: #6c757d"],[data-theme="dark"] [style*="color: #777"],[data-theme="dark"] [style*="color:var(--muted)"]{color:#b4bfcd !important}
/* Linien */
[data-theme="dark"] [style*="solid #eaeaea"],[data-theme="dark"] [style*="solid #eee"],[data-theme="dark"] [style*="solid #ddd"],[data-theme="dark"] [style*="solid #ccc"],
[data-theme="dark"] .quick-card,[data-theme="dark"] .dynamic-cities,[data-theme="dark"] .accordion{border-color:#2c3a4d !important}
[data-theme="dark"] .zweiklick{border-color:#3a4a5f}
[data-theme="dark"] .plz-fehler-hinweis{background:#3b2f12;color:#f5dfa0;border-color:#6b5520}

/* Startseite: PLZ und Verbrauch auf schmalen Bildschirmen untereinander, damit die Ortsliste Platz hat */
@media(max-width:600px){.hero-form form > div[style*="display:flex"]{flex-direction:column;gap:0 !important}}
.plz-feld-liste{min-width:220px}

/* Dunkelmodus: Stadt-/Bundesland-Kacheln, A-Z-Knöpfe, helle Hinweiskästen */
[data-theme="dark"] .city-grid li a{background:#1b2737 !important}
[data-theme="dark"] .city-grid li a:hover{background:var(--primary-blue) !important;color:#fff !important}
[data-theme="dark"] .city-grid li a span{color:#a9b4c3}
[data-theme="dark"] .az-btn{background:#1b2737;border-color:#2c3a4d;color:#8cc0f5}
[data-theme="dark"] .az-btn:hover{background:#243246}
[data-theme="dark"] .letter-heading{border-bottom-color:#2c3a4d}
[data-theme="dark"] [style*="background:#f0f9ff"],[data-theme="dark"] [style*="background:#eff6ff"]{background:#16263a !important;border-color:#2a4466 !important;color:var(--text-dark)}
