/* ------------------------------------------------------------------
   Hundeschule Anja Graap – öffentlicher Auftritt
   Farben kommen aus den Einstellungen (App.razor setzt --brand/--accent/--dark).
   Schriften liegen selbst gehostet unter /fonts – kein Google-Abruf, kein Cookie-Banner.
   ------------------------------------------------------------------ */
@font-face { font-family: "Catamaran"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/catamaran.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/dancing-script.woff2") format("woff2"); }

:root {
    --brand: #422918;
    --accent: #95c11e;
    --dark: #422918;
    --accent-ink: #6b9312;          /* Grün, dunkel genug für Text auf hellem Grund */
    --accent-tint: #eef5d8;
    --accent-hover: #a6d42a;
    --paper: #fbf9f4;
    --sand: #f1ece1;
    --white: #ffffff;
    --text: #2b1b10;
    --text-soft: #6b5340;
    --muted: #7a6a5c;
    --line: #ded5c5;
    --on-dark: #f6f1e8;
    --on-dark-muted: #cdbfae;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(66, 41, 24, 0.12);
    --shadow-lg: 0 22px 50px rgba(66, 41, 24, 0.18);
    --container: 1120px;
    --font: "Catamaran", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --script: "Dancing Script", "Brush Script MT", cursive;
}

*, *::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(--accent-ink); 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.1; margin: 0 0 0.5em; color: var(--brand); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.45rem; }
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; }
.topbar-links a:last-child { margin-right: 0; }
.topbar a:hover { color: var(--white); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 244, 0.96); 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: 700; font-size: 1.5rem; color: var(--brand); }

.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; }

@media (max-width: 960px) {
    .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: #1f2a05; }
.btn-accent:hover { background: var(--accent-hover); color: #1f2a05; }
.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); }
.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 / 4.3; overflow: hidden; border-radius: 50% 50% 28px 28px / 46% 46% 28px 28px; box-shadow: var(--shadow); background: var(--sand); }
.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%);
}
/* Der Pinselbogen aus dem Logo liegt IM Bild, im oberen Bereich: Scheitel knapp unter dem oberen Rand, Enden an den Seiten. */
.hero-arc { position: absolute; z-index: 2; left: 0; top: 0; width: 100%; pointer-events: none; }
.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; max-width: 320px; margin-inline: auto; }
@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.35rem; }
.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: #1f2a05; 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: #1f2a05; 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='%231f2a05' 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.7rem; line-height: 1.2; 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; }

/* Termine aus dem Buchungskalender */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 92px 1fr auto; gap: 1.2rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.theme-dark .events, .theme-dark .event { border-color: rgba(255, 255, 255, 0.16); }
.event-date { font-family: var(--display); font-weight: 700; color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.event-date b { display: block; font-size: 2rem; }
.event-date span { display: block; margin-top: 0.3rem; font-family: var(--font); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.theme-dark .event-date { color: var(--on-dark); }
.event-kind { display: inline-block; margin-bottom: 0.25rem; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.event-body h3 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.event-body p { margin: 0; font-size: 0.95rem; color: var(--text-soft); }
.theme-dark .event-body p { color: var(--on-dark-muted); }
.event-link { white-space: nowrap; font-weight: 700; }
@media (max-width: 720px) { .event { grid-template-columns: 76px 1fr; } .event-link { grid-column: 2; } }

/* Eingebetteter Buchungskalender (lädt erst nach Klick) */
.booking { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.booking-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); background: var(--sand); }
.booking-tabs button { font: inherit; font-weight: 600; color: var(--brand); background: transparent; border: 0; border-radius: 999px; padding: 0.45rem 0.95rem; cursor: pointer; }
.booking-tabs button:hover { background: rgba(66, 41, 24, 0.08); }
.booking-tabs button.active { background: var(--brand); color: var(--on-dark); }
.booking-open { margin-left: auto; font-size: 0.9rem; font-weight: 600; }
.booking-placeholder { padding: clamp(1.5rem, 5vw, 3rem); max-width: 60ch; }
.booking-placeholder p { color: var(--text-soft); }
.booking-title { font-family: var(--display); font-size: 1.6rem; color: var(--brand); margin-bottom: 0.4rem; }
.booking-frame { display: block; width: 100%; height: min(78vh, 900px); border: 0; background: var(--white); }
.booking-note { margin: 0; padding: 0.7rem 1rem; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 720px) { .booking-open { margin-left: 0; width: 100%; padding-top: 0.3rem; } }

/* 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: #f6f2ea; 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(66, 41, 24, 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: #f6f2ea; 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, #422918 0%, #2e1c10 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(43, 27, 16, 0.75)); 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: #1f2a05; }
.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: #1f2a05; }
.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(43, 27, 16, 0.75)); }
.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(251, 249, 244, 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: #1f2a05; }
.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(66, 41, 24, 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 ---------- */
.admin-chart svg { display: block; width: 100%; height: 240px; }
.admin-chart-axis { display: flex; font-size: 0.72rem; color: #7a6a5c; margin-top: 0.3rem; }
.admin-chart-axis span { flex: 1; text-align: center; white-space: nowrap; overflow: visible; }
.admin-chart-legend { margin-top: 0.6rem; font-size: 0.82rem; color: #7a6a5c; display: flex; align-items: center; gap: 0.4rem; }
.admin-chart-legend .bar { display: inline-block; width: 14px; height: 10px; background: #95c11e; border-radius: 2px; }
.admin-chart-legend .line { display: inline-block; width: 18px; height: 2px; background: #422918; margin-left: 0.6rem; }

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

/* 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: #1f2a05; }
.theme-dark a.btn-primary { background: var(--on-dark); color: var(--brand); }
.theme-dark a.btn-primary:hover { background: var(--white); }
