/* ========================================================================
   WALDSERVICE24 — STYLE.CSS (konsolidiert: Homepage-Redesign + Sub-Pages)
   Design: Forest + Copper (DSGVO-konforme self-hosted Fonts)
   ======================================================================== */

/* ========================================================================
   FONTS — self-hosted via @font-face (keine Google-Fonts-CDN-Requests)
   ======================================================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/InterVariable.woff2') format('woff2-variations');
}
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/InterVariable-Italic.woff2') format('woff2-variations');
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/assets/fonts/Fraunces.woff2') format('woff2-variations');
}
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url('/assets/fonts/Fraunces-Italic.woff2') format('woff2-variations');
}

/* ========================================================================
   DESIGN TOKENS
   ======================================================================== */
:root {
    /* Farbpalette — Forest & Copper */
    --forest-900: #0d2218;
    --forest-800: #142e21;
    --forest-700: #1f4030;
    --forest-600: #2a5542;
    --forest-100: #e8f0ea;
    --forest-50:  #f4f8f5;

    --copper-700: #8c6325;
    --copper-500: #c89550;
    --copper-400: #e6b46e;
    --copper-100: #f7eedc;
    --copper-50:  #fcf8ef;

    --danger-900: #5a1a0f;
    --danger-700: #a63420;
    --danger-500: #c94a33;
    --danger-100: #fbe5de;
    --danger-50:  #fef5f1;

    --sand-100:   #f5f1e8;
    --sand-200:   #ebe5d6;

    --ink-900:    #1a1a18;
    --ink-700:    #3d3d38;
    --ink-500:    #6b6b62;
    --ink-300:    #a8a89e;
    --ink-100:    #e8e6df;

    --white:      #ffffff;

    /* Typografie */
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Fraunces', Georgia, serif;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Schatten */
    --shadow-sm: 0 1px 2px rgba(13, 34, 24, 0.06);
    --shadow-md: 0 4px 12px rgba(13, 34, 24, 0.08);
    --shadow-lg: 0 12px 32px rgba(13, 34, 24, 0.12);

    /* Container */
    --container: 1200px;

    /* Backwards-Kompat-Aliases fuer Sub-Pages (damit alte Klassen weiterfunktionieren) */
    --green-deep: var(--forest-700);
    --green-mid:  var(--forest-600);
    --green-soft: var(--forest-100);
    --red:        var(--danger-700);
    --red-dark:   var(--danger-900);
    --sand:       var(--sand-100);
    --ink:        var(--ink-900);
    --ink-soft:   var(--ink-500);
}

/* ========================================================================
   RESET & BASE
   ======================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Handy: seitliches Rubber-Banding/Wackeln unterbinden. Überbreite Deko-Elemente
   (Hero-Silhouetten etc.) auf schmalen Viewports abschneiden — clip statt hidden,
   damit der sticky Header und vertikales Scrollen intakt bleiben. */
@media (max-width: 768px) {
    html, body { overflow-x: clip; }
}
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-900);
    background: var(--sand-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================================================
   TOPBAR — Notdienst (Homepage)
   ======================================================================== */
.topbar {
    background: var(--danger-700);
    color: var(--danger-50);
    font-size: 13px;
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 10px 24px;
    max-width: var(--container); margin: 0 auto;
}
.topbar-msg { display: flex; align-items: center; gap: 10px; }
.topbar-msg strong { font-weight: 500; }
.topbar-msg .sep { opacity: 0.85; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-phone {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 500; color: inherit;
}
.topbar-btn {
    background: var(--danger-50); color: var(--danger-900);
    padding: 5px 12px; border-radius: var(--radius-sm);
    font-weight: 500; font-size: 12px;
    transition: background 0.15s;
}
.topbar-btn:hover { background: var(--white); }

/* ========================================================================
   HEADER — Navigation (Homepage + Sub-Pages)
   ======================================================================== */
.site-header,
.header {
    background: var(--white);
    border-bottom: 1px solid var(--ink-100);
}
.header { position: sticky; top: 0; z-index: 50; }
/* Minimal-Header der Auth-/Sub-Seiten (login/register/account): eigene Leiste mit Padding (kein .header-inner). */
.site-header { display: flex; align-items: center; padding: 16px 24px; }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    max-width: var(--container); margin: 0 auto;
}
.logo, .brand {
    display: flex; align-items: center; gap: 8px;
    font-size: 20px; font-weight: 600;
    color: var(--forest-700);
    letter-spacing: -0.02em;
    text-decoration: none;
}
.logo-accent, .brand .accent { color: var(--danger-700); }

.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a {
    font-size: 14px; font-weight: 500;
    color: var(--ink-700);
    display: inline-flex; align-items: center; gap: 6px;
    transition: color 0.15s;
}
.nav a:hover { color: var(--forest-700); }
.nav a.emergency { color: var(--danger-700); }
.nav a.emergency:hover { color: var(--danger-500); }

/* „Mehr"-Dropdown — nur Mobil sichtbar; Desktop zeigt alle Punkte inline (.nav-sec) */
.nav-more { position: relative; display: none; margin: 0; border: 0; padding: 0; }
.nav-more > summary { list-style: none; cursor: pointer; color: var(--ink-700); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; padding: 0; line-height: 1.2; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::marker { content: ""; }
.nav-more > summary::before { content: none; }
.nav-more[open] > summary { color: var(--forest-700); }
.nav-more-panel {
    position: absolute; top: calc(100% + 10px); right: 0; left: auto;
    background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(13,34,24,.15); padding: 6px;
    display: none; flex-direction: column; min-width: 190px; max-width: 90vw; z-index: 200;
}
.nav-more[open] > .nav-more-panel { display: flex; }
.nav-more-panel a { padding: 9px 12px; border-radius: var(--radius-sm); white-space: nowrap; }
.nav-more-panel a:hover { background: var(--sand-100); color: var(--forest-700); }

/* Icon + Kurzlabel nur Mobil; Desktop zeigt nur das volle Textlabel.
   .nav-Präfix erhöht die Spezifität über die globale .icon-Regel. */
.nav .nav-ico { display: none; }
.nav .nav-abbr { display: none; }
@media (max-width: 900px) {
    .nav .nav-sec { display: none; }
    .nav-more { display: inline-block; }
    .nav .nav-ico { display: inline-block; }
    .nav .nav-full { display: none; }
    .nav .nav-abbr { display: inline; }
    .nav .nav-item { gap: 5px; }
}

/* Notdienst-Link sitzt in .header-actions (neben „Mein Konto") — gleiche Icon-/Label-Logik wie in der Nav. */
.header-actions a.emergency {
    font-size: 14px; font-weight: 500;
    color: var(--danger-700);
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none; white-space: nowrap;
    transition: color 0.15s;
}
.header-actions a.emergency:hover { color: var(--danger-500); }
.header-actions a.emergency .nav-ico  { display: none; }
.header-actions a.emergency .nav-abbr { display: none; }
@media (max-width: 900px) {
    .header-actions a.emergency .nav-ico  { display: inline-block; }
    .header-actions a.emergency .nav-full { display: none; }
    .header-actions a.emergency .nav-abbr { display: inline; }
}

/* Konto-Dropdown im Header */
.acct-menu { position: relative; margin: 0 !important; border: 0 !important; padding: 0 !important; }
.acct-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0 !important; font-weight: 500; }
.acct-menu > summary::-webkit-details-marker { display: none; }
.acct-menu > summary::before { content: none !important; display: none !important; }
.acct-caret { font-size: 10px; }
.acct-dd {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(13,34,24,.15); padding: 6px; min-width: 180px;
    display: flex; flex-direction: column; z-index: 200;
}
.acct-dd a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--ink-700); text-decoration: none; white-space: nowrap; }
.acct-dd a:hover { background: var(--sand-100); color: var(--forest-700); }
/* Burger-Icon im Konto-Menü: nur Handy sichtbar (Desktop/Tablet zeigt „Mein Konto"-Text).
   Höhere Spezifität (.acct-menu .acct-burger) schlägt die globale .icon-Regel. */
.acct-menu .acct-burger { display: none; width: 24px; height: 24px; }
/* Bereichs-Links im Burger-Dropdown — nur Handy (Desktop hat sie in der Nav). */
.acct-nav-mobile { display: none; flex-direction: column; margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid var(--ink-100); }
.acct-nav-mobile a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--forest-800); text-decoration: none; white-space: nowrap; }
.acct-nav-mobile a:hover { background: var(--sand-100); color: var(--forest-700); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Header-Suche (neben den Nav-Punkten) */
.nav-search { position: relative; display: inline-flex; align-items: center; }
.nav-search-ic { position: absolute; left: 10px; color: var(--ink-400); pointer-events: none; }
.nav-search-input {
    width: 168px; padding: 7px 12px 7px 32px;
    border: 1px solid var(--ink-100); border-radius: 999px;
    font-size: 13px; font-family: inherit; background: var(--white); color: var(--ink-700);
    transition: width .2s ease, border-color .15s;
}
.nav-search-input::placeholder { color: var(--ink-400); }
.nav-search-input:focus { outline: none; border-color: var(--forest-700); }
.nav-search-results {
    position: absolute; top: calc(100% + 8px); right: 0; left: auto; min-width: 280px; max-width: 360px;
    background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(13,34,24,.16); padding: 6px; z-index: 300;
    max-height: 60vh; overflow: auto;
}
.nav-search-results a { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none; }
.nav-search-results a:hover { background: var(--sand-100); }
.nav-search-results a strong { font-size: 13.5px; font-weight: 600; color: var(--forest-700); }
.nav-search-results a span { font-size: 11.5px; color: var(--ink-500); }
.nav-search-empty { padding: 10px 12px; color: var(--ink-500); font-size: 13px; }
@media (max-width: 600px) { .nav-search-input { width: 130px; } .nav-search-input:focus { width: 170px; } }
.btn-link {
    font-size: 14px; font-weight: 500; color: var(--ink-700);
    padding: 8px 12px;
}
.btn-primary {
    background: var(--forest-700); color: var(--white);
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500; font-size: 14px;
    transition: background 0.15s, transform 0.1s;
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--forest-600); }
.btn-primary:active { transform: translateY(1px); }

/* Sub-Page fallback: alte site-header mit tagline (login/register/account) */
.site-header .tagline {
    color: var(--ink-500); font-size: 14px; margin-left: auto;
}

/* ========================================================================
   HERO (Homepage)
   ======================================================================== */
/* ========================================================================
   BEREICHS-THEMING — Wald / Baum / Garten
   --brand   = Vollfarbe fuer helle Flaechen (aktive Nav, Buttons auf Weiss)
   --hero-bg = dunkler Hero-Hintergrund (weisse Schrift)
   --accent  = heller Akzent AUF dem dunklen Hero (Eyebrow, h1 em, CTA)
   Gesetzt via <body data-bereich="..."> (siehe ws_bereich() in bootstrap.php)
   ======================================================================== */
body { --brand: var(--forest-700); --hero-bg: var(--forest-700); --accent: var(--copper-400); }
body[data-bereich="wald"]   { --brand: #1f4030; --hero-bg: #1f4030; --accent: #e6b46e; }
body[data-bereich="baum"]   { --brand: #d9772b; --hero-bg: #3a2208; --accent: #f4a25a; }
body[data-bereich="garten"] { --brand: #3e8e3a; --hero-bg: #1c3f1a; --accent: #8fd06a; }
body[data-bereich="event"]  { --brand: #2f6f4f; --hero-bg: #16352a; --accent: #e6b46e; }
body[data-bereich="bildung"]{ --brand: #356b8a; --hero-bg: #14303d; --accent: #f5d23a; }
body[data-bereich="markt"]  { --brand: #7a5a2e; --hero-bg: #241a0d; --accent: #3fb98a; }
body[data-bereich="notfall"]{ --brand: #b3261e; --hero-bg: #3a120e; --accent: #f0a35e; }
body[data-bereich="sachverstaendige"]{ --brand: #46637d; --hero-bg: #16242f; --accent: #e6b46e; }
body[data-bereich="winterdienst"]{ --brand: #2f6f9f; --hero-bg: #15323f; --accent: #cfe8f5; }
body[data-bereich="kids"]   { --brand: #5a9e5f; --hero-bg: #1f4030; --accent: #e6c14e; }

/* Service-Seiten: kompakter Hero (Startseite bleibt groß). Kreise raus — brauchen Höhe. */
body[data-bereich=""]       .hero,
body[data-bereich="wald"]   .hero,
body[data-bereich="baum"]   .hero,
body[data-bereich="garten"] .hero,
body[data-bereich="event"]  .hero,
body[data-bereich="bildung"] .hero,
body[data-bereich="markt"]  .hero,
body[data-bereich="sachverstaendige"] .hero,
body[data-bereich="winterdienst"] .hero,
body[data-bereich="kids"]   .hero,
body[data-bereich="notfall"] .hero { padding: 26px 24px 24px; }

/* Alle Heroes (inkl. Startseite) auf gleiche Höhe bringen + Inhalt vertikal zentrieren */
body[data-bereich=""]       .hero,
body[data-bereich="wald"]   .hero,
body[data-bereich="baum"]   .hero,
body[data-bereich="garten"] .hero,
body[data-bereich="event"]  .hero,
body[data-bereich="bildung"] .hero,
body[data-bereich="markt"]  .hero,
body[data-bereich="sachverstaendige"] .hero,
body[data-bereich="winterdienst"] .hero,
body[data-bereich="notfall"] .hero {
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 768px) {
    body[data-bereich=""]       .hero,
    body[data-bereich="wald"]   .hero,
    body[data-bereich="baum"]   .hero,
    body[data-bereich="garten"] .hero,
    body[data-bereich="event"]  .hero,
    body[data-bereich="bildung"] .hero,
    body[data-bereich="markt"]  .hero,
    body[data-bereich="sachverstaendige"] .hero,
    body[data-bereich="winterdienst"] .hero,
    body[data-bereich="notfall"] .hero { min-height: 280px; }
}
body[data-bereich="wald"]   .hero-circles,
body[data-bereich="baum"]   .hero-circles,
body[data-bereich="garten"] .hero-circles,
body[data-bereich="event"]  .hero-circles,
body[data-bereich="bildung"] .hero-circles,
body[data-bereich="markt"]  .hero-circles,
body[data-bereich="sachverstaendige"] .hero-circles,
body[data-bereich="winterdienst"] .hero-circles,
body[data-bereich="notfall"] .hero-circles { display: none; }

.hero {
    position: relative;
    background: var(--hero-bg);
    color: var(--white);
    padding: 40px 24px 44px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 120%, rgba(230, 180, 110, 0.08), transparent 50%),
        radial-gradient(circle at 80% -20%, rgba(230, 180, 110, 0.05), transparent 50%);
    pointer-events: none;
}
.hero-silhouette {
    position: absolute; inset: 0;
    height: 100%; opacity: 0.32;
    pointer-events: none;
}
.hero-inner {
    position: relative; max-width: 720px; margin: 0 auto;
    text-align: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    padding: 7px 16px; border-radius: 999px;
    margin-bottom: 24px;
    font-size: 12px; color: var(--accent);
    font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.hero-bereiche {
    display: flex; gap: 12px; justify-content: center; align-items: center;
    margin: -12px 0 20px;
    font-family: var(--font-serif); font-style: italic;
    font-size: 15px; color: rgba(255,255,255,.7); font-weight: 400;
    letter-spacing: .02em;
}
.hero-bereiche .sep { color: var(--accent); opacity: .7; }
.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5.5vw, 58px);
    font-weight: 500; line-height: 1.05;
    margin-bottom: 24px;
}
.hero h1 em {
    font-style: italic; font-weight: 400; color: var(--accent);
}
/* Einheitlicher Abstand Titel → Buttons auf allen Heroes (inkl. Startseite) */
body[data-bereich=""] .hero h1,
body[data-bereich="wald"] .hero h1,
body[data-bereich="baum"] .hero h1,
body[data-bereich="garten"] .hero h1,
body[data-bereich="event"] .hero h1,
body[data-bereich="bildung"] .hero h1,
body[data-bereich="markt"] .hero h1,
body[data-bereich="sachverstaendige"] .hero h1,
body[data-bereich="winterdienst"] .hero h1,
body[data-bereich="notfall"] .hero h1 { margin-bottom: 40px; }
.hero-lead {
    font-size: 18px; line-height: 1.6;
    color: rgba(255,255,255,0.82);
    margin-bottom: 40px; max-width: 560px;
    margin-left: auto; margin-right: auto;
}
.hero-ctas {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 40px;
}
.btn-cta-primary {
    background: var(--accent); color: var(--forest-900);
    padding: 14px 26px; border-radius: var(--radius-md);
    font-weight: 600; font-size: 15px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(230, 180, 110, 0.3);
    border: none; cursor: pointer;
}
.btn-cta-primary:hover { background: color-mix(in srgb, var(--accent) 82%, #000); color: var(--forest-900); }
.btn-cta-primary:active { transform: translateY(1px); }
.btn-cta-secondary {
    background: transparent; color: var(--white);
    padding: 14px 26px; border-radius: var(--radius-md);
    font-weight: 500; font-size: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.15s, border-color 0.15s;
}
.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}
/* Hero-CTAs einheitlich + gleiche Breite (v. a. mobil) */
.hero-ctas .btn-cta-primary, .hero-ctas .btn-cta-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
@media (max-width: 768px) {
    .hero-ctas { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 28px; }
    .hero-ctas .btn-cta-primary, .hero-ctas .btn-cta-secondary { width: 100%; max-width: 100%; }
    /* kompaktere CTAs auf dem Handy (Hero + Kunde/Unternehmen-Boxen) */
    .hero-ctas .btn-cta-primary, .hero-ctas .btn-cta-secondary,
    .cta-row .btn-cta-primary, .cta-row .btn-cta-secondary {
        padding: 10px 16px; font-size: 14px; border-radius: 10px;
    }
    /* Langes Label soll umbrechen statt über den Rand zu laufen */
    .hero-ctas .btn-cta-primary, .hero-ctas .btn-cta-secondary { white-space: normal; overflow-wrap: anywhere; text-align: center; }
    /* Handy: Eyebrow „5 Bereiche · 1 Plattform" nur auf der Startseite aus.
       Die Bereichs-Chip-Zeile (Kronpflege · Spezialfällungen · … bzw. Waldarbeit · …)
       auf ALLEN Hero-Seiten ausblenden — verhindert horizontales Überlaufen. */
    .hero-eyebrow { display: none; }                                         /* Eyebrow überall aus (kompakt ~280, Service = wie Startseite) */
    .hero-bereiche { display: none; }                                        /* Chip-Zeile überall aus */
    /* Service-/Bereich-Seiten (nicht Startseite): nur „100% kostenlos für Suchende" behalten,
       die anderen 2 Trust-Badges + Lexikon-Button (3. CTA) + Lead-Absatz aus. Trennlinie über
       dem Badge raus (sonst steht sie bei nur einem Badge verloren da). */
    body:not([data-bereich=""]) .hero-trust-item:nth-child(2),
    body:not([data-bereich=""]) .hero-trust-item:nth-child(3) { display: none; }
    body:not([data-bereich=""]) .hero-ctas a:nth-child(2),
    body:not([data-bereich=""]) .hero-ctas a:nth-child(3) { display: none; }   /* nur „Anfrage stellen" bleibt — „…in der Nähe" macht der Such-Button */
    body:not([data-bereich=""]) .hero-lead { display: none; }   /* Lead-Absatz (Winterdienst/SV) auf Handy aus */
    /* Handy (nur Startseite): nur Haupt-CTA „Anfrage stellen" zeigen —
       sekundäre Buttons (Organisationen, Nachhaltigkeit) ausblenden */
    body[data-bereich=""] .hero-ctas .btn-cta-secondary { display: none; }
    /* Handy (nur Startseite): von den Trust-Badges nur „100% kostenlos für Suchende"
       zeigen — „Regional & Überregional" + „Unverbindlich" ausblenden */
    body[data-bereich=""] .hero-trust-item:nth-child(2),
    body[data-bereich=""] .hero-trust-item:nth-child(3) { display: none; }
    /* Handy: „Anfrage stellen" ganz unten, „100% kostenlos" darüber — auf ALLEN
       Hero-Seiten identisch (Startseite + Service). Nur Reihenfolge.
       `.hero `-Präfix = höhere Spezifität als die Basis-`.hero-trust` (sonst käme
       deren border-top-Trennlinie zurück). */
    .hero .hero-inner { display: flex; flex-direction: column; align-items: center; }
    .hero .hero-ctas  { order: 3; width: 100%; margin-bottom: 0; }
    .hero .hero-trust { order: 2; border-top: none; padding-top: 6px; gap: 14px; margin-bottom: 14px; }
}

.hero-trust {
    display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
    padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 13px; color: rgba(255,255,255,0.75);
}
.hero-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust-item svg { color: #9fd39a; }

/* ------------------------------------------------------------------
   HERO — Animationen: wiegende Silhouette, Sonnen-Glühen, fallende Blätter
   GPU-nur (transform/opacity), respektiert prefers-reduced-motion.
   ------------------------------------------------------------------ */
.hero-glow {
    position: absolute;
    top: -40%; left: -20%;
    width: 80%; aspect-ratio: 1;
    background: radial-gradient(circle,
        rgba(230, 180, 110, 0.14) 0%,
        rgba(230, 180, 110, 0.07) 30%,
        transparent 65%);
    filter: blur(20px);
    pointer-events: none;
    animation: hero-glow-breathe 9s ease-in-out infinite;
}
@keyframes hero-glow-breathe {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1);    opacity: 0.9; }
    50%      { transform: translate3d(30px, 20px, 0) scale(1.08); opacity: 1; }
}

.hero-silhouette .silhouette-back,
.hero-silhouette .silhouette-front {
    will-change: transform;
}
.hero-silhouette .silhouette-back {
    animation: silhouette-sway-back 14s ease-in-out infinite;
}
.hero-silhouette .silhouette-front {
    animation: silhouette-sway-front 11s ease-in-out infinite;
}
@keyframes silhouette-sway-back {
    0%, 100% { transform: translateX(-8px); }
    50%      { transform: translateX(8px); }
}
@keyframes silhouette-sway-front {
    0%, 100% { transform: translateX(6px); }
    50%      { transform: translateX(-6px); }
}

.hero-leaves {
    position: absolute; inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-leaves .leaf {
    position: absolute;
    top: -24px;
    width: 14px; height: 14px;
    opacity: 0;
    will-change: transform, opacity;
    animation-name: leaf-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes leaf-fall {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg);        opacity: 0; }
    8%   { opacity: 0.55; }
    50%  { transform: translate3d(calc(var(--drift) * 0.5), 50vh, 0) rotate(270deg); }
    92%  { opacity: 0.55; }
    100% { transform: translate3d(var(--drift), 110vh, 0) rotate(540deg); opacity: 0; }
}
.hero-leaves .leaf-1 { left:  8%; color: var(--copper-400); animation-duration: 22s; animation-delay:  0s; --drift:  40px; }
.hero-leaves .leaf-2 { left: 22%; color: #9fd39a;           animation-duration: 18s; animation-delay:  4s; --drift: -55px; }
.hero-leaves .leaf-3 { left: 42%; color: var(--copper-400); animation-duration: 26s; animation-delay:  7s; --drift:  65px; }
.hero-leaves .leaf-4 { left: 60%; color: #9fd39a;           animation-duration: 20s; animation-delay: 10s; --drift: -45px; }
.hero-leaves .leaf-5 { left: 78%; color: var(--copper-400); animation-duration: 24s; animation-delay: 13s; --drift:  50px; }
.hero-leaves .leaf-6 { left: 92%; color: #9fd39a;           animation-duration: 19s; animation-delay: 16s; --drift: -60px; }

/* ------------------------------------------------------------------
   HERO — 4 Bild-Frames rechts (spaeter rotierende Bilder)
   ------------------------------------------------------------------ */
.hero-circles {
    position: absolute;
    top: 50%;
    right: 56px;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(2, 120px);
    grid-template-rows: repeat(2, 120px);
    gap: 20px;
    z-index: 2;
    pointer-events: none;
}
.hero-circle {
    width: 120px; height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(230, 180, 110, 0.45);
    box-shadow:
        0 14px 34px -6px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    background: var(--forest-800);
    will-change: transform;
}
.hero-circle-img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 600ms ease, opacity 400ms ease;
}
/* 4 Bereiche — pro Kreis 2 gestapelte Bilder (_1 statisch unten, _2 als .alt fadet drueber) */
.hero-circle-1 .hero-circle-img      { background-image: url(/assets/img/hero/waldarbeiter_1.jpg); }
.hero-circle-1 .hero-circle-img.alt  { background-image: url(/assets/img/hero/waldarbeiter_2.jpg); }
.hero-circle-2 .hero-circle-img      { background-image: url(/assets/img/hero/baumpfleger_1.jpg); }
.hero-circle-2 .hero-circle-img.alt  { background-image: url(/assets/img/hero/baumpfleger_2.jpg); }
.hero-circle-3 .hero-circle-img      { background-image: url(/assets/img/hero/gartenarbeiter_1.jpg); }
.hero-circle-3 .hero-circle-img.alt  { background-image: url(/assets/img/hero/gartenarbeiter_2.jpg); }
.hero-circle-4 .hero-circle-img      { background-image: url(/assets/img/hero/harvester_1.jpg); }
.hero-circle-4 .hero-circle-img.alt  { background-image: url(/assets/img/hero/harvester_2.jpg); }

/* .alt-Layer crossfadet ueber den statischen — jede Kachel mit eigenem Delay fuer visuelle Variation */
.hero-circle-img.alt { opacity: 0; animation: hero-circle-fade 12s infinite; }
.hero-circle-1 .hero-circle-img.alt { animation-delay:   0s; }
.hero-circle-2 .hero-circle-img.alt { animation-delay:  -3s; }
.hero-circle-3 .hero-circle-img.alt { animation-delay:  -6s; }
.hero-circle-4 .hero-circle-img.alt { animation-delay:  -9s; }
@keyframes hero-circle-fade {
    0%, 8%   { opacity: 0; }
    13%, 45% { opacity: 1; }   /* _2 sichtbar */
    50%, 95% { opacity: 0; }   /* _1 sichtbar */
    100%     { opacity: 0; }
}

/* Maschinen-Hintergrund-Slideshow: 8 Slides, 48s Gesamtzyklus, je 6s sichtbar mit ~1s Crossfade */
.hero-bg-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg-slide  { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: hero-bg-cycle 48s infinite; }
.hero-bg-slide:nth-child(1) { background-image: url(/assets/img/hero/maschine_1.jpg); animation-delay:   0s; }
.hero-bg-slide:nth-child(2) { background-image: url(/assets/img/hero/maschine_2.jpg); animation-delay:  -6s; }
.hero-bg-slide:nth-child(3) { background-image: url(/assets/img/hero/maschine_3.jpg); animation-delay: -12s; }
.hero-bg-slide:nth-child(4) { background-image: url(/assets/img/hero/maschine_4.jpg); animation-delay: -18s; }
.hero-bg-slide:nth-child(5) { background-image: url(/assets/img/hero/maschine_5.jpg); animation-delay: -24s; }
.hero-bg-slide:nth-child(6) { background-image: url(/assets/img/hero/maschine_6.jpg); animation-delay: -30s; }
.hero-bg-slide:nth-child(7) { background-image: url(/assets/img/hero/maschine_7.jpg); animation-delay: -36s; }
.hero-bg-slide:nth-child(8) { background-image: url(/assets/img/hero/maschine_8.jpg); animation-delay: -42s; }

/* Hintergrundbilder je Bereich (cover, 1600x900). Wenige Bilder werden wiederholt → keine leeren Slots.
   Startseite (data-bereich="") behält die Maschinen-Bilder (Default oben). */
/* Wald — 4 Bilder (Waldarbeiter) */
body[data-bereich="wald"] .hero-bg-slide:nth-child(1) { background-image: url(/assets/img/hero/wald_1.jpg); }
body[data-bereich="wald"] .hero-bg-slide:nth-child(2) { background-image: url(/assets/img/hero/wald_2.jpg); }
body[data-bereich="wald"] .hero-bg-slide:nth-child(3) { background-image: url(/assets/img/hero/wald_3.jpg); }
body[data-bereich="wald"] .hero-bg-slide:nth-child(4) { background-image: url(/assets/img/hero/wald_4.jpg); }
body[data-bereich="wald"] .hero-bg-slide:nth-child(5) { background-image: url(/assets/img/hero/wald_1.jpg); }
body[data-bereich="wald"] .hero-bg-slide:nth-child(6) { background-image: url(/assets/img/hero/wald_2.jpg); }
body[data-bereich="wald"] .hero-bg-slide:nth-child(7) { background-image: url(/assets/img/hero/wald_3.jpg); }
body[data-bereich="wald"] .hero-bg-slide:nth-child(8) { background-image: url(/assets/img/hero/wald_4.jpg); }
/* Baum — 5 Bilder (Baumpfleger) */
body[data-bereich="baum"] .hero-bg-slide:nth-child(1) { background-image: url(/assets/img/hero/baum_1.jpg); }
body[data-bereich="baum"] .hero-bg-slide:nth-child(2) { background-image: url(/assets/img/hero/baum_2.jpg); }
body[data-bereich="baum"] .hero-bg-slide:nth-child(3) { background-image: url(/assets/img/hero/baum_3.jpg); }
body[data-bereich="baum"] .hero-bg-slide:nth-child(4) { background-image: url(/assets/img/hero/baum_4.jpg); }
body[data-bereich="baum"] .hero-bg-slide:nth-child(5) { background-image: url(/assets/img/hero/baum_5.jpg); }
body[data-bereich="baum"] .hero-bg-slide:nth-child(6) { background-image: url(/assets/img/hero/baum_1.jpg); }
body[data-bereich="baum"] .hero-bg-slide:nth-child(7) { background-image: url(/assets/img/hero/baum_3.jpg); }
body[data-bereich="baum"] .hero-bg-slide:nth-child(8) { background-image: url(/assets/img/hero/baum_5.jpg); }
/* Garten — 4 Bilder (Gartenarbeiter), wiederholt */
body[data-bereich="garten"] .hero-bg-slide:nth-child(1) { background-image: url(/assets/img/hero/garten_1.jpg); }
body[data-bereich="garten"] .hero-bg-slide:nth-child(2) { background-image: url(/assets/img/hero/garten_2.jpg); }
body[data-bereich="garten"] .hero-bg-slide:nth-child(3) { background-image: url(/assets/img/hero/garten_3.jpg); }
body[data-bereich="garten"] .hero-bg-slide:nth-child(4) { background-image: url(/assets/img/hero/garten_4.jpg); }
body[data-bereich="garten"] .hero-bg-slide:nth-child(5) { background-image: url(/assets/img/hero/garten_1.jpg); }
body[data-bereich="garten"] .hero-bg-slide:nth-child(6) { background-image: url(/assets/img/hero/garten_2.jpg); }
body[data-bereich="garten"] .hero-bg-slide:nth-child(7) { background-image: url(/assets/img/hero/garten_3.jpg); }
body[data-bereich="garten"] .hero-bg-slide:nth-child(8) { background-image: url(/assets/img/hero/garten_4.jpg); }

body[data-bereich="event"] .hero-bg-slide:nth-child(1) { background-image: url(/assets/img/hero/event_1.jpg); }
body[data-bereich="event"] .hero-bg-slide:nth-child(2) { background-image: url(/assets/img/hero/event_2.jpg); }
body[data-bereich="event"] .hero-bg-slide:nth-child(3) { background-image: url(/assets/img/hero/event_3.jpg); }
body[data-bereich="event"] .hero-bg-slide:nth-child(4) { background-image: url(/assets/img/hero/event_1.jpg); }
body[data-bereich="event"] .hero-bg-slide:nth-child(5) { background-image: url(/assets/img/hero/event_2.jpg); }
body[data-bereich="event"] .hero-bg-slide:nth-child(6) { background-image: url(/assets/img/hero/event_3.jpg); }
body[data-bereich="event"] .hero-bg-slide:nth-child(7) { background-image: url(/assets/img/hero/event_1.jpg); }
body[data-bereich="event"] .hero-bg-slide:nth-child(8) { background-image: url(/assets/img/hero/event_2.jpg); }

body[data-bereich="bildung"] .hero-bg-slide:nth-child(1) { background-image: url(/assets/img/hero/ausbildung_1.jpg); }
body[data-bereich="bildung"] .hero-bg-slide:nth-child(2) { background-image: url(/assets/img/hero/ausbildung_2.jpg); }
body[data-bereich="bildung"] .hero-bg-slide:nth-child(3) { background-image: url(/assets/img/hero/ausbildung_3.jpg); }
body[data-bereich="bildung"] .hero-bg-slide:nth-child(4) { background-image: url(/assets/img/hero/ausbildung_4.jpg); }
body[data-bereich="bildung"] .hero-bg-slide:nth-child(5) { background-image: url(/assets/img/hero/ausbildung_1.jpg); }
body[data-bereich="bildung"] .hero-bg-slide:nth-child(6) { background-image: url(/assets/img/hero/ausbildung_2.jpg); }
body[data-bereich="bildung"] .hero-bg-slide:nth-child(7) { background-image: url(/assets/img/hero/ausbildung_3.jpg); }
body[data-bereich="bildung"] .hero-bg-slide:nth-child(8) { background-image: url(/assets/img/hero/ausbildung_4.jpg); }
body[data-bereich="kids"] .hero-bg-slide:nth-child(1) { background-image: url(/assets/img/hero/kids_1.jpg); }
body[data-bereich="kids"] .hero-bg-slide:nth-child(2) { background-image: url(/assets/img/hero/kids_2.jpg); }
body[data-bereich="kids"] .hero-bg-slide:nth-child(3) { background-image: url(/assets/img/hero/kids_3.jpg); }
body[data-bereich="kids"] .hero-bg-slide:nth-child(4) { background-image: url(/assets/img/hero/kids_1.jpg); }
body[data-bereich="kids"] .hero-bg-slide:nth-child(5) { background-image: url(/assets/img/hero/kids_2.jpg); }
body[data-bereich="kids"] .hero-bg-slide:nth-child(6) { background-image: url(/assets/img/hero/kids_3.jpg); }
body[data-bereich="kids"] .hero-bg-slide:nth-child(7) { background-image: url(/assets/img/hero/kids_1.jpg); }
body[data-bereich="kids"] .hero-bg-slide:nth-child(8) { background-image: url(/assets/img/hero/kids_2.jpg); }

body[data-bereich="markt"] .hero-bg-slide:nth-child(1) { background-image: url(/assets/img/hero/markt_1.jpg); }
body[data-bereich="markt"] .hero-bg-slide:nth-child(2) { background-image: url(/assets/img/hero/markt_2.jpg); }
body[data-bereich="markt"] .hero-bg-slide:nth-child(3) { background-image: url(/assets/img/hero/markt_3.jpg); }
body[data-bereich="markt"] .hero-bg-slide:nth-child(4) { background-image: url(/assets/img/hero/markt_1.jpg); }
body[data-bereich="markt"] .hero-bg-slide:nth-child(5) { background-image: url(/assets/img/hero/markt_2.jpg); }
body[data-bereich="markt"] .hero-bg-slide:nth-child(6) { background-image: url(/assets/img/hero/markt_3.jpg); }
body[data-bereich="markt"] .hero-bg-slide:nth-child(7) { background-image: url(/assets/img/hero/markt_1.jpg); }
body[data-bereich="markt"] .hero-bg-slide:nth-child(8) { background-image: url(/assets/img/hero/markt_2.jpg); }

body[data-bereich="notfall"] .hero-bg-slide:nth-child(1) { background-image: url(/assets/img/hero/notfall_1.jpg); }
body[data-bereich="notfall"] .hero-bg-slide:nth-child(2) { background-image: url(/assets/img/hero/notfall_2.jpg); }
body[data-bereich="notfall"] .hero-bg-slide:nth-child(3) { background-image: url(/assets/img/hero/notfall_3.jpg); }
body[data-bereich="notfall"] .hero-bg-slide:nth-child(4) { background-image: url(/assets/img/hero/notfall_1.jpg); }
body[data-bereich="notfall"] .hero-bg-slide:nth-child(5) { background-image: url(/assets/img/hero/notfall_2.jpg); }
body[data-bereich="notfall"] .hero-bg-slide:nth-child(6) { background-image: url(/assets/img/hero/notfall_3.jpg); }
body[data-bereich="notfall"] .hero-bg-slide:nth-child(7) { background-image: url(/assets/img/hero/notfall_1.jpg); }
body[data-bereich="notfall"] .hero-bg-slide:nth-child(8) { background-image: url(/assets/img/hero/notfall_2.jpg); }

body[data-bereich="sachverstaendige"] .hero-bg-slide:nth-child(1) { background-image: url(/assets/img/hero/sachverstaendige_1.jpg); }
body[data-bereich="sachverstaendige"] .hero-bg-slide:nth-child(2) { background-image: url(/assets/img/hero/sachverstaendige_2.jpg); }
body[data-bereich="sachverstaendige"] .hero-bg-slide:nth-child(3) { background-image: url(/assets/img/hero/sachverstaendige_3.jpg); }
body[data-bereich="sachverstaendige"] .hero-bg-slide:nth-child(4) { background-image: url(/assets/img/hero/sachverstaendige_1.jpg); }
body[data-bereich="sachverstaendige"] .hero-bg-slide:nth-child(5) { background-image: url(/assets/img/hero/sachverstaendige_2.jpg); }
body[data-bereich="sachverstaendige"] .hero-bg-slide:nth-child(6) { background-image: url(/assets/img/hero/sachverstaendige_3.jpg); }
body[data-bereich="sachverstaendige"] .hero-bg-slide:nth-child(7) { background-image: url(/assets/img/hero/sachverstaendige_1.jpg); }
body[data-bereich="sachverstaendige"] .hero-bg-slide:nth-child(8) { background-image: url(/assets/img/hero/sachverstaendige_2.jpg); }

body[data-bereich="winterdienst"] .hero-bg-slide:nth-child(1) { background-image: url(/assets/img/hero/winterdienst_1.jpg); }
body[data-bereich="winterdienst"] .hero-bg-slide:nth-child(2) { background-image: url(/assets/img/hero/winterdienst_2.jpg); }
body[data-bereich="winterdienst"] .hero-bg-slide:nth-child(3) { background-image: url(/assets/img/hero/winterdienst_3.jpg); }
body[data-bereich="winterdienst"] .hero-bg-slide:nth-child(4) { background-image: url(/assets/img/hero/winterdienst_1.jpg); }
body[data-bereich="winterdienst"] .hero-bg-slide:nth-child(5) { background-image: url(/assets/img/hero/winterdienst_2.jpg); }
body[data-bereich="winterdienst"] .hero-bg-slide:nth-child(6) { background-image: url(/assets/img/hero/winterdienst_3.jpg); }
body[data-bereich="winterdienst"] .hero-bg-slide:nth-child(7) { background-image: url(/assets/img/hero/winterdienst_1.jpg); }
body[data-bereich="winterdienst"] .hero-bg-slide:nth-child(8) { background-image: url(/assets/img/hero/winterdienst_2.jpg); }
@keyframes hero-bg-cycle {
    /* 0–12.5% pro Slide an (8 Slides × 12.5% = 100%); 1s Crossfade-Rampen */
    0%    { opacity: 0; }
    2%    { opacity: 0.55; }
    11%   { opacity: 0.55; }
    13%   { opacity: 0; }
    100%  { opacity: 0; }
}

.hero-bg-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(31,64,48,0.50) 0%, rgba(31,64,48,0.34) 55%, rgba(31,64,48,0.74) 100%);
}

/* Startseiten-Hero: 5-Spalten-Hintergrund je Bereich, jede Spalte rotiert einzeln (JS-Cross-Fade) */
.hero-bg-cols { display: none; }
body[data-bereich=""] .hero-bg-slides { display: none; }
body[data-bereich=""] .hero-bg-cols {
    display: grid;
    position: absolute; inset: 0; z-index: 0;
    grid-template-columns: repeat(5, 1fr);
}
.hero-bg-cols .hero-bg-col {
    position: relative; overflow: hidden;
    background-size: cover; background-position: center;   /* No-JS-Fallback (erstes Bild je Bereich) */
    box-shadow: inset -1px 0 0 rgba(255,255,255,.08);
}
.hero-bg-cols .hero-bg-col i {            /* zwei gestapelte Layer für sanftes Überblenden */
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.1s ease;
}
.hero-bg-cols .hero-bg-col i.on { opacity: 1; }
.hero-bg-cols .col-wald    { background-image: url(/assets/img/hero/wald_1.jpg); }
.hero-bg-cols .col-baum    { background-image: url(/assets/img/hero/baum_1.jpg); }
.hero-bg-cols .col-garten  { background-image: url(/assets/img/hero/garten_1.jpg); }
.hero-bg-cols .col-bildung { background-image: url(/assets/img/hero/ausbildung_1.jpg); }
.hero-bg-cols .col-markt   { background-image: url(/assets/img/hero/markt_1.jpg); }
/* Handy: 5 schmale Streifen sind zu klein → 2 oben / 3 unten (6-Spalten-Raster,
   oben 2× span 3, unten 3× span 2), zwei gleich hohe Reihen. */
@media (max-width: 768px) {
    body[data-bereich=""] .hero-bg-cols { grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; }
    body[data-bereich=""] .hero-bg-cols .hero-bg-col:nth-child(1),
    body[data-bereich=""] .hero-bg-cols .hero-bg-col:nth-child(2) { grid-column: span 3; }
    body[data-bereich=""] .hero-bg-cols .hero-bg-col:nth-child(3),
    body[data-bereich=""] .hero-bg-cols .hero-bg-col:nth-child(4),
    body[data-bereich=""] .hero-bg-cols .hero-bg-col:nth-child(5) { grid-column: span 2; }
}

/* Klickbare Bereichs-Labels unten über den 5 Spalten */
body[data-bereich=""] .hero-bg-labels {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    display: grid; grid-template-columns: repeat(5, 1fr);
    pointer-events: none;
}
.hero-bg-labels a {
    pointer-events: auto;
    display: flex; align-items: flex-end; justify-content: center;
    min-height: 56px; padding: 14px 6px 12px;
    text-decoration: none; color: #fff; text-align: center;
    font-size: 13px; font-weight: 600; letter-spacing: .03em;
    background: linear-gradient(180deg, transparent, rgba(13,34,24,.62));
    border-right: 1px solid rgba(255,255,255,.12);
    transition: color .2s, background .2s;
}
.hero-bg-labels a:last-child { border-right: 0; }
.hero-bg-labels a:hover { color: var(--copper-400); background: linear-gradient(180deg, transparent, rgba(31,64,48,.9)); }
/* Startseite: Inhalt nach OBEN ausrichten (Höhe = wie die anderen Heroes, kompaktes Padding) */
body[data-bereich=""] .hero { justify-content: flex-start; }
body[data-bereich=""] .hero-eyebrow {
    margin-top: 8px;
    background: rgba(13,34,24,0.62);                                  /* solide dunkle Kapsel — hebt sich vom bunten 5-Spalten-BG ab */
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
    color: var(--accent);
    font-weight: 600;
}
@media (max-width: 768px) {
    .hero-bg-labels a { font-size: 10px; padding: 10px 2px 8px; min-height: 44px; letter-spacing: 0; }
}
/* Sichergehen, dass alles ueber der Slideshow korrekt gestapelt ist */
.hero::before    { z-index: 2; }
.hero-silhouette { z-index: 2; }
.hero-leaves     { z-index: 3; }
.hero-circles    { z-index: 4; }
.hero-inner      { z-index: 5; }

/* Sanftes Schweben, jeder Kreis eigene Phase */
.hero-circle-1 { animation: circle-float 8s  ease-in-out infinite; }
.hero-circle-2 { animation: circle-float 9s  ease-in-out infinite -2.2s; }
.hero-circle-3 { animation: circle-float 10s ease-in-out infinite -1.1s; }
.hero-circle-4 { animation: circle-float 8.5s ease-in-out infinite -3.4s; }
@keyframes circle-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-glow,
    .hero-silhouette .silhouette-back,
    .hero-silhouette .silhouette-front,
    .hero-leaves .leaf,
    .hero-circle,
    .hero-circle-img.alt,
    .hero-bg-slide {
        animation: none;
    }
    .hero-leaves { display: none; }
    /* Bei reduced-motion: nur ersten Hintergrund-Slide zeigen, kein Wechsel */
    .hero-bg-slide { opacity: 0; }
    .hero-bg-slide:nth-child(1) { opacity: 0.55; }
}

/* Auf kleineren Viewports ausblenden — Text behaelt die volle Breite */
@media (max-width: 1100px) {
    .hero-circles { display: none; }
}

/* ========================================================================
   SECTIONS — generische Struktur
   ======================================================================== */
.section { padding: 80px 0; }
.section-header {
    text-align: center; margin-bottom: 48px;
    max-width: 680px; margin-left: auto; margin-right: auto;
}
.section-header h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--forest-800);
    margin-bottom: 12px;
}
.section-header p { color: var(--ink-500); font-size: 16px; }

/* ========================================================================
   SERVICE CARDS — Wobei können wir helfen?
   ======================================================================== */
.service-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer; position: relative; overflow: hidden;
    display: block;
}
.service-card::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--forest-700);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--forest-100);
    text-decoration: none;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card.urgent::before { background: var(--danger-700); }
.service-icon {
    width: 44px; height: 44px;
    background: var(--forest-50);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; color: var(--forest-700);
}
.service-card.urgent .service-icon { background: var(--danger-50); color: var(--danger-700); }
.service-card h3 {
    font-size: 17px; color: var(--forest-800);
    margin-bottom: 6px; font-weight: 600;
}
.service-card p { font-size: 14px; color: var(--ink-500); line-height: 1.55; }

/* ========================================================================
   MARKTPLATZ TEASER (Homepage-Sections)
   ======================================================================== */
.marktplatz { background: var(--forest-50); }
.marktplatz-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.marktplatz-more { margin-top: 28px; text-align: center; }
.marktplatz-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 20px; position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex; flex-direction: column;
}
.marktplatz-card:hover {
    box-shadow: var(--shadow-md); transform: translateY(-2px);
    text-decoration: none;
}
.marktplatz-card .badge {
    display: inline-block;
    background: var(--copper-100); color: var(--copper-700);
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
    margin-bottom: 16px;
}
.marktplatz-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--forest-800);
    margin-bottom: 10px;
}
.marktplatz-card p {
    font-size: 14px; color: var(--ink-500);
    margin-bottom: 14px; line-height: 1.55;
}
.marktplatz-card .categories {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 20px;
}
.marktplatz-card .cat-pill {
    font-size: 12px;
    background: var(--sand-100); color: var(--ink-700);
    padding: 4px 10px; border-radius: 999px;
}
.marktplatz-card .cta {
    margin: auto -20px -20px;
    padding: 13px 20px;
    background: var(--forest-50);
    border-top: 1px solid var(--ink-100);
    color: var(--forest-700); font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.2s;
}
.marktplatz-card .cta-arrow { width: 16px; height: 16px; transition: transform 0.2s; }
.marktplatz-card:hover .cta { background: var(--forest-100); }
.marktplatz-card:hover .cta-arrow { transform: translateX(3px); }

/* Rubrik-Kachel: Icon-Plakette + dezentes Wasserzeichen (Variante C) */
.marktplatz-card .mp-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
}
.marktplatz-card .mp-head h3 { margin: 0; }
.marktplatz-card .mp-icon {
    position: relative; z-index: 1;
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--forest-50);
    color: var(--forest-600);
}
.marktplatz-card .mp-icon svg { width: 24px; height: 24px; }
.marktplatz-card .mp-icon img { max-width: 34px; max-height: 34px; object-fit: contain; }
.marktplatz-card .mp-watermark {
    position: absolute; right: -10px; bottom: -16px;
    width: 120px; height: 120px;
    color: var(--forest-600); opacity: .06;
    pointer-events: none; z-index: 0;
    transition: opacity 0.2s;
}
.marktplatz-card:hover .mp-watermark { opacity: .10; }
.marktplatz-card h3,
.marktplatz-card p,
.marktplatz-card .cta { position: relative; z-index: 1; }

/* ========================================================================
   MARKTPLATZ RUBRIK-KACHELN — bildstark (nur /marktplatz/, eigene Klassen)
   ======================================================================== */
.mp-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.mp-tile {
    position: relative;
    display: block;
    min-height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(150deg, var(--forest-700), var(--forest-900));
    box-shadow: var(--shadow-sm);
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mp-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.mp-tile-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.55s ease;
}
.mp-tile:hover .mp-tile-img { transform: scale(1.06); }
/* dezente Vignette oben, damit das Icon-Badge lesbar bleibt */
.mp-tile::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg,
        rgba(6,17,11,0.30) 0%,
        rgba(6,17,11,0) 32%);
}
/* großes Icon-Wasserzeichen für Fallback-Kacheln ohne Foto */
.mp-tile-wm {
    position: absolute; right: -16px; bottom: -22px;
    width: 158px; height: 158px;
    color: rgba(255,255,255,0.10);
    z-index: 1; pointer-events: none;
}
.mp-tile-badge {
    position: absolute; top: 13px; left: 13px; z-index: 2;
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
}
.mp-tile-badge svg { width: 22px; height: 22px; }
.mp-tile-badge img { max-width: 26px; max-height: 26px; object-fit: contain; }
.mp-tile-count {
    position: absolute; top: 14px; right: 13px; z-index: 2;
    font-size: 12px; font-weight: 600; color: #fff;
    background: rgba(9,22,15,0.64);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 4px 10px; border-radius: 999px;
}
/* untere Hälfte: transluzenter Balken (Foto schimmert durch) */
.mp-tile-body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    min-height: 50%;
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: 14px 18px;
    background: rgba(9,22,15,0.64);
    border-top: 1px solid rgba(255,255,255,0.14);
}
.mp-tile-body h3 {
    font-family: var(--font-serif);
    font-size: 25px; line-height: 1.12;
    color: #fff; margin: 0 0 6px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.mp-tile-body p {
    font-size: 13px; line-height: 1.45;
    color: rgba(255,255,255,0.88);
    margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden;
}
.mp-tile-cta {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: auto;
    font-size: 13px; font-weight: 600; color: #fff;
}
.mp-tile-cta svg { width: 15px; height: 15px; transition: transform 0.2s; }
.mp-tile:hover .mp-tile-cta svg { transform: translateX(3px); }

/* Anzeige-Block (aus dem Rubrik-Grid herausgelöst) */
.mp-anzeige {
    margin-top: 34px;
    display: flex; flex-direction: column; align-items: center;
}
.mp-anzeige-label {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--ink-400); margin-bottom: 8px;
}
.mp-anzeige a {
    display: block; width: 100%; max-width: 560px;
    border-radius: var(--radius-md); overflow: hidden;
    line-height: 0; background: #000913;
    box-shadow: var(--shadow-sm);
}
.mp-anzeige img { display: block; width: 100%; height: auto; }

/* Marktplatz Kopf-Boxen: Suche + Benachrichtigung (direkt nach dem Hero) */
.mp-top {
    display: grid; grid-template-columns: 1.5fr 1fr;
    gap: 18px; align-items: stretch;
    margin: 4px 0 30px;
}
.mp-box {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}
.mp-box-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.mp-box-head h2 {
    font-family: var(--font-serif);
    font-size: 18px; color: var(--forest-800); margin: 0;
}
.mp-suche { position: relative; display: flex; flex-direction: column; }
.mp-suche-ib { position: relative; margin-top: auto; }
.mp-suche-field {
    display: flex; align-items: center; gap: 10px;
    background: var(--sand-100);
    border: 1px solid var(--ink-100);
    border-radius: 999px;
    padding: 4px 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.mp-suche-field:focus-within {
    border-color: var(--forest-600);
    box-shadow: 0 0 0 3px var(--forest-50);
    background: var(--white);
}
.mp-suche-ic { flex: 0 0 auto; color: var(--forest-600); }
.mp-suche input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font-size: 15px; color: var(--ink-700);
    padding: 11px 0;
}
.mp-suche input::placeholder { color: var(--ink-400); }
.mp-suche input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mp-suche-drop {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.mp-drop-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--sand-100);
}
.mp-drop-item:last-child { border-bottom: 0; }
.mp-drop-item:hover, .mp-drop-item.is-active { background: var(--forest-50); text-decoration: none; }
.mp-drop-ic {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--sand-100); color: var(--forest-600);
}
.mp-drop-txt { display: flex; flex-direction: column; min-width: 0; }
.mp-drop-label { font-size: 14.5px; font-weight: 600; color: var(--ink-700); line-height: 1.25; }
.mp-drop-sub { font-size: 12.5px; color: var(--ink-500); }
.mp-drop-empty { padding: 14px 16px; font-size: 14px; color: var(--ink-500); }

/* Benachrichtigungs-Box (rechts neben der Suche) */
.mp-notify {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.mp-notify:hover {
    border-color: var(--forest-600);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    text-decoration: none;
}
.mp-notify-ic {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--forest-50); color: var(--forest-600);
}
.mp-notify-ic svg { width: 24px; height: 24px; }
.mp-notify-txt { display: flex; flex-direction: column; min-width: 0; }
.mp-notify-txt strong { font-size: 15px; color: var(--forest-800); line-height: 1.3; }
.mp-notify-sub { font-size: 13px; color: var(--ink-500); margin: 2px 0 8px; }
.mp-notify-cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 600; color: var(--forest-700);
}
.mp-notify-cta svg { width: 15px; height: 15px; }

@media (max-width: 760px) {
    .mp-top { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .mp-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .mp-tiles { grid-template-columns: 1fr; }
}

/* ========================================================================
   WERBEBLOCK — Sonderangebote / Partner / Saisonal (ad_slots)
   ======================================================================== */
.werbeblock {
    margin-top: 32px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.werbe-card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--ink-100);
    border-radius: var(--radius-md); overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.werbe-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(13,34,24,.1); }
.werbe-card.own      { border-top: 3px solid var(--copper-400); }
.werbe-card.partner  { border-top: 3px solid var(--forest-700); }
.werbe-card.seasonal { border-top: 3px solid #c24a3a; }
.werbe-img { aspect-ratio: 16/9; background: var(--sand-100); overflow: hidden; }
.werbe-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.werbe-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.werbe-tag {
    display: inline-block; width: fit-content;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; padding: 2px 8px; border-radius: 100px;
    background: var(--sand-100); color: var(--ink-700);
}
.werbe-card.own      .werbe-tag { background: rgba(230,180,110,.18); color: var(--copper-700); }
.werbe-card.partner  .werbe-tag { background: var(--forest-50); color: var(--forest-700); }
.werbe-card.seasonal .werbe-tag { background: rgba(194,74,58,.12); color: #8b3324; }
.werbe-body h3 { font-family: var(--font-serif); font-size: 17px; color: var(--forest-800); font-weight: 600; margin: 0; }
.werbe-body p  { font-size: 13px; color: var(--ink-700); line-height: 1.55; margin: 0; }
.werbe-cta {
    margin-top: auto; padding-top: .4rem;
    color: var(--forest-700); font-weight: 600; font-size: 13px;
    text-decoration: none;
}
.werbe-cta:hover { text-decoration: underline; }

/* ========================================================================
   LIVE-INSERATE — neueste Brennholz/Produkt/Maschine auf Startseite
   ======================================================================== */
.live-header { margin-top: 42px; text-align: center; }
.live-header h3 {
    font-family: var(--font-serif); font-size: 24px; color: var(--forest-800);
    font-weight: 500; margin: 0 0 .3rem;
}
.live-header p { color: var(--ink-500); font-size: 14px; margin: 0 0 1.25rem; }
.live-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.live-card {
    background: var(--white); border: 1px solid var(--ink-100);
    border-radius: var(--radius-md); padding: 1rem 1.1rem;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; gap: .3rem;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    position: relative;
}
.live-card:hover { transform: translateY(-2px); border-color: var(--forest-100); box-shadow: 0 8px 20px rgba(13,34,24,.08); text-decoration: none; }
.live-rubrik {
    font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
    font-weight: 700; color: var(--ink-500);
}
.live-brennholz .live-rubrik { color: #a6622f; }
.live-produkt   .live-rubrik { color: var(--forest-700); }
.live-maschine  .live-rubrik { color: #6a5b85; }
.live-card h4 {
    font-family: var(--font-serif); font-size: 16px; color: var(--forest-800);
    font-weight: 600; margin: 0;
}
.live-meta { font-size: 12px; color: var(--ink-500); }
.live-preis {
    font-size: 17px; color: var(--forest-800); font-weight: 700;
    margin-top: .2rem;
}
.live-preis small { font-size: 11px; color: var(--ink-500); font-weight: 500; }
.live-region { font-size: 11px; color: var(--ink-500); margin-top: .15rem; }

/* ========================================================================
   PROFI-CTA — Zweigruppen-Split
   ======================================================================== */
.profi-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.profi-card {
    background: var(--forest-700); color: var(--white);
    padding: 48px 40px; border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
}
.profi-card.alt { background: var(--forest-800); }
.profi-card h3 {
    font-family: var(--font-serif);
    font-size: 28px; margin-bottom: 12px; color: var(--white);
}
.profi-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px; font-size: 15px; line-height: 1.6;
}
.profi-card ul {
    list-style: none; padding: 0; margin: 0 0 28px; font-size: 14px;
}
.profi-card li {
    padding: 8px 0; display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.9);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.profi-card li:first-child { border-top: none; }
.profi-card li svg { color: var(--copper-400); flex-shrink: 0; }
.profi-card .btn-cta-primary { width: fit-content; }

/* ========================================================================
   PILLARS — Kunde vs Unternehmen (Startseite + Service-Seiten)
   ======================================================================== */
.pillars { background: linear-gradient(160deg, var(--forest-50) 0%, var(--sand-100) 100%); padding: 2rem 1.2rem 3.5rem; }
.pillars-inner { max-width: 1100px; margin: 0 auto; }
.pillars-head { text-align: center; margin-bottom: 2.25rem; }
.pillars-head .pillars-eye {
    display: inline-block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--copper-700); font-weight: 700;
    padding: .3rem .9rem; border: 1px solid var(--copper-400);
    border-radius: 100px; margin-bottom: .9rem; background: rgba(255,255,255,.6);
}
.pillars-head h2 {
    font-family: var(--font-serif); font-size: clamp(26px, 3.6vw, 38px);
    color: var(--forest-800); font-weight: 500; margin: 0 0 .75rem;
    line-height: 1.15;
}
.pillars-head h2 em { font-style: italic; color: var(--copper-700); font-weight: 400; }
.pillars-head .lead {
    color: var(--ink-700); font-size: 15px; line-height: 1.65;
    max-width: 640px; margin: 0 auto 1rem;
}
.pillars-head .sub { color: var(--ink-500); font-size: 13px; margin: 0; }
.pillars-grid {
    display: grid; grid-template-columns: 1fr 1px 1fr;
    gap: 2.5rem;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 6px 24px rgba(13,34,24,.06);
    position: relative; align-items: stretch;
}
.pillars-grid::before {
    content: ''; grid-column: 2; grid-row: 1;
    width: 1px; justify-self: center; align-self: stretch;
    background: linear-gradient(to bottom,
        transparent 0%,
        var(--ink-200) 15%,
        var(--ink-200) 85%,
        transparent 100%);
}
@media (max-width: 760px) {
    .pillars-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
    .pillars-grid::before {
        grid-column: 1; grid-row: 2;
        width: 60%; height: 1px; justify-self: center; align-self: center;
        background: linear-gradient(to right,
            transparent 0%,
            var(--ink-200) 15%,
            var(--ink-200) 85%,
            transparent 100%);
    }
}
.pillar {
    background: transparent; border: none; box-shadow: none;
    padding: 0;
    display: flex; flex-direction: column; gap: .9rem;
}
.pillar.profi { grid-column: 3; grid-row: 1; }
@media (max-width: 760px) {
    .pillar.profi { grid-column: 1; grid-row: 3; }
    .pillar.kunde { grid-column: 1; grid-row: 1; }
}
.pillar .ic { font-size: 1.75rem; }
.pillar h3 {
    font-family: var(--font-serif); font-size: 22px; color: var(--forest-800);
    font-weight: 600; margin: 0;
}
.pillar .tag {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; padding: 3px 10px; border-radius: 100px;
    background: var(--forest-50); color: var(--forest-700); width: fit-content;
}
.pillar.profi .tag { background: #f7eddc; color: var(--copper-700); }
.pillar p { color: var(--ink-700); font-size: 14px; line-height: 1.6; margin: 0; }
.pillar .cta-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
    background: var(--forest-900);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 32px;
    margin-top: 40px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 48px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand .logo .logo-accent,
.footer-brand .logo .accent { color: var(--copper-400); }
.footer-brand p {
    font-size: 14px; line-height: 1.6; max-width: 280px;
}
.footer-col h4 {
    font-size: 13px; color: var(--white);
    font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-col a {
    display: block; padding: 6px 0; font-size: 14px;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--copper-400); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px; text-align: center;
    color: rgba(255,255,255,0.5);
}

/* ========================================================================
   MODAL — Schnellanfrage-Overlay (:target-basiert)
   ======================================================================== */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(13, 34, 24, 0.7); backdrop-filter: blur(3px);
    align-items: flex-start; justify-content: center;
    padding: 2rem 1rem; overflow-y: auto;
    animation: modalFadeIn .2s ease;
}
.modal-overlay:target,
body.modal-open .modal-overlay { display: flex; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background: var(--white); color: var(--ink-900);
    max-width: 580px; width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
    border-top: 5px solid var(--copper-400);
    position: relative; padding: 2rem;
    margin-top: 2rem;
}
.modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--ink-100); color: var(--ink-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; line-height: 1; text-decoration: none;
    font-weight: 300;
}
.modal-close:hover { background: var(--ink-300); color: var(--ink-900); text-decoration: none; }
.modal-backdrop { position: absolute; inset: 0; z-index: -1; }

/* Modal-Form */
.quick-inquiry-card h2 {
    font-family: var(--font-serif);
    color: var(--forest-800); font-size: 24px;
    margin-bottom: .35rem;
}
.qi-sub { color: var(--ink-500); margin-bottom: 1.25rem; font-size: .9rem; }
.qi-success {
    background: var(--forest-50); color: var(--forest-800);
    padding: .9rem 1.1rem; border-radius: 6px; margin-bottom: 1rem;
    border-left: 4px solid var(--forest-700);
}
.qi-error {
    background: var(--danger-50); color: var(--danger-900);
    padding: .9rem 1.1rem; border-radius: 6px; margin-bottom: 1rem;
    border-left: 4px solid var(--danger-700);
}
.form-group { margin-bottom: .85rem; }
.form-group label {
    display: block; font-weight: 600; margin-bottom: .25rem;
    font-size: .82rem; color: var(--ink-700);
}
.form-group input[type=text], .form-group input[type=email],
.form-group input[type=password], .form-group input[type=tel],
.form-group input[type=number], .form-group input[type=date],
.form-group input[type=time], .form-group input[type=url],
.form-group select, .form-group textarea {
    width: 100%; padding: .65rem .8rem;
    border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
    font-size: 1rem; font-family: inherit;
    background: var(--white);
    box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--forest-700);
    box-shadow: 0 0 0 3px rgba(31,64,48,.12);
}
/* Native Select-Optik vereinheitlichen: eigener Chevron statt browser-eigenem Pfeil */
.form-group select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2358655c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2.3rem;
    cursor: pointer;
}
.form-group select::-ms-expand { display: none; }

/* Kompakte Filter-/Suchleiste (Admin-Listen) — gleiche Optik wie Formularfelder, aber inline statt full-width */
.admin-filter select,
.admin-filter input[type=search],
.admin-filter input[type=text] {
    padding: .5rem .75rem;
    border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
    font-size: .92rem; font-family: inherit;
    background: var(--white); color: var(--ink-700);
    box-sizing: border-box; height: 40px;
    -webkit-appearance: none; appearance: none;
}
.admin-filter input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.admin-filter select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2358655c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .7rem center;
    padding-right: 2.2rem; cursor: pointer;
}
.admin-filter select::-ms-expand { display: none; }
.admin-filter input:focus, .admin-filter select:focus {
    outline: none; border-color: var(--forest-700);
    box-shadow: 0 0 0 3px rgba(31,64,48,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 2fr; gap: .75rem; }
.form-row.contact { grid-template-columns: 1fr 1fr; }
details { margin-top: 1rem; border-top: 1px dashed var(--ink-100); padding-top: 1rem; }
details summary {
    cursor: pointer; font-weight: 600; color: var(--forest-700);
    list-style: none; padding: .35rem 0;
    display: flex; align-items: center; gap: .5rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
    content: '▸'; transition: transform .15s ease;
}
details[open] summary::before { transform: rotate(90deg); }
.qi-footer {
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid var(--ink-100);
    font-size: .82rem; color: var(--ink-500); text-align: center;
}

/* ========================================================================
   AUTH-PAGES (Login / Register)
   ======================================================================== */
.auth-shell { max-width: 480px; margin: 3rem auto; padding: 0 1.2rem; }
.auth-shell.wide { max-width: 980px; }
.auth-shell.wide .auth-card { padding: 2.5rem 3rem; }
@media (max-width: 700px) {
    .auth-shell.wide .auth-card { padding: 1.75rem 1.5rem; }
}
.auth-card {
    background: var(--white); padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--forest-700);
}
.auth-card h1 {
    font-family: var(--font-serif);
    color: var(--forest-800); margin-bottom: .25rem;
}
.auth-card .auth-sub {
    color: var(--ink-500); margin-bottom: 1.5rem; font-size: .95rem;
}
.checkbox-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem;
}
.checkbox-grid label {
    display: flex; align-items: flex-start; gap: .5rem;
    padding: .5rem .75rem;
    border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
    cursor: pointer; font-weight: 500;
    background: var(--forest-50); font-size: .9rem;
}
.checkbox-grid label:hover {
    border-color: var(--forest-700); background: var(--white);
}
.checkbox-grid input[type=checkbox] { margin-top: 2px; }
.auth-footer {
    margin-top: 1.25rem; text-align: center;
    color: var(--ink-500); font-size: .9rem;
}

/* ========================================================================
   ACCOUNT / DASHBOARD
   ======================================================================== */
.account-shell { max-width: 1100px; margin: 2.5rem auto; padding: 0 1.2rem; }
.account-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem;
}
.account-card {
    background: var(--white); padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--forest-700);
    display: block; color: var(--ink-900);
}
.account-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.account-card h3 { color: var(--forest-800); margin-bottom: .5rem; font-weight: 600; }
.account-card p { color: var(--ink-500); font-size: .9rem; margin-bottom: .75rem; }

/* ========================================================================
   EMERGENCY-BAR (Sub-Pages wie /notfall/)
   ======================================================================== */
.emergency-bar {
    background: linear-gradient(90deg, var(--danger-900) 0%, var(--danger-700) 100%);
    color: var(--white); padding: .65rem 1.2rem; text-align: center;
    font-weight: 600; font-size: .95rem;
    display: flex; justify-content: center; align-items: center;
    gap: .75rem; flex-wrap: wrap;
    border-bottom: 2px solid var(--danger-900);
}
.emergency-bar .siren {
    display: inline-block; animation: blinkPulse 1.5s ease-in-out infinite;
}
@keyframes blinkPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.emergency-bar a {
    color: var(--white); background: rgba(0,0,0,.2);
    padding: .35rem .9rem; border-radius: var(--radius-sm);
    font-weight: 700;
}
.emergency-bar a:hover { background: rgba(0,0,0,.4); text-decoration: none; }

/* ========================================================================
   ADMIN-LAYOUT — Horizontale Topnav (keine Sidebar)
   ======================================================================== */
.admin-shell {
    min-height: 100vh;
    background: var(--sand-200);
}

.admin-topnav {
    background: var(--forest-900);
    color: rgba(255,255,255,.85);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 3px solid var(--copper-400);
}
.admin-topnav-inner {
    display: flex; align-items: center;
    max-width: 1400px; margin: 0 auto;
    padding: 0 1.5rem;
    gap: 1.5rem;
    min-height: 56px;
}
.admin-topnav .tn-brand {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--font-serif); font-size: 18px; font-weight: 600;
    color: var(--white); text-decoration: none;
    padding: 1rem 0;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,.1);
    padding-right: 1.5rem;
}
.admin-topnav .tn-brand .accent { color: var(--copper-400); }
.admin-topnav .tn-brand:hover { color: var(--white); text-decoration: none; }

.admin-topnav .tn-items {
    display: flex; align-items: center; gap: .25rem;
    flex: 1; flex-wrap: wrap;
}

/* Flache Nav-Items (direkt klickbar) */
.admin-topnav .tn-link {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .6rem .9rem;
    color: rgba(255,255,255,.72);
    font-size: 13px; font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all .15s;
    position: relative;
}
.admin-topnav .tn-link:hover {
    color: var(--white); background: rgba(255,255,255,.07);
    text-decoration: none;
}
.admin-topnav .tn-link.active {
    color: var(--copper-400); background: rgba(230,180,110,.1);
}
.admin-topnav .tn-link .badge {
    background: var(--danger-700); color: var(--white);
    font-size: 10px; font-weight: 700;
    padding: 1px 6px; border-radius: 10px;
    min-width: 18px; text-align: center;
}

/* Dropdown-Gruppe (CSS-only via :hover + focus-within) */
.admin-topnav .tn-group {
    position: relative;
}
.admin-topnav .tn-trigger {
    background: none; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .6rem .9rem;
    color: rgba(255,255,255,.72);
    font-size: 13px; font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius-sm);
    transition: all .15s;
}
.admin-topnav .tn-trigger::after {
    content: ''; display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: .5;
    margin-left: 2px;
    transition: transform .15s;
}
.admin-topnav .tn-trigger:hover,
.admin-topnav .tn-group:hover .tn-trigger,
.admin-topnav .tn-group:focus-within .tn-trigger {
    color: var(--white); background: rgba(255,255,255,.07);
}
.admin-topnav .tn-group.has-active .tn-trigger {
    color: var(--copper-400); background: rgba(230,180,110,.1);
}
.admin-topnav .tn-group:hover .tn-trigger::after,
.admin-topnav .tn-group:focus-within .tn-trigger::after {
    transform: rotate(180deg);
}
.admin-topnav .tn-dropdown {
    display: none;
    position: absolute; top: 100%; left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: .35rem;
    margin-top: 4px;
    z-index: 200;
}
.admin-topnav .tn-group:hover .tn-dropdown,
.admin-topnav .tn-group:focus-within .tn-dropdown {
    display: block;
}
.admin-topnav .tn-dropdown a {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .75rem;
    color: var(--ink-700);
    font-size: 13px; font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background .12s;
}
.admin-topnav .tn-dropdown a:hover {
    background: var(--sand-100); color: var(--forest-700);
    text-decoration: none;
}
.admin-topnav .tn-dropdown a.active {
    background: var(--forest-50); color: var(--forest-700);
}
.admin-topnav .tn-dropdown a .badge {
    margin-left: auto;
    background: var(--danger-100); color: var(--danger-700);
    font-size: 10px; padding: 1px 6px; border-radius: 10px;
}

/* User-Block rechts */
.admin-topnav .tn-user {
    display: flex; align-items: center; gap: .65rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
}
.admin-topnav .tn-avatar {
    width: 32px; height: 32px;
    background: var(--copper-400); color: var(--forest-900);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.admin-topnav .tn-user-meta {
    font-size: 12px; line-height: 1.2;
}
.admin-topnav .tn-user-meta strong {
    color: var(--white); font-size: 13px; font-weight: 600; display: block;
}
.admin-topnav .tn-user-meta small {
    color: rgba(255,255,255,.45); font-size: 11px;
    text-transform: uppercase; letter-spacing: .05em;
}
.admin-topnav .tn-logout {
    color: rgba(255,255,255,.6);
    font-size: 12px;
    padding: .35rem .6rem;
    border-radius: var(--radius-sm);
}
.admin-topnav .tn-logout:hover {
    color: var(--white); background: rgba(255,255,255,.07);
    text-decoration: none;
}

.admin-main {
    max-width: 1400px; margin: 0 auto;
    padding: 2rem 1.5rem;
    min-width: 0;
}
.admin-pagehead {
    margin-bottom: 2rem;
}
.admin-pagehead h1 {
    font-family: var(--font-serif);
    font-size: 32px; color: var(--forest-800);
    font-weight: 500; letter-spacing: -0.02em;
}
.admin-pagehead .crumb {
    color: var(--ink-500); font-size: 13px;
    margin-bottom: .35rem;
}
.admin-pagehead .crumb a { color: var(--ink-500); }
.admin-pagehead .crumb a:hover { color: var(--forest-700); }

/* Typ-Auswahl-Cards für /register.php — 5 Radio/Checkbox-Cards nebeneinander, identische Breite */
.role-choice {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem;
    margin-bottom: 1.25rem;
}
.role-choice label { min-width: 0; word-break: break-word; hyphens: auto; }
@media (max-width: 900px) { .role-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .role-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .role-choice { grid-template-columns: 1fr; } }
/* ── Kontotyp-Auswahl (register-suchende): 3 farbige Karten Privat/Gewerblich/Kommune ──
   WICHTIG: .role-choice.X-Spezifität, damit der Basis-.role-choice-Block (weiter unten)
   diese Layout-/Farbregeln NICHT überschreibt. */
.kontotyp-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .kontotyp-choice { grid-template-columns: 1fr; } }
.kontotyp-choice label:nth-child(1) { --kt: #1f7a4d; --kt-bg: #e6f3ec; } /* Privat — Grün    */
.kontotyp-choice label:nth-child(2) { --kt: #d9772b; --kt-bg: #fbecdd; } /* Gewerbl. — Kupfer */
.kontotyp-choice label:nth-child(3) { --kt: #46637d; --kt-bg: #e7eef4; } /* Kommune — Slate   */
.role-choice.kontotyp-choice label {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 1.4rem 1rem 1.25rem;
    background: linear-gradient(160deg, var(--white) 0%, var(--kt-bg) 175%);
}
.role-choice.kontotyp-choice label .role-icon {
    width: 60px; height: 60px; border-radius: 18px; margin: 0 0 .55rem;
    background: var(--kt-bg); color: var(--kt);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.role-choice.kontotyp-choice label .role-icon svg { width: 30px; height: 30px; }
.role-choice.kontotyp-choice label .role-title { font-size: 15px; color: var(--forest-800); }
.role-choice.kontotyp-choice label .role-desc { color: var(--ink-500); font-size: 12px; line-height: 1.35; margin-top: .15rem; }
.kontotyp-choice label:hover { border-color: var(--kt); }
.role-choice.kontotyp-choice label:has(input:checked) {
    border-color: var(--kt);
    background: linear-gradient(160deg, var(--kt-bg), var(--white));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--kt) 22%, transparent);
}
.role-choice.kontotyp-choice label:has(input:checked) .role-icon { background: var(--kt); color: var(--white); }
.role-choice.kontotyp-choice label:has(input:checked) .role-title { color: var(--kt); }
.role-choice.kontotyp-choice label:has(input:checked) .role-check { border-color: var(--kt); background: var(--kt); }

/* ── Bereich-Auswahl (register.php): 5 farbige Karten — Icon oben · Titel · Beschreibung
   (max 2 Zeilen, geklemmt) · alle gleich groß. .role-choice.X-Spezifität (s.o.). ── */
.bereich-choice { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .bereich-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bereich-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .bereich-choice { grid-template-columns: 1fr; } }
.bereich-choice label:nth-child(1) { --kt: #1f7a4d; --kt-bg: #e6f3ec; } /* Forstwirtschaft — Grün     */
.bereich-choice label:nth-child(2) { --kt: #d9772b; --kt-bg: #fbecdd; } /* Baumpflege      — Kupfer   */
.bereich-choice label:nth-child(3) { --kt: #3e8e3a; --kt-bg: #e9f4e8; } /* Gartenpflege    — Hellgrün */
.bereich-choice label:nth-child(4) { --kt: #46637d; --kt-bg: #e7eef4; } /* Händler         — Slate    */
.bereich-choice label:nth-child(5) { --kt: #7a5ba6; --kt-bg: #efeaf6; } /* Fortbildung     — Violett  */
.role-choice.bereich-choice label {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    text-align: center;
    padding: .85rem .55rem;
    background: linear-gradient(160deg, var(--white) 0%, var(--kt-bg) 240%);
}
.role-choice.bereich-choice label .role-check { display: none; }
.role-choice.bereich-choice label .role-icon {
    width: 44px; height: 44px; border-radius: 12px; margin: 0 0 .5rem;
    background: var(--kt-bg); color: var(--kt);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.role-choice.bereich-choice label .role-icon svg { width: 24px; height: 24px; }
.role-choice.bereich-choice label .role-text { width: 100%; min-width: 0; }
.role-choice.bereich-choice label .role-title {
    font-size: 13px; font-weight: 600; color: var(--forest-800);
    line-height: 1.2; margin-bottom: .2rem; white-space: nowrap;
}
.role-choice.bereich-choice label .role-desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--ink-500); font-size: 11px; line-height: 1.3;
    min-height: 2.6em;       /* 2 Zeilen reserviert → alle Karten gleich hoch */
}
.bereich-choice label:hover { border-color: var(--kt); }
.role-choice.bereich-choice label:has(input:checked) {
    border-color: var(--kt);
    background: linear-gradient(160deg, var(--kt-bg), var(--white));
    box-shadow: 0 6px 16px color-mix(in srgb, var(--kt) 20%, transparent);
}
.role-choice.bereich-choice label:has(input:checked) .role-icon { background: var(--kt); color: var(--white); }
.role-choice.bereich-choice label:has(input:checked) .role-title { color: var(--kt); }

/* Passwort-Feld mit Augen-Toggle (anzeigen/verbergen) */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 2.85rem; }
.pw-toggle {
    position: absolute; top: 50%; right: .5rem; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.1rem; height: 2.1rem; padding: 0;
    border: 0; background: none; color: var(--ink-500);
    cursor: pointer; border-radius: 8px;
    transition: color .15s, background .15s;
}
.pw-toggle:hover { color: var(--forest-700); background: var(--forest-50); }
.pw-toggle .icon { width: 20px; height: 20px; }
.role-choice input[type=radio],
.role-choice input[type=checkbox] {
    position: absolute; opacity: 0; pointer-events: none;
}
.role-choice label {
    display: block;
    padding: 1.25rem 1rem 1.1rem;
    background: var(--white);
    border: 1.5px solid var(--ink-100);
    border-radius: var(--radius-lg, 16px);
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .12s;
    position: relative;
}
.role-choice label:hover {
    border-color: var(--forest-200, var(--forest-100));
    box-shadow: 0 8px 22px rgba(31,64,48,.09);
    transform: translateY(-2px);
}
.role-choice input:checked + label,
.role-choice label:has(input:checked) {
    border-color: var(--forest-700);
    background: var(--forest-50);
    box-shadow: 0 8px 22px rgba(31,64,48,.13);
}
.role-choice label .role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto .65rem;
    border-radius: 16px;
    background: var(--forest-50);
    color: var(--forest-700);
    transition: background .15s, color .15s, transform .12s;
}
.role-choice label:hover .role-icon { transform: scale(1.04); }
.role-choice label .role-icon svg { width: 28px; height: 28px; }
.role-choice label:has(input:checked) .role-icon {
    background: var(--forest-700);
    color: var(--white);
}
.role-choice label .role-title {
    font-weight: 600;
    color: var(--forest-800);
    font-size: 14px;
    margin-bottom: .2rem;
}
.role-choice label .role-desc {
    color: var(--ink-500);
    font-size: 12px;
    line-height: 1.4;
}
.role-choice label .role-check {
    position: absolute; top: .5rem; right: .5rem;
    width: 20px; height: 20px;
    border: 2px solid var(--ink-100);
    border-radius: 50%;
    background: var(--white);
    transition: all .15s;
}
.role-choice label:has(input:checked) .role-check {
    border-color: var(--forest-700);
    background: var(--forest-700);
    box-shadow: inset 0 0 0 3px var(--white);
}
/* Bei Checkbox-Variante: Indikator als Haken statt Punkt */
.role-choice label:has(input[type=checkbox]:checked) .role-check {
    background: var(--forest-700) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/12px 12px no-repeat;
    box-shadow: none;
}

/* Maintenance-Page (volle Höhe, Forest-Background) */
.maintenance-body {
    margin: 0; padding: 0;
    background: var(--forest-900);
    min-height: 100vh;
    overflow-x: hidden;
}
.maintenance-hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 4rem 1.5rem;
    position: relative;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(230,180,110,.12), transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(31,64,48,.6), transparent 60%),
        var(--forest-900);
    overflow: hidden;
    color: var(--white);
}
.maintenance-silhouette {
    position: absolute; inset: auto 0 0 0;
    height: 35%; opacity: .25; pointer-events: none;
}
.maintenance-content {
    position: relative; z-index: 2;
    max-width: 680px; text-align: center;
}
.maintenance-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: rgba(230,180,110,.12);
    border: 1px solid rgba(230,180,110,.3);
    border-radius: 100px;
    color: var(--copper-400);
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em;
    margin-bottom: 2rem;
}
.maintenance-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--copper-400);
    animation: maintPulse 1.6s ease-in-out infinite;
}
@keyframes maintPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .4; transform: scale(1.3); }
}
.maintenance-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 500; line-height: 1.1;
    color: var(--white);
    letter-spacing: -.02em;
    margin: 0 0 1.25rem;
}
.maintenance-lead {
    font-size: 17px; line-height: 1.6;
    color: rgba(255,255,255,.8);
    margin: 0 0 2.5rem;
}
.maintenance-contact {
    display: inline-block;
    padding: .8rem 1.5rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: rgba(255,255,255,.75);
}
.maintenance-contact a {
    color: var(--copper-400); font-weight: 600;
    margin-left: 6px;
}
.maintenance-contact a:hover { color: var(--copper-500); text-decoration: underline; }
.maintenance-brand {
    position: absolute; top: 2rem; left: 50%; transform: translateX(-50%);
    font-family: var(--font-serif); font-weight: 600;
    color: rgba(255,255,255,.6); font-size: 15px;
    display: flex; align-items: center; gap: 6px;
}
.maintenance-brand .accent { color: var(--copper-400); }

/* Toggle-Switch für admin/einstellungen */
.toggle-switch {
    position: relative; display: inline-block;
    width: 52px; height: 28px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: var(--ink-300); cursor: pointer;
    border-radius: 14px;
    transition: background .2s;
}
.toggle-slider::before {
    content: ''; position: absolute;
    left: 3px; top: 3px;
    width: 22px; height: 22px;
    background: var(--white);
    border-radius: 50%;
    transition: transform .22s cubic-bezier(.3,.9,.4,1);
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--forest-700); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }
.toggle-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--sand-100);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}
.toggle-row.online {
    background: var(--forest-50);
    border-color: var(--forest-100);
}
.toggle-row.offline {
    background: var(--danger-50);
    border-color: var(--danger-100);
}
.toggle-row .toggle-label {
    flex: 1;
}
.toggle-row .toggle-label strong {
    display: block; color: var(--ink-900); font-size: 15px;
    margin-bottom: 2px;
}
.toggle-row .toggle-label small {
    color: var(--ink-500); font-size: 13px;
}
.toggle-row .toggle-state {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 3px 10px; border-radius: 100px;
}
.toggle-row.online .toggle-state { background: var(--forest-700); color: var(--white); }
.toggle-row.offline .toggle-state { background: var(--danger-700); color: var(--white); }

/* Gradient Stat-Kacheln (Dashboard Hero — 5 oben) */
.admin-hero-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 1100px) { .admin-hero-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .admin-hero-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .admin-hero-grid { grid-template-columns: 1fr; } }

.hero-tile {
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    position: relative; overflow: hidden;
    text-decoration: none; display: block;
    transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s;
}
.hero-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(13,34,24,.15);
    text-decoration: none;
}
.hero-tile .icon {
    position: absolute; top: 1rem; right: 1rem;
    opacity: .35;
}
.hero-tile .count {
    font-family: var(--font-serif);
    font-size: 2.2rem; font-weight: 600; line-height: 1;
    margin: .25rem 0 .35rem;
}
.hero-tile .label {
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
    opacity: .85;
    margin-bottom: .2rem;
}
.hero-tile .sub {
    font-size: 12px; opacity: .75; font-weight: 500;
}
.hero-tile .badge-new {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(255,255,255,.25);
    padding: 2px 8px; border-radius: 10px;
    font-size: 10px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase;
}
/* Roter Hinweis unten in der Kachel (z.B. offene Freischaltungen) */
.hero-tile .tile-alert {
    display: inline-block; margin-top: .5rem;
    background: var(--danger-700); color: #fff;
    border-radius: 999px; padding: 3px 11px;
    font-size: 11.5px; font-weight: 700; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* 5 Varianten — Forest+Copper-Gradients */
.hero-tile.tile-anfragen  { background: linear-gradient(135deg, #c89550 0%, #8c6325 100%); color: #fcf8ef; }
.hero-tile.tile-profis    { background: linear-gradient(135deg, #3d6648 0%, #1f4030 100%); color: #e8f0ea; }
.hero-tile.tile-inserate  { background: linear-gradient(135deg, #6d8a6e 0%, #3d5a4a 100%); color: #e8f0ea; }
.hero-tile.tile-heute     { background: linear-gradient(135deg, #2a2e2b 0%, #0d2218 100%); color: #e6b46e; }
.hero-tile.tile-kategorien{ background: linear-gradient(135deg, #b89f6a 0%, #7a6536 100%); color: #fcf8ef; }

/* Besucher-Section */
/* Besucher-Section — selbe Optik wie tile-heute (dunkles Forest-Grau mit Copper-Akzent) */
.visitors-section {
    background: linear-gradient(135deg, #2a2e2b 0%, #0d2218 100%);
    color: #e6b46e;
    border: none;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 18px rgba(13,34,24,.15);
}
.visitors-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem;
}
.visitors-head h2 {
    font-family: var(--font-serif);
    font-size: 20px; font-weight: 600;
    color: #e6b46e;
}
.visitors-head > div { color: rgba(230,180,110,.7); }
.visitors-head em { color: rgba(230,180,110,.7); font-style: italic; }
.visitors-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr 2.5fr;
    gap: 1.5rem; align-items: end;
}
@media (max-width: 900px) { .visitors-grid { grid-template-columns: repeat(3, 1fr); } .visitors-chart { grid-column: 1 / -1; } }
.visitor-stat {
    padding: .5rem 0;
}
.visitor-stat .num {
    font-family: var(--font-serif);
    font-size: 28px; font-weight: 600; color: #e6b46e;
    line-height: 1; display: block; margin-bottom: .15rem;
    font-variant-numeric: tabular-nums;
}
.visitor-stat .num .sub,
.visitor-stat small {
    font-size: 14px; color: rgba(230,180,110,.65) !important; font-weight: 500;
    font-family: var(--font-sans);
}
.visitor-stat .lbl {
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
    color: rgba(230,180,110,.6); font-weight: 600;
}

/* Mini-Chart (30-Tage-Balken) — auf dunklem Hintergrund */
.visitors-chart {
    border-left: 1px solid rgba(230,180,110,.18);
    padding-left: 1.5rem;
    color: rgba(230,180,110,.7);
}
.visitors-chart > div:first-child { color: rgba(230,180,110,.65) !important; }
.visitors-chart .bars {
    display: flex; align-items: flex-end; gap: 2px;
    height: 60px;
}
.visitors-chart .bar {
    flex: 1;
    background: rgba(230,180,110,.22);
    border-radius: 1px 1px 0 0;
    min-height: 2px;
    position: relative;
    transition: background .12s;
}
.visitors-chart .bar:hover { background: var(--copper-400); }
.visitors-chart .bar[data-today="1"] { background: var(--copper-500); }
.visitors-chart .legend {
    display: flex; justify-content: space-between;
    font-size: 10px; color: rgba(230,180,110,.6);
    margin-top: .4rem;
}

/* Verwaltungs-Kacheln (größere Cards, nach den Stats) */
.admin-mgmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.mgmt-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    display: block; text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.mgmt-card:hover {
    border-color: var(--forest-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.mgmt-card .mgmt-icon {
    width: 40px; height: 40px;
    background: var(--forest-50); color: var(--forest-700);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .75rem;
}
.mgmt-card h3 {
    font-size: 15px; color: var(--forest-800);
    font-weight: 600; margin-bottom: .2rem;
}
.mgmt-card p {
    color: var(--ink-500); font-size: 13px; line-height: 1.5;
}
.mgmt-card .count-pill {
    display: inline-block; margin-top: .5rem;
    font-size: 12px; font-weight: 600;
    color: var(--forest-700);
    padding: 2px 8px; background: var(--forest-50);
    border-radius: 100px;
}

/* System-Bereich (3 Action-Kacheln dunkel) */
.admin-system-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 2rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--ink-100);
}
.admin-system-head h2 {
    font-family: var(--font-serif);
    font-size: 22px; color: var(--forest-800); font-weight: 500;
}
.admin-system-head .env-badge {
    font-size: 12px; font-weight: 700;
    padding: 3px 10px; border-radius: 100px;
    text-transform: uppercase; letter-spacing: .06em;
}
.admin-system-head .env-badge.production { background: var(--forest-100); color: var(--forest-700); }
.admin-system-head .env-badge.local      { background: var(--copper-100); color: var(--copper-700); }

.admin-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.system-card {
    background: var(--forest-800);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    display: block; text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    position: relative; overflow: hidden;
}
.system-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(13,34,24,.2);
    color: var(--white); text-decoration: none;
}
.system-card::before {
    content: ''; position: absolute;
    right: -10px; top: -10px;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(230,180,110,.12) 0%, transparent 70%);
    pointer-events: none;
}
.system-card .sys-icon {
    width: 36px; height: 36px;
    background: rgba(230,180,110,.15);
    color: var(--copper-400);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .75rem;
}
.system-card h3 {
    color: var(--white); font-size: 15px;
    font-weight: 600; margin-bottom: .15rem;
}
.system-card p {
    color: rgba(255,255,255,.65);
    font-size: 13px; line-height: 1.5;
}
.system-card .meta {
    display: block; margin-top: .5rem;
    font-size: 11px; color: var(--copper-400);
    font-weight: 600;
}
/* ════ Dashboard ab „System" — Kachel-Stil (Carving-angelehnt) ════ */
.dash-subhead {
    font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink-500); font-weight: 700; margin: 0 0 .8rem;
}
.dash-tiles { display: grid; gap: .7rem; }
.dash-tiles--system { grid-template-columns: repeat(4, 1fr); margin-bottom: 2.2rem; }
.dash-tiles--mgmt { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .dash-tiles--system { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px)  { .dash-tiles--system, .dash-tiles--mgmt { grid-template-columns: repeat(2, 1fr); } }

/* ── Kachel-Tabs (Admin · Anfragen · Shop · Lexikon · Inhalte) — CSS-only via Radios ──
   Sitzen als rechte Spalte im .dash-split neben Cronjobs/Top-Seiten. */
.dash-tabs { min-width: 0; }
.dash-tabs .dt-radio { position: absolute; opacity: 0; pointer-events: none; }
.dt-bar {
    display: flex; flex-wrap: wrap; gap: .35rem;
    border-bottom: 2px solid var(--ink-100); margin-bottom: 1.1rem;
}
.dt-bar label {
    padding: .55rem 1.1rem; cursor: pointer; user-select: none;
    font-size: 13.5px; font-weight: 600; color: var(--ink-500);
    border: 2px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0;
    margin-bottom: -2px; transition: color .15s, background .15s;
}
.dt-bar label:hover { color: var(--forest-700); background: var(--sand-100); }
/* aktiver Reiter: Radio-Index → Label-Index (nth-of-type) */
.dash-tabs .dt-radio:nth-of-type(1):checked ~ .dt-bar label:nth-of-type(1),
.dash-tabs .dt-radio:nth-of-type(2):checked ~ .dt-bar label:nth-of-type(2),
.dash-tabs .dt-radio:nth-of-type(3):checked ~ .dt-bar label:nth-of-type(3),
.dash-tabs .dt-radio:nth-of-type(4):checked ~ .dt-bar label:nth-of-type(4),
.dash-tabs .dt-radio:nth-of-type(5):checked ~ .dt-bar label:nth-of-type(5) {
    color: var(--forest-700); background: var(--white);
    border-color: var(--ink-100); border-bottom: 2px solid var(--white);
}
/* Tastatur-Fokus sichtbar machen (Radios sind visuell versteckt) */
.dash-tabs .dt-radio:focus-visible:nth-of-type(1) ~ .dt-bar label:nth-of-type(1),
.dash-tabs .dt-radio:focus-visible:nth-of-type(2) ~ .dt-bar label:nth-of-type(2),
.dash-tabs .dt-radio:focus-visible:nth-of-type(3) ~ .dt-bar label:nth-of-type(3),
.dash-tabs .dt-radio:focus-visible:nth-of-type(4) ~ .dt-bar label:nth-of-type(4),
.dash-tabs .dt-radio:focus-visible:nth-of-type(5) ~ .dt-bar label:nth-of-type(5) {
    outline: 2px solid var(--forest-700); outline-offset: 2px;
}
.dt-panel { display: none; }
#dtab-admin:checked    ~ .dt-p-admin,
#dtab-anfragen:checked ~ .dt-p-anfragen,
#dtab-shop:checked     ~ .dt-p-shop,
#dtab-lexikon:checked  ~ .dt-p-lexikon,
#dtab-inhalte:checked  ~ .dt-p-inhalte { display: block; }
.dt-panel .dash-tiles--mgmt { margin-bottom: 0; }

/* Admin-Tab: höhere Boxen; zwei Farben — Shop-Kacheln orange, Gesamtübersichten grün */
.dt-p-admin .dash-tile { min-height: 132px; }
.dt-p-admin .dash-tile.t-green  { background: linear-gradient(135deg, #2a5542, #1f4030); }
.dt-p-admin .dash-tile.t-amber  { background: linear-gradient(135deg, #e08a3c, #b35e1e); }
.dt-p-admin .dash-tile .icon { color: var(--copper-400); }
.dt-p-admin .dash-tile.t-amber .icon { color: #fff; }

/* Platzhalter im Admin-Tab, bis der Inhalt feststeht */
.dt-placeholder {
    display: flex; align-items: center; gap: 1rem;
    padding: 2rem 1.5rem; border: 1px dashed var(--ink-100);
    border-radius: var(--radius-md); background: var(--sand-100); color: var(--ink-500);
}
.dt-placeholder .icon { color: var(--ink-400); flex-shrink: 0; }
.dt-placeholder p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.dt-placeholder strong { color: var(--ink-700); }

.dash-tile {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .45rem; text-align: center; min-height: 100px;
    padding: 1.1rem .6rem; border-radius: var(--radius-md);
    text-decoration: none; color: #fff;
    transition: transform .18s, box-shadow .18s;
}
.dash-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(13,34,24,.22); color: #fff; text-decoration: none; }
.dash-tile .icon { width: 26px; height: 26px; position: relative; z-index: 1; }
.dash-tile h3 { font-size: 13.5px; font-weight: 600; margin: 0; line-height: 1.2; position: relative; z-index: 1; }
.dash-tile .tile-count { font-size: 11px; font-weight: 600; opacity: .82; position: relative; z-index: 1; }
.dash-tile .tile-badge { position: absolute; top: .45rem; right: .5rem; z-index: 2; background: var(--danger-700); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
/* Blatt-Textur (dezent) */
.dash-tile::before {
    content: ''; position: absolute; inset: 0; opacity: .07; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 5c0 0-10 10-10 25s10 25 10 25 10-10 10-25S30 5 30 5z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
}
/* Farbvarianten */
.dash-tile--system { background: linear-gradient(135deg, var(--forest-800), var(--forest-900)); }
.dash-tile--system .icon { color: var(--copper-400); }
.dash-tile.t-green  { background: linear-gradient(135deg, #3a7d4e, #1f5a33); }
.dash-tile.t-copper { background: linear-gradient(135deg, #cf9450, #9a6322); }
.dash-tile.t-amber  { background: linear-gradient(135deg, #d9a441, #b07d22); }
.dash-tile.t-wald   { background: linear-gradient(135deg, #2a5542, #1f4030); }
.dash-tile.t-baum   { background: linear-gradient(135deg, #e08a3c, #b35e1e); }
.dash-tile.t-garten { background: linear-gradient(135deg, #4a9e44, #2a6b2a); }

/* Cronjob-Status + Verwaltung nebeneinander */
.dash-split { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .dash-split { grid-template-columns: 1fr; } }
.cron-panel { background: linear-gradient(135deg, var(--forest-800), var(--forest-900)); color: #fff; border-radius: var(--radius-md); overflow: hidden; }
.cron-panel-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1); }
.cron-panel-head a { font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.15); padding: .3rem .7rem; border-radius: 999px; text-decoration: none; }
.cron-panel-head a:hover { background: rgba(255,255,255,.28); }
.cron-row { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1.1rem; border-top: 1px solid rgba(255,255,255,.07); }
.cron-row:first-of-type { border-top: 0; }
.cron-row .cn { font-size: 13.5px; font-weight: 500; }
.cron-row .ct { font-size: 11.5px; opacity: .6; display: block; margin-top: 1px; }
.cron-badge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.cron-badge.ok   { background: #2f8f4e; color: #fff; }
.cron-badge.err  { background: var(--danger-700); color: #fff; }
.cron-badge.none { background: rgba(255,255,255,.18); color: #fff; }

/* Dashboard-Zurück-Button in der Admin-Pagehead (alle Unterseiten) */
.admin-pagehead .admin-back-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    margin-bottom: .7rem;
    background: var(--forest-700); color: #fff;
    border-radius: 999px; padding: .4rem .95rem;
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.admin-pagehead .admin-back-btn:hover {
    background: var(--forest-800); transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13,34,24,.2); color: #fff;
}
.admin-pagehead .admin-back-btn .icon { width: 15px; height: 15px; }

/* Profi-Status-Grid (5 Boxen: Firmenprofil, 3 Platzhalter, Notdienst/Ausbildung) */
.profi-status-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 2rem;
}
@media (max-width: 1100px) { .profi-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .profi-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .profi-status-grid { grid-template-columns: 1fr; } }

.profi-card {
    background: var(--forest-800);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.15rem;
    display: flex; flex-direction: column;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    position: relative; overflow: hidden;
    min-width: 0;
}
.profi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(13,34,24,.2);
    color: var(--white); text-decoration: none;
}
.profi-card .pc-icon {
    width: 32px; height: 32px;
    background: rgba(230,180,110,.15);
    color: var(--copper-400);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .65rem;
}
.profi-card h3 {
    color: var(--white); font-size: 14px; font-weight: 600;
    margin: 0 0 .25rem;
}
.profi-card p {
    color: rgba(255,255,255,.65);
    font-size: 12px; line-height: 1.45;
    margin: 0;
}

/* Platzhalter-Card — gedämpft, nicht klickbar */
.profi-card.is-placeholder {
    background: var(--ink-100);
    color: var(--ink-500);
    cursor: default;
}
.profi-card.is-placeholder:hover {
    transform: none; box-shadow: none;
}
.profi-card.is-placeholder h3  { color: var(--ink-700); }
.profi-card.is-placeholder p   { color: var(--ink-500); }
.profi-card.is-placeholder .pc-icon {
    background: var(--white); color: var(--ink-500);
}

/* Firmenprofil: Progress-Bar */
.profi-card .pc-progress {
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    height: 6px; margin: .4rem 0 .4rem; overflow: hidden;
}
.profi-card .pc-progress-bar {
    height: 100%; border-radius: 999px;
    transition: width .3s;
}

/* Toggle-Card: iOS-Slider + Save-Button */
.profi-card.is-toggle {
    cursor: default;
}
.profi-card.is-toggle:hover { transform: none; box-shadow: none; }
.profi-card .pc-switch {
    display: flex; align-items: center; gap: .55rem;
    padding: .35rem 0; cursor: pointer;
    font-size: 12.5px; color: rgba(255,255,255,.85);
}
.profi-card .pc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.profi-card .pc-slider {
    position: relative;
    width: 36px; height: 20px;
    background: rgba(255,255,255,.25);
    border-radius: 999px; flex-shrink: 0;
    transition: background .2s;
}
.profi-card .pc-slider::before {
    content: ''; position: absolute;
    top: 2px; left: 2px; width: 16px; height: 16px;
    background: var(--white); border-radius: 50%;
    transition: transform .2s;
}
.profi-card .pc-switch input:checked ~ .pc-slider { background: var(--copper-400); }
.profi-card .pc-switch input:checked ~ .pc-slider::before { transform: translateX(16px); }
.profi-card .pc-switch-label { flex: 1; }
.profi-card .pc-save {
    margin-top: .6rem; align-self: flex-start;
    font-size: 12px; padding: .45rem .9rem;
}

/* System-Status-Strip (neu — Dashboard first-section) */
.system-status {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    align-items: center;
}
.system-status .ss-item {
    display: flex; flex-direction: column; gap: .15rem;
}
.system-status .ss-item .label {
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink-500); font-weight: 600;
}
.system-status .ss-item .value {
    font-weight: 600; color: var(--ink-900); font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.system-status .ss-item .value.ok      { color: var(--forest-700); }
.system-status .ss-item .value.warn    { color: var(--copper-700); }
.system-status .ss-item .value.danger  { color: var(--danger-700); }
.system-status .ss-item .value .dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; margin-right: 5px;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .admin-topnav-inner { padding: 0 .75rem; gap: .5rem; }
    .admin-topnav .tn-brand { padding-right: .75rem; }
    .admin-topnav .tn-link,
    .admin-topnav .tn-trigger { padding: .5rem .6rem; font-size: 12px; }
    .admin-topnav .tn-user-meta { display: none; }
    .admin-main { padding: 1.5rem 1rem; }
    .admin-pagehead h1 { font-size: 24px; }
}

/* Backwards compat — nicht mehr genutzt, aber falls irgendwo referenced */
.admin-sidebar, .admin-topbar { display: none; }

/* Stat-Kachel-Grid im Dashboard */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.stat-tile {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    position: relative; overflow: hidden;
    display: block;
    transition: transform .15s, box-shadow .15s;
}
.stat-tile:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-md);
    text-decoration: none;
}
.stat-tile .stat-icon {
    width: 40px; height: 40px;
    background: var(--forest-50); color: var(--forest-700);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .75rem;
}
.stat-tile .stat-num {
    font-family: var(--font-serif);
    font-size: 32px; font-weight: 500;
    color: var(--forest-800); line-height: 1;
    margin-bottom: .25rem;
}
.stat-tile .stat-label {
    font-size: 14px; color: var(--ink-500); font-weight: 500;
}
.stat-tile .stat-trend {
    position: absolute; top: 1rem; right: 1.25rem;
    font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
    background: var(--danger-100); color: var(--danger-700);
}
.stat-tile .stat-trend.neutral { background: var(--ink-100); color: var(--ink-500); }
.stat-tile .stat-trend.ok { background: var(--forest-100); color: var(--forest-700); }

.stat-tile.variant-copper .stat-icon { background: var(--copper-50); color: var(--copper-700); }
.stat-tile.variant-danger .stat-icon { background: var(--danger-50); color: var(--danger-700); }
.stat-tile.variant-ink    .stat-icon { background: var(--ink-100);   color: var(--ink-700); }

/* Admin-Karte (generischer Panel-Container) */
.admin-panel {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.admin-panel-head {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--ink-100);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .75rem;
}
.admin-panel-head h2 {
    font-family: var(--font-serif);
    font-size: 18px; color: var(--forest-800); font-weight: 600;
}
.admin-panel-body { padding: 1.5rem; }
.admin-panel-body.dense { padding: 0; }

/* Admin-Tabelle */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    background: var(--sand-200);
    color: var(--ink-700); font-weight: 600;
    text-align: left;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid var(--ink-100);
    font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
}
.admin-table td {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--ink-100);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--sand-100); }
.admin-table .status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
}
.admin-table .status-offen            { background: var(--forest-100); color: var(--forest-700); }
.admin-table .status-angebote_erhalten { background: var(--copper-100); color: var(--copper-700); }
.admin-table .status-vergeben         { background: var(--ink-100); color: var(--ink-700); }
.admin-table .status-abgeschlossen    { background: #e0eed8; color: #4a5f2a; }
.admin-table .status-storniert        { background: var(--danger-100); color: var(--danger-700); }
.admin-table .row-actions { display: flex; gap: .5rem; }
.admin-table .row-actions a {
    font-size: 13px; color: var(--forest-700); font-weight: 500;
}
.admin-table .row-actions a:hover { color: var(--copper-700); }

/* Filter-Bar */
.admin-filters {
    display: flex; gap: .75rem; flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: var(--sand-100);
    border-bottom: 1px solid var(--ink-100);
}
.admin-filters select, .admin-filters input {
    padding: .45rem .75rem;
    border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
    font-size: 13px; font-family: inherit;
    background: var(--white);
}
.admin-filters .btn-reset {
    color: var(--ink-500); font-size: 13px; font-weight: 500;
    padding: .45rem .75rem;
}

/* Empty-State im Admin */
.admin-empty {
    padding: 3rem 1rem; text-align: center;
    color: var(--ink-500);
}
.admin-empty .icon { font-size: 2rem; margin-bottom: .5rem; opacity: .4; }

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; max-height: none; }
    .admin-main { padding: 1.5rem 1rem; }
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 900px) {
    .service-grid, .marktplatz-grid, .profi-split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero { padding: 64px 24px 56px; }
    .section { padding: 56px 0; }
    .section-header h2 { font-size: 28px; }
    .header-inner { flex-wrap: wrap; gap: 10px 16px; }
    .nav { order: 3; width: 100%; justify-content: center; gap: 12px 16px; font-size: 13px; }
}
@media (max-width: 768px) {
    .topbar-inner { flex-direction: column; gap: 8px; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .hero-trust { gap: 14px; font-size: 12px; }
}

/* ═══ HANDY-HEADER ═══════════════════════════════════════════════════════
   Aufgeräumt: nur Logo · Notdienst-Icon · Burger. Die Bereichs-Nav wandert in
   den Burger (.acct-nav-mobile), Suchfeld aus. Bereiche zusätzlich über das
   Wisch-Band unter dem Hero erreichbar.
   Bewusst nach den übrigen Responsive-Blöcken, damit die Quellreihenfolge gewinnt. */
@media (max-width: 768px) {
    .header-inner { padding: 12px 16px; }
    .header-actions { gap: 18px; }
    .header-actions .nav-search { display: none; }            /* Suchfeld auf dem Handy aus */
    .nav { display: none; }                                   /* Bereichs-Nav raus aus dem Header */
    .nav-more { display: none; }                              /* „Mehr ▾" weg */
    /* Konto-Menü → Burger: Text + Caret raus, Hamburger rein */
    .acct-menu > summary .acct-label,
    .acct-menu > summary .acct-caret { display: none; }
    .acct-menu .acct-burger { display: inline-block; color: var(--ink-700); }
    /* Bereichs-Links erscheinen im Burger-Dropdown */
    .acct-nav-mobile { display: flex; }
    /* Notdienst nur als Icon (kein „Not"-Text) */
    .header-actions a.emergency .nav-abbr { display: none; }
    .header-actions a.emergency { gap: 0; }
}

/* Lucide-Icon-Sprite (public/assets/img/icons.svg) */
.icon { display: inline-block; width: 24px; height: 24px; vertical-align: middle; stroke: currentColor; fill: none; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 32px; height: 32px; }
.icon-solid { fill: currentColor; stroke: none; }

/* Login-Modal (eingebunden via src/Views/login_modal.php) */
.login-modal-card { max-width: 420px; }
.login-modal-card h2 { margin: 0 0 .25rem; font-family: var(--font-serif); }
.login-modal-card .qi-sub { color: var(--ink-500); font-size: 13px; margin-bottom: 1.25rem; }
.login-modal-footer {
    margin-top: 1.25rem; padding-top: 1rem;
    border-top: 1px solid var(--ink-100);
    text-align: center; font-size: 13px; color: var(--ink-500);
}
.login-modal-footer a { color: var(--forest-700); font-weight: 500; }
.login-modal-footer a:hover { color: var(--forest-800); text-decoration: underline; }

/* Register-Modal (eingebunden via src/Views/register_modal.php) */
.register-modal-card { max-width: 820px; }
.register-modal-card > h2 { font-family: var(--font-serif); margin: 0 0 .25rem; }
.register-modal-card .qi-sub { color: var(--ink-500); font-size: 13px; margin-bottom: 1rem; }
.register-modal-form .form-group { margin-bottom: .9rem; }
.register-modal-form .role-choice label .role-icon { color: var(--forest-700); }
.register-modal-form .role-choice label .role-icon svg { width: 28px; height: 28px; }
.register-modal-agb {
    margin-top: .75rem; padding: .6rem .85rem;
    background: var(--sand-100); border-radius: var(--radius-sm);
    border-left: 3px solid var(--forest-700);
}
