/* Developed by Enjyn Gruppe — https://enjyn.de */
@import url('https://fonts.eg-core.de/css2?family=Fredoka:wght@500;600&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  --text: #1b1c3a;
  --text-2: #4d5275;
  --linie: #1b1c3a;
  --grund: #eef2fb;
  --karte: #ffffff;
  --flaeche: #f5f7fd;
  --himmel-oben: #8fb3ff;
  --himmel-unten: #dfeaff;
  --marke: #7a3cf2;
  --marke-tief: #5f27cf;
  --marke-hell: #ece4ff;
  --online: #2fcf8e;
  --wackelig: #ffc53d;
  --offline: #ff5a5f;
  --wartung: #4f8cff;
  --schrift: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --titel: 'Fredoka', 'Figtree', ui-rounded, system-ui, sans-serif;
  --rand: clamp(16px, 4vw, 40px);
  --rund: 22px;
  --weich: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #eef0ff;
    --text-2: #b4b8d8;
    --linie: #05061a;
    --grund: #14152e;
    --karte: #1f2142;
    --flaeche: #1a1c3a;
    --himmel-oben: #1e2a5c;
    --himmel-unten: #14152e;
    --marke: #a57cff;
    --marke-tief: #c3aaff;
    --marke-hell: #2c2560;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--grund);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marke-tief); }
h1, h2, h3 { font-family: var(--titel); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
code { font: 600 .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 1px 6px; border-radius: 6px; background: var(--marke-hell); }

.v-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.nur-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.inhalt { width: min(1180px, 100% - 2 * var(--rand)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--marke); outline-offset: 3px; border-radius: 8px; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px;
  font: 600 1rem/1 var(--schrift);
  color: var(--text); text-decoration: none;
  background: var(--karte);
  border: 2.5px solid var(--linie); border-radius: 999px;
  box-shadow: 0 4px 0 var(--linie);
  transition: transform .2s var(--weich), box-shadow .2s var(--weich);
}
.knopf:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--linie); }
.knopf:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--linie); }
.knopf-marke { background: var(--marke); color: #fff; }
.knopf-klein { min-height: 40px; padding: 0 16px; font-size: .95rem; box-shadow: 0 3px 0 var(--linie); }

.kopf { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--grund) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 2px solid color-mix(in srgb, var(--linie) 12%, transparent); }
.kopf-innen { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-family: var(--titel); font-weight: 500; font-size: 1.1rem; }
.logo img { height: 20px; width: auto; }
.logo-dunkel { display: none; }
@media (prefers-color-scheme: dark) { .logo-hell { display: none; } .logo-dunkel { display: block; } }
.kopf-nav { display: flex; gap: 22px; margin-left: auto; }
.kopf-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.kopf-nav a:hover { color: var(--text); }

.held {
  position: relative;
  padding: clamp(40px, 7vw, 84px) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--himmel-oben), var(--himmel-unten) 70%, var(--grund));
  overflow: hidden;
}
.held-gitter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.marke-pille {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; margin-bottom: 18px;
  font-weight: 700; font-size: .9rem;
  background: var(--karte); border: 2px solid var(--linie); border-radius: 999px;
  box-shadow: 0 3px 0 var(--linie);
}
.marke-pille b { padding: 2px 9px; border-radius: 999px; background: var(--marke); color: #fff; font-weight: 700; }
.held h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
.held h1 span { color: var(--marke-tief); }
.held-text { margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 34em; }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.held-fakten { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; }
.held-fakten li { display: flex; align-items: center; gap: 7px; }
.held-fakten .ic { color: color-mix(in srgb, var(--online) 75%, var(--text)); }

.fenster {
  background: var(--karte);
  border: 2.5px solid var(--linie); border-radius: var(--rund);
  box-shadow: 0 8px 0 var(--linie);
  overflow: hidden;
}
.fenster-leiste { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 2.5px solid var(--linie); background: var(--flaeche); }
.fenster-leiste i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--linie); }
.fenster-leiste i:nth-child(1) { background: var(--offline); }
.fenster-leiste i:nth-child(2) { background: var(--wackelig); }
.fenster-leiste i:nth-child(3) { background: var(--online); }
.fenster-leiste span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--karte); border: 1.5px solid color-mix(in srgb, var(--linie) 25%, transparent); font-size: .8rem; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.held-bild { transform: rotate(1.2deg); }

.abschnitt { padding: clamp(56px, 8vw, 104px) 0; }
.abschnitt-flaeche { background: var(--flaeche); border-block: 2px solid color-mix(in srgb, var(--linie) 8%, transparent); }
.kopfzeile { max-width: 46em; margin-bottom: clamp(28px, 4vw, 44px); }
.dachzeile { display: inline-block; margin-bottom: 10px; color: var(--marke-tief); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.kopfzeile h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.kopfzeile p { margin-top: 12px; color: var(--text-2); font-size: 1.1rem; }

.held + .abschnitt { padding-top: clamp(20px, 3vw, 40px); }
.neu-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.neu-liste li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--karte); border: 2px solid var(--linie); border-radius: 16px; box-shadow: 0 4px 0 var(--linie); }
.neu-liste .ic { margin-top: 3px; color: var(--marke); font-size: 1.15rem; }
.neu-liste strong { display: block; font-family: var(--titel); font-weight: 600; font-size: 1.05rem; }
.neu-liste span { color: var(--text-2); font-size: .95rem; }

.wetter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 26px); margin: 0; padding: 0; list-style: none; }
.wetter figure { margin: 0; }
.wetter figcaption { margin-top: 16px; }
.wetter figcaption strong { display: flex; align-items: center; gap: 8px; font-family: var(--titel); font-weight: 600; font-size: 1.15rem; }
.wetter figcaption strong::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--linie); background: var(--punkt, var(--online)); }
.wetter figcaption span { display: block; margin-top: 4px; color: var(--text-2); font-size: .95rem; }
.punkt-stoerung { --punkt: var(--offline); }
.punkt-nacht { --punkt: var(--wartung); }

.design-wahl { display: inline-flex; gap: 6px; padding: 6px; margin-bottom: 28px; background: var(--karte); border: 2.5px solid var(--linie); border-radius: 999px; box-shadow: 0 4px 0 var(--linie); }
.design-wahl label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--text-2); transition: background .2s, color .2s; }
.design-wahl label:hover { color: var(--text); }
#designStandard:checked ~ .design-wahl label[for="designStandard"],
#designLegacy:checked ~ .design-wahl label[for="designLegacy"] { background: var(--marke); color: #fff; }
#designStandard:focus-visible ~ .design-wahl label[for="designStandard"],
#designLegacy:focus-visible ~ .design-wahl label[for="designLegacy"] { outline: 3px solid var(--marke); outline-offset: 3px; }
.design-tafel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px) minmax(0, .8fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
#designStandard:checked ~ .design-tafeln .tafel-legacy,
#designLegacy:checked ~ .design-tafeln .tafel-standard { display: none; }
.design-tafel h3 { font-size: 1.5rem; }
.design-tafel p { margin-top: 10px; color: var(--text-2); }
.haken { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.haken li { display: flex; gap: 9px; align-items: flex-start; }
.haken .ic { margin-top: 4px; color: color-mix(in srgb, var(--online) 75%, var(--text)); }
.design-hinweis { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--marke-hell); font-size: .95rem; }

.handy {
  border: 2.5px solid var(--linie); border-radius: 34px;
  padding: 8px; background: var(--linie);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--linie) 55%, transparent);
}
.handy img { border-radius: 26px; }

.funktionen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.funktionen li { padding: 22px; background: var(--karte); border: 2px solid var(--linie); border-radius: 18px; box-shadow: 0 4px 0 var(--linie); transition: transform .25s var(--weich); }
.funktionen li:hover { transform: translateY(-3px); }
.funktionen .symbol { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border: 2px solid var(--linie); border-radius: 14px; background: var(--marke-hell); color: var(--marke-tief); font-size: 1.3rem; }
.funktionen h3 { font-size: 1.15rem; }
.funktionen p { margin-top: 6px; color: var(--text-2); font-size: .97rem; }

.verwaltung { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }

.preise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.preis { display: flex; flex-direction: column; padding: 26px; background: var(--karte); border: 2.5px solid var(--linie); border-radius: var(--rund); box-shadow: 0 6px 0 var(--linie); }
.preis-hervor { background: var(--marke-hell); }
.preis h3 { font-size: 1.25rem; }
.preis .betrag { margin-top: 14px; font-family: var(--titel); font-weight: 600; font-size: 2.6rem; line-height: 1; }
.preis .betrag small { font-family: var(--schrift); font-size: .95rem; font-weight: 600; color: var(--text-2); }
.preis .haken { margin-top: 20px; }
.preis .knopf { margin-top: auto; align-self: flex-start; }
.preis .haken + .knopf { margin-top: 24px; }
.preise-fuss { margin-top: 22px; color: var(--text-2); font-size: .95rem; }

.schritte { counter-reset: schritt; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.schritte li { counter-increment: schritt; position: relative; padding: 26px 22px 22px; background: var(--karte); border: 2px solid var(--linie); border-radius: 18px; box-shadow: 0 4px 0 var(--linie); }
.schritte li::before { content: counter(schritt); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border: 2px solid var(--linie); border-radius: 50%; background: var(--marke); color: #fff; font-family: var(--titel); font-weight: 600; font-size: 1.2rem; }
.schritte h3 { font-size: 1.15rem; }
.schritte p { margin-top: 6px; color: var(--text-2); font-size: .97rem; }

.abschluss { padding-top: 0; text-align: center; }
.abschluss .fenster { padding: clamp(32px, 5vw, 56px) var(--rand); background: linear-gradient(180deg, var(--himmel-oben), var(--himmel-unten)); }
.abschluss h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.abschluss p { margin: 12px auto 0; max-width: 34em; color: var(--text-2); font-size: 1.1rem; }
.abschluss .held-knoepfe { justify-content: center; }

.fuss { padding: 30px 0 40px; border-top: 2px solid color-mix(in srgb, var(--linie) 10%, transparent); font-size: .92rem; color: var(--text-2); }
.fuss-innen { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fuss a { color: var(--text-2); }
.fuss a:hover { color: var(--text); }

@media (max-width: 980px) {
  .held-gitter, .verwaltung { grid-template-columns: 1fr; }
  .held-bild { transform: none; }
  .design-tafel { grid-template-columns: minmax(0, 1fr) minmax(0, 180px); }
  .design-tafel > div:last-child { grid-column: 1 / -1; }
  .neu-liste, .funktionen, .preise, .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .kopf-nav { display: none; }
  .kopf .knopf { margin-left: auto; }
  .neu-liste, .wetter, .funktionen, .preise, .schritte { grid-template-columns: 1fr; }
  .design-tafel { grid-template-columns: 1fr; }
  .design-tafel .handy { max-width: 240px; margin-inline: auto; }
  .design-wahl { display: flex; }
  .design-wahl label { flex: 1; justify-content: center; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
