/* ============================================================
   Hochzeitsscheune Gerhelm — gemeinsame Styles (mobile-first)
   ============================================================ */

/* Self-hosted Fonts (statt Google Fonts CDN — DSGVO-konform) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('/assets/fonts/CormorantGaramond.ttf') format('truetype-variations'),
       url('/assets/fonts/CormorantGaramond.ttf') format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic; font-weight: 300 600; font-display: swap;
  src: url('/assets/fonts/CormorantGaramond-Italic.ttf') format('truetype-variations'),
       url('/assets/fonts/CormorantGaramond-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Jost';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/Jost.ttf') format('truetype-variations'),
       url('/assets/fonts/Jost.ttf') format('truetype');
}
@font-face {
  font-family: 'Jost';
  font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/Jost-Italic.ttf') format('truetype-variations'),
       url('/assets/fonts/Jost-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Sacramento';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/Sacramento-Regular.ttf') format('truetype');
}

:root {
  --accent:#B0512B; --accent-deep:#8E3F1F;
  --green:#2A3526; --green-dark:#1A2316;
  --ink:#1F1E1A; --muted:#5A554B;
  --line:#D5CCB6; --cream:#F5F2EB; --paper:#FFFEF9;
  --sage:#6F7E5D; --error:#9C3B23; --ok:#4B6437;
  --placeholder:#8E867A;

  --container: 1240px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:88px; }
body {
  margin:0;
  font-family:'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
  overflow-x:hidden;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; }
input, select, textarea { font-family:inherit; font-size:16px; /* iOS-Zoom verhindern */ color:var(--ink); }
input::placeholder, textarea::placeholder { color:var(--placeholder); opacity:1; }
input[type=number] { -moz-appearance:textfield; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }

/* ---------- Typografie ---------- */
.script { font-family:'Sacramento', cursive; color:var(--accent); line-height:1; }
.serif  { font-family:'Cormorant Garamond', serif; }

h1, h2, h3 { font-family:'Cormorant Garamond', serif; font-weight:300; color:var(--green); margin:0; letter-spacing:-0.01em; }
h1 { font-size: clamp(32px, 5vw + 8px, 64px); line-height:1.08; }
h2 { font-size: clamp(28px, 3vw + 12px, 44px); line-height:1.14; }
h3 { font-size: clamp(20px, 1.2vw + 14px, 26px); font-weight:400; }

.eyebrow {
  font-size:12px; letter-spacing:0.32em; text-transform:uppercase;
  color:var(--accent); margin:0 0 12px;
}
.lead {
  font-size: clamp(15px, 1vw + 11px, 18px);
  line-height:1.75; color:var(--ink); font-weight:400;
}

/* ---------- Container & Sections ---------- */
.wrap { width:100%; max-width: var(--container); margin:0 auto; padding:0 20px; }
.section { padding:64px 0; }
.section-paper { background:var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-green { background:var(--green); color:#F6F1E7; }

@media (min-width: 720px) {
  .wrap   { padding:0 32px; }
  .section { padding:96px 0; }
}
@media (min-width: 1100px) {
  .section { padding:120px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:48px; padding:14px 24px;
  border-radius:999px; border:1px solid transparent;
  font-size:14px; letter-spacing:0.06em;
  background:var(--accent); color:#fff;
  transition:background .15s, border-color .15s, color .15s;
  text-align:center;
}
.btn:hover { background:var(--accent-deep); }
.btn-ghost { background:transparent; color:#fff; border-color:rgba(255,255,255,0.6); }
.btn-ghost:hover { background:rgba(255,255,255,0.12); }
.btn-secondary {
  background:#fff; color:var(--green); border-color:var(--line);
}
.btn-secondary:hover { border-color:var(--accent); background:#fff; }
.btn-uppercase { text-transform:uppercase; }
.btn-block { width:100%; }
.btn-disabled, .btn[disabled] { background:#A89E84; color:#fff; cursor:not-allowed; pointer-events:none; opacity:0.85; }

/* ---------- HEADER ----------
   Glas-Effekt liegt auf einem ::before-Pseudo, NICHT auf .site-header selbst,
   damit der Header kein "containing block" für das fixed .nav-Drawer wird. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(199, 187, 159, 0.5);
  color: #000;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(245, 242, 235, 0.55);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  z-index: -1;
  transition: background .2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(199, 187, 159, 0.65);
}
.site-header.is-scrolled::before { background: rgba(245, 242, 235, 0.72); }

/* Padding-Longhand, weil .wrap-Mobile sonst die Shorthand-padding überschreibt */
.site-header .header-inner {
  display:flex; align-items:center; justify-content:space-between;
  gap:20px;
  padding-top:22px;
  padding-bottom:22px;
}
.logo { height:60px; width:auto; display:block; transition: height .25s ease; }
.site-header.is-scrolled .logo { height:46px; }
@media (min-width:900px) {
  .site-header .header-inner { padding-top:26px; padding-bottom:26px; }
  .logo { height:68px; }
  .site-header.is-scrolled .logo { height:54px; }
}

.nav {
  display:flex; align-items:center; gap:22px;
  font-size:14px; letter-spacing:0.04em;
  color: inherit;
  font-weight:400;
}
.nav a { color: #000; opacity:1; }
.nav a:hover, .nav a.is-active { color:var(--accent); }
.nav a[href="/gaestebereich.html"] { color: var(--accent); }

.nav-cta {
  font-size:12.5px; letter-spacing:0.08em; text-transform:uppercase;
  color:#fff; background:var(--accent);
  padding:11px 18px; border-radius:999px; white-space:nowrap;
}
.nav-cta:hover { background:var(--accent-deep); }

/* Mobile-Menü */
.nav-toggle {
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; padding:0;
  background:transparent; border:1px solid var(--line); border-radius:10px;
  color:var(--ink);
}
.nav-toggle:focus { outline:2px solid var(--accent); }
.nav-toggle svg { width:22px; height:22px; }

@media (max-width: 899px) {
  .nav {
    position:fixed; inset:0 0 0 0;
    background:var(--cream);
    flex-direction:column;
    justify-content:center;
    gap:12px;
    padding:64px 24px 28px;
    transform: translateY(-100%);
    transition: transform .3s ease, visibility 0s linear .3s;
    z-index:60;
    font-size:17px;
    visibility:hidden;
    pointer-events:none;
  }
  .nav.is-open {
    transform: translateY(0);
    visibility:visible;
    pointer-events:auto;
    transition: transform .3s ease, visibility 0s linear 0s;
  }
  .nav a { padding:6px 12px; line-height:1.3; }
  .nav-cta { display:none; }
  .user-info { display:none; }
  .nav .nav-user-email {
    font-size:13px; color:var(--muted); margin-top:10px;
    word-break:break-all; text-align:center;
  }
  .nav .nav-cta-mobile {
    display:inline-flex; align-items:center; justify-content:center;
    min-height:44px; padding:12px 26px;
    background:var(--accent); color:#fff;
    text-transform:uppercase; letter-spacing:0.06em;
    border-radius:999px; margin-top:6px;
  }
}
@media (min-width: 900px) {
  .nav-toggle { display:none; }
  .nav .nav-cta-mobile { display:none; }
  .nav .nav-user-email { display:none; }
}

.nav-close {
  position:fixed; top:18px; right:20px; z-index:70;
  width:44px; height:44px;
  background:transparent; border:1px solid var(--line); border-radius:10px;
  display:none; align-items:center; justify-content:center;
  color:var(--ink);
}
.nav.is-open ~ .nav-close,
body.nav-open .nav-close { display:flex; }

/* ---------- HERO ---------- */
.hero {
  position:relative; min-height:78vh;
  display:flex; align-items:center; justify-content:center;
  text-align:center; overflow:hidden;
  color:#fff;
}
.hero-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-overlay { position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(30,22,16,0.45) 0%, rgba(30,22,16,0.30) 40%, rgba(30,22,16,0.65) 100%); }
.hero-inner { position:relative; max-width:880px; padding:96px 20px; }
.hero-logo {
  display:block; margin:0 auto 18px;
  height:96px; width:auto;
  /* Logo ist dunkel auf transparent → mit Filter in weiß umfärben */
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0,0,0,0.45));
}
@media (min-width:720px) { .hero-logo { height:120px; margin-bottom:22px; } }
.hero-eyebrow { font-size:12px; letter-spacing:0.34em; text-transform:uppercase; color:rgba(255,255,255,0.85); margin:0 0 22px; line-height:1.9; }
.hero h1 { color:#fff; }
.hero-script {
  font-family:'Sacramento', cursive;
  font-size: clamp(56px, 8vw, 92px);
  display:inline-block; margin-top:6px;
  color:#fff; line-height:0.9;
}
.hero p { color:rgba(255,255,255,0.9); margin:24px auto 0; max-width:560px; font-weight:300;
  font-size: clamp(15px, 1vw + 11px, 19px); line-height:1.65; }
.hero-cta { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:32px; }

@media (min-width:900px) {
  .hero-inner { padding:120px 32px; }
}

/* ---------- INFO-Sections ---------- */
.about {
  display:grid; grid-template-columns:1fr; gap:40px; align-items:center;
}
.about-img {
  position:relative; width:100%;
}
.about-img img {
  width:100%; height:380px; object-fit:cover;
  border-radius:6px; display:block;
}
.about-badge {
  position:absolute; bottom:-22px; left:16px;
  background:var(--paper); padding:18px 22px; border-radius:6px;
  border:1px solid var(--line); box-shadow:0 12px 30px rgba(50,40,30,0.12);
  z-index:2;
}
.about-badge-num { font-family:'Cormorant Garamond', serif; font-size:28px; color:var(--accent); line-height:1; }
.about-badge-tag { font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--muted); margin-top:4px; }
@media (min-width:900px) {
  .about { grid-template-columns:1.05fr 1fr; gap:64px; }
  .about-img img { height:520px; }
  .about-badge { left:-26px; bottom:-26px; padding:22px 26px; }
  .about-badge-num { font-size:34px; }
}

.tri {
  display:grid; gap:36px;
}
.tri-cell { text-align:center; }
.tri-cell h3 { margin:12px 0 8px; }
@media (min-width:760px) {
  .tri { grid-template-columns:repeat(3, 1fr); gap:48px; }
  .tri-cell + .tri-cell { border-left:1px solid var(--line); padding-left:40px; }
}

.facts {
  display:grid; grid-template-columns:1fr; gap:1px;
  background:var(--line); border:1px solid var(--line);
  border-radius:8px; overflow:hidden;
}
.facts > div { background:var(--paper); padding:24px 22px; }
.facts-tag { font-size:11px; letter-spacing:0.2em; text-transform:uppercase; color:var(--accent); margin-bottom:10px; }
.facts-title { font-family:'Cormorant Garamond', serif; font-size:21px; line-height:1.25; color:var(--green); }
.facts-text { font-size:14px; line-height:1.6; color:var(--ink); font-weight:400; margin-top:6px; }
@media (min-width:640px) { .facts { grid-template-columns:repeat(2, 1fr); } }
@media (min-width:980px) { .facts { grid-template-columns:repeat(4, 1fr); } .facts > div { padding:32px 26px; } }

.gut-grid { display:grid; grid-template-columns:1fr; gap:0 56px; }
.gut-grid > div { padding:20px 0; border-bottom:1px solid var(--line); }
.gut-grid .facts-tag { margin-bottom:6px; }
.gut-grid p { margin:0; font-size:15px; line-height:1.7; color:var(--ink); font-weight:400; }
@media (min-width:760px) { .gut-grid { grid-template-columns:1fr 1fr; } }

/* ---------- TERMINE / KALENDER ---------- */
.termine-grid { display:grid; grid-template-columns:1fr; gap:48px; align-items:center; }
@media (min-width:980px) { .termine-grid { grid-template-columns:1fr 1.05fr; gap:64px; } }

.steps { display:flex; flex-direction:column; gap:18px; margin-top:24px; }
.step { display:flex; align-items:flex-start; gap:16px; }
.step-num {
  flex:none; width:38px; height:38px; border-radius:999px;
  border:1px solid rgba(231,183,158,0.6);
  display:flex; align-items:center; justify-content:center;
  font-family:'Cormorant Garamond', serif; font-size:19px; color:#E7B79E;
}
.step-title { font-size:16px; color:#F6F1E7; margin-bottom:3px; }
.step-text  { font-size:14px; line-height:1.6; color:rgba(246,241,231,0.7); font-weight:300; }

.cal {
  background:var(--paper); color:var(--ink);
  border-radius:14px; padding:18px;
  box-shadow:0 20px 50px rgba(20,16,10,0.3);
  width:100%; max-width:100%; min-width:0;
}
@media (min-width:560px) { .cal { padding:28px; } }

.cal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.cal-title { font-family:'Cormorant Garamond', serif; font-size:24px; color:var(--green); line-height:1.1; margin-top:2px; }
.cal-nav { display:flex; gap:8px; }
.cal-nav button {
  width:42px; height:42px; border-radius:999px;
  border:1px solid var(--line); background:#fff; color:var(--green);
  font-size:18px; display:flex; align-items:center; justify-content:center;
}
.cal-nav button:hover { background:var(--cream); }
.cal-nav button[disabled] { opacity:0.4; cursor:not-allowed; }

/* ---------- Catering-Partner Card ---------- */
.partner-card {
  display:grid; grid-template-columns:1fr; gap:28px;
  background:#fff; border:1px solid var(--line); border-radius:16px;
  padding:32px clamp(20px, 4vw, 40px);
  box-shadow:0 12px 32px rgba(50,40,30,0.06);
  align-items:center;
}
@media (min-width:720px) {
  .partner-card { grid-template-columns:240px 1fr; gap:40px; padding:40px clamp(28px, 5vw, 48px); }
}
.partner-logo-wrap {
  display:flex; align-items:center; justify-content:center;
  padding:18px; background:var(--cream); border-radius:12px;
}
.partner-logo-wrap img { width:100%; max-width:220px; height:auto; display:block; }
.partner-body p { margin:0 0 12px; font-size:15.5px; line-height:1.72; color:var(--ink); }
.partner-claim {
  font-family:'Cormorant Garamond', serif; font-size:22px; line-height:1.4;
  color:var(--green); margin-bottom:18px !important;
}
.partner-tag {
  font-size:12px; letter-spacing:0.22em; text-transform:uppercase;
  color:var(--accent); margin:18px 0 22px !important;
}
.partner-body .btn { margin-top:6px; }

.cal-wd, .cal-grid {
  display:grid; grid-template-columns:repeat(7, 1fr); gap:5px;
}
.cal-wd { margin-bottom:6px; }
.cal-wd > span { text-align:center; font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); padding-bottom:4px; }

.cal-cell {
  aspect-ratio:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:2px;
  border-radius:10px; position:relative;
  font-size:14px; color:#C7BFB1;
  border:1px solid transparent;
  min-height:44px;
}
.cal-cell.is-blank { visibility:hidden; }
.cal-cell.is-day-num { color:#34402F; font-weight:500; }
.cal-cell .stat { font-size:8.5px; letter-spacing:0.1em; text-transform:uppercase; line-height:1; }
.cal-cell.is-free {
  background: rgba(147,160,129,0.16);
  border-color: rgba(147,160,129,0.55);
  cursor:pointer;
}
.cal-cell.is-free:hover { background: rgba(147,160,129,0.30); }
.cal-cell.is-free .stat { color:#6E7B53; }
.cal-cell.is-angefragt {
  background: rgba(188,106,71,0.10);
  border-color: rgba(188,106,71,0.4);
  color: var(--accent-deep);
}
.cal-cell.is-angefragt .stat { color: var(--accent-deep); }
.cal-cell.is-belegt    { color:#C0B8AA; }
.cal-cell.is-belegt .stat { color:#CCC5B8; }
.cal-cell.is-selected  {
  background: rgba(188,106,71,0.22);
  border:2px solid var(--accent);
  color: var(--accent-deep);
}

.cal-legend {
  display:flex; gap:18px; margin-top:18px; padding-top:16px;
  border-top:1px solid var(--line); flex-wrap:wrap;
  font-size:12px; color:var(--muted);
}
.cal-legend > span { display:inline-flex; align-items:center; gap:7px; }
.cal-legend i { width:11px; height:11px; border-radius:3px; display:inline-block; }
.cal-legend .l-free      { background:rgba(147,160,129,0.4); border:1px solid rgba(147,160,129,0.6); }
.cal-legend .l-angefragt { background:rgba(188,106,71,0.25); border:1px solid rgba(188,106,71,0.5); }
.cal-legend .l-belegt    { background:transparent; border:1px solid var(--line); }

.cal-selected {
  margin-top:18px;
  background:rgba(147,160,129,0.14);
  border:1px solid rgba(147,160,129,0.45);
  border-radius:12px; padding:16px 18px;
  display:grid; gap:14px;
}
.cal-selected .sel-info { display:flex; flex-direction:column; gap:2px; }
.cal-selected .sel-label {
  font-family:'Cormorant Garamond', serif; font-size:21px; color:var(--green); font-weight:500;
}
.cal-selected .sel-actions {
  display:grid; gap:8px; grid-template-columns:1fr;
}
@media (min-width:520px) { .cal-selected .sel-actions { grid-template-columns:1fr 1fr; } }
.cal-selected .sel-hint { margin:0; font-size:12.5px; color:var(--muted); line-height:1.5; }
.cal-selected .btn { min-height:46px; }

/* ---------- Galerie ---------- */
.gallery {
  display:grid; grid-template-columns:1fr; gap:14px;
}
.gallery img { width:100%; height:240px; object-fit:cover; border-radius:6px; }
@media (min-width:560px) { .gallery { grid-template-columns:repeat(2, 1fr); } .gallery img { height:300px; } }
@media (min-width:980px) { .gallery img { height:360px; } }

/* ---------- Galerie-Grid (mit Lightbox) ---------- */
.gallery-grid {
  display:grid; grid-template-columns:repeat(2, 1fr); gap:10px;
}
@media (min-width:560px) { .gallery-grid { grid-template-columns:repeat(3, 1fr); gap:12px; } }
@media (min-width:900px) { .gallery-grid { grid-template-columns:repeat(4, 1fr); gap:14px; } }
@media (min-width:1280px) { .gallery-grid { grid-template-columns:repeat(5, 1fr); } }

.gallery-tile {
  position:relative; padding:0; margin:0; border:none; background:#eadfca;
  cursor:zoom-in; overflow:hidden; border-radius:8px;
  aspect-ratio:1 / 1;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-tile:hover { transform: translateY(-2px); box-shadow:0 10px 24px rgba(50,40,30,0.18); }
.gallery-tile:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.gallery-tile img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block;
  transition: transform .35s ease;
}
.gallery-tile:hover img { transform:scale(1.04); }

/* ---------- Anfahrt / Map ---------- */
.map-card {
  position:relative; border-radius:16px; overflow:hidden;
  background:var(--cream);
  border:1px solid var(--line);
  box-shadow:0 16px 40px rgba(50,40,30,0.10);
}
.map-card iframe {
  display:block; width:100%; height:380px; border:0;
  /* Warm gefilterter Google-Maps-Look passend zur cream/green Palette */
  filter: grayscale(0.35) sepia(0.18) saturate(0.85) brightness(1.02) contrast(0.95);
  transition: filter .3s ease;
}
.map-card:hover iframe { filter: grayscale(0.10) sepia(0.06) saturate(0.95) contrast(0.98); }
@media (min-width:720px) { .map-card iframe { height:460px; } }
@media (min-width:1024px) { .map-card iframe { height:520px; } }

.map-cta {
  position:absolute; left:50%; bottom:18px;
  transform:translateX(-50%);
  background:var(--accent); color:#fff;
  font-size:13px; letter-spacing:0.08em; text-transform:uppercase;
  padding:11px 22px; border-radius:999px;
  box-shadow:0 6px 18px rgba(176,81,43,0.35);
  white-space:nowrap;
  transition: background .2s ease, transform .2s ease;
}
.map-cta:hover { background:var(--accent-deep); transform:translate(-50%, -2px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position:fixed; inset:0; z-index:200;
  background:rgba(20,18,14,0.94);
  display:none; align-items:center; justify-content:center;
  padding:max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}
.lightbox.is-open { display:flex; }
.lb-stage {
  position:relative; max-width:100%; max-height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.lb-stage img {
  max-width:100%; max-height:calc(100vh - 100px);
  width:auto; height:auto; display:block;
  border-radius:6px; box-shadow:0 24px 60px rgba(0,0,0,0.5);
  user-select:none; -webkit-user-drag:none;
}
.lb-counter {
  margin-top:14px; font-size:13px; letter-spacing:0.14em; text-transform:uppercase;
  color:rgba(246,241,231,0.7);
}
.lb-btn {
  position:absolute; z-index:1;
  width:48px; height:48px; border-radius:999px;
  background:rgba(255,255,255,0.08); color:#fff; border:1px solid rgba(255,255,255,0.18);
  font-size:22px; line-height:1; display:flex; align-items:center; justify-content:center;
  cursor:pointer; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  transition: background .15s ease, transform .15s ease;
}
.lb-btn:hover { background:rgba(255,255,255,0.18); }
.lb-btn:active { transform:scale(.94); }
.lb-close { top:max(16px, env(safe-area-inset-top)); right:16px; font-size:28px; }
.lb-prev { left:14px; top:50%; transform:translateY(-50%); }
.lb-next { right:14px; top:50%; transform:translateY(-50%); }
.lb-prev:active, .lb-next:active { transform:translateY(-50%) scale(.94); }
@media (max-width:560px) {
  .lb-btn { width:42px; height:42px; }
  .lb-prev { left:8px; } .lb-next { right:8px; }
}

/* ---------- Kontakt ---------- */
.contact-row {
  display:flex; gap:24px; justify-content:center; flex-wrap:wrap;
  margin:32px 0;
}
.contact-row > div { text-align:center; min-width:200px; }
.contact-row .facts-title { font-size:20px; }

/* ---------- Footer ---------- */
.site-footer { background:var(--green); color:rgba(246,241,231,0.72); }
.footer-top {
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap;
  padding-top:36px;
  padding-bottom:36px;
}
.footer-brand { font-family:'Sacramento', cursive; font-size:30px; color:#F6F1E7; }
.footer-nav { display:flex; gap:18px; font-size:14px; flex-wrap:wrap; }
.footer-nav a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(246,241,231,0.14); }
.footer-bottom .wrap {
  padding-top:18px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  font-size:13px; color:rgba(246,241,231,0.5);
}

/* ============================================================
   GÄSTEBEREICH — AUTH + KONTO
   ============================================================ */

.auth-screen {
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden; padding:24px;
}
.auth-screen img.bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.auth-screen .ov   { position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(28,22,16,0.55), rgba(28,22,16,0.72)); }
.auth-card {
  position:relative; width:100%; max-width:460px;
  background:rgba(251,247,239,0.98); border-radius:16px;
  padding:32px 24px; box-shadow:0 30px 70px rgba(20,14,8,0.4);
}
@media (min-width:480px) { .auth-card { padding:44px 40px; } }

.auth-logo { height:56px; width:auto; margin:0 auto 22px; display:block; }
.auth-card h1 {
  text-align:center; font-size:28px; margin:0 0 6px; color:var(--green);
}
.auth-card .sub {
  text-align:center; font-size:14px; line-height:1.6; color:var(--muted);
  font-weight:300; margin:0 0 22px;
}

label.field-label, .field-label {
  display:block; font-size:11.5px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--green); font-weight:500; margin-bottom:7px;
}
input.field, select.field, textarea.field {
  width:100%; padding:14px 15px;
  border:1.5px solid var(--line); border-radius:10px;
  background:#fff; color:var(--ink);
  outline:none; transition:border-color .15s, box-shadow .15s;
}
input.field:hover, select.field:hover, textarea.field:hover { border-color:#A4986F; }
input.field:focus, select.field:focus, textarea.field:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(176,81,43,0.15); }
input.field:disabled, select.field:disabled, textarea.field:disabled { background:#F5EFE0; color:var(--muted); }
.field-row + .field-row { margin-top:14px; }
.field-grid-2 { display:grid; grid-template-columns:1fr; gap:14px; }
@media (min-width:480px) { .field-grid-2 { grid-template-columns:1fr 1fr; } }

.error-msg { margin:12px 0 0; font-size:13px; color:var(--error); }
.hint-msg  { margin:8px 0 0; font-size:13px; color:var(--accent); font-style:italic; }
.muted { color:var(--muted); }
.tiny { font-size:12.5px; line-height:1.55; }
.center { text-align:center; }
.link { color:var(--accent); border-bottom:1px solid var(--accent); cursor:pointer; padding-bottom:1px; }

/* ---- Konto-Layout ---- */
.account-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 235, 0.60);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-bottom: 1px solid rgba(199, 187, 159, 0.55);
  color: #000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}
.account-header-inner {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:12px 0; flex-wrap:wrap;
}
.account-header .logo { height:46px; }
.account-header .user-info {
  display:flex; align-items:center; gap:12px;
  font-size:13px; color:var(--muted);
}
.btn-logout {
  background:transparent; color:var(--muted);
  border:1px solid var(--line); border-radius:999px;
  padding:9px 16px; font-size:13px; min-height:auto;
}
.btn-logout:hover { border-color:var(--accent); color:var(--green); }

.account-title {
  display:flex; align-items:baseline; justify-content:space-between;
  flex-wrap:wrap; gap:12px;
  margin:32px 0 22px;
}
.account-title .script { font-size:34px; }
.account-title h1 {
  font-size:30px;
  font-weight:300;
  margin:0 !important;
  text-align:right;
  color:var(--muted);
  letter-spacing:0.02em;
}

.notice {
  display:flex; align-items:flex-start; gap:14px;
  border-radius:14px; padding:18px 22px;
  margin-bottom:24px; font-size:14.5px; line-height:1.6;
}
.notice-info { background:rgba(147,160,129,0.18); border:1px solid rgba(147,160,129,0.55); color:var(--ink); }
.notice-info .ico {
  flex:none; width:36px; height:36px; border-radius:999px;
  background:var(--green); color:#F6F1E7;
  display:flex; align-items:center; justify-content:center;
  font-family:'Cormorant Garamond', serif; font-size:20px;
}
.notice-draft { background:rgba(188,106,71,0.1); border:1px solid rgba(188,106,71,0.35); color:var(--accent-deep); font-size:14px; }
.notice-hold {
  display:flex; align-items:flex-start; gap:14px;
  background:rgba(80,120,160,0.10); border:1px solid rgba(80,120,160,0.35);
  color:var(--ink); padding:18px 22px; border-radius:14px; margin-bottom:24px; font-size:14.5px; line-height:1.6;
}
.notice-hold .ico { flex:none; width:36px; height:36px; border-radius:999px; background:#4D6F94; color:#F6F1E7; display:flex; align-items:center; justify-content:center; font-size:18px; }
.notice-closed {
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; flex-wrap:wrap;
  background:var(--green); color:#F6F1E7; padding:20px 24px;
  border-radius:14px; margin-bottom:22px;
}
.notice-closed .tag { font-size:11px; letter-spacing:0.2em; text-transform:uppercase; color:#E7B79E; margin-bottom:4px; }
.notice-closed .nr  { font-family:'Cormorant Garamond', serif; font-size:22px; }
.notice-closed .when { font-size:13px; color:rgba(246,241,231,0.78); }

/* Preise-Übersicht */
.price-grid { display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width:760px)  { .price-grid { grid-template-columns:repeat(2, 1fr); } }
@media (min-width:1024px) { .price-grid { grid-template-columns:repeat(3, 1fr); } }
.price-card {
  background:var(--paper); border:1px solid var(--line);
  border-radius:14px; padding:20px;
}
.price-card .head {
  font-size:11px; letter-spacing:0.18em; text-transform:uppercase;
  color:var(--accent); margin-bottom:6px;
}
.price-card .note { font-size:12.5px; color:var(--muted); font-weight:400; margin-bottom:10px; font-style:italic; }
.price-line {
  display:flex; justify-content:space-between; gap:12px; align-items:baseline;
  border-bottom:1px solid var(--line); padding:10px 0;
}
.price-line:last-child { border-bottom:none; padding-bottom:0; }
.price-line .lbl { font-size:13.5px; line-height:1.4; }
.price-line .amt { font-family:'Cormorant Garamond', serif; font-size:17px; color:var(--green); white-space:nowrap; }
.price-card.dark { background:var(--green); color:#F6F1E7; }
.price-card.dark .head { color:#E7B79E; }
.price-card.dark .big  { font-family:'Cormorant Garamond', serif; font-size:23px; }
.price-card.dark p     { margin:8px 0 0; font-size:13px; line-height:1.55; color:rgba(246,241,231,0.78); font-weight:300; }
.price-card .big       { font-family:'Cormorant Garamond', serif; font-size:23px; color:var(--green); }

/* Vertrag-Layout */
.contract-grid { display:grid; grid-template-columns:1fr; gap:24px; }
@media (min-width:1024px) {
  .contract-grid { grid-template-columns:1fr 360px; gap:36px; align-items:start; }
}

.contract-stack { display:flex; flex-direction:column; gap:24px; }

.card {
  background:var(--paper); border:1px solid var(--line);
  border-radius:16px; padding:22px;
  box-shadow:0 1px 0 rgba(60,50,30,0.04), 0 8px 24px rgba(60,50,30,0.05);
}
@media (min-width:560px) { .card { padding:30px; } }
.card-title { font-family:'Cormorant Garamond', serif; font-size:22px; color:var(--green); margin:0 0 14px; font-weight:500; }
.card-sub { margin:0 0 14px; font-size:13.5px; color:var(--muted); font-weight:400; }

.form-grid { display:grid; grid-template-columns:1fr; gap:14px; }
@media (min-width:560px) { .form-grid.cols-2 { grid-template-columns:1fr 1fr; } }
.form-grid .span-2 { grid-column:1 / -1; }

.radio-row, .check-row { display:flex; align-items:center; gap:14px;
  border:1px solid var(--line); border-radius:10px; padding:14px 16px;
  background:#fff; cursor:pointer;
  min-height:78px; box-sizing:border-box; }
.radio-row:hover, .check-row:hover { border-color:var(--accent); }
.radio-row + .radio-row, .check-row + .check-row { margin-top:10px; }
.radio-row input[type=radio], .check-row input[type=checkbox] { width:18px; height:18px; accent-color:var(--accent); }
.radio-row .main,
.check-row .main { flex:1; display:flex; flex-direction:column; gap:3px; font-size:15px; color:var(--ink); min-width:0; }
.radio-row .hint,
.check-row .hint { font-size:12.5px; color:var(--muted); display:block; line-height:1.45; }
.radio-row .price,
.check-row .price { font-family:'Cormorant Garamond', serif; font-size:19px; color:var(--green); white-space:nowrap; flex:none; }
.radio-row.dashed { border-style:dashed; border-color:var(--sage); background:rgba(147,160,129,0.08); }

/* Zusatzleistungen — saubere Listenoptik mit Trennlinien statt Kacheln */
.addons { display:block; }
.addons > .check-row,
.addons > .radio-row,
.addons > .addon {
  border:none; border-radius:0; background:transparent;
  padding:14px 4px; margin:0;
  border-bottom:1px solid var(--line);
  height:auto; min-height:0;
}
.addons > .check-row + .check-row,
.addons > .radio-row + .radio-row,
.addons > .addon + .addon { margin-top:0; }
.addons > *:last-child { border-bottom:none; }
.addons > .check-row:hover,
.addons > .radio-row:hover { background:rgba(176,81,43,0.04); border-color:var(--line); }
.addon {
  display:flex; align-items:center; gap:12px;
  border:1px solid var(--line); border-radius:10px;
  padding:12px 14px; background:#fff;
}
.addon .text { flex:1; }
.addon .text .l { font-size:14px; color:var(--ink); }
.addon .text .h { font-size:12px; color:var(--muted); }
.addon input[type=number] {
  width:70px; padding:10px; border:1px solid var(--line); border-radius:8px;
  background:var(--cream); text-align:center; font-size:15px;
}
.addon input[type=number]:focus { border-color:var(--accent); }

/* Servicekraft-Spezialkachel — Auto-Anzeige + Staffel-Erklärung */
.servicekraft-addon { align-items:flex-start; }
.servicekraft-addon .staff-staffel {
  margin-top:8px; padding-top:8px; border-top:1px dashed var(--line);
  font-size:12px; line-height:1.7; color:var(--muted); font-style:italic;
}
.servicekraft-display {
  flex:none; min-width:118px; align-self:center;
  background:var(--paper); border:1.5px solid var(--accent);
  border-radius:10px; padding:12px 14px;
  text-align:center;
  font-family:'Cormorant Garamond', serif;
  color:var(--green); font-weight:500;
  line-height:1.2;
}
.servicekraft-display .ma { display:block; font-size:20px; }
.servicekraft-display .std { display:block; font-size:12px; color:var(--muted); margin-top:2px; letter-spacing:0.04em; }
.servicekraft-display.empty { color:var(--muted); border-style:dashed; border-color:var(--line); font-size:18px; }

.consent { display:flex; flex-direction:column; gap:12px; margin-top:6px; }
.consent label { display:flex; align-items:flex-start; gap:12px; cursor:pointer; font-size:14px; line-height:1.5; }
.consent label:has(input:disabled) { cursor:default; opacity:0.85; }
.consent input[type=checkbox] { width:18px; height:18px; margin-top:2px; accent-color:var(--accent); }
.consent input[type=checkbox]:disabled { cursor:not-allowed; }
.consent .req { color:var(--accent); }
.consent-extra { margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }

/* Sticky Kalkulation */
.calc {
  background:#fff; border:1px solid var(--line);
  border-radius:16px; padding:22px;
  box-shadow:0 2px 4px rgba(60,50,30,0.06), 0 18px 40px rgba(50,40,30,0.12);
}
@media (min-width:1024px) {
  .calc-wrap { position:sticky; top:90px; }
}
.calc .head {
  font-size:11px; letter-spacing:0.2em; text-transform:uppercase;
  color:var(--accent); margin-bottom:14px;
}
.calc-line {
  display:flex; justify-content:space-between; gap:12px;
  font-size:14px; color:var(--ink); margin-bottom:6px;
}
.calc-line .v { color:var(--ink); white-space:nowrap; font-weight:500; }
.calc-total {
  display:flex; justify-content:space-between; align-items:baseline;
  margin-top:14px; padding-top:14px; border-top:1px solid var(--line);
}
.calc-total .l { font-size:14px; color:var(--green); }
.calc-total .v { font-family:'Cormorant Garamond', serif; font-size:25px; color:var(--green); }
.calc-anz { display:flex; justify-content:space-between; margin-top:6px; font-size:13.5px; color:var(--muted); }
.calc-fineprint { margin:12px 0 16px; font-size:12px; line-height:1.55; color:var(--muted); font-weight:400; }
.calc .btn { margin-top:10px; }
.calc .btn-secondary { margin-top:0; margin-bottom:10px; }

/* Datepicker für gewähltes Datum (zugleich Slot) */
.date-pick { display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
.date-pick input { flex:1; min-width:160px; }

/* Modal */
.modal {
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center;
  background:rgba(20,16,10,0.55);
  backdrop-filter: blur(6px);
  padding:20px;
  animation: modal-fade .15s ease both;
}
.modal.hidden { display:none; }
.modal-card {
  background:#fff; border-radius:16px;
  padding:28px 26px; max-width:480px; width:100%;
  box-shadow:0 28px 60px rgba(0,0,0,0.4);
  animation: modal-pop .18s ease both;
}
.modal-card h3 {
  font-family:'Cormorant Garamond', serif; font-weight:500;
  font-size:24px; color:var(--green); margin:0 0 12px;
}
.modal-card p { margin:0 0 22px; line-height:1.6; color:var(--ink); font-size:15px; }
.modal-actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
.modal-actions .btn { min-width:130px; }
@keyframes modal-fade { from { opacity:0; } to { opacity:1; } }
@keyframes modal-pop  { from { opacity:0; transform:translateY(10px) scale(0.96); } to { opacity:1; transform:none; } }

/* Toast */
.toast {
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%);
  background:var(--green); color:#F6F1E7;
  padding:14px 22px; border-radius:999px; font-size:14px;
  box-shadow:0 12px 30px rgba(20,14,8,0.3);
  z-index:200;
  animation: toast-in .25s ease both;
}
.toast.error { background:var(--error); }
@keyframes toast-in { from { opacity:0; transform:translate(-50%, 12px); } to { opacity:1; transform:translate(-50%, 0); } }

/* ============================================================
   VERTRAG-PDF — sieht aus wie ein echtes Vertragsdokument, nicht wie ne Webseite
   ============================================================ */
#vertrag-print { display:none; }
@media print {
  html, body { background:#fff; margin:0; padding:0; }
  body * { visibility:hidden; }
  #vertrag-print, #vertrag-print * { visibility:visible; }
  #vertrag-print {
    display:block !important;
    position:absolute; left:0; top:0; width:100%;
    color:#000;
    font-family:'Cormorant Garamond', 'Georgia', serif;
    font-size:11.5pt; line-height:1.55;
  }
  #vertrag-print .page {
    page-break-after: always; break-after: page;
    padding: 0;
  }
  #vertrag-print .page:last-child {
    page-break-after: auto; break-after: auto;
  }
  #vertrag-print h2, #vertrag-print h3 { page-break-after:avoid; break-after:avoid-page; }
  #vertrag-print table { page-break-inside:auto; }
  #vertrag-print tr    { page-break-inside:avoid; }
  #vertrag-print .nobreak { page-break-inside:avoid; break-inside:avoid; }
  @page { size:A4; margin:20mm 22mm 22mm; }
}
/* Layout-Klassen — auch außerhalb @media damit Vorschau im DOM funktioniert */
#vertrag-print .doc-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:18px;
  border-bottom:2px solid #2A3526; padding-bottom:10pt; margin-bottom:14pt;
}
#vertrag-print .doc-head .left .org   { font-size:9pt; letter-spacing:0.14em; text-transform:uppercase; color:#2A3526; font-family:'Jost',sans-serif; font-weight:500; }
#vertrag-print .doc-head .left .addr  { font-size:9pt; color:#444; line-height:1.5; margin-top:2pt; font-family:'Jost',sans-serif; }
#vertrag-print .doc-head .right       { text-align:right; font-size:9pt; color:#444; font-family:'Jost',sans-serif; }
#vertrag-print .doc-head img          { height:54px; width:auto; }
#vertrag-print .deckblatt-mid {
  text-align:center; padding:32pt 0 26pt;
}
#vertrag-print .deckblatt-mid .kicker { font-family:'Sacramento',cursive; font-size:28pt; color:#B0512B; line-height:1; margin-bottom:6pt; }
#vertrag-print .deckblatt-mid h1      { font-family:'Cormorant Garamond',serif; font-weight:500; font-size:26pt; color:#2A3526; margin:0; letter-spacing:-0.01em; line-height:1.15; }
#vertrag-print .deckblatt-mid .sub    { font-size:10pt; color:#666; letter-spacing:0.2em; text-transform:uppercase; margin-top:8pt; font-family:'Jost',sans-serif; }
#vertrag-print .parties {
  display:grid; grid-template-columns:1fr 1fr; gap:24pt;
  margin-top:18pt; padding:14pt 16pt; border:1px solid #ccc; background:#FCFAF4; border-radius:4pt;
}
#vertrag-print .parties h3 { font-family:'Jost',sans-serif; font-weight:500; font-size:9pt; letter-spacing:0.16em; text-transform:uppercase; color:#B0512B; margin:0 0 6pt; }
#vertrag-print .parties .name { font-family:'Cormorant Garamond',serif; font-size:14pt; color:#2A3526; font-weight:500; line-height:1.25; }
#vertrag-print .parties .det  { font-size:10pt; color:#222; line-height:1.5; margin-top:4pt; }
#vertrag-print .meta-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:0 24pt;
  margin-top:14pt; font-size:10pt;
}
#vertrag-print .meta-grid > div { padding:6pt 0; border-bottom:1px solid #e6dfd0; display:flex; justify-content:space-between; gap:10pt; font-family:'Jost',sans-serif; }
#vertrag-print .meta-grid .k { color:#666; }
#vertrag-print .meta-grid .v { color:#000; font-weight:500; text-align:right; }
#vertrag-print h2 {
  font-family:'Cormorant Garamond',serif; font-weight:500;
  font-size:14pt; color:#2A3526;
  margin:18pt 0 8pt; padding-bottom:3pt; border-bottom:1px solid #c7bb9f;
  letter-spacing:-0.005em;
}
#vertrag-print h3 { font-family:'Cormorant Garamond',serif; font-size:12pt; color:#2A3526; margin:10pt 0 4pt; font-weight:500; }
#vertrag-print p  { margin:0 0 8pt; text-align:justify; hyphens:auto; }
#vertrag-print p.lead { font-size:11pt; color:#222; }
#vertrag-print .cost-table { width:100%; border-collapse:collapse; margin:4pt 0 10pt; font-family:'Jost',sans-serif; font-size:10pt; }
#vertrag-print .cost-table td { padding:4pt 0; border-bottom:1px solid #eadfca; vertical-align:top; }
#vertrag-print .cost-table .amt { text-align:right; white-space:nowrap; }
#vertrag-print .cost-table tr.sum td { padding-top:8pt; border-top:1.5px solid #2A3526; border-bottom:none; font-weight:600; font-size:11pt; }
#vertrag-print .cost-table tr.anz td { padding-top:2pt; color:#444; border-bottom:none; font-style:italic; font-size:9.5pt; }
#vertrag-print .clause {
  margin:10pt 0; padding-left:32pt; position:relative;
}
#vertrag-print .clause .nr {
  position:absolute; left:0; top:0;
  font-family:'Cormorant Garamond',serif; font-weight:600; color:#B0512B;
  font-size:12pt;
}
#vertrag-print .clause h3 { margin:0 0 4pt; }
#vertrag-print ul { margin:4pt 0 8pt 0; padding:0; list-style:none; font-family:'Jost',sans-serif; font-size:10pt; }
#vertrag-print ul li { padding-left:14pt; position:relative; margin-bottom:3pt; line-height:1.55; }
#vertrag-print ul li::before { content:'·'; position:absolute; left:4pt; top:0; color:#B0512B; font-weight:700; }
#vertrag-print .note { font-size:9.5pt; color:#666; font-style:italic; }
#vertrag-print .freitext-box {
  border:1px solid #ccc; background:#FBF7EF; border-radius:4pt;
  padding:10pt 12pt; font-family:'Jost',sans-serif; font-size:10.5pt;
  white-space:pre-wrap; line-height:1.55; margin:4pt 0 10pt;
}
#vertrag-print .sig {
  display:grid; grid-template-columns:1fr 1fr; gap:24pt; margin-top:32pt; font-family:'Jost',sans-serif;
}
#vertrag-print .sig .line { border-top:1px solid #000; padding-top:4pt; font-size:9pt; color:#444; }
#vertrag-print .sig .place { font-size:9pt; color:#444; }
#vertrag-print .stamp-box {
  margin-top:24pt; border:1.5px solid #2A3526; border-radius:4pt;
  padding:10pt 14pt; font-family:'Jost',sans-serif; font-size:10pt;
  background:#FAF7EE;
}
#vertrag-print .stamp-box .title { font-weight:600; color:#2A3526; margin-bottom:4pt; }
#vertrag-print .footer-line {
  margin-top:24pt; padding-top:8pt; border-top:1px solid #c7bb9f;
  font-family:'Jost',sans-serif; font-size:8.5pt; color:#666; text-align:center;
}

/* Utility */
.hidden { display:none !important; }
.mt-0 { margin-top:0 !important; }
.mt-2 { margin-top:8px; }
.mt-4 { margin-top:16px; }
.mt-6 { margin-top:24px; }
.mb-6 { margin-bottom:24px; }
.gap-2 { gap:8px; } .gap-3 { gap:12px; }
