/* Hell/Dunkel für Startseite, Blog, Impressum, Datenschutz und Danke-Seite.
   Die Seiten bringen ihre Grundgestaltung selbst mit; diese Datei ergänzt nur
   den Schalter und das dunkle Design. Farben wie in der IDG-Toolbox. */

/* Logo in der Kopfzeile: dunkle Schrift im hellen, helle Schrift im dunklen Design */
.logo-dunkel{display:none!important}
:root[data-theme="dark"] .logo-hell{display:none!important}
:root[data-theme="dark"] .logo-dunkel{display:block!important}

/* Schalter in der Kopfzeile */
.kopf-innen > a:first-of-type{margin-right:auto}
.kopf-innen .navi{order:1}
.kopf-innen .themaknopf{order:2}
.kopf-innen .menue-knopf{order:3}
.themaknopf{
  display:inline-flex;align-items:center;gap:.5rem;flex:none;cursor:pointer;
  border:1px solid var(--linie);background:var(--papier);color:var(--tinte);border-radius:2rem;
  padding:.5rem .95rem .42rem;font-family:var(--display);font-weight:600;font-size:.86rem;
  letter-spacing:.02em;line-height:1;transition:border-color .18s;
}
.themaknopf:hover{border-color:var(--gold)}
.themaknopf svg{width:17px;height:17px;flex:none;margin-top:-2px}
.themaknopf .ic-sonne{display:none;color:var(--gold)}
:root[data-theme="dark"] .themaknopf .ic-mond{display:none}
:root[data-theme="dark"] .themaknopf .ic-sonne{display:block}
@media (max-width:1240px){
  .themaknopf .tl{display:none}
  .themaknopf{padding:.5rem;border-radius:50%}
}
@media (max-width:760px){
  .kopf-innen{gap:.6rem}
  .themaknopf{padding:.55rem}
}

/* ---------- Dunkles Design ---------- */
:root[data-theme="dark"]{
  --tinte:#E4E0D6;      /* Schrift */
  --sand:#131D28;       /* Seitenhintergrund */
  --papier:#1B2735;     /* Karten, Kontaktbereich */
  --nebel:#A3AFBC;      /* gedämpfter Text */
  --linie:#2B394A;
  --rost:#F08A50;
  color-scheme:dark;
}
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4{color:#F2EEE4}
:root[data-theme="dark"] .kopf{background:rgba(19,29,40,.92)}

/* Knöpfe: gefüllter Knopf wird golden, wie in der IDG-Toolbox */
:root[data-theme="dark"] .knopf-voll{background:var(--gold);border-color:var(--gold);color:#131D28}
:root[data-theme="dark"] .knopf-voll:hover{background:#F7C866;border-color:#F7C866}
:root[data-theme="dark"] .knopf-leer:hover{background:rgba(233,229,219,.08)}
:root[data-theme="dark"] .weg{background:rgba(27,39,53,.78)}
:root[data-theme="dark"] .navi a.navi-toolbox:hover{background:rgba(243,179,64,.12)}

/* Fußzeile und dunkle Kästen: noch etwas dunkler als die Seite */
:root[data-theme="dark"] .fuss{background:#0D151E;color:#E9E5DB}
:root[data-theme="dark"] .fuss a{color:#E9E5DB}
:root[data-theme="dark"] .abschluss{background:#0D151E;color:#E9E5DB;border:1px solid var(--linie)}
:root[data-theme="dark"] .abschluss .knopf{border-color:#E9E5DB;color:#E9E5DB}
:root[data-theme="dark"] .sprung{background:var(--gold);color:#131D28}

/* Fotos minimal abdunkeln, damit sie nicht blenden */
:root[data-theme="dark"] .bildband,
:root[data-theme="dark"] .portraet img,
:root[data-theme="dark"] .bild-quer,
:root[data-theme="dark"] .bild-rund,
:root[data-theme="dark"] .autor img{filter:brightness(.9)}

/* Baum im Hintergrund: im Dunkeln zurückhaltender */
:root[data-theme="dark"] .baum-schemen{opacity:.08}
:root[data-theme="dark"] #zitat::before{opacity:.06}
