/* Gnurzel – Homepage */

:root {
  --hintergrund: #f9fafc;
  --flaeche: #ffffff;
  --getoent: #eef3fb;
  --text: #1b2230;
  --text-leise: #5a6475;
  --linie: #dfe5ef;
  --akzent: #3a83f7;
  --akzent-dunkel: #1f66d1;
  --akzent-zart: #e3edfe;
  --schatten: 0 1px 2px rgba(20, 30, 50, .06), 0 8px 24px rgba(20, 30, 50, .08);
  --rund: 16px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.breite { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.schmal { max-width: 780px; }

/* Knöpfe */
.knopf {
  display: inline-block;
  background: var(--akzent);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  padding: .8em 1.4em;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(58, 131, 247, .3);
  transition: background .15s, transform .15s;
}
.knopf:hover { background: var(--akzent-dunkel); transform: translateY(-1px); }
/* Knopf ohne Link (Demo-Seite verweist nicht auf sich selbst): gleiche Optik, keine Hover-Wirkung */
a.knopf:not([href]) { cursor: default; }
a.knopf:not([href]):hover { background: var(--akzent); transform: none; }
.knopf-hell { background: var(--flaeche); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--linie); }
.knopf-hell:hover { background: var(--getoent); }
.knopf-klein { padding: .5em 1.1em; font-size: .95rem; }
.knopf-gross { font-size: 1.15rem; padding: .95em 2em; }


/* Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--hintergrund) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }

.marke { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.3rem; }
.marke img { border-radius: 9px; }

.navigation { display: flex; align-items: center; gap: 26px; }
.navigation a:not(.knopf) { color: var(--text); text-decoration: none; font-weight: 550; }
.navigation a:not(.knopf):hover { color: var(--akzent-dunkel); }

.menue-knopf {
  display: none;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--flaeche);
  border: 1.5px solid var(--linie);
  border-radius: 999px;
  padding: .4em 1em;
  cursor: pointer;
}

@media (max-width: 760px) {
  .menue-knopf { display: block; }
  .navigation {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--hintergrund);
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten);
  }
  .navigation.offen { display: flex; }
  .navigation a:not(.knopf) { padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .navigation .knopf { margin-top: 16px; text-align: center; }
}

/* Einstieg */
.held { padding: 80px 0 72px; overflow: hidden; }
.held-innen { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.vorzeile {
  display: inline-block;
  margin: 0 0 18px;
  padding: .3em .9em;
  border-radius: 999px;
  background: var(--akzent-zart);
  color: var(--akzent-dunkel);
  font-weight: 650;
  font-size: .9rem;
}
.einleitung { font-size: 1.2rem; color: var(--text-leise); max-width: 34em; margin: 0 0 28px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.kleingedruckt { font-size: .9rem; color: var(--text-leise); margin: 18px 0 0; }

.held-bild { position: relative; display: flex; justify-content: center; }
.held-bild::before {
  content: "";
  position: absolute;
  width: 115%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--akzent-zart) 0%, transparent 65%);
  z-index: -1;
}

/* Stempel „In Kürze verfügbar“ schräg über der Vorzeile */
.stempel {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 22px;
  translate: 0 -44px;
  rotate: -8deg;
  pointer-events: none;
}

@media (max-width: 860px) {
  .held { padding-top: 36px; }
  .stempel { width: 150px; margin-top: 0; translate: 0 -14px; }
  .held-innen { grid-template-columns: 1fr; gap: 40px; }
}

/* Handyrahmen */
.telefon {
  width: 300px;
  max-width: 100%;
  padding: 10px;
  border-radius: 44px;
  background: #1a1d24;
  box-shadow: 0 30px 60px rgba(20, 30, 50, .25), inset 0 0 0 2px #3a404b;
  rotate: 2deg;
}
.telefon img { border-radius: 34px; width: 100%; }
.telefon-klein { width: 184px; padding: 7px; border-radius: 22px; rotate: none; box-shadow: var(--schatten), inset 0 0 0 2px #3a404b; }
.telefon-klein img { border-radius: 15px; }

/* Abschnitte */
.abschnitt { padding: 80px 0; }
.abschnitt-getoent { background: var(--getoent); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.abschnitt h2 { text-align: center; }
.abschnitt-einleitung { text-align: center; color: var(--text-leise); max-width: 40em; margin: 0 auto 48px; font-size: 1.1rem; }

/* Funktionskarten */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  padding: 26px;
  box-shadow: var(--schatten);
}
.karte p { margin: 0; color: var(--text-leise); }
.karte-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--akzent-zart);
  margin-bottom: 16px;
}
.karte-symbol svg { width: 26px; height: 26px; fill: none; stroke: var(--akzent-dunkel); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Bildergalerie */
.galerie {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  justify-content: safe center;
}
.galerie figure { margin: 0; flex: 0 0 auto; width: 184px; scroll-snap-align: center; } /* so breit wie das Handy, lange Unterschriften brechen um */
.galerie figcaption { text-align: center; margin-top: 14px; font-weight: 600; }

/* Schritte */
.schritte {
  list-style: none;
  counter-reset: schritt;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.schritte li { counter-increment: schritt; text-align: center; }
.schritte li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--akzent);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 750;
}
.schritte p { color: var(--text-leise); margin: 0; }

/* Aufruf zur Demo */
#demo { padding-top: 0; }
.aufruf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, #3a83f7, #1f66d1);
  color: #fff;
  box-shadow: var(--schatten);
}
.aufruf h2 { text-align: left; }
.aufruf p { margin: 0; max-width: 36em; opacity: .92; }
.aufruf .knopf { background: #fff; color: #1a56b5; flex: 0 0 auto; box-shadow: none; }
.aufruf .knopf:hover { background: #eef4ff; }
@media (max-width: 760px) {
  .aufruf { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}

/* Fragen */
details {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 14px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--akzent); transition: rotate .2s; }
details[open] summary::after { rotate: 45deg; }
details p { margin: 0; padding: 0 22px 20px; color: var(--text-leise); }

/* Fuß */
.fuss { padding: 40px 0; border-top: 1px solid var(--linie); }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.marke-fuss { font-size: 1rem; font-weight: 650; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 22px; }
.fuss-links a { color: var(--text-leise); text-decoration: none; }
.fuss-links a:hover { color: var(--text); }
.fuss-links a:not([href]) { cursor: default; }
.fuss-links a:not([href]):hover { color: var(--text-leise); }
.fuss .kleingedruckt { margin: 0; width: 100%; }

/* Rechtstexte */
.rechtstext { padding: 56px 0 80px; }
.rechtstext h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.rechtstext h2 { font-size: 1.3rem; margin-top: 2em; text-align: left; }
.platzhalter { background: #fff7d6; color: #6b5200; border-radius: 10px; padding: 12px 16px; }


/* Demo-Seite */
.demo-seite { padding: 32px 0 72px; }
.demo-innen { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: start; }
.demo-rahmen { text-align: center; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; }
.demo-rahmen > :not(.ansichten) { grid-column: 2; }
.telefon-demo { width: auto; rotate: none; display: inline-block; }
.telefon-demo iframe {
  display: block;
  width: 390px;
  height: min(780px, calc(100vh - 190px));
  min-height: 560px;
  border: 0;
  border-radius: 34px;
  background: #fff;
}
/* Ansichtsknöpfe unter dem Handyrahmen (Beschriftung kommt aus der Demo, Lasche „Homepage“ im Admin-Portal) */
.ansichten { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; width: 150px; margin-right: 24px; }
.ansichten[hidden] { display: none; }
.ansichten .knopf { white-space: normal; line-height: 1.25; }
.ansichten button { font-family: inherit; line-height: inherit; border: 0; cursor: pointer; }
.ansichten button:disabled { opacity: .6; cursor: wait; }
.ansichten .knopf-hell { box-shadow: inset 0 0 0 1.5px var(--linie); }
.ansichten .ansicht-start { margin-top: 6px; background: none; color: var(--text-leise); box-shadow: none; text-decoration: underline; font-weight: 550; }
.ansichten .ansicht-start:hover { color: var(--akzent-dunkel); background: none; }
.demo-text h1 { font-size: clamp(2rem, 4vw, 3rem); }
.tipps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.tipps li { display: flex; align-items: center; gap: 14px; }
.tipp-symbol {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #262626;
  color: #fff;
  font-size: 1.1rem;
}
.tipp-blau { background: #3a83f7; font-size: 1.6rem; }
.tipp-gruen { background: #2e9b42; }
@media (max-width: 860px) {
  .demo-innen { grid-template-columns: 1fr; gap: 32px; }
  .demo-text { order: -1; }
}
.tipp-symbol svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Größenverhältnisse wie in der App gemessen: Zahnrad ca. 57 % des Kreises, Plus etwas kleiner; Pfand-Flasche wie .module-top img; Schatten wie --sc-shadow */
.tipp-symbol { box-shadow: 0 2px 8px rgba(0, 0, 0, .27); }
.tipp-symbol svg.zahnrad { width: 28px; height: 28px; stroke-width: 1.8; }
.tipp-symbol svg.lupe { width: 26px; height: 26px; }
.tipp-symbol svg.plus { width: 23px; height: 23px; stroke-width: 2; }
.tipp-symbol img.flasche { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); transform: rotate(-38.5deg) scale(.82); }

/* Countdown bis zum Zurücksetzen der Demo */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -8px 0 28px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--akzent-zart);
  color: var(--text);
}
.countdown[hidden] { display: none; }
.countdown svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--akzent-dunkel); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.countdown strong { font-variant-numeric: tabular-nums; color: var(--akzent-dunkel); }
.countdown-knapp { background: #fde4e4; color: #8f1d1d; }
.countdown-knapp svg { stroke: #b42323; }
.countdown-knapp strong { color: #8f1d1d; }

/* Hinweise unter den Tipps auf der Demo-Seite */
.hinweise { display: grid; gap: 12px; }
.hinweis {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  color: var(--text-leise);
  font-size: .98rem;
}
.hinweis strong { color: var(--text); }
.hinweis-spuk { background: #fffbe0; border-color: #f2e6a2; }
.hinweis-emoji { font-size: 1.6rem; line-height: 1.2; flex: none; }
.hinweis-qr {
  flex: none;
  width: 112px;
  height: 112px;
  align-self: center;
  border-radius: 8px;
  border: 1px solid var(--linie);
}

/* Telefonnummer ohne JavaScript: steht im Quelltext rückwärts, wird hier richtig herum angezeigt */
.rueckwaerts { unicode-bidi: bidi-override; direction: rtl; }
