/* CueDesk-Website – gemeinsame Gestaltung aller Seiten.
   Farben angelehnt an die App (Akzent #185fa5) und das Logo (Creme). */

:root {
  --grund: #faf8f2;
  --flaeche: #ffffff;
  --flaeche-2: #f3efe4;
  --creme: #f6f1e4;
  --rand: #e2ddcf;
  --text: #1d1d1b;
  --text-leise: #5f5e58;
  --akzent: #185fa5;
  --akzent-dunkel: #124a82;
  --akzent-hell: #e6f1fb;
  --gold: #b08d3c;
  --gut: #0f6e56;
  --radius: 10px;
  --breite: 1120px;
  --schatten: 0 1px 2px rgba(29, 29, 27, .06), 0 8px 24px rgba(29, 29, 27, .06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #14161a;
    --flaeche: #1c1f24;
    --flaeche-2: #23272d;
    --creme: #1f2126;
    --rand: #33373e;
    --text: #ececea;
    --text-leise: #a6a9ae;
    --akzent: #6aa8e8;
    --akzent-dunkel: #8dbdf0;
    --akzent-hell: #1d2c3d;
    --gold: #d2b46a;
    --gut: #4cc39e;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--akzent); }
a:hover { color: var(--akzent-dunkel); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .huelle { padding: 0 28px; } }

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rand);
}
.kopf .huelle { display: flex; align-items: center; gap: 16px; min-height: 64px; }

.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.2rem; }
.marke img { width: 36px; height: 36px; border-radius: 50%; }

.navi { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.navi a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .97rem; }
.navi a:hover { background: var(--flaeche-2); }
.navi a[aria-current="page"] { color: var(--akzent); font-weight: 600; }
.navi .knopf { margin-left: 8px; }

.menue-knopf {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rand); border-radius: 8px;
  padding: 8px 12px; font: inherit; color: var(--text); cursor: pointer;
}

@media (max-width: 1060px) {
  .menue-knopf { display: block; }
  .navi {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--grund); border-bottom: 1px solid var(--rand); padding: 8px 16px 16px;
  }
  .navi.offen { display: flex; }
  .navi a { padding: 12px; }
  .navi .knopf { margin: 8px 0 0; text-align: center; }
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-block; padding: .7rem 1.3rem; border-radius: 8px;
  background: var(--akzent); color: #fff !important; text-decoration: none; font-weight: 600;
  border: 1px solid var(--akzent); transition: background .15s;
}
.knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf.zweit { background: transparent; color: var(--akzent) !important; }
.knopf.zweit:hover { background: var(--akzent-hell); }
.navi .knopf { padding: .5rem 1rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .knopf:not(.zweit) { color: #0d1620 !important; }
}

.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- Abschnitte ---------- */

.abschnitt { padding: 64px 0; }
.abschnitt.getoent { background: var(--creme); border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.abschnitt .einleitung { max-width: 720px; color: var(--text-leise); font-size: 1.08rem; }
.dachzeile { display: inline-block; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6rem; }

/* Startbereich */
.buehne { padding: 56px 0 64px; }
.buehne .huelle { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .buehne .huelle { grid-template-columns: 1.05fr 1fr; } }
.buehne .unterzeile { font-size: 1.2rem; color: var(--text-leise); max-width: 560px; }
.merkmale-kurz { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-leise); font-size: .95rem; }
.merkmale-kurz li::before { content: "✓ "; color: var(--gut); font-weight: 700; }

/* Seitenkopf der Unterseiten */
.seitenkopf { padding: 48px 0 8px; }
.seitenkopf p { max-width: 720px; color: var(--text-leise); font-size: 1.15rem; }

/* ---------- Karten ---------- */

.raster { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 640px) { .raster.zwei, .raster.drei { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .raster.drei { grid-template-columns: repeat(3, 1fr); } }

.karte {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--schatten);
}
.karte h3 { display: flex; align-items: center; gap: 10px; }
.karte p:last-child, .karte ul:last-child { margin-bottom: 0; }
.karte ul { padding-left: 1.2em; margin: 0 0 1em; }
.karte li { margin-bottom: .25em; }
.symbol {
  flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--akzent-hell); color: var(--akzent);
}
.symbol svg { width: 22px; height: 22px; }

/* Funktionsblöcke mit Bild */
.block { display: grid; gap: 32px; align-items: center; padding: 40px 0; border-top: 1px solid var(--rand); }
.block:first-of-type { border-top: 0; }
@media (min-width: 900px) {
  .block { grid-template-columns: 1fr 1fr; gap: 56px; }
  .block.gedreht .block-text { order: 2; }
}
.block ul { padding-left: 1.2em; }
.block li { margin-bottom: .35em; }

/* ---------- Bildplatzhalter (bis Bildschirmfotos da sind) ---------- */

.bildplatz {
  position: relative; border: 1px solid var(--rand); border-radius: 12px; overflow: hidden;
  background: var(--flaeche); box-shadow: var(--schatten);
}
.bildplatz .leiste { display: flex; gap: 6px; padding: 10px 12px; background: var(--flaeche-2); border-bottom: 1px solid var(--rand); }
.bildplatz .leiste i { width: 10px; height: 10px; border-radius: 50%; background: var(--rand); }
.bildplatz .inhalt { aspect-ratio: 16 / 10; padding: 18px; display: grid; gap: 10px; align-content: start; }
.bildplatz .zeile { height: 12px; border-radius: 6px; background: var(--flaeche-2); }
.bildplatz .zeile.kurz { width: 40%; }
.bildplatz .zeile.mittel { width: 70%; }
.bildplatz .zeile.akzent { background: var(--akzent-hell); }
.bildplatz .kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 6px; }
.bildplatz .kacheln b { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--flaeche-2); border: 1px solid var(--rand); }
.bildplatz .kacheln b:nth-child(odd) { background: var(--akzent-hell); }
.bildplatz .hinweis {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: var(--flaeche); border: 1px dashed var(--rand); color: var(--text-leise);
  font-size: .82rem; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.bildplatz.tafel .inhalt { grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; align-content: center; }
.bildplatz.tafel .stand { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; color: var(--akzent); font-variant-numeric: tabular-nums; }
.bildplatz.tafel .name { color: var(--text-leise); font-size: .9rem; }
.bildplatz.tafel .trenner { color: var(--rand); font-size: 2rem; }

/* ---------- Schritte ---------- */

.schritte { counter-reset: schritt; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .schritte.waagerecht { grid-template-columns: repeat(4, 1fr); } }
.schritte li {
  counter-increment: schritt; position: relative; padding: 20px 20px 20px 68px;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
}
.schritte li::before {
  content: counter(schritt); position: absolute; left: 20px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--akzent); color: #fff; font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .schritte li::before { color: #0d1620; }
}
.schritte li strong { display: block; margin-bottom: 4px; }
.schritte li p { margin: 0; color: var(--text-leise); font-size: .97rem; }

/* ---------- Fragen ---------- */

.fragen { max-width: 820px; margin-top: 24px; }
.fragen h2 { margin-top: 2rem; font-size: 1.35rem; }
.fragen details { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); margin-bottom: 10px; }
.fragen summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; color: var(--akzent); font-size: 1.3rem; line-height: 1; }
.fragen details[open] summary::after { content: "–"; }
.fragen details > div { padding: 0 20px 16px; color: var(--text-leise); }
.fragen details > div p:last-child { margin: 0; }

/* ---------- Hinweiskasten / Aufruf ---------- */

.aufruf {
  background: var(--akzent); color: #fff; border-radius: 14px; padding: 40px 28px; text-align: center;
}
.aufruf h2 { color: #fff; }
.aufruf p { color: rgba(255, 255, 255, .88); max-width: 620px; margin: 0 auto 1.4rem; }
.aufruf .knopf { background: #fff; color: var(--akzent) !important; border-color: #fff; }
.aufruf .knopf:hover { background: var(--akzent-hell); }
.aufruf .knopf.zweit { background: transparent; color: #fff !important; }
.aufruf .knopfreihe { justify-content: center; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .aufruf { background: var(--akzent-hell); border: 1px solid var(--rand); }
  :root:not([data-theme="light"]) .aufruf h2 { color: var(--text); }
  :root:not([data-theme="light"]) .aufruf p { color: var(--text-leise); }
  :root:not([data-theme="light"]) .aufruf .knopf { background: var(--akzent); color: #0d1620 !important; border-color: var(--akzent); }
  :root:not([data-theme="light"]) .aufruf .knopf.zweit { background: transparent; color: var(--akzent) !important; }
}

.kasten { background: var(--flaeche-2); border-left: 4px solid var(--gold); border-radius: 6px; padding: 16px 20px; margin: 24px 0; }
.kasten p:last-child { margin: 0; }

/* ---------- Fuß ---------- */

.fuss { border-top: 1px solid var(--rand); padding: 40px 0 32px; margin-top: 32px; color: var(--text-leise); font-size: .93rem; }
.fuss .huelle { display: grid; gap: 28px; }
@media (min-width: 760px) { .fuss .huelle { grid-template-columns: 1.4fr 1fr 1fr; } }
.fuss h4 { margin: 0 0 .6rem; color: var(--text); font-size: .95rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .35rem; }
.fuss a { color: var(--text-leise); text-decoration: none; }
.fuss a:hover { color: var(--akzent); text-decoration: underline; }
.fuss .unten { grid-column: 1 / -1; border-top: 1px solid var(--rand); padding-top: 18px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Echte Bildschirmfotos */
.bildschirm img { border: 1px solid var(--rand); border-radius: 12px; box-shadow: var(--schatten); background: #fff; }

code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--flaeche-2); padding: .1em .35em; border-radius: 4px; }

/* Sprungziele nicht unter dem festen Kopf verstecken */
[id] { scroll-margin-top: 80px; }
