/* FleissiQ Website. Telefon zuerst (375 bis 430 px), ab 760 px und 1040 px erweitert.
   Dateiname mit Version: Caddy liefert /assets/ mit langer Cache-Zeit aus. Bei Änderungen neue Nummer vergeben
   und in allen HTML-Dateien anpassen. */
:root {
  --navy: #0F1729;
  --navy-2: #18233B;
  --yellow: #FFC23D;
  --ink: #0F1729;
  --muted: #4A5468;
  --bg: #FFFFFF;
  --soft: #F4F5F8;
  --line: #E1E4EA;
  --ok: #1E7A46;
  --error: #B3261E;
  --radius: 14px;
  --gutter: 20px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E9ECF2;
    --muted: #A9B1C1;
    --bg: #0B1120;
    --soft: #121A2C;
    --line: #26314A;
    --ok: #5CC98A;
    --error: #FF8A80;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; }
h1 { font-size: clamp(2.2rem, 8.5vw, 3.7rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 14px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--yellow); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }

/* Knöpfe: mindestens 48 px hoch, Gelb nur für die Hauptaktion. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--yellow); color: var(--navy);
}
.btn:hover { filter: brightness(1.05); }
.btn-block { width: 100%; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn-quiet { background: transparent; color: inherit; border-color: currentColor; }

/* Kopf und Einstieg (dunkel, wie das Logo) */
.top { background: var(--navy); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.bar img { width: 132px; height: auto; }
.bar nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.bar nav a:not(.btn) { color: #D6DBE6; text-decoration: none; display: none; padding: 12px 0; }
.bar nav a.login { display: inline-block; }
.bar nav a:not(.btn):hover { color: #fff; text-decoration: underline; }
.hero { padding-top: 28px; }
.hero .eyebrow { color: var(--yellow); }
.hero p.lead { color: #D6DBE6; max-width: 34em; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 18px; }
.hero-cta .more { color: #D6DBE6; text-align: center; padding: 10px; }
.checks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 8px; color: #E9ECF2; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--yellow); }
.phone { margin: 0 auto; width: min(300px, 82vw); }
.phone picture, .shot picture { display: block; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.phone img, .shot img { width: 100%; height: auto; }
.phone figcaption { text-align: center; color: #A9B1C1; font-size: .85rem; padding: 12px 0 22px; }
.hero-grid { display: grid; gap: 8px; }

/* Abschnitte */
section { padding: 56px 0; scroll-margin-top: 12px; }
section.soft { background: var(--soft); }
.intro { max-width: 46em; margin-bottom: 28px; }
.grid { display: grid; gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
section.soft .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); }
.statement { font-size: clamp(1.3rem, 4.6vw, 1.75rem); line-height: 1.35; font-weight: 700; max-width: 30em; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 72px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; display: grid; place-items: center; }
.steps p { color: var(--muted); margin: 0; }

/* Bildschirmfotos: am Telefon zum Wischen, am Desktop nebeneinander */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px; margin: 0 calc(-1 * var(--gutter)); }
.shot { scroll-snap-align: center; margin: 0; }
.shot picture { border-radius: 18px; border-color: var(--line); box-shadow: 0 8px 26px rgba(15,23,41,.10); }
.shot figcaption { font-size: .92rem; color: var(--muted); padding-top: 10px; }
.shot figcaption strong { color: var(--ink); display: block; }
.demo video { width: 100%; height: auto; border-radius: var(--radius); background: #000; margin-bottom: 28px; }

/* Preis */
.price { display: grid; gap: 18px; align-items: center; }
.price .amount { font-size: clamp(2.6rem, 11vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 8px; }
.price .amount span { font-size: 1.1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* Fragen */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* Anfrage */
.ask { background: var(--navy); color: #fff; }
.ask .lead { color: #D6DBE6; }
.ask-grid { display: grid; gap: 28px; }
.ask .checks { margin-bottom: 0; }
.form { background: var(--bg); color: var(--ink); border-radius: 18px; padding: 22px 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid #8C94A6; border-radius: 10px; padding: 12px 14px; min-height: 50px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--yellow); outline-offset: 0; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; font-size: .95rem; }
.agree input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.more-fields { margin-bottom: 16px; }
.more-fields summary { cursor: pointer; font-weight: 700; min-height: 44px; padding: 10px 0; }
.more-fields summary span { font-weight: 400; color: var(--muted); }
.more-fields[open] summary { margin-bottom: 8px; }
.grund { display: none; }
.grund:target { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-error { color: var(--error); font-weight: 600; margin: 0 0 14px; }
.thanks h3 { font-size: 1.4rem; }
.thanks ol { padding-left: 1.2em; color: var(--muted); }
.thanks li { margin-bottom: 6px; }

/* Fuß */
.foot { background: var(--navy); color: #C3C9D6; padding: 36px 0 120px; font-size: .95rem; border-top: 1px solid var(--navy-2); }
.foot img { width: 120px; height: auto; margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a, .foot button { color: #fff; }
.foot li a, .foot li button { display: inline-block; padding: 10px 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: inherit; }

/* Knopf unten am Telefon, solange weder Einstieg noch Formular zu sehen sind (Skript blendet ihn ein) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(15,23,41,.96); border-top: 1px solid rgba(255,255,255,.12); transition: transform .2s ease; }
.sticky.away { transform: translateY(110%); }

/* Einwilligung */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -10px 40px rgba(15,23,41,.18); padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; }
.consent-in { max-width: 760px; margin: 0 auto; }
.consent-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.consent p { font-size: .95rem; }
.consent fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; margin: 0 0 14px; }
.consent legend { font-weight: 700; padding: 0 4px; }
.consent label { display: flex; gap: 12px; align-items: center; min-height: 44px; }
.consent label input { width: 22px; height: 22px; accent-color: var(--navy); }
.consent-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-consent { background: var(--navy); color: #fff; min-height: 50px; padding: 10px 12px; }
@media (prefers-color-scheme: dark) { .btn-consent { background: #E9ECF2; color: var(--navy); } }
.consent .linkbtn { display: block; margin: 12px auto 0; min-height: 44px; }

/* Rechtstexte */
.legal { padding: 40px 0 64px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 34px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; }

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .bar nav a:not(.btn) { display: inline-block; }
  .hero { padding-top: 48px; }
  .hero-cta { flex-direction: row; align-items: center; }
  .hero-cta .more { text-align: left; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 0; margin: 0; }
  .price { grid-template-columns: 1fr auto; }
  .form { padding: 28px; }
  .sticky { display: none; }
  .foot { padding-bottom: 48px; }
  .consent-buttons { grid-template-columns: repeat(2, minmax(180px, 220px)); justify-content: start; }
  .consent .linkbtn { margin-left: 0; }
  section { padding: 80px 0; }
}
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 40px; }
  .hero-grid > div:first-child { padding-bottom: 56px; }
  .grid-3, .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 72px 22px 22px; }
  .steps li::before { top: 22px; left: 22px; }
  .ask-grid { grid-template-columns: .9fr 1.1fr; align-items: start; gap: 56px; }
}
