/* ==========================================================
   Ferienwohnung Auerbach – Stylesheet mit drei Designs
   Das Design wird unter Einstellungen → Allgemein gewählt und als
   <html data-theme="…"> ausgegeben:
     edel  – „Dunkel & edel“ (Standard): Waldgrün/Anthrazit, Messing, Serifenschrift
     hell  – „Hell & luftig“: Weiß, viel Luft, Anthrazit + Terrakotta, serifenlos
     natur – „Natur & warm“: Salbeigrün, Sand, Terrakotta, freundlich-rund
   Alle Farben laufen über die Variablen unten. Keine externen Schriften (Datenschutz).
   ========================================================== */

:root {
    /* Grundpalette „Dunkel & edel“ */
    --night:      #101b18;
    --night-2:    #172622;
    --night-3:    #223631;
    --on-night:   #f1ebe0;   /* heller Text auf Fotos/dunkel */
    --on-night-2: #aab5af;

    /* helle Flächen */
    --bg:         #f5f2ec;
    --surface:    #ffffff;
    --surface-2:  #faf8f4;
    --ink:        #1b2421;
    --muted:      #5a6560;
    --line:       #e6e0d5;
    --line-2:     #d7cfc1;
    --heading:    var(--night);

    /* Akzent (Buttons, Markierungen) */
    --accent:     #c9a86a;
    --accent-2:   #b8955a;
    --accent-rgb: 201, 168, 106;
    --on-accent:  var(--night);
    --accent-ink: #7d5f2c;   /* Akzent-Text auf hell (ausreichender Kontrast) */
    --link:       #1f4a3f;
    --link-line:  rgba(31, 74, 63, .35);
    --link-hover: var(--accent-ink);
    --ghost-line: rgba(16, 27, 24, .3);

    /* dunkle Elemente (Kennzahlen, Preisbox, aktive Reiter, Auswahl im Kalender) */
    --dark:         var(--night);
    --dark-2:       var(--night-2);
    --dark-3:       var(--night-3);
    --on-dark:      var(--on-night);
    --on-dark-2:    var(--on-night-2);
    --on-dark-line: rgba(241, 235, 224, .14);
    --dark-accent:  var(--accent);

    /* Kopfleiste */
    --hd-bg:        rgba(16, 27, 24, .92);
    --hd-menu:      var(--night);
    --hd-hover:     var(--night-2);
    --hd-fg:        var(--on-night);
    --hd-fg-2:      var(--on-night-2);
    --hd-fg-hover:  #fff;
    --hd-accent:    var(--accent);
    --hd-on-accent: var(--night);
    --hd-admin:     #d9c49a;
    --hd-line:      rgba(201, 168, 106, .18);
    --hd-ring:      rgba(201, 168, 106, .45);
    --hd-sep:       rgba(241, 235, 224, .22);

    /* Seitenkopf ohne Foto (z. B. Buchen) */
    --band-bg:     var(--night);
    --band-fg:     var(--on-night);
    --band-head:   var(--on-night);
    --band-fg-2:   #d8d2c6;
    --band-accent: var(--accent);
    --band-strip:  var(--night-2);
    --band-line:   rgba(201, 168, 106, .18);
    --band-ghost:  rgba(241, 235, 224, .4);

    /* Titelbild */
    --hero-accent:    var(--accent);
    --hero-overlay-1: linear-gradient(90deg, rgba(10, 17, 15, .82) 0%, rgba(10, 17, 15, .5) 45%, rgba(10, 17, 15, .12) 100%);
    --hero-overlay-2: linear-gradient(0deg, rgba(10, 17, 15, .55) 0%, rgba(10, 17, 15, 0) 45%);

    /* Fußbereich */
    --ft-bg:     var(--night);
    --ft-fg:     var(--on-night-2);
    --ft-strong: var(--on-night);
    --ft-accent: var(--accent);
    --ft-muted:  #7f8a85;
    --ft-line:   rgba(201, 168, 106, .2);
    --ft-line-2: rgba(241, 235, 224, .1);
    --ft-ghost:  rgba(241, 235, 224, .4);

    --danger:     #a3342c;
    --ok:         #2d6a4f;

    /* Kalender */
    --c-free:     #edf1ec;
    --c-booked:   #d7a38d;
    --c-pending:  #ecd394;
    --c-blocked:  #c4cac6;
    --holiday:    #b3372c;
    --ferien:     #3d7894;

    --radius:     16px;
    --radius-sm:  10px;
    --shadow:     0 1px 2px rgba(16, 27, 24, .04), 0 8px 28px rgba(16, 27, 24, .07);
    --shadow-lg:  0 2px 6px rgba(16, 27, 24, .06), 0 22px 50px rgba(16, 27, 24, .14);
    --font-body:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head:  "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, serif;
    --head-weight:   500;    /* h1/h2, große Zahlen */
    --head-weight-3: 600;    /* h3/h4 */
    --head-ls:       -.01em;
    --header-h:   72px;

    /* ältere Namen (werden noch von Inline-Styles/JS genutzt) */
    --brass: var(--accent);
    --brass-2: var(--accent-2);
    --brass-ink: var(--accent-ink);
    --forest: var(--link);
    --green: var(--link);
    --green-dark: var(--dark);
    --green-soft: #eaf0ec;
    --sand: var(--surface-2);
    --terra: var(--accent);
}

/* ==========================================================
   Design „Hell & luftig“
   ========================================================== */
[data-theme="hell"] {
    --bg:         #fbfaf8;
    --surface:    #ffffff;
    --surface-2:  #f6f4f1;
    --ink:        #22262a;
    --muted:      #646b70;
    --line:       #ebe8e3;
    --line-2:     #dcd7cf;
    --heading:    #1d2125;

    --accent:     #c4572e;
    --accent-2:   #a9461f;
    --accent-rgb: 196, 87, 46;
    --on-accent:  #ffffff;
    --accent-ink: #a9461f;
    --link:       #a9461f;
    --link-line:  rgba(169, 70, 31, .35);
    --link-hover: #1d2125;
    --ghost-line: rgba(29, 33, 37, .25);

    --dark:         #24292e;
    --dark-2:       #30363c;
    --dark-3:       #3b424a;
    --on-dark:      #f7f6f4;
    --on-dark-2:    #b9bfc4;
    --on-dark-line: rgba(255, 255, 255, .14);
    --dark-accent:  #f2a37f;

    --hd-bg:        rgba(255, 255, 255, .86);
    --hd-menu:      #ffffff;
    --hd-hover:     #f4f2ef;
    --hd-fg:        #24292e;
    --hd-fg-2:      #6b7277;
    --hd-fg-hover:  #000;
    --hd-accent:    #c4572e;
    --hd-on-accent: #ffffff;
    --hd-admin:     #8a5a3f;
    --hd-line:      rgba(29, 33, 37, .08);
    --hd-ring:      rgba(196, 87, 46, .35);
    --hd-sep:       rgba(29, 33, 37, .14);

    --band-bg:     #f3efe9;
    --band-fg:     #3f464b;
    --band-head:   #1d2125;
    --band-fg-2:   #50585e;
    --band-accent: #a9461f;
    --band-strip:  #ffffff;
    --band-line:   #e6e0d6;
    --band-ghost:  rgba(29, 33, 37, .25);

    --hero-accent:    #ffd2bd;
    --hero-overlay-1: linear-gradient(90deg, rgba(20, 22, 25, .55) 0%, rgba(20, 22, 25, .2) 55%, rgba(20, 22, 25, 0) 100%);
    --hero-overlay-2: linear-gradient(0deg, rgba(20, 22, 25, .6) 0%, rgba(20, 22, 25, 0) 55%);

    --ft-bg:     #f3f1ed;
    --ft-fg:     #5b6267;
    --ft-strong: #1d2125;
    --ft-accent: #a9461f;
    --ft-muted:  #80878c;
    --ft-line:   #e4dfd7;
    --ft-line-2: #e4dfd7;
    --ft-ghost:  rgba(29, 33, 37, .25);

    --c-free:     #f0f2ef;
    --radius:     22px;
    --radius-sm:  14px;
    --shadow:     0 1px 2px rgba(20, 22, 25, .04), 0 10px 30px rgba(20, 22, 25, .06);
    --shadow-lg:  0 4px 10px rgba(20, 22, 25, .05), 0 24px 60px rgba(20, 22, 25, .12);
    --font-head:  var(--font-body);
    --head-weight:   700;
    --head-weight-3: 650;
    --head-ls:       -.025em;
    --h2-rule:       none;
    --green-soft: #f6efe9;
}

/* ==========================================================
   Design „Natur & warm“
   ========================================================== */
[data-theme="natur"] {
    --bg:         #fbf7ef;
    --surface:    #ffffff;
    --surface-2:  #f6f0e4;
    --ink:        #2b2c26;
    --muted:      #646559;
    --line:       #ebe2d0;
    --line-2:     #dccfb6;
    --heading:    #1f4238;

    --accent:     #b85c2f;
    --accent-2:   #9e4c25;
    --accent-rgb: 184, 92, 47;
    --on-accent:  #ffffff;
    --accent-ink: #984a24;
    --link:       #2f5d50;
    --link-line:  rgba(47, 93, 80, .35);
    --link-hover: #984a24;
    --ghost-line: rgba(31, 66, 56, .3);

    --dark:         #1f4238;
    --dark-2:       #2a5246;
    --dark-3:       #346053;
    --on-dark:      #f7f1e3;
    --on-dark-2:    #bfcdc4;
    --on-dark-line: rgba(247, 241, 227, .15);
    --dark-accent:  #f2c48d;

    --hd-bg:        rgba(47, 93, 80, .97);
    --hd-menu:      #2f5d50;
    --hd-hover:     #3a6b5d;
    --hd-fg:        #f7f1e3;
    --hd-fg-2:      #c9d6cd;
    --hd-fg-hover:  #fff;
    --hd-accent:    #f2c48d;
    --hd-on-accent: #1f4238;
    --hd-admin:     #f0d7b0;
    --hd-line:      rgba(0, 0, 0, .08);
    --hd-ring:      rgba(242, 196, 141, .55);
    --hd-sep:       rgba(247, 241, 227, .25);

    --band-bg:     #2f5d50;
    --band-fg:     #f7f1e3;
    --band-head:   #ffffff;
    --band-fg-2:   #dfe6dc;
    --band-accent: #f2c48d;
    --band-strip:  #275045;
    --band-line:   rgba(242, 196, 141, .25);
    --band-ghost:  rgba(247, 241, 227, .45);

    --hero-accent:    #f2c48d;
    --hero-overlay-1: linear-gradient(90deg, rgba(20, 45, 38, .72) 0%, rgba(20, 45, 38, .35) 50%, rgba(20, 45, 38, .05) 100%);
    --hero-overlay-2: linear-gradient(0deg, rgba(20, 45, 38, .55) 0%, rgba(20, 45, 38, 0) 45%);

    --ft-bg:     #1f4238;
    --ft-fg:     #bfcdc4;
    --ft-strong: #f7f1e3;
    --ft-accent: #f2c48d;
    --ft-muted:  #8fa69b;
    --ft-line:   rgba(242, 196, 141, .2);
    --ft-line-2: rgba(247, 241, 227, .1);
    --ft-ghost:  rgba(247, 241, 227, .45);

    --c-free:     #eef1e6;
    --radius:     14px;
    --radius-sm:  10px;
    --shadow:     0 1px 2px rgba(31, 66, 56, .05), 0 6px 18px rgba(31, 66, 56, .06);
    --shadow-lg:  0 2px 6px rgba(31, 66, 56, .06), 0 18px 40px rgba(31, 66, 56, .12);
    --font-head:  "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI", Nunito, "Trebuchet MS", system-ui, sans-serif;
    --head-weight:   600;
    --head-weight-3: 600;
    --head-ls:       -.015em;
    --green-soft: #eef1e6;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-color: var(--link-line); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--heading); margin: 1.8em 0 .55em; font-weight: var(--head-weight-3); letter-spacing: var(--head-ls); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-top: .4em; font-weight: var(--head-weight); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: var(--head-weight); }
h2::before { content: ""; display: var(--h2-rule, block); width: 44px; height: 2px; background: var(--accent); margin-bottom: .7em; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.05em; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.container.narrow { width: min(780px, 100% - 3rem); }
@media (max-width: 560px) { .container, .container.narrow { width: calc(100% - 2rem); } }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
.eyebrow { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6rem; }
::selection { background: rgba(var(--accent-rgb), .35); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- Kopfbereich ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--hd-bg); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--hd-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--hd-fg); }
.brand:hover { color: var(--hd-fg); }
.brand-mark { color: var(--hd-accent); display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--hd-ring); border-radius: 50%; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-text strong { font-family: var(--font-head); font-size: 1.22rem; font-weight: var(--head-weight); letter-spacing: .01em; }
.brand-text small { color: var(--hd-fg-2); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .2rem; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-nav a, .nav-logout button {
    position: relative; display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem .85rem; text-decoration: none; white-space: nowrap;
    color: var(--hd-fg); font: inherit; font-size: .93rem; letter-spacing: .01em; background: none; border: 0; cursor: pointer; border-radius: 999px;
    transition: color .15s, background .15s;
}
.main-nav a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 1px; background: var(--hd-accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.main-nav a:hover { color: var(--hd-fg-hover); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--hd-accent); }
.main-nav a.nav-cta { border: 1px solid var(--hd-accent); color: var(--hd-accent); padding-inline: 1.1rem; margin-left: .3rem; }
.main-nav a.nav-cta::after { display: none; }
.main-nav a.nav-cta:hover, .main-nav a.nav-cta.active { background: var(--hd-accent); color: var(--hd-on-accent); }
.main-nav a.nav-admin { color: var(--hd-admin); font-size: .88rem; }
.main-nav a.nav-admin.active { color: var(--hd-accent); }
.nav-sep { width: 1px; height: 1.4rem; background: var(--hd-sep); margin-inline: .5rem; }
.nav-logout { margin: 0; }
.nav-logout button { color: var(--hd-fg-2); font-size: .88rem; }
.nav-logout button:hover { color: var(--hd-fg-hover); }
.badge { background: var(--hd-accent); color: var(--hd-on-accent); font-size: .7rem; min-width: 1.3rem; height: 1.3rem; border-radius: 999px; display: inline-grid; place-items: center; padding-inline: .3rem; font-weight: 700; }

.nav-toggle { display: none; background: none; border: 1px solid var(--hd-sep); border-radius: 12px; width: 44px; height: 44px; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--hd-fg); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1100px) {
    .nav-toggle { display: flex; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--hd-menu); border-bottom: 1px solid var(--hd-line); padding: .6rem 1.25rem 1.2rem; box-shadow: var(--shadow-lg); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
    .main-nav a, .nav-logout button { width: 100%; padding: .8rem 1rem; border-radius: 12px; font-size: 1rem; }
    .main-nav a::after { display: none; }
    .main-nav a:hover { background: var(--hd-hover); }
    .main-nav a.nav-cta { margin: .4rem 0 0; justify-content: center; }
    .nav-sep { width: 100%; height: 1px; margin: .4rem 0; }
    .editor-toolbar { top: 0; }
}

/* ---------- Titelbild ---------- */
.hero { position: relative; background-color: var(--dark); background-size: cover; background-position: center; min-height: clamp(300px, 46vh, 480px); display: flex; }
.hero.hero-home { min-height: clamp(420px, 72vh, 720px); }
.hero-overlay {
    flex: 1; display: flex; align-items: flex-end; padding-block: clamp(2rem, 6vw, 4.5rem);
    background:
        var(--hero-overlay-1),
        var(--hero-overlay-2);
}
.hero .eyebrow { color: var(--hero-accent); }
.hero h1 { color: var(--on-night); margin: 0; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: var(--head-weight); max-width: 16ch; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero h1::before { display: none; }
.hero-sub { color: #e5dfd3; font-size: clamp(1.05rem, 1.8vw, 1.3rem); margin: .8rem 0 0; max-width: 46ch; font-weight: 300; }
.hero-cta { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.hero-note { color: var(--on-night); font-size: .95rem; letter-spacing: .02em; }
.hero-note::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--hero-accent); vertical-align: middle; margin-right: .6rem; }
.hero-cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }

/* Dunkler Seitenkopf ohne Titelbild (z. B. Buchen) */
.page-head { background: var(--band-bg); color: var(--band-fg); padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(1.8rem, 4vw, 2.6rem); }
.page-head h1 { color: var(--band-head); margin: 0 0 .5rem; }
.page-head .lead { color: var(--band-fg-2); max-width: 62ch; }
.page-head .eyebrow { color: var(--band-accent); }
.page-head a { color: var(--band-accent); }
.page-head .info-strip { margin-bottom: 0; }

/* ---------- Inhalt ---------- */
.content { padding-block: clamp(2.2rem, 5vw, 3.6rem) 4rem; }
.content > :first-child { margin-top: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: #3a4541; line-height: 1.65; font-weight: 400; }
.content img { border-radius: var(--radius-sm); }
.content ul { padding-left: 1.3rem; }
.content li { margin-bottom: .4rem; }
.content > p:first-child { font-size: clamp(1.1rem, 1.6vw, 1.26rem); color: #333d39; }
.checklist { list-style: none; padding-left: 0 !important; columns: 2 280px; column-gap: 2.5rem; }
.checklist li { position: relative; padding-left: 1.8rem; break-inside: avoid; }
.checklist li::before { content: ""; position: absolute; left: .1rem; top: .55em; width: .8rem; height: .42rem; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
blockquote { margin: 1.4rem 0; padding: 1.1rem 1.4rem; background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow); font-family: var(--font-head); font-size: 1.1rem; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td { border-bottom: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 2.5rem 0; }

/* Kennzahlen: dunkle Kacheln mit Messing-Zahlen */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 2.2rem 0; background: rgba(var(--accent-rgb), .25); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.facts > div { background: var(--dark); padding: 1.5rem .8rem 1.3rem; text-align: center; }
.facts strong { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: var(--head-weight); color: var(--dark-accent); line-height: 1.1; }
.facts span { color: var(--on-dark-2); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.6rem 0 2rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; border-radius: var(--radius-sm); transition: transform .35s ease, box-shadow .35s ease, filter .35s; box-shadow: var(--shadow); }
.gallery img:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); filter: brightness(1.04); }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
@media (max-width: 700px) {
    .gallery { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
    .gallery img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; height: auto; }
}

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; margin: 1.6rem 0 2rem; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding-bottom: .6rem; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; display: block; }
.card h3 { margin: 1.1rem 1.3rem .35rem; font-size: 1.25rem; }
.card p { margin: 0 1.3rem .9rem; color: #48534e; font-size: .96rem; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 2.5rem; }

.img-s { width: 200px; } .img-m { width: 360px; } .img-l { width: 560px; } .img-full { width: 100%; }
.float-left { float: left; margin: .3rem 1.4rem .8rem 0; }
.float-right { float: right; margin: .3rem 0 .8rem 1.4rem; }
.img-center { display: block; margin-inline: auto; }
@media (max-width: 640px) { .float-left, .float-right { float: none; margin: 1rem auto; display: block; } .img-s, .img-m, .img-l { max-width: 100%; } }
.content::after { content: ""; display: block; clear: both; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--accent); color: var(--on-accent); text-decoration: none; border: 1px solid var(--accent);
    padding: .72rem 1.45rem; border-radius: 999px; font: inherit; font-size: .95rem; font-weight: 600; letter-spacing: .02em;
    cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(var(--accent-rgb), .35); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--ghost-line); }
.btn-ghost:hover { background: var(--dark); color: var(--on-dark); border-color: var(--dark); box-shadow: none; }
.btn-small { padding: .38rem .95rem; font-size: .86rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(163, 52, 44, .5); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: none; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #235740; border-color: #235740; color: #fff; box-shadow: 0 6px 18px rgba(45, 106, 79, .3); }
.btn-hero { padding: .95rem 1.8rem; font-size: 1rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { display: flex; width: 100%; }
.hero .btn-ghost { color: var(--on-night); border-color: rgba(241, 235, 224, .4); }
.page-head .btn-ghost { color: var(--band-head); border-color: var(--band-ghost); }
.site-footer .btn-ghost { color: var(--ft-strong); border-color: var(--ft-ghost); }
.page-head .btn-ghost:hover, .site-footer .btn-ghost:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Formulare ---------- */
.form label { display: block; font-weight: 600; font-size: .86rem; letter-spacing: .02em; color: #2d3733; margin-bottom: 1.1rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=password], .form input[type=date],
.form input[type=number], .form input[type=url], .form input[type=time], .form input[type=search], .form select, .form textarea, .input {
    display: block; width: 100%; margin-top: .35rem; padding: .65rem .85rem; font: inherit; font-size: .98rem; font-weight: 400; color: var(--ink);
    border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=password], .form input[type=date],
.form input[type=number], .form input[type=url], .form input[type=time], .form select {
    height: 2.9rem; min-height: 2.9rem; line-height: 1.3;
}
.form input[type=date] { -webkit-appearance: none; appearance: none; min-width: 0; }
.form input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:hover, .form select:hover, .form textarea:hover, .input:hover { border-color: #bfb49f; }
.form input:focus, .form select:focus, .form textarea:focus, .input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .22); }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 1rem; align-items: start; }
.form .row.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .form .row.row-2 { grid-template-columns: 1fr; } }
/* Felder einer Zeile bündig, auch bei zweizeiligen Beschriftungen */
@supports (grid-template-rows: subgrid) {
    .form .row > label:not(.check) { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .form .row > label:not(.check) > input, .form .row > label:not(.check) > select, .form .row > label:not(.check) > textarea { align-self: start; }
}
.form .check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; font-size: .93rem; letter-spacing: 0; color: var(--ink); }
.form .check input, .cal-toggles .tg input { margin: .22rem 0 0; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--link); }
.form .hint { font-weight: 400; color: var(--muted); font-size: .84rem; display: block; margin-top: .3rem; letter-spacing: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }

/* ---------- Meldungen ---------- */
.alert { padding: .9rem 1.2rem; border-radius: var(--radius-sm); margin: 1rem 0; border: 1px solid; border-left-width: 4px; background: var(--surface); box-shadow: var(--shadow); }
.alert-success { border-color: #b9d8c6; border-left-color: var(--ok); color: #1c4a33; }
.alert-error { border-color: #ecc4c0; border-left-color: var(--danger); color: #6f1f1a; }
.alert-info { border-color: #c5d6e4; border-left-color: #3d6f94; color: #1f3d56; }
.alert-warn { border-color: #eadbb4; border-left-color: #c19a3a; color: #5b4510; }
main > .container.narrow:first-child .alert { margin-top: 1.4rem; }

/* ---------- Flächen ---------- */
.panel { background: var(--surface); border: 1px solid rgba(16, 27, 24, .05); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow); margin: 2rem 0; }
.panel h1, .panel h2 { margin-top: 0; }
.login-panel { margin-top: 3.5rem; }
.admin-hint { text-align: right; font-size: .88rem; }
.admin-hint a { color: var(--accent-ink); }

/* ---------- Seitenbereiche ---------- */
.page-section { padding-block: clamp(2rem, 4vw, 3rem) 3.5rem; }
.page-section > .container > h1 { margin-top: 0; }
.info-strip { display: flex; flex-wrap: wrap; gap: .6rem 2rem; background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 1rem 1.4rem; margin: 1.2rem 0 1.6rem; font-size: .93rem; }
.info-strip span strong { color: var(--dark-accent); font-weight: 600; letter-spacing: .02em; }
.info-strip a { color: var(--dark-accent); }
.page-head .info-strip { background: var(--band-strip); color: var(--band-fg); border: 1px solid var(--band-line); }
.page-head .info-strip span strong, .page-head .info-strip a { color: var(--band-accent); }

/* ---------- Kalender ---------- */
.calendar-wrap { margin: 1rem 0 2rem; min-width: 0; max-width: 100%; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; min-width: 0; max-width: 100%; }
.cal-month { background: var(--surface); border-radius: var(--radius); padding: 1rem .9rem 1.1rem; box-shadow: var(--shadow); }
.cal-month h3 { margin: 0 0 .7rem; font-size: 1.08rem; text-align: center; font-weight: 500; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.day {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
    aspect-ratio: 1; border: 0; border-radius: 8px; font: inherit; font-size: .86rem; color: var(--ink); padding: 0; cursor: pointer;
    background: linear-gradient(135deg, var(--am, var(--c-free)) 50%, var(--pm, var(--c-free)) 50%);
    transition: transform .12s, box-shadow .12s;
}
.day.empty { visibility: hidden; background: none; }
.day.past { opacity: .35; cursor: default; }
.day.today { box-shadow: inset 0 0 0 2px var(--accent); font-weight: 700; }
.day:not(.past):not(.empty):hover { transform: scale(1.06); box-shadow: 0 3px 10px rgba(16, 27, 24, .18); z-index: 1; }
.day.sel-start, .day.sel-end { background: var(--dark) !important; color: var(--dark-accent); font-weight: 700; box-shadow: 0 3px 10px rgba(16, 27, 24, .25); }
.day.sel-start .pr, .day.sel-end .pr { color: var(--on-dark-2); }
.day.in-range { box-shadow: inset 0 0 0 100px rgba(var(--accent-rgb), .38); }
.day .dn { display: block; }
.day.holiday .dn { color: var(--holiday); font-weight: 700; }
.day.holiday::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--holiday); }
.day.ferien::before { content: ""; position: absolute; top: 0; left: 4px; right: 4px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ferien); }
.price-mode .day { aspect-ratio: auto; min-height: 3rem; }
.day .pr { display: block; font-size: .6rem; color: var(--muted); margin-top: 2px; }
.day.special { box-shadow: inset 0 -3px 0 var(--accent-2); }
.day.special .pr { color: var(--ink); font-weight: 700; }
.price-mode .day.in-range { box-shadow: inset 0 0 0 100px rgba(var(--accent-rgb), .38); }
.price-mode .day.special.in-range { box-shadow: inset 0 0 0 100px rgba(var(--accent-rgb), .38), inset 0 -3px 0 var(--accent-2); }
.hide-hol .day.holiday .dn { color: inherit; font-weight: inherit; }
.hide-hol .day.holiday::after, .hide-hol .lg-hol, .hide-hol .chip-hol { display: none; }
.hide-fer .day.ferien::before, .hide-fer .lg-fer, .hide-fer .chip-fer { display: none; }

.cal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin: 0 0 1rem; }
.cal-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin: 0; font-size: .88rem; }
.cal-toggles-title { color: var(--muted); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.cal-toggles .tg { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; user-select: none; }
.cal-toggles .tg input { margin: 0; }
.cal-nav { display: none; gap: .5rem; margin-left: auto; }
.cal-nav button { width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 1px solid var(--ghost-line); background: var(--surface); color: var(--heading); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.cal-nav button:hover { background: var(--dark); color: var(--dark-accent); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; padding: 0; margin: 1.1rem 0 0; font-size: .84rem; color: var(--muted); }
.cal-legend li { display: flex; align-items: center; gap: .45rem; }
.sw { display: inline-block; width: 1.05rem; height: 1.05rem; border-radius: 4px; border: 1px solid rgba(0,0,0,.08); }
.sw-split { background: linear-gradient(135deg, var(--c-booked) 50%, var(--c-free) 50%); }
.sw-holiday { background: #fff; position: relative; }
.sw-holiday::after { content: ""; position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--holiday); }
.sw-ferien { background: #fff; position: relative; overflow: hidden; }
.sw-ferien::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ferien); }
.sw-special { background: #fff; box-shadow: inset 0 -3px 0 var(--accent-2); }
.cal-more { text-align: center; margin: 1.3rem 0 0; }
.selection-info { min-height: 1.6rem; font-weight: 600; color: var(--link); margin: .1rem 0 1rem; font-size: .95rem; }
.selection-info.err { color: var(--danger); }
.selection-info.muted { font-weight: 400; font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) {
    .cal-nav { display: flex; }
    .calendar-wrap .cal-grid {
        display: grid; grid-auto-flow: column; grid-auto-columns: 100%; grid-template-columns: none;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 1rem; overscroll-behavior-x: contain; padding-bottom: .6rem;
    }
    .cal-grid::-webkit-scrollbar { display: none; }
    .cal-month { scroll-snap-align: start; }
    .cal-legend { gap: .3rem 1rem; font-size: .8rem; }
}

.holiday-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .9rem 0 1rem; }
.holiday-chips .chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .3rem .85rem; font: inherit; font-size: .82rem; cursor: pointer; transition: border-color .15s, background .15s; }
.holiday-chips .chip:hover { border-color: var(--heading); background: var(--surface-2); }
.holiday-chips .chip::before { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--holiday); margin-right: .45rem; }
.holiday-chips .chip-fer::before { border-radius: 2px; height: .25rem; width: .8rem; vertical-align: middle; background: var(--ferien); }
.chips-box { margin: 0 0 1.1rem; }
.chips-box summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: .92rem; }

/* ---------- Buchungsseite ---------- */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2.2rem; align-items: start; margin-top: 2rem; }
.booking-layout .booking-cal h2 { margin-top: 0; }
.booking-layout .cal-grid { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
.booking-form { margin: 0; position: sticky; top: calc(var(--header-h) + 16px); border-top: 3px solid var(--accent); }
.booking-form h2 { font-size: 1.55rem; }
.booking-form h2::before { display: none; }
@media (max-width: 1100px) { .booking-layout { grid-template-columns: minmax(0, 1fr); } .booking-form { position: static; } }
@media (max-height: 900px) { .booking-form { position: static; } }

/* Preisberechnung im Formular */
.price-quote { background: var(--dark); border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin: 0 0 1.2rem; color: var(--on-dark); }
.price-quote strong { display: block; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.3rem; color: var(--dark-accent); }
.price-quote span { font-size: .88rem; color: var(--on-dark-2); }
.price-quote[hidden] { display: none; }
.quote-lines { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .88rem; }
.quote-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-top: 1px solid var(--on-dark-line); }
.quote-lines li:first-child { border-top: 0; }
.quote-lines li span:last-child { white-space: nowrap; color: var(--on-dark); }
.price-quote .quote-lines span { color: var(--on-dark-2); font-size: .88rem; }
.price-quote .quote-lines li span:last-child { color: var(--on-dark); }

/* Optionen */
.options-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem 1rem .4rem; margin: 0 0 1.1rem; background: var(--surface-2); }
.options-box legend { font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 .4rem; }
.options-box .option-item { margin-bottom: .65rem; }
.options-box .opt-price { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.options-box .hint { margin-top: .1rem; }

/* Preise & Leistungen */
.price-box { margin: 3.5rem 0 1rem; }
.price-box h2 { margin-top: 0; }
.price-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 2.5rem; }
.price-cols h3 { margin: .8rem 0 .6rem; font-size: .8rem; font-family: var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.price-table { max-width: none; }
.price-table td { vertical-align: top; }
.price-table .num, .data-table .num { text-align: right; white-space: nowrap; }
.quote-table td { padding: .35rem .8rem; }
.price-detail { margin-top: .4rem; }
.price-detail summary { cursor: pointer; font-size: .86rem; color: var(--link); }

/* ---------- Tabellen ---------- */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: .4rem 0 1.2rem; }
.data-table th, .data-table td { padding: .75rem 1rem; border: 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.data-table tbody tr:hover td { background: #fcfbf8; }
.data-table input.input, .data-table select.input { height: 2.4rem; margin: 0; padding: .3rem .6rem; font-size: .93rem; line-height: 1.3; }
.data-table select.input { min-width: 8.5rem; width: auto; }
.data-table .actions { flex-wrap: nowrap; margin: 0; white-space: nowrap; align-items: center; }
.data-table td:last-child { white-space: nowrap; }
.data-table td:nth-child(2) { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form .input, .inline-form select { margin: 0; width: auto; padding: .35rem .5rem; }
tr.period-past td { opacity: .55; }

/* ---------- Verwaltung ---------- */
.admin-area { margin-top: 3.5rem; padding-top: .5rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.5rem; }
.tabs a { padding: .45rem 1.05rem; border-radius: 999px; text-decoration: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: .9rem; transition: background .15s, color .15s, border-color .15s; }
.tabs a:hover:not(.active) { border-color: var(--heading); }
.tabs a.active { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.subtabs { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; border-bottom: 1px solid var(--line-2); margin: 0 0 1.6rem; }
.subtabs a { text-decoration: none; color: var(--muted); padding: .5rem 0; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 600; font-size: .95rem; }
.subtabs a:hover { color: var(--heading); }
.subtabs a.active { color: var(--heading); border-bottom-color: var(--accent); }

.booking { position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.2rem 1.4rem 1rem 1.6rem; margin-bottom: 1rem; box-shadow: var(--shadow); overflow: hidden; }
.booking::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-pending); }
.booking.st-bestaetigt::before { background: var(--ok); }
.booking.st-abgelehnt::before, .booking.st-storniert::before { background: var(--c-blocked); }
.booking.st-abgelehnt, .booking.st-storniert { opacity: .85; }
.booking-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: baseline; }
.booking-head h2, .booking-head h3 { margin: 0; font-size: 1.25rem; font-weight: 500; }
.booking-head h2::before { display: none; }
.booking dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.2rem; margin: .9rem 0; font-size: .94rem; }
.booking dt { color: var(--muted); font-size: .82rem; letter-spacing: .04em; padding-top: .1rem; }
.booking dd { margin: 0; }
.booking .msg { background: var(--surface-2); border-radius: var(--radius-sm); padding: .6rem .9rem; font-size: .93rem; margin: .5rem 0; white-space: pre-line; border-left: 2px solid var(--line-2); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; align-items: center; }
.actions form { margin: 0; }
.pill { display: inline-block; font-family: var(--font-body); font-size: .7rem; font-weight: 700; padding: .18rem .7rem; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.pill-neu { background: #f6e8bf; color: #5b4608; }
.pill-bestaetigt { background: #d6ebdf; color: #1c4a33; }
.pill-abgelehnt { background: #e7eae8; color: #4c5551; }
.pill-storniert { background: #efdcd3; color: #6b3016; }
details.edit { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .7rem; }
details.edit summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: .92rem; }
details.edit .form { margin-top: 1rem; }
.search-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; }
.search-bar .input { flex: 1 1 260px; width: auto; margin: 0; height: 2.8rem; border-radius: 999px; padding-inline: 1.2rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.8rem 0; }

/* Zweispaltig mit mitlaufendem Formular */
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
.split-layout .cal-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1rem; }
.split-layout .cal-month { box-shadow: none; border: 1px solid var(--line); }
.sticky-panel { position: sticky; top: calc(var(--header-h) + 16px); margin: 0; border-top: 3px solid var(--accent); }
.sticky-panel h3 { margin-top: 0; }
.sticky-panel .row.row-2 { grid-template-columns: 1fr; }
@media (max-width: 1000px) { .split-layout { grid-template-columns: minmax(0, 1fr); } .sticky-panel { position: static; } .split-side { order: -1; } }

/* Aufklappbare Listen (Sonderpreise, Optionen) */
.item-list { border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.item { border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item > summary { display: grid; grid-template-columns: 1fr auto auto; gap: .3rem 1rem; align-items: center; padding: .9rem 1.1rem; cursor: pointer; list-style: none; transition: background .15s; }
.item > summary::-webkit-details-marker { display: none; }
.item > summary:hover { background: var(--surface-2); }
.item-main { display: flex; flex-direction: column; min-width: 0; }
.item-price { font-weight: 600; white-space: nowrap; font-family: var(--font-head); font-size: 1.1rem; }
.item-edit { font-size: .8rem; color: var(--heading); border: 1px solid var(--ghost-line); border-radius: 999px; padding: .15rem .8rem; }
.item[open] > summary { background: var(--surface-2); }
.item[open] .item-edit { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.item-body { padding: 1.1rem 1.1rem .7rem; border-top: 1px solid var(--line); background: var(--surface); }
.item-body .form { margin: 0 0 .6rem; }
.item-past { opacity: .65; }
@media (max-width: 560px) { .item > summary { grid-template-columns: 1fr auto; } .item-edit { display: none; } }

/* Systemprüfung */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: 0; }
.check-icon { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--ok); font-size: .9rem; }
.check-list .warn .check-icon { background: #c19a3a; }
.check-list .bad .check-icon { background: var(--danger); }
.log-view { background: #101b18; color: #dfe6e2; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .78rem; max-height: 22rem; overflow: auto; white-space: pre-wrap; }

/* ---------- Editor ---------- */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: .3rem; padding: .55rem; background: var(--dark); border-radius: var(--radius-sm) var(--radius-sm) 0 0; position: sticky; top: var(--header-h); z-index: 20; }
.editor-toolbar button, .editor-toolbar select {
    font: inherit; font-size: .86rem; border: 1px solid var(--on-dark-line); background: var(--dark-2); border-radius: 7px; padding: .3rem .55rem; cursor: pointer; color: var(--on-dark); min-height: 2rem;
}
.editor-toolbar select, .form .editor-toolbar select { width: auto; max-width: 8.5rem; height: 2rem; min-height: 2rem; margin: 0; display: inline-block; padding: .2rem .5rem; color: var(--on-dark); background: var(--dark-2); border-color: var(--on-dark-line); }
.editor-toolbar button:hover { background: var(--dark-3); color: var(--dark-accent); }
.editor-toolbar button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.editor-toolbar .sep { width: 1px; background: var(--on-dark-line); margin: 0 .1rem; }
.editor-area { border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--surface); min-height: 420px; padding: 1.4rem 1.6rem; overflow: auto; }
.editor-area:focus { outline: none; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2); }
.editor-area img { cursor: pointer; }
.editor-area img.selected { outline: 3px solid var(--accent); outline-offset: 2px; }
.editor-area .gallery img { cursor: pointer; }
.editor-source { width: 100%; min-height: 420px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; border: 1px solid var(--line-2); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 1rem; }
.img-toolbar { position: absolute; z-index: 60; background: var(--dark); color: var(--on-dark); border-radius: var(--radius-sm); padding: .35rem; display: flex; gap: .25rem; flex-wrap: wrap; box-shadow: var(--shadow-lg); max-width: 440px; }
.img-toolbar button { background: transparent; border: 1px solid var(--on-dark-line); color: var(--on-dark); border-radius: 6px; font: inherit; font-size: .82rem; padding: .25rem .55rem; cursor: pointer; }
.img-toolbar button:hover { background: var(--dark-3); color: var(--dark-accent); }
.hero-pick { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-pick .thumb { width: 160px; height: 90px; border-radius: var(--radius-sm); background: var(--surface-2) center/cover no-repeat; border: 1px solid var(--line); }
.draft-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* Modal / Mediathek */
.modal-back { position: fixed; inset: 0; background: rgba(10, 17, 15, .65); backdrop-filter: blur(4px); z-index: 200; display: grid; place-items: center; padding: 1rem; }
.modal { background: var(--surface); border-radius: var(--radius); width: min(940px, 100%); max-height: 90vh; overflow: auto; padding: 1.5rem 1.7rem; box-shadow: var(--shadow-lg); }
.modal h2 { margin-top: 0; }
.modal-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin: 1rem 0; }
.media-item { position: relative; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--surface-2); aspect-ratio: 4/3; padding: 0; }
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.media-item:hover { border-color: var(--heading); }
.media-item.picked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .35); }
.media-item .tag { position: absolute; left: 4px; bottom: 4px; background: rgba(16, 27, 24, .75); color: #fff; font-size: .7rem; padding: .05rem .4rem; border-radius: 4px; }
.media-item .del { position: absolute; right: 4px; top: 4px; background: rgba(163, 52, 44, .92); color: #fff; border: 0; border-radius: 6px; font-size: .75rem; padding: .1rem .45rem; cursor: pointer; }
.upload-zone { border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); padding: 1.1rem; text-align: center; color: var(--muted); }
.upload-zone.drag { background: #f4efe3; border-color: var(--accent-2); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8, 13, 12, .94); z-index: 300; display: grid; place-items: center; padding: 1.5rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-cap { position: absolute; bottom: 1.1rem; left: 0; right: 0; text-align: center; color: #cfd6d2; font-size: .9rem; letter-spacing: .03em; }
.lightbox button { position: absolute; background: rgba(241, 235, 224, .1); color: var(--on-night); border: 1px solid rgba(241, 235, 224, .2); font-size: 1.8rem; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { color: var(--accent); border-color: var(--accent); }
.lightbox .lb-prev { left: 1rem; } .lightbox .lb-next { right: 1rem; } .lightbox .lb-close { right: 1rem; top: 1rem; font-size: 1.5rem; }

/* ---------- E-Mail ---------- */
.mail-body { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.6; min-height: 16rem; }
.mail-meta { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1.1rem; margin: 0 0 1.1rem; font-size: .94rem; }
.mail-meta div + div { margin-top: .25rem; }
.mail-sent { margin-top: .2rem; }
.mail-sent summary { cursor: pointer; color: var(--muted); }
.mail-sent pre { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .84rem; margin: .4rem 0 0; }
.placeholder-help summary { cursor: pointer; color: var(--link); font-weight: 600; margin-bottom: .4rem; }
.placeholder-help code, .form .hint code { background: var(--surface-2); padding: .05rem .35rem; border-radius: 4px; border: 1px solid var(--line); }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--ft-bg); color: var(--ft-fg); margin-top: 4rem; padding-top: 3.2rem; border-top: 1px solid var(--ft-line); }
.site-footer a { color: var(--ft-strong); text-decoration-color: var(--ft-line); }
.site-footer a:hover { color: var(--ft-accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer-grid strong { display: block; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.3rem; color: var(--ft-strong); margin-bottom: .5rem; }
.footer-grid p { margin: .25rem 0; font-size: .94rem; }
.footer-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ft-accent); margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; font-size: .94rem; }
.footer-bottom { border-top: 1px solid var(--ft-line-2); padding-block: 1.2rem; font-size: .82rem; color: var(--ft-muted); letter-spacing: .02em; }

@media print { .site-header, .site-footer, .nav-toggle { display: none; } body { background: #fff; } }

/* Handy: Kalender als wischbare Monatsansicht (muss nach den Layout-Regeln stehen) */
@media (max-width: 700px) {
    .calendar-wrap .cal-grid, .booking-layout .cal-grid, .split-layout .cal-grid {
        grid-auto-flow: column; grid-auto-columns: 100%; grid-template-columns: none;
    }
    .cal-month { box-shadow: 0 1px 2px rgba(16, 27, 24, .05); border: 1px solid var(--line); }
}

/* Angemeldet: mehr Menüpunkte – Menü-Schaltfläche schon ab 1400 px */
@media (min-width: 1101px) and (max-width: 1400px) {
    .nav-wide .nav-toggle { display: flex; }
    .nav-wide .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--hd-menu); border-bottom: 1px solid var(--hd-line); padding: .6rem 1.25rem 1.2rem; box-shadow: var(--shadow-lg); }
    .nav-wide .main-nav.open { display: block; }
    .nav-wide .main-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
    .nav-wide .main-nav a, .nav-wide .nav-logout button { width: 100%; padding: .8rem 1rem; border-radius: 12px; font-size: 1rem; }
    .nav-wide .main-nav a::after { display: none; }
    .nav-wide .main-nav a:hover { background: var(--hd-hover); }
    .nav-wide .main-nav a.nav-cta { margin: .4rem 0 0; justify-content: center; }
    .nav-wide .nav-sep { width: 100%; height: 1px; margin: .4rem 0; }
}

/* ==========================================================
   Feinschliff je Design (Farben kommen aus den Variablen oben)
   ========================================================== */
/* Hell & luftig: helle Kacheln, gefüllter Buchen-Button, feine Kopfzeile */
[data-theme="hell"] .site-header { box-shadow: 0 1px 0 rgba(29, 33, 37, .04), 0 6px 24px rgba(29, 33, 37, .04); }
[data-theme="hell"] .brand-mark { background: #fff3ec; border-color: transparent; }
[data-theme="hell"] .brand-text small { letter-spacing: .1em; }
[data-theme="hell"] .main-nav a.nav-cta { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-theme="hell"] .main-nav a.nav-cta:hover, [data-theme="hell"] .main-nav a.nav-cta.active { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
[data-theme="hell"] .main-nav a::after { height: 2px; bottom: .25rem; }
[data-theme="hell"] .facts { background: transparent; gap: 1rem; box-shadow: none; overflow: visible; }
[data-theme="hell"] .facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
[data-theme="hell"] .facts strong { color: var(--accent-ink); }
[data-theme="hell"] .facts span { color: var(--muted); }
[data-theme="hell"] .info-strip:not(.page-head .info-strip) { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
[data-theme="hell"] .info-strip:not(.page-head .info-strip) span strong, [data-theme="hell"] .info-strip:not(.page-head .info-strip) a { color: var(--accent-ink); }
[data-theme="hell"] .page-head { border-bottom: 1px solid var(--line); }
[data-theme="hell"] .page-head .info-strip { box-shadow: var(--shadow); }
[data-theme="hell"] .panel { border-color: var(--line); }
[data-theme="hell"] .card { border: 1px solid var(--line); box-shadow: none; }
[data-theme="hell"] .card:hover { box-shadow: var(--shadow-lg); }
[data-theme="hell"] .hero h1 { letter-spacing: -.03em; }
[data-theme="hell"] .hero-sub { font-weight: 400; color: #f3f0eb; }
[data-theme="hell"] .eyebrow { letter-spacing: .12em; }
[data-theme="hell"] .day.today { box-shadow: inset 0 0 0 2px var(--dark); }

/* Natur & warm: flacher, weniger Linien, Terrakotta-Buttons */
[data-theme="natur"] .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-theme="natur"] .brand-mark { background: rgba(242, 196, 141, .12); }
[data-theme="natur"] .main-nav a.nav-cta { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-theme="natur"] .main-nav a.nav-cta:hover, [data-theme="natur"] .main-nav a.nav-cta.active { background: #fff; color: var(--accent-2); border-color: #fff; }
[data-theme="natur"] .main-nav a.active:not(.nav-cta) { color: var(--hd-accent); }
[data-theme="natur"] h2::before { width: 32px; height: 4px; border-radius: 4px; }
[data-theme="natur"] .btn { border-radius: 12px; }
[data-theme="natur"] .card { box-shadow: none; border: 1px solid var(--line); }
[data-theme="natur"] .card:hover { box-shadow: var(--shadow-lg); }
[data-theme="natur"] .panel { border-color: var(--line); box-shadow: var(--shadow); }
[data-theme="natur"] .gallery img { border-radius: var(--radius); }
[data-theme="natur"] .facts { background: var(--dark-2); }
[data-theme="natur"] blockquote { background: var(--green-soft); box-shadow: none; }

/* ---------- Design-Auswahl (Einstellungen) ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: .6rem 0 1.2rem; }
.theme-card { position: relative; display: block; margin: 0 !important; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; font-weight: 400 !important; letter-spacing: 0 !important; }
.theme-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2); }
.theme-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-prev { display: block; height: 118px; position: relative; border-bottom: 1px solid var(--line); }
.theme-prev .tp-bar { position: absolute; left: 0; right: 0; top: 0; height: 22px; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.theme-prev .tp-bar i { display: block; height: 5px; border-radius: 3px; width: 26px; opacity: .8; }
.theme-prev .tp-bar i:first-child { width: 44px; margin-right: auto; }
.theme-prev .tp-hero { position: absolute; left: 0; right: 0; top: 22px; height: 52px; padding: 10px; }
.theme-prev .tp-hero b { display: block; width: 58%; height: 9px; border-radius: 3px; margin-bottom: 7px; }
.theme-prev .tp-hero em { display: inline-block; width: 46px; height: 12px; border-radius: 999px; }
.theme-prev .tp-body { position: absolute; left: 10px; right: 10px; bottom: 9px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.theme-prev .tp-body span { height: 26px; border-radius: 6px; }
.theme-name { display: block; padding: .7rem 1rem .1rem; font-weight: 700; color: var(--ink); }
.theme-desc { display: block; padding: 0 1rem .9rem; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.theme-check { position: absolute; right: .6rem; top: .55rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: none; place-items: center; font-weight: 700; font-size: .85rem; }
.theme-card:has(input:checked) .theme-check { display: grid; }
.preview-banner { position: sticky; top: var(--header-h); z-index: 45; background: #24292e; color: #fff; font-size: .92rem; }
.preview-banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-block: .55rem; }
.preview-banner form { display: inline-flex; gap: .5rem; margin: 0; }
.preview-banner .preview-actions { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.preview-banner .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.preview-banner .btn-ghost:hover { background: #fff; color: #24292e; border-color: #fff; }

/* Schmale Handys: Name kürzen statt Menü-Schaltfläche hinauszuschieben (betrifft v. a. die fetten serifenlosen Designs) */
@media (max-width: 520px) {
    .brand, .brand-text { min-width: 0; }
    .brand-text strong { font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; }
    .brand-text small { font-size: .64rem; letter-spacing: .1em; overflow: hidden; text-overflow: ellipsis; }
    .brand-mark { width: 38px; height: 38px; flex: none; }
    .nav-toggle { flex: none; }
}

/* ==========================================================
   Erweiterungen: Hinweise im Formular, Zahlung, Bewertungen,
   Karte, Galerie, Übersicht, Einstellungen
   ========================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-danger { color: var(--danger); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; color: var(--danger); text-decoration: underline; cursor: pointer; }

/* Anfrageformular */
.selection-notes:empty { display: none; }
.selection-notes { margin: -.4rem 0 1rem; }
.selection-notes .note { margin: 0 0 .5rem; padding: .55rem .8rem; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 3px solid var(--link); font-size: .88rem; line-height: 1.5; }
.selection-notes .note-err { border-left-color: var(--danger); color: #6f1f1a; background: #fbefed; }
.price-quote.muted-quote { opacity: .75; }
.voucher-box { margin: 0 0 1rem; }
.voucher-box summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }

/* Zahlungsseite */
.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.6rem; align-items: start; }
@media (max-width: 900px) { .pay-layout { grid-template-columns: minmax(0, 1fr); } .pay-layout aside { order: -1; } }
.pay-box { border-top: 3px solid var(--accent); }
.pay-box h2::before { display: none; }
.pay-due { display: flex; flex-direction: column; background: var(--dark); color: var(--on-dark); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.pay-due strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: var(--head-weight); color: var(--dark-accent); line-height: 1.2; }
.pay-due .muted { color: var(--on-dark-2); }
.btn-paypal { background: #ffc439; border-color: #ffc439; color: #111; }
.btn-paypal:hover { background: #f2b51f; border-color: #f2b51f; color: #111; box-shadow: 0 6px 18px rgba(255, 196, 57, .35); }
.pay-paypal { display: grid; gap: .5rem; margin: 0 0 .4rem; }
.girocode { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; margin: .4rem 0 .8rem; }
.girocode svg { flex: none; border-radius: 8px; border: 1px solid var(--line); }
.girocode p { margin: 0; }
.bank-data { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .9rem; font-size: .92rem; margin: 0; }
.bank-data dt { color: var(--muted); }
.bank-data dd { margin: 0; overflow-wrap: anywhere; }
.plain-links { list-style: none; padding: 0; margin: 0; }
.plain-links li { padding: .35rem 0; border-top: 1px solid var(--line); }
.plain-links li:first-child { border-top: 0; }
.pill.pay-bezahlt { background: #d6ebdf; color: #1c4a33; }
.pill.pay-offen, .pill.pay-teilweise, .pill.pay-anzahlung { background: #f6e8bf; color: #5b4608; }
.pill.pay-ueberfaellig { background: #f3d3cf; color: #6f1f1a; }
.pill.pay-ohne_preis { background: #e7eae8; color: #4c5551; }
.pay-line { margin-top: .3rem; }
.doc-links { margin-top: .5rem; }
.pay-add { margin-top: .6rem; }

/* Bewertungen */
.stars { color: #d9a520; letter-spacing: .08em; white-space: nowrap; }
.stars span { color: var(--line-2); }
.stars span.on { color: #d9a520; }
.stars span.half { background: linear-gradient(90deg, #d9a520 50%, var(--line-2) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars-lg { font-size: 1.35rem; }
.reviews { margin: 3.5rem 0 1rem; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.reviews-head h2 { margin: 0; }
.reviews-score { margin: 0; color: var(--muted); }
.reviews-score strong { color: var(--heading); font-size: 1.2rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
.review-card { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.4rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .4rem; }
.review-card h3 { margin: .2rem 0 0; font-size: 1.1rem; }
.review-card blockquote { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; font-family: var(--font-body); font-size: .97rem; color: var(--ink); }
.review-card figcaption { font-size: .86rem; color: var(--muted); margin-top: auto; }
.review-reply { font-size: .86rem; background: var(--surface-2); border-radius: var(--radius-sm); padding: .55rem .75rem; margin: .3rem 0 0; }
.star-input { border: 0; padding: 0; margin: 0 0 1.1rem; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.star-input legend { font-weight: 600; font-size: .86rem; margin-bottom: .3rem; width: 100%; float: left; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2.1rem; line-height: 1; color: var(--line-2); cursor: pointer; margin: 0; padding: 0 .1rem; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #d9a520; }
.star-input input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Karte */
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--green-soft)); border: 1px solid var(--line); min-height: 320px; display: grid; place-items: center; margin: 1rem 0 .5rem; }
.map-box.loaded { display: block; }
.map-box iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-consent { text-align: center; max-width: 440px; padding: 1.5rem; color: var(--muted); }
.map-consent svg { color: var(--accent); }
.map-consent p { margin: .3rem 0 .8rem; }
.map-consent strong { color: var(--heading); }
.map-links { margin-top: 0; }

/* Galerie-Filter und 360° */
.gallery-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 -.6rem; }
.gallery-filter button { font: inherit; font-size: .86rem; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .3rem .9rem; cursor: pointer; }
.gallery-filter button[aria-pressed="true"] { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.gallery.filtered img:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; height: auto; }
.gallery img[hidden] { display: none; }
.pano-view { position: relative; height: clamp(240px, 45vw, 440px); overflow: hidden; border-radius: var(--radius); cursor: grab; touch-action: pan-y; background: var(--dark); margin: 1rem 0; user-select: none; }
.pano-view.grabbing { cursor: grabbing; }
.pano-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.pano-track img { height: 100%; width: auto; max-width: none; border-radius: 0 !important; pointer-events: none; }
.pano-hint { position: absolute; left: .8rem; bottom: .8rem; background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; padding: .25rem .6rem; border-radius: 999px; letter-spacing: .03em; }

/* Reinigungsplan */
.clean-list { display: grid; gap: .8rem; }
.clean-item { display: grid; grid-template-columns: 210px 1fr; gap: .4rem 1.2rem; background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); border-left: 4px solid var(--c-blocked); }
.clean-item.is-turnover { border-left-color: var(--c-pending); }
.clean-item p { margin: 0 0 .2rem; }
.clean-date { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
@media (max-width: 600px) { .clean-item { grid-template-columns: 1fr; } }

/* Übersicht */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.dash-head h1 { margin-bottom: .3rem; }
.dash-head .input { width: auto; min-width: 6.5rem; height: 2.5rem; padding: .3rem .7rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.stat-value { font-family: var(--font-body); font-size: 1.65rem; font-weight: 650; color: var(--heading); line-height: 1.2; font-variant-numeric: proportional-nums; }
.stat-sub { font-size: .8rem; color: var(--muted); }
.quick-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 0 1.4rem; }
.dash-cols .panel { margin: 1rem 0; min-width: 0; }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li { padding: .5rem 0; border-top: 1px solid var(--line); font-size: .94rem; }
.event-list li:first-child { border-top: 0; }
.ev-date { display: inline-block; min-width: 8.2rem; font-weight: 600; }
.hbar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.hbar-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) 2.2rem; gap: .7rem; align-items: center; font-size: .9rem; }
.hbar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--link); border-radius: 999px; min-width: 4px; }
.hbar-list strong { text-align: right; font-variant-numeric: tabular-nums; }
.rank-list { padding-left: 1.2rem; margin: 0; }
.tips summary { cursor: pointer; }
.tips ul { margin-bottom: 0; }

/* Diagramme */
.chart { margin: 0; position: relative; }
.chart figcaption { font-weight: 600; font-size: .95rem; color: var(--heading); margin-bottom: .4rem; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .axis { stroke: var(--line-2); stroke-width: 1; }
.chart-svg .tick, .chart-svg .xlab { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart-svg .vlab { fill: var(--ink); font-size: 11px; font-weight: 600; font-family: var(--font-body); }
.chart-svg .bar { fill: var(--link); transition: opacity .12s; }
.chart-svg .hit { fill: transparent; }
.chart-svg .col { outline: none; cursor: default; }
.chart-svg .col.on .hit, .chart-svg .col:focus-visible .hit { fill: var(--surface-2); }
.chart-svg .col:hover .bar, .chart-svg .col.on .bar { opacity: .82; }
.chart-tip { position: absolute; z-index: 5; width: 200px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: var(--radius-sm); padding: .45rem .65rem; font-size: .82rem; pointer-events: none; }
.chart-table summary { cursor: pointer; font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.chart-table .data-table { box-shadow: none; font-size: .86rem; }

/* Einstellungen */
.disc-grid { display: grid; gap: .2rem; margin-bottom: 1rem; }
.disc-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 140px; gap: .2rem 1rem; align-items: end; padding: .6rem 0; border-top: 1px solid var(--line); }
.disc-row:first-child { border-top: 0; }
.disc-row > strong { padding-bottom: 1.6rem; }
.disc-row label { margin-bottom: 0; }
@media (max-width: 640px) { .disc-row { grid-template-columns: 1fr 1fr; } .disc-row > strong { grid-column: 1 / -1; padding: 0; } }
.weekday-pick { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.weekday-pick legend { font-weight: 600; font-size: .86rem; margin-bottom: .4rem; padding: 0; }
.weekday-pick .check { margin: 0; }
.choice-list { display: grid; gap: .1rem; margin-bottom: 1rem; }
.choice-list .check { margin-bottom: .55rem; }
.form .inline-num, .inline-num { display: inline-block; width: 4.2rem; height: 2.1rem; min-height: 2.1rem; margin: 0 .25rem; padding: .2rem .4rem; vertical-align: middle; }
.copy-text { display: inline-block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .3rem .55rem; font-size: .82rem; word-break: break-all; user-select: all; }
.tpl-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem; margin: 0 0 .7rem; background: var(--surface-2); }
.tpl-box summary { cursor: pointer; font-weight: 600; color: var(--link); }
.tpl-box[open] summary { margin-bottom: .8rem; }
.new-booking { margin: 0 0 1.4rem; padding-block: 1rem; }
.new-booking summary { cursor: pointer; }
.guest-guide h1 { margin-top: 0; }
@media print { .no-print, .preview-banner { display: none; } }

/* Tabellen mit einstellbaren Spaltenbreiten (assets/js/col-resize.js), z. B. Besucherzähler → Letzte Besucher */
.col-resize { table-layout: fixed; width: auto; max-width: none; }
.col-resize th, .col-resize td { white-space: normal; overflow-wrap: anywhere; padding-left: .7rem; padding-right: .7rem; }
.col-resize td:last-child { white-space: normal; }
.col-resize th { position: relative; hyphens: manual; }
.col-resize .num { white-space: normal; }
.col-handle { position: absolute; top: 0; right: -5px; width: 11px; height: 100%; cursor: col-resize; z-index: 2; touch-action: none; user-select: none; }
.col-handle::after { content: ""; position: absolute; left: 5px; top: 22%; height: 56%; width: 2px; border-radius: 1px; background: var(--line); }
.col-handle:hover::after, .col-handle:focus-visible::after, .col-handle.active::after { background: var(--accent); }
.col-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none !important; }

/* Titelbild als echtes Bild (Alt-Text, früh geladen) statt CSS-Hintergrund */
.hero { overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; z-index: 0; border-radius: 0; }
.hero-overlay { position: relative; z-index: 1; min-width: 0; }

/* Brotkrumen und „Mehr entdecken“ am Ende von Unterseiten */
.breadcrumb { font-size: .88rem; color: var(--muted); margin: 0 0 1.2rem; }
.breadcrumb a { color: inherit; }
.related { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); clear: both; }
.related h2 { margin-top: 0; }
.related-list { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.related-list a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: inherit; }
.related-list a:hover, .related-list a:focus-visible { border-color: var(--accent); }
.related-list span { color: var(--muted); font-size: .9rem; font-weight: 400; }

/* SEO-Felder im Seiten-Editor und Bildbeschreibung im Medien-Dialog */
.seo-box { margin: 1rem 0; padding: .5rem 1rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.seo-box summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.media-meta { display: grid; gap: .6rem; margin: .8rem 0 0; }
.media-meta label { display: block; font-size: .88rem; }
.media-meta input { width: 100%; }

/* Schriftgrößen und Schriftarten aus dem Seiteneditor (als Klassen gespeichert) */
.fs-xs { font-size: 13px; }
.fs-s  { font-size: 15px; }
.fs-n  { font-size: 17px; }
.fs-l  { font-size: 22px; line-height: 1.4; }
.fs-xl { font-size: clamp(24px, 4vw, 29px); line-height: 1.3; }
.fs-xxl { font-size: clamp(30px, 6vw, 42px); line-height: 1.2; }
.ff-n { font-family: var(--font-body); }
.ff-head { font-family: var(--font-head); }
.ff-serif { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif; }
.ff-sans { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.ff-script { font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", "Apple Chancery", "Lucida Handwriting", cursive; }
.ff-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Formatpinsel im Editor */
.editor-area.painting, .editor-area.painting * { cursor: copy; }
.editor-hint { padding: .55rem .9rem; font-size: .9rem; background: rgba(var(--accent-rgb), .14); border: 1px solid var(--line-2); border-top: 0; color: var(--ink); }

/* Zwei-Faktor-Anmeldung (konto.php) */
.recovery-codes { list-style: none; padding: 1rem 1.2rem; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem 1.2rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.recovery-codes code { font-size: 1.05rem; letter-spacing: .04em; }
.qr-box { margin: .8rem 0; padding: .8rem; background: #fff; display: inline-block; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qr-box svg { display: block; }
.small-steps { margin: .5rem 0 0; padding-left: 1.3rem; }

/* Wunschtermin-Prüfung (Startseite) und Ergebnis auf der Buchungsseite */
.home-check { display: grid; grid-template-columns: 1fr; gap: .8rem 2rem; align-items: end; margin: 0 0 2.2rem; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.home-check h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
.home-check p { margin: 0; }
.home-check-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .8rem; align-items: end; }
.home-check-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; font-weight: 600; }
.home-check-form input, .home-check-form select { width: 100%; }
@media (min-width: 900px) { .home-check { grid-template-columns: minmax(14rem, 1fr) 2fr; } }
.wish-result { margin: 0 0 1.6rem; }
.wish-price { font-size: 1.1rem; }
.wish-alt-title { font-size: 1.15rem; margin: 1.2rem 0 .6rem; }
.wish-alts { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; }
.wish-alts a { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: inherit; }
.wish-alts a:hover, .wish-alts a:focus-visible { border-color: var(--accent); }
.wish-alts span { color: var(--muted); font-size: .92rem; }

/* Kontakt-Knopf */
.contact-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; }
.contact-fab summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.contact-fab summary::-webkit-details-marker { display: none; }
.contact-fab summary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); }
.contact-fab ul { list-style: none; margin: 0 0 .6rem; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 6px 22px rgba(0, 0, 0, .22); position: absolute; right: 0; bottom: 100%; min-width: 12rem; }
.contact-fab li a { display: block; padding: .6rem .8rem; border-radius: 6px; color: var(--ink); text-decoration: none; }
.contact-fab li a:hover, .contact-fab li a:focus-visible { background: rgba(var(--accent-rgb), .12); }
@media (max-width: 560px) { .contact-fab-text { display: none; } .contact-fab summary { padding: .8rem; } .contact-fab-icon { font-size: 1.4rem; } }
@media print { .contact-fab { display: none; } }

/* Zahlenfelder innerhalb von Kästchen-Zeilen (automatische E-Mails): größer als die Kästchen selbst, Wert gut lesbar */
.form .check input.inline-num, .form .check input.inline-num[type=number] {
    display: inline-block; flex: none; width: 4.8rem; height: 2.4rem; min-height: 2.4rem; margin: 0 .35rem; padding: .2rem .5rem;
    vertical-align: middle; text-align: center; font-size: 1.05rem; font-weight: 600; line-height: 1.2; color: var(--ink); background: var(--surface);
    border: 1px solid var(--line-2); border-radius: var(--radius-sm); -moz-appearance: textfield; appearance: textfield;
}
.form .check input.inline-num::-webkit-inner-spin-button, .form .check input.inline-num::-webkit-outer-spin-button { opacity: 1; margin-left: .2rem; }

/* Bildbearbeitung per Klick (Medien-Dialog, Titelbild) */
.img-edit { margin: .6rem 0 0; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.img-edit-bar { display: flex; flex-wrap: wrap; gap: .35rem; }
.img-edit .small { margin: .5rem 0 0; }
.img-edit.busy { opacity: .6; pointer-events: none; }
.hero-edit-box { margin: .6rem 0 1rem; padding: .3rem .8rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.hero-edit-box summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.hero-edit-box .img-edit { border: 0; padding: 0; background: transparent; }

/* ---------- Menüband: nichts ragt heraus, kein waagerechter Scrollbalken ---------- */
html, body { max-width: 100%; }
body { overflow-x: clip; }
.header-inner { flex-wrap: wrap; row-gap: .3rem; }
.main-nav { min-width: 0; max-width: 100%; }
.main-nav ul { justify-content: flex-end; }
.main-nav a, .nav-logout button, .nav-menu > summary { white-space: nowrap; }

/* Aufklappmenü „Verwaltung“ (Buchungen, Übersicht, Reinigungsplan … Mein Konto, Abmelden) */
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .85rem; border-radius: 999px; color: var(--hd-accent); font-size: .98rem; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: "▾"; font-size: .8em; opacity: .8; }
.nav-menu > summary:hover, .nav-menu[open] > summary, .nav-menu > summary.active { background: var(--hd-hover); }
.nav-menu > ul { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 60; min-width: 15rem; display: block; padding: .4rem; margin: 0; list-style: none; background: var(--hd-menu); border: 1px solid var(--hd-line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.nav-menu > ul li { display: block; }
.nav-menu > ul a, .nav-menu > ul .nav-logout button { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; padding: .65rem .9rem; border-radius: 10px; text-align: left; font-size: .95rem; }
.nav-menu > ul a:hover, .nav-menu > ul a.active, .nav-menu > ul .nav-logout button:hover { background: var(--hd-hover); }
.nav-menu > ul a::after { display: none; }
.nav-menu > ul .nav-logout { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px solid var(--hd-line); }

/* Zu viele Menüpunkte für die Breite: Burger-Menü (wird in site.js erkannt) */
body.nav-collapsed .nav-toggle { display: flex; }
body.nav-collapsed .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--hd-menu); border-bottom: 1px solid var(--hd-line); padding: .6rem 1.25rem 1.2rem; box-shadow: var(--shadow-lg); }
body.nav-collapsed .main-nav.open { display: block; }
body.nav-collapsed .main-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
body.nav-collapsed .main-nav a, body.nav-collapsed .nav-logout button { width: 100%; padding: .8rem 1rem; border-radius: 12px; font-size: 1rem; }
body.nav-collapsed .main-nav a::after { display: none; }
body.nav-collapsed .main-nav a:hover { background: var(--hd-hover); }
body.nav-collapsed .main-nav a.nav-cta { margin: .4rem 0 0; justify-content: center; }
body.nav-collapsed .nav-sep { width: 100%; height: 1px; margin: .4rem 0; }
body.nav-collapsed .nav-menu > summary { display: none; }
body.nav-collapsed .nav-menu > ul { position: static; min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
@media (max-width: 1100px) {
    .nav-menu > summary { display: none; }
    .nav-menu > ul { position: static; min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
    .nav-menu > ul a, .nav-menu > ul .nav-logout button { padding: .8rem 1rem; font-size: 1rem; }
}

/* Auswahl mit drei Stufen (z. B. Menü-Sichtbarkeit) */
.seg-control { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg-control button { appearance: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .82rem; padding: .4rem .8rem; cursor: pointer; white-space: nowrap; }
.seg-control button + button { border-left: 1px solid var(--line); }
.seg-control button:hover { background: rgba(var(--accent-rgb), .1); }
.seg-control button.on { background: var(--accent); color: #fff; font-weight: 600; }

/* Kompakte Buchungskarte: Name, Status, Zahlung, Zeitraum, Personen – alles Weitere ausklappbar */
.booking .booking-summary { display: grid; grid-template-columns: minmax(12rem, 1.2fr) 3fr auto; gap: .6rem 1.4rem; align-items: center; }
.booking .bs-name { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .7rem; min-width: 0; }
.booking .bs-name h2 { margin: 0; font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.booking .bs-facts { display: grid; grid-template-columns: 2.2fr 1fr 1.6fr; gap: .4rem 1.2rem; }
.booking .bs-facts > div { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.booking .bs-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.booking .bs-value { font-weight: 600; font-size: .98rem; }
.booking .bs-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.booking-more { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.booking-more > summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: .2rem 0; }
.booking-more[open] > summary { margin-bottom: .6rem; }
@media (max-width: 900px) { .booking .booking-summary { grid-template-columns: 1fr; } .booking .bs-facts { grid-template-columns: 1fr 1fr; } }

/* ---------- Übersicht: Kacheln auf gleicher Höhe, klare Struktur ---------- */
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); align-items: stretch; }
.stat { gap: .35rem; }
.stat-label { line-height: 1.35; min-height: 2.7em; display: flex; align-items: flex-start; }   /* zwei Zeilen reservieren: Zahlen stehen auf einer Höhe */
.stat-value { line-height: 1.1; }
.stat-sub { margin-top: auto; min-height: 1.3em; line-height: 1.3; }
.panel > h2 { margin-top: 0; }
.panel + .panel { margin-top: 1.2rem; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1.2rem; }
.form label { display: block; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem 1rem; margin: 0 0 1.1rem; }
.form fieldset > legend { font-weight: 650; padding: 0 .4rem; font-size: .95rem; }

/* Offene Zahlungen: Zahlungseingang direkt bestätigen */
.open-pay-list { list-style: none; margin: 0; padding: 0; }
.open-pay-list > li { padding: .8rem 0; border-top: 1px solid var(--line); }
.open-pay-list > li:first-child { border-top: 0; padding-top: 0; }
.open-pay-list .op-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: baseline; margin-bottom: .5rem; }
.pay-add > summary, .pay-cancel > summary { cursor: pointer; display: inline-block; }
.pay-form { margin-top: .6rem; padding: .8rem 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); max-width: 44rem; }
.pay-line { margin: .25rem 0; }
.pay-cancelled { opacity: .85; }
.link-btn { cursor: pointer; color: var(--link); text-decoration: underline; display: inline; }
.audit-list { margin: .4rem 0 0; padding-left: 1.1rem; }

/* Meldeschein */
.ms-missing { list-style: none; margin: 0; padding: 0; }
.ms-missing li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.ms-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ms-links input { width: min(24rem, 100%); font-size: .8rem; }
.meldeschein-form .sig-box { margin: .4rem 0 1rem; }
.sig-box canvas { width: 100%; height: 220px; max-width: 100%; background: #fff; border: 2px dashed var(--line-2); border-radius: var(--radius-sm); touch-action: none; cursor: crosshair; display: block; }
.sig-tools { display: flex; justify-content: space-between; align-items: center; margin-top: .3rem; }
.ms-dl { display: grid; grid-template-columns: 12rem 1fr; gap: .5rem 1rem; }
.ms-dl dt { color: var(--muted); font-size: .9rem; }
.ms-dl dd { margin: 0; }
.ms-signature { max-width: 320px; border-bottom: 1px solid var(--ink); background: #fff; }
@media (max-width: 600px) { .ms-dl { grid-template-columns: 1fr; } }
@media print { .site-header, .site-footer, .contact-fab, .no-print { display: none !important; } .meldeschein-view { box-shadow: none; } }
