/* ------------------------------------------------------------------
   Zeitwerk – öffentlicher Auftritt
   Farben kommen aus den Einstellungen (App.razor setzt --brand/--accent/--dark).
   Schrift ist die Systemschrift – nichts aus fremden Netzen, kein Cookie-Banner.
   ------------------------------------------------------------------ */

:root {
    --brand: #0E5E6F;               /* Zeitwerk-Petrol */
    --accent: #F0A030;              /* Signal-Amber */
    --dark: #0A4450;                /* Petrol tief */
    --accent-ink: #9A5B00;          /* Amber, dunkel genug für Text auf hellem Grund */
    --accent-tint: #FDF1DC;
    --accent-hover: #F5B04F;
    --on-accent: #16181D;
    --paper: #F4F5F7;
    --sand: #E3EEF0;                /* Ton: helle Fläche in Hausfarbe */
    --white: #ffffff;
    --text: #16181D;
    --text-soft: #4A4F57;
    --muted: #6B7078;
    --line: #D6E2E5;
    --on-dark: #F2F7F8;
    --on-dark-muted: #B9D0D5;
    --radius: 20px;
    --shadow: 0 10px 28px rgba(14, 94, 111, 0.10);
    --shadow-lg: 0 22px 50px rgba(14, 94, 111, 0.16);
    --container: 1160px;
    --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --display: var(--font);
    --script: var(--font);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; color: var(--brand); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; }
h4 { font-family: var(--font); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }

p { margin: 0 0 1em; }

.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 60ch; }
.eyebrow { margin: 0 0 0.7rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow a { color: inherit; }
.muted { color: var(--muted); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 820px; }

.site { display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1; }

/* ---------- Kopf ---------- */
.topbar { background: var(--dark); color: var(--on-dark-muted); font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; }
.topbar a { color: var(--on-dark-muted); margin-right: 1.25rem; white-space: nowrap; }
.topbar-contact { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
/* Schmale Handys: Mailadresse weglassen, damit die Telefonnummer nicht umbricht. */
@media (max-width: 600px) {
    .topbar { font-size: 0.8rem; }
    .topbar a { margin-right: 0.75rem; }
    .topbar-contact a[href^="mailto:"] { display: none; }
}
.topbar-links a:last-child { margin-right: 0; }
.topbar a:hover { color: var(--white); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 88px; }
.logo img { height: 62px; width: auto; }
.logo-text { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--brand); }
.logo:has(.logo-mark) { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-mark { width: 40px; height: 40px; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; font-weight: 600; color: var(--on-dark); margin: 0 0 0.8rem; }
.footer-brand img { width: 32px; height: 32px; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav li { position: relative; }
.nav li > a { display: block; padding: 0.55rem 0.9rem; border-radius: 999px; font-weight: 500; color: var(--brand); }
.nav li > a:hover, .nav li.active > a { background: var(--sand); text-decoration: none; color: var(--brand); }
.nav .submenu { position: absolute; top: 100%; left: 0; min-width: 240px; display: none; flex-direction: column; gap: 0; padding: 0.5rem; margin-top: 0.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.nav li.has-children:hover .submenu, .nav li.has-children:focus-within .submenu { display: flex; }
.nav .submenu a { padding: 0.55rem 0.8rem; font-weight: 400; border-radius: 10px; }
.nav-cta { white-space: nowrap; }

.menu-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--brand); border-radius: 2px; }

/* Zwischen Klappmenü und breitem Bildschirm: Menüpunkte enger, damit acht Einträge plus Knopf in eine Zeile passen. */
@media (min-width: 1181px) and (max-width: 1400px) {
    .header-inner { gap: 1rem; }
    .nav { gap: 0.75rem; }
    .nav ul { gap: 0; }
    .nav li > a { padding: 0.5rem 0.6rem; }
}

/* Klappmenü: Bei acht Menüpunkten passt die Leiste erst ab rund 1200 px in eine Zeile. */
@media (max-width: 1180px) {
    .topbar-contact a:first-child { margin-right: 0.75rem; }
    .header-inner { height: 72px; }
    .logo img { height: 48px; }
    .menu-toggle { display: block; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 1rem 1.25rem 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
    .nav.open { display: flex; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav .submenu { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 1rem; margin: 0; background: transparent; }
    .nav .submenu a { color: var(--muted); }
    .nav-cta { text-align: center; }
}

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn-primary { background: var(--brand); color: var(--on-dark); }
.btn-primary:hover { background: #2e1c10; color: var(--on-dark); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--sand); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: var(--on-dark); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
/* Zwei helle Abschnitte hintereinander teilen sich einen Abstand; nach einem farbigen Block bleibt der volle Innenabstand, sonst klebt die Überschrift an der Kante. */
.section.theme-light + .section.theme-light { padding-top: 0; }
.theme-gray { background: var(--sand); }
.theme-dark { background: var(--dark); color: var(--on-dark); }
.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4 { color: var(--on-dark); }
.theme-dark .lead, .theme-dark .muted, .theme-dark .prose { color: var(--on-dark-muted); }
.theme-dark .eyebrow { color: var(--accent); }
.theme-dark .btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--on-dark); }
.theme-dark .btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.theme-dark a { color: var(--accent); }
.theme-accent { background: var(--accent-tint); }
.theme-accent .eyebrow { color: var(--accent-ink); }

.section-header { max-width: 62ch; margin-bottom: 2.6rem; }
.section-header .lead { margin-bottom: 0; }
.section-header .prose { margin-top: 1rem; }

/* Bühne */
.section-hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); overflow-x: clip; } /* das Zifferblatt ist größer als sein Rahmen – nie waagerecht scrollen */
.section-hero.theme-dark { background: var(--dark); }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero-text-only { grid-template-columns: 1fr; }
.hero-text .lead { font-size: 1.2rem; }
.hero-image { position: relative; }
.hero-frame { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); background: var(--sand); }
/* Illustrationen (SVG) stehen frei vor dem Zifferblatt – ohne Rahmen, ohne Zuschnitt. */
.hero-frame:has(img[src$=".svg"]) { aspect-ratio: auto; overflow: visible; border-radius: 0; box-shadow: none; background: none; }
.hero-frame:has(img[src$=".svg"]) img { height: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(14, 94, 111, 0.16)); }
.hero-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Bildausschnitt aus der Medienablage: Schwerpunkt (--fx/--fy) bleibt beim Zuschneiden sichtbar, --zoom vergrößert um ihn herum. */
.hero-frame img, .split-frame img, .product-image img, .price-image img, .gallery-open img, .slide img, .frame-preview img {
    object-position: var(--fx, 50%) var(--fy, 50%);
    transform: scale(var(--zoom, 1));
    transform-origin: var(--fx, 50%) var(--fy, 50%);
}
/* Zifferblatt aus dem Zeitwerk-Zeichen hinter dem Bild – dreht sich einmal sehr langsam, wer Bewegung abgeschaltet hat, sieht es ruhig. */
.hero-dial { position: absolute; z-index: 0; left: 50%; top: 50%; width: 112%; transform: translate(-50%, -50%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .hero-dial { animation: dial-in 1.4s ease-out both; } }
@keyframes dial-in { from { opacity: 0; transform: translate(-50%, -50%) rotate(-30deg) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); } }
.hero .checklist { margin-top: 1rem; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-image { max-width: 440px; margin-top: 1rem; } }

/* Text mit Bild */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.split.image-left .split-image { order: -1; }
.split-frame { border-radius: 28px; box-shadow: var(--shadow); width: 100%; overflow: hidden; }
.split-frame img { display: block; width: 100%; height: auto; }
.split-frame:has(img[src$=".svg"]) { box-shadow: none; border-radius: 0; max-width: 480px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(14, 94, 111, 0.14)); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.image-left .split-image { order: 0; } .split-frame { max-width: 480px; } }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-highlight { border-color: var(--accent); }
.card-icon { width: 64px; height: 64px; margin-bottom: 1rem; display: grid; place-items: center; border-radius: 16px; background: var(--accent-tint); }
.card-icon img { width: 40px; height: 40px; object-fit: contain; }
.card h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.card-text { color: var(--text-soft); flex: 1; font-size: 0.98rem; }
.card-text p:last-child { margin-bottom: 0; }
.card-link { margin-top: 1rem; font-weight: 700; }
.theme-dark .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.theme-dark .card-text { color: var(--on-dark-muted); }

/* Schritte – die Reihenfolge ist Inhalt (Kennenlernen → Plan → Training) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.step { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--line); }
.theme-dark .step { border-top-color: rgba(255, 255, 255, 0.18); }
.step-number { position: absolute; top: -1.15rem; left: 0; display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.step h3 { margin-bottom: 0.3rem; }
.step-text { color: var(--text-soft); }
.theme-dark .step-text { color: var(--on-dark-muted); }
.step-text p:last-child { margin-bottom: 0; }

/* Preise */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; }
.price-highlight { border: 2px solid var(--accent); box-shadow: var(--shadow); }
/* Bild der Preisvariante: randlos oben in der Karte, Ausschnitt aus der Medienablage */
.price-image { margin: -2rem -1.75rem 1.4rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; }
.price-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.price-card .badge { z-index: 1; }
.price-image + .badge { top: 0.9rem; }
.price-selected { outline: 3px solid var(--brand); outline-offset: 2px; }
.badge { position: absolute; top: -0.9rem; left: 1.5rem; padding: 0.25rem 0.8rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.price { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--brand); margin: 0.25rem 0 0; font-variant-numeric: tabular-nums; }
.price-unit { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.75rem; }
.price-text { color: var(--text-soft); }
.price-card .checklist { flex: 1; margin: 0.5rem 0 1.5rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: 0.45rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181D' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat; }
.theme-dark .price-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.theme-dark .price { color: var(--on-dark); }

/* Fragen */
.faq-item { border-bottom: 1px solid var(--line); padding: 0.2rem 0; }
.faq-item summary { cursor: pointer; padding: 1rem 2.2rem 1rem 0; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; color: var(--brand); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 1.7rem; color: var(--accent-ink); }
.faq-item[open] summary::after { content: "–"; }
.faq-text { padding: 0 0 1.1rem; color: var(--text-soft); font-size: 0.98rem; }
.faq-text p:last-child { margin-bottom: 0; }

/* Handlungsaufruf */
.cta { text-align: center; }
.cta .lead, .cta .prose { margin-inline: auto; }
.cta .actions { justify-content: center; }

/* Schlagwörter */
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tags li > * { display: inline-block; padding: 0.5rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--brand); font-weight: 500; }
.tags li a:hover { border-color: var(--accent); text-decoration: none; }
.theme-dark .tags li > * { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: var(--on-dark); }

/* Zitate / Leitsätze */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.quote { margin: 0; padding: 1.5rem 1.5rem 1.5rem 1.75rem; border-left: 4px solid var(--accent); background: rgba(255, 255, 255, 0.06); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { margin: 0; font-family: var(--script); font-size: 1.25rem; line-height: 1.4; font-style: italic; color: var(--accent); }
.quote footer { margin-top: 0.5rem; font-size: 0.92rem; color: var(--on-dark-muted); }
.theme-light .quote, .theme-gray .quote { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.theme-light .quote p, .theme-gray .quote p { color: var(--accent-ink); }
.theme-light .quote footer, .theme-gray .quote footer { color: var(--muted); }

/* Angebote */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.product-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.product-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: 0.3rem; }
.product-body p { color: var(--text-soft); font-size: 0.98rem; }
.product-price { margin-top: auto; padding-top: 0.9rem; border-top: 1px dashed var(--line); color: var(--brand); font-variant-numeric: tabular-nums; }
.product-price strong { font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.product-price span { color: var(--muted); font-size: 0.88rem; }
.product-body .card-link { margin-top: 0.6rem; }

/* Fließtext */
.prose { max-width: 62ch; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h1 + *, .prose h2 + *, .prose h3 + * { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.3rem; }
.prose blockquote { margin: 1.5rem 0; padding: 0.5rem 1.25rem; border-left: 4px solid var(--accent); color: var(--text-soft); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; }
.prose code { background: var(--sand); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
.prose img { border-radius: var(--radius); }
.prose-inline p { display: inline; margin: 0; }

/* ---------- Formular ---------- */
.form { display: flex; flex-direction: column; gap: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 4vw, 2.2rem); }
.form-summary { padding: 0.9rem 1.1rem; border-radius: 12px; background: var(--accent-tint); border: 1px solid rgba(149, 193, 30, 0.5); color: var(--brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; font-weight: 700; color: var(--brand); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form textarea {
    font: inherit; font-weight: 400; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--text); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(149, 193, 30, 0.3); }
.form textarea { resize: vertical; min-height: 10rem; }
.form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 1rem 0.5rem; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.form legend { font-size: 0.9rem; font-weight: 700; padding: 0 0.4rem; color: var(--brand); }
.check { flex-direction: row !important; align-items: flex-start; gap: 0.6rem !important; font-weight: 400 !important; color: var(--text) !important; }
.check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent-ink); flex-shrink: 0; }
.form-consent { font-size: 0.86rem; color: var(--muted) !important; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 0.75rem 1rem; border-radius: 10px; background: #fdecec; color: #a12622; border: 1px solid #f5b5b1; }
.form .btn { align-self: flex-start; }
.form-success { padding: 2rem; border-radius: 20px; background: var(--accent-tint); border: 1px solid rgba(149, 193, 30, 0.5); color: var(--brand); }
.form-success h3 { color: var(--brand); }
.form-success p:last-child { margin-bottom: 0; }

/* ---------- Fuß ---------- */
.footer { background: var(--dark); color: var(--on-dark-muted); padding: 3.5rem 0 1.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--accent); margin-bottom: 0.9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.4rem; }
.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--white); }
.footer-logo { height: 56px; width: auto; margin-bottom: 1rem; background: var(--white); padding: 0.4rem 0.7rem; border-radius: 10px; }
.social { display: flex; gap: 1rem; }
.footer-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-top: 0.5rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.88rem; }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer .muted { color: #a08f7e; }

/* ---------- Fehlerseite ---------- */
.error-page { max-width: 40rem; margin: 6rem auto; padding: 0 1.25rem; text-align: center; }

/* ---------- Verwaltung (MudBlazor) ---------- */
.admin .mud-main-content { background: #F4F5F7; min-height: 100vh; }
.admin-page-title { margin-bottom: 1.25rem; }
/* WYSIWYG-Editor der Verwaltung */
.rte { border: 1px solid rgba(0, 0, 0, 0.24); border-radius: 4px; background: #fff; }
.rte:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.rte-label { display: block; padding: 0.35rem 0.85rem 0; }
.rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem; padding: 0.25rem 0.5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.rte-sep { width: 1px; height: 1.4rem; margin: 0 0.3rem; background: rgba(0, 0, 0, 0.12); }
.rte-editor { padding: 0.75rem 0.9rem; outline: none; font-family: inherit; font-size: 1rem; line-height: 1.55; color: var(--text, #1f1a15); }
.rte-editor:empty::before { content: "Hier schreiben …"; color: rgba(0, 0, 0, 0.4); }
.rte-editor h3 { font-size: 1.15rem; margin: 0.8rem 0 0.3rem; }
.rte-editor p { margin: 0 0 0.6rem; }
.rte-editor ul, .rte-editor ol { margin: 0 0 0.6rem 1.4rem; }
.rte-editor a { color: var(--brand); text-decoration: underline; }
.rte-helper { display: block; padding: 0.25rem 0.85rem 0.4rem; }
.admin-section-list .mud-list-item { border-radius: 8px; }
.admin-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.admin-media-tile { position: relative; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; aspect-ratio: 1; display: grid; place-items: center; }
.admin-media-tile img { width: 100%; height: 100%; object-fit: contain; padding: 0.4rem; }
/* Bildausschnitt-Editor: fester Rahmen, Bild wird gezogen, Markierung zeigt den Schwerpunkt */
.frame-preview { position: relative; overflow: hidden; margin: 0 auto; max-width: 100%; background: var(--sand); border-radius: 12px; cursor: grab; touch-action: none; user-select: none; box-shadow: var(--shadow); }
.frame-preview.dragging { cursor: grabbing; }
.frame-preview.shape-hero { border-radius: 50% 50% 28px 28px / 46% 46% 28px 28px; }
.frame-preview img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.frame-focus { position: absolute; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(0, 0, 0, 0.55); transform: translate(-50%, -50%); pointer-events: none; }
.admin-media-tile.selected { border-color: var(--accent-ink); }
.admin-media-tile .name { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.2rem 0.4rem; font-size: 0.7rem; background: rgba(10, 68, 80, 0.8); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-preview { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; background: var(--paper); }
.admin-secret { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: 0.08em; word-break: break-all; padding: 0.75rem 1rem; background: #F4F5F7; border-radius: 8px; }
.admin-qr { display: flex; justify-content: center; }
.admin-qr svg { width: 200px; height: 200px; }
.signin-stage { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: linear-gradient(135deg, #0E5E6F 0%, #0A4450 100%); }
.signin-card { width: 100%; max-width: 27rem; }
.signin-card .signin-logo { height: 48px; width: auto; }

/* ---------- Bildergalerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 0.9rem; }
.gallery-item { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--sand); }
.gallery-item:nth-child(5n + 1) { grid-row: span 2; }
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover .gallery-open img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 0.9rem 0.7rem; font-size: 0.88rem; color: var(--on-dark); background: linear-gradient(180deg, transparent, rgba(10, 68, 80, 0.8)); pointer-events: none; }
/* Anfrage-Fenster auf der Angebotsseite (Knopf einer Preisvariante) */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(27, 17, 10, 0.72); overflow-y: auto; outline: none; }
.modal-card { position: relative; width: min(760px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--paper); border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); }
.modal-card h2 { margin-bottom: 1rem; padding-right: 2.5rem; }
.modal-card .form { padding: 0; border: 0; background: transparent; }
.modal-close { position: absolute; top: 0.9rem; right: 0.9rem; border: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sand); color: var(--brand); font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { background: var(--accent); color: var(--on-accent); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(27, 17, 10, 0.92); cursor: zoom-out; }
.lightbox-figure { margin: 0; max-width: min(1200px, 96vw); cursor: default; display: grid; gap: 0.6rem; justify-items: center; }
.lightbox-figure img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-figure figcaption { display: flex; gap: 1.2rem; align-items: baseline; color: var(--on-dark); font-size: 0.95rem; text-align: center; }
.lightbox-count { color: var(--on-dark-muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; background: rgba(255, 255, 255, 0.1); color: var(--on-dark); font-size: 2rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); color: var(--on-accent); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .gallery-item:nth-child(5n + 1) { grid-row: auto; } .lightbox-nav { top: auto; bottom: 1rem; transform: none; } }

/* ---------- Bilder-Slider ---------- */
.slider { position: relative; border-radius: 20px; overflow: hidden; background: var(--sand); box-shadow: var(--shadow); }
.slider-track { display: flex; transition: transform 0.6s ease; }
@media (prefers-reduced-motion: reduce) { .slider-track { transition: none; } }
.slide { flex: 0 0 100%; margin: 0; position: relative; aspect-ratio: 16 / 9; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.5rem 1rem; color: var(--on-dark); font-family: var(--display); font-size: 1.35rem; background: linear-gradient(180deg, transparent, rgba(10, 68, 80, 0.8)); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: rgba(255, 255, 255, 0.85); color: var(--brand); font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.slider-nav:hover { background: var(--accent); color: var(--on-accent); }
.slider-prev { left: 0.9rem; }
.slider-next { right: 0.9rem; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 0.6rem; z-index: 2; display: flex; justify-content: center; gap: 0.4rem; }
.slider-dots button { width: 0.65rem; height: 0.65rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.55); cursor: pointer; }
.slider-dots button.active { background: var(--accent); }
@media (max-width: 640px) { .slide { aspect-ratio: 4 / 3; } .slide figcaption { font-size: 1.05rem; padding: 1.8rem 1rem 1.4rem; } }

/* ---------- Verwaltung: Sortieren per Ziehen und Ablegen ---------- */
.admin-drag-list { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-drag-row { display: flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.4rem; border-radius: 8px; border: 1px solid transparent; cursor: grab; user-select: none; }
.admin-drag-row:hover { background: rgba(14, 94, 111, 0.05); }
.admin-drag-row.selected { background: rgba(149, 193, 30, 0.18); border-color: rgba(149, 193, 30, 0.6); }
.admin-drag-row.dragging, .admin-drag-panel.dragging { opacity: 0.4; }
.admin-drag-row.drag-over, .admin-drag-panel.drag-over { box-shadow: inset 0 3px 0 var(--accent); }
.admin-drag-row:active { cursor: grabbing; }
.admin-drag-handle { color: #a08f7e; cursor: grab; font-size: 1.15rem; line-height: 1; padding: 0 0.15rem; user-select: none; }
.admin-drag-handle:active { cursor: grabbing; }
.admin-drag-panel { border-radius: 8px; }

/* ---------- Verwaltung: Statistik-Diagramm ---------- */

/* Erste Abschnittsüberschrift ist die H1 der Seite, sieht aber aus wie eine H2 */
h1.as-h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }

/* Nach dem Seitenwechsel bekommt die H1 den Fokus (für Vorleseprogramme) – der Rahmen dazu soll nicht sichtbar sein. */
h1:focus, h1:focus-visible { outline: none; }

/* Knöpfe in dunklen Abschnitten: die Link-Farbe (grün) darf die Knopfschrift nicht überschreiben – sonst grün auf grün. */
.theme-dark a.btn-accent { color: var(--on-accent); }
.theme-dark a.btn-primary { background: var(--on-dark); color: var(--brand); }
.theme-dark a.btn-primary:hover { background: var(--white); }
.admin-qr { width: 132px; height: 132px; flex: none; background: #fff; border-radius: 8px; }
.admin-qr svg { width: 100%; height: 100%; display: block; }

/* Statistik in der Verwaltung */
.stats-bars-plot { display: flex; align-items: flex-end; gap: 3px; height: 220px; border-bottom: 1px solid #D6E2E5; }
.stats-bars-small .stats-bars-plot { height: 110px; }
.stats-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.stats-bar-fill { display: block; width: 100%; min-height: 2px; background: #F0A030; border-radius: 3px 3px 0 0; transition: background .15s; }
.stats-bar.clickable { cursor: pointer; }
.stats-bar.clickable:hover .stats-bar-fill { background: #0E5E6F; }
.stats-bar-value { font-size: 0.68rem; color: #6B7078; line-height: 1.4; }
.stats-bars-axis { display: flex; gap: 3px; font-size: 0.7rem; color: #6B7078; margin-top: 0.3rem; }
.stats-bars-axis span { flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: visible; }
.stats-row { position: relative; display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0.5rem; font-size: 0.875rem; border-radius: 4px; margin-bottom: 2px; }
.stats-row-bar { position: absolute; inset: 0 auto 0 0; background: #E3EEF0; border-radius: 4px; z-index: 0; }
.stats-row-name, .stats-row-count { position: relative; z-index: 1; }
.stats-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-row-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.stats-trails { display: flex; flex-direction: column; gap: 0.5rem; max-height: 640px; overflow-y: auto; }
.stats-trail { border: 1px solid #E3EEF0; border-radius: 8px; padding: 0.5rem 0.75rem; }
.stats-trail-head { display: flex; gap: 0.75rem; font-size: 0.85rem; margin-bottom: 0.3rem; }
.stats-trail-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; font-size: 0.85rem; }
.stats-trail-steps .step { background: #F4F5F7; border-radius: 999px; padding: 0.1rem 0.6rem; }
.stats-trail-steps .step-inquiry { background: #2E7D32; color: #fff; font-weight: 600; }
.stats-trail-steps .step-demo { background: #F0A030; color: #16181D; font-weight: 600; }
.stats-trail-steps .arrow { color: #6B7078; }
.stats-trail-duration { margin-left: auto; font-variant-numeric: tabular-nums; color: #0E5E6F; font-weight: 600; }

/* === Produkthilfe (Abschnitt ProductHelp) ===
   Die Einträge nutzen die FAQ-Darstellung; dazu kommen zwei kleine Marken für Anleitungen und
   Vorhaben. Dezent, weil die Frage die Hauptsache ist und die Art nur eine Einordnung. */
.help-topic {
    margin: 2rem 0 .75rem;
    font-size: 1.05rem;
    letter-spacing: .01em;
}

.help-topic:first-child {
    margin-top: 0;
}

.help-kind,
.help-expected {
    margin-left: .5rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 500;
    vertical-align: middle;
    white-space: nowrap;
}

.help-kind {
    background: var(--sand);
    color: var(--muted);
}

/* Ein Vorhaben ist eine Zusage auf Zeit – der Termin darf auffallen, aber nicht drängen.
   Deshalb der Amber-Ton des Hauses und nicht Rot: Es ist ein Hinweis, keine Warnung. */
.help-expected {
    background: var(--accent-tint);
    color: var(--accent-ink);
}
.stats-daynav { display: flex; align-items: center; gap: 0.25rem; flex: none; }
.stats-daynav-field { width: 170px; flex: none; }
/* Tabellen im Fließtext (z. B. Handbuch) */
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--brand); font-weight: 600; background: var(--sand); }
@media (max-width: 720px) { .prose table { display: block; overflow-x: auto; } }
/* Text unter den Preiskarten (Paketseite) */
.pricing-note { max-width: 760px; margin: 1.75rem auto 0; text-align: center; color: var(--text-soft); }
.pricing-note ul { text-align: left; display: inline-block; }

/* --- Nutzungsanalyse: Einwilligungshinweis --------------------------------- */
/* Mitten im Bild, aber ohne Abdunkeln – die Seite bleibt benutzbar. */
.nutzung {
    position: fixed; z-index: 2000; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(28rem, calc(100vw - 1.5rem));
    background: #fff; color: #1d2327; border-radius: 14px; padding: 1.25rem 1.35rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28); font-size: .95rem; line-height: 1.45;
    animation: nutzung-ein .25s ease-out;
}
@keyframes nutzung-ein { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) { .nutzung { animation: none; } }
.nutzung[hidden] { display: none; }
.nutzung p { margin: 0 0 .5rem; }
.nutzung b { color: var(--brand); }
.nutzung details { margin-bottom: .75rem; font-size: .85rem; }
.nutzung summary { cursor: pointer; color: var(--brand); }
.nutzung details p { margin-top: .4rem; opacity: .85; }
.nutzung-knoepfe { display: flex; gap: .5rem; }
/* Beide Knöpfe gleich gewichtet – Ablehnen ist so leicht wie Zustimmen. */
.nutzung-knoepfe button {
    flex: 1; padding: .55rem .9rem; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600;
    border: 2px solid var(--brand); background: #fff; color: var(--brand);
}
.nutzung-knoepfe button:hover { background: var(--brand); color: #fff; }

