/* miluh.de – neue Fassung (09.11.2026). Farben als Zeichen, hell/dunkel unten. */
@import url("schriften.css");

:root {
  --grund: #060b1a; --grund-2: #0b1530; --karte: rgba(16, 28, 60, .72); --linie: rgba(91, 156, 255, .22);
  --text: #e9eefc; --leise: #9fb0d6; --gold: #ffd25c; --gold-2: #f2b631; --gold-tief: #9a6a08; --blau: #3a9bff; --hellblau: #7cc0ff;
  --breite: 1080px; --rand: 22px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --grund: #f4f7ff; --grund-2: #e6edff; --karte: rgba(255, 255, 255, .85); --linie: rgba(40, 90, 200, .18);
    --text: #121a33; --leise: #4a5878; --gold: #b07a00; --gold-2: #8f6200; --blau: #1d6fe0; --hellblau: #3a8cff;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }
/* 15.11.2026 (Klaus' go): Umschalter mit 3 Stufen – ☀ hell · 🌗 Dämmerung · 🌙 dunkel. Ohne Wahl gilt die Einstellung des Geräts (oben). */
:root[data-theme="light"] {
  color-scheme: light;
  --grund: #f4f7ff; --grund-2: #e6edff; --karte: rgba(255, 255, 255, .85); --linie: rgba(40, 90, 200, .18);
  --text: #121a33; --leise: #4a5878; --gold: #b07a00; --gold-2: #8f6200; --blau: #1d6fe0; --hellblau: #3a8cff;
}
:root[data-theme="daemmerung"] {
  color-scheme: dark;
  --grund: #262f45; --grund-2: #2f3a55; --karte: rgba(58, 72, 104, .72); --linie: rgba(160, 190, 240, .24);
  --text: #f1f4fb; --leise: #c6cfe3; --gold: #ffd76e; --gold-2: #f5c04a; --blau: #6fb1ff; --hellblau: #a8d4ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 400 17px/1.65 "Inter", system-ui, sans-serif; overflow-x: hidden;
}
a { color: var(--hellblau); }
img { max-width: 100%; height: auto; }

/* Hintergrund: Leiterbahnen + Leuchten (eigene SVG, keine Bilder) */
.platine { position: fixed; inset: 0; z-index: -2; opacity: .5; pointer-events: none; }
.leuchten { position: fixed; inset: -20%; z-index: -3; pointer-events: none;
  background: radial-gradient(45% 35% at 70% 20%, rgba(58, 155, 255, .18), transparent 70%),
              radial-gradient(40% 30% at 20% 80%, rgba(255, 210, 92, .10), transparent 70%), var(--grund); }

.innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--grund) 94%, transparent);   /* 09.11.: ohne Weichzeichner (Rechenlast) */
  border-bottom: 1px solid var(--linie); }
.kopf .innen { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.marke img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px var(--linie), 0 0 18px rgba(58, 155, 255, .35); }
.marke span { font: 700 18px/1 "Cinzel", serif; letter-spacing: .08em; }
.marke small { display: block; font: 600 10px/1.2 "Inter", sans-serif; letter-spacing: .28em; color: var(--gold); margin-top: 4px; }
.menue { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.menue a { color: var(--leise); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.menue a:hover, .menue a:focus-visible { color: var(--text); background: rgba(91, 156, 255, .12); }

/* Bühne oben */
.buehne { position: relative; padding: 70px 0 40px; }
.buehne .innen { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); font: 600 13px/1 "Inter", sans-serif; letter-spacing: .3em; text-transform: uppercase; }
h1 { font: 700 clamp(34px, 5.2vw, 58px)/1.08 "Cinzel", serif; margin: 14px 0 18px; letter-spacing: .01em; }
h1 .gold, h2 .gold { background: linear-gradient(180deg, #fff3b8 0%, var(--gold) 45%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spruch { font: 600 clamp(19px, 2.2vw, 24px)/1.4 "Cinzel", serif; color: var(--gold); margin: 22px 0 0; }
.lead { font-size: 19px; color: var(--leise); max-width: 34em; }
.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.knopf { display: inline-block; padding: 12px 20px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.knopf--gold { background: linear-gradient(180deg, #ffe08a, var(--gold-2)); color: #2a1b00; box-shadow: 0 6px 24px rgba(242, 182, 49, .3); }
.knopf--rand { border: 1px solid var(--linie); color: var(--text); }
.knopf:hover { transform: translateY(-1px); }

/* großer Miluh */
.miluh-gross { position: relative; justify-self: center; width: min(360px, 80vw); aspect-ratio: 100 / 120; cursor: pointer; }
.miluh-gross svg { width: 100%; height: 100%; overflow: visible; position: relative; }
.miluh-gross::before { content: ""; position: absolute; inset: 8% -6% -6%; background: radial-gradient(closest-side, rgba(58, 155, 255, .32), transparent); pointer-events: none; }   /* Leuchten als ruhiges Bild statt Filter an der bewegten Figur */
.miluh-gross .atmer { width: 100%; height: 100%; animation: atmen 3.6s ease-in-out infinite; transform-origin: 50% 100%; will-change: transform; }
/* 09.11. (Klaus: „am PC zittert er, am Handy atmet er nicht“): Bewegung auf einer HÜLLE (eigene Ebene), nicht auf der SVG selbst */
@keyframes atmen { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -9px, 0); } }   /* 09.11.: schweben statt skalieren – Skalieren ließ die feinen Linien zittern */
.miluh-gross::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -2%; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); animation: schatten 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes schatten { 0%, 100% { opacity: .9; transform: scaleX(1); } 50% { opacity: .55; transform: scaleX(.86); } }
.bahnen path { stroke-dasharray: 6 4; animation: strom 2.4s linear infinite; }
@keyframes strom { to { stroke-dashoffset: -40; } }
.punkte circle { animation: funkeln 1.8s ease-in-out infinite; }
.punkte circle:nth-child(3n) { animation-delay: .6s; } .punkte circle:nth-child(3n+1) { animation-delay: 1.2s; }
@keyframes funkeln { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.lid { transform-box: fill-box; transform-origin: center; animation: blinzeln 5.5s infinite; }
@keyframes blinzeln { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
.miluh-gross .sprech { position: absolute; left: 62%; top: 4%; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px 14px 14px 4px;
  padding: 8px 12px; font-size: 14px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: .35s; pointer-events: none; }
.miluh-gross.spricht .sprech { opacity: 1; transform: none; }

/* Spritzer + Funken */
.spritzer { position: fixed; width: var(--g); height: var(--g); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--f);
  pointer-events: none; z-index: 40; box-shadow: 0 0 8px var(--f); animation: spritz .9s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes spritz { 0% { transform: translate(0, 0) scale(1); opacity: 1; }
  70% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }

/* drei kleine Hüpfer (liegen über allem, Klicks gehen durch) */
.huepfer-ebene { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }   /* hinter dem Inhalt: Text bleibt lesbar (Prüfung 09.11.) */
main, .fuss { position: relative; z-index: 2; }
.huepfer { position: absolute; left: 0; top: 0; width: 46px; height: 55px; will-change: transform; transform-origin: 50% 100%; }
.huepfer svg { width: 100%; height: 100%; overflow: visible; }   /* kein Filter an bewegten Figuren – Schatten macht .schatten */
.huepfer .schatten { position: absolute; left: 6px; width: 34px; height: 6px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); }

/* Abschnitte */
section { padding: 70px 0; scroll-margin-top: 70px; }
h2 { font: 700 clamp(26px, 3.4vw, 38px)/1.15 "Cinzel", serif; margin: 0 0 16px; }
h3 { font: 600 19px/1.3 "Inter", sans-serif; margin: 0 0 8px; color: var(--text); }
.untertitel { color: var(--leise); max-width: 40em; margin: 0 0 30px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; padding: 22px;
  transition: transform .25s, border-color .25s, box-shadow .25s; }
.karte:hover { transform: translateY(-3px); border-color: rgba(255, 210, 92, .45); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.karte p { margin: 0; color: var(--leise); }
.symbol { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px;
  background: rgba(58, 155, 255, .14); color: var(--hellblau); font-size: 21px; }
.stufen { display: grid; gap: 12px; }
.stufe { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; padding: 16px 18px; border-radius: 14px; background: var(--karte); border: 1px solid var(--linie); }
.stufe b { color: var(--gold); font-weight: 600; }
.stufe p { margin: 0; color: var(--leise); }
.hinweis { margin-top: 18px; font-size: 14px; color: var(--leise); }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.liste { margin: 0; padding: 0; list-style: none; }
.liste li { padding-left: 28px; position: relative; margin: 10px 0; color: var(--leise); }
.liste li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7c8, var(--gold) 55%, var(--gold-tief)); }
.liste--blau li::before { background: radial-gradient(circle at 35% 35%, #d9ecff, var(--blau) 60%, #164b9c); }
.liste li b { color: var(--text); font-weight: 600; }

/* Wir vier */
.team-text p { color: var(--leise); max-width: 46em; }
.team-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.team-karte { text-align: center; padding: 24px 16px; }
.team-karte .name { font: 700 22px/1.2 "Cinzel", serif; color: var(--gold); margin-bottom: 8px; }
.team-karte p { font-size: 15px; }
.team-notiz { color: var(--leise); font-size: 14px; margin-top: 14px; }

/* Kontakt */
.formular { display: grid; gap: 12px; }
.formular .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formular label { font-size: 14px; color: var(--leise); display: block; margin-bottom: 4px; }
.formular input, .formular textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--linie);
  background: rgba(0, 0, 0, .18); color: var(--text); font: inherit; }
.formular textarea { min-height: 130px; resize: vertical; }
.formular button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.erfolg { display: none; color: #7be0a5; font-size: 14px; } .erfolg.an { display: block; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding: 26px 0 40px; color: var(--leise); font-size: 14px; }
.fuss .innen { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fuss nav { margin-left: auto; display: flex; gap: 16px; }
.fuss a { color: var(--leise); }

/* Rechtsseiten */
.recht { padding: 50px 0 70px; }
.recht h1 { font-size: clamp(28px, 4vw, 40px); }
.recht h2 { font: 600 20px/1.3 "Inter", sans-serif; margin: 28px 0 8px; }
.recht p, .recht li { color: var(--leise); }

/* Erscheinen beim Scrollen */
.auftauchen { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.auftauchen.da { opacity: 1; transform: none; }

/* schmal */
@media (max-width: 860px) {
  .buehne .innen, .zweispaltig { grid-template-columns: 1fr; }
  .miluh-gross { width: min(190px, 50vw); grid-row: 1; }
  .buehne { padding-top: 34px; }
  .team-raster { grid-template-columns: 1fr 1fr; }
  .stufe { grid-template-columns: 1fr; gap: 4px; }
  .menue { display: none; }
  .formular .zwei { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .strompulse { display: none; } }   /* Handy: Hintergrund steht still (Akku, Rechenlast) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .huepfer-ebene { display: none; }
  .auftauchen { opacity: 1; transform: none; }
}
/* Strom fließt nur ab und zu (11.11.2026, Klaus' Ja): ständig fließend kosteten Pulse + Leiterbahnen in Firefox ~2 Prozessorkerne.
   Die Ruhe-Regeln setzt miluh.js als eigenes <style id="strom-ruhe"> (body-Klassen greifen nicht in die <use>-Kopien der kleinen Miluhs). */
.strompulse { transition: opacity .6s; }

/* Kopfleiste (11.11.2026, Klaus' go): bei mittlerer Breite/Zoom enger statt Umbruch; am Handy wischbare Menüzeile statt gar keinem Menü */
@media (max-width: 1100px) and (min-width: 861px) {
  .kopf .innen { gap: 10px; }
  .menue { gap: 0; flex-wrap: nowrap; }
  .menue a { font-size: 14px; padding: 8px 7px; white-space: nowrap; }
}
@media (max-width: 860px) {
  .kopf { position: static; }
  .kopf .innen { flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
  .menue { display: flex; flex-wrap: nowrap; margin-left: 0; width: 100%; overflow-x: auto; gap: 2px; scrollbar-width: none;
           -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .menue::-webkit-scrollbar { display: none; }
  .menue a { font-size: 14px; padding: 8px 10px; white-space: nowrap; flex: none; }
}
.fuss nav { flex-wrap: wrap; gap: 8px 16px; }   /* 11.11.2026: bei 360 px war die Fußzeile 27 px zu breit */

/* Farb-Umschalter in der Kopfleiste (15.11.2026) – gleiche Größe/Abstände wie die Menü-Links daneben */
@media (min-width: 1101px) { .menue { flex-wrap: nowrap; gap: 2px; } .menue a { padding: 8px 10px; white-space: nowrap; } }   /* mit Knopf: Menü bleibt einzeilig */
.thema-knopf { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 6px;
  border: 1px solid var(--linie); border-radius: 50%; background: transparent; color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.thema-knopf:hover, .thema-knopf:focus-visible { background: rgba(91, 156, 255, .12); }
.thema-knopf:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 860px) {
  .thema-knopf { order: 1; margin-left: auto; }   /* Handy: oben rechts neben dem Logo, nicht hinten in der wischbaren Menüzeile */
  .menue { order: 2; }
}
