/* ==================================================================
   Fotobox- & Hüpfburgen-Vermietung – Editorial
   ================================================================== */

/* --- Schriften (lokal, keine Verbindung zu Google) ----------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  --paper:   #FAF9F6;
  --ink:     #111111;
  --card:    #FFFFFF;
  --rule:    #E2E0D8;
  /* Markenfarbe aus dem Logo */
  --brand:       #1D3461;
  --brand-hover: #142748;
  --brand-tint:  #E7ECF4;
  --brand-soft:  #9FB0CB;
  --signal:      var(--brand);   /* Akzente, Fokus, Auswahl */
  --signal-text: #B3402A;        /* nur für Fehlermeldungen */
  --muted:   #5F5B52;
  --sunk:    #F1EFE8;

  --f-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Typo-Skala (≈ 1.25, Basis 17px) */
  --t-xs:  0.8125rem;  /* 13 */
  --t-sm:  0.9375rem;  /* 15 */
  --t-md:  1.0625rem;  /* 17 */
  --t-lg:  1.3125rem;  /* 21 */
  --t-xl:  1.6875rem;  /* 27 */
  --t-2xl: clamp(2rem, 4.2vw, 3.25rem);
  --t-hero: clamp(2.9rem, 9.4vw, 8.25rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius-s: 3px;
  --radius-m: 6px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-md)/1.6 var(--f-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; } /* width/height-Attribute nie verzerren lassen */
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--f-display);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.mono { font-family: var(--f-mono); font-feature-settings: "zero" 0; letter-spacing: -0.01em; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

/* --- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.35em;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font: 600 var(--t-md)/1 var(--f-display);
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--primary:active { background: #0E1C35; }
.btn--primary[disabled] { background: var(--sunk); color: var(--muted); cursor: not-allowed; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--quiet:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }

/* --- Kopf ----------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.25rem/1 var(--f-display);
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--brand);
}
.brand:hover { color: var(--brand); }
.brand__mark { width: 34px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: var(--t-sm); }
.site-nav a { text-decoration: none; }
.site-nav a:not(.site-nav__cta):hover { text-decoration: underline; color: var(--ink); }
.site-nav__cta {
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: var(--radius-s);
}
.site-nav__cta:hover { background: var(--brand); color: #fff; }

@media (max-width: 720px) {
  .site-nav a:not(.site-nav__cta) { display: none; }
}

/* --- Hero ----------------------------------------------------------- */
/* Dunkle Bühne mit Scheinwerfern, beim Laden ein Kamera-Blitz */
.hero {
  --stage: #0B1628;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 10vw, 136px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(120% 70% at 70% 0%, #1D3461 0%, transparent 60%),
    linear-gradient(to bottom, var(--stage), #0E1C35);
  color: #F4F2EC;
}
.hero__stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__stage::after {
  /* Boden: Lichtkegel laufen in einen hellen Dunst aus */
  content: ""; position: absolute; inset: auto 0 0; height: 40%;
  background: linear-gradient(to top, rgba(159, 176, 203, .14), transparent);
}
/* Wandernde Lichtkreise wie unscharfe Partylichter */
.hero__orb {
  position: absolute;
  width: var(--s); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--c) 0%, transparent 68%);
  mix-blend-mode: screen;
  will-change: translate;
}
.hero__orb--1 { --s: clamp(260px, 42vw, 620px); --c: rgba(91, 126, 186, .55);  top: -18%; left: 48%; animation: orb-a 26s ease-in-out infinite alternate; }
.hero__orb--2 { --s: clamp(180px, 26vw, 400px); --c: rgba(255, 238, 210, .30); top: 32%;  left: 70%; animation: orb-b 21s ease-in-out infinite alternate; }
.hero__orb--3 { --s: clamp(220px, 32vw, 480px); --c: rgba(159, 176, 203, .30); top: 48%;  left: -10%; animation: orb-c 30s ease-in-out infinite alternate; }
.hero__orb--4 { --s: clamp(90px, 11vw, 170px);  --c: rgba(255, 255, 255, .45); top: 14%;  left: 82%; animation: orb-c 17s ease-in-out infinite alternate-reverse; }
.hero__orb--5 { --s: clamp(70px, 8vw, 130px);   --c: rgba(214, 224, 240, .40); top: 66%;  left: 40%; animation: orb-a 19s ease-in-out infinite alternate-reverse; }
@keyframes orb-a { 0% { translate: 0 0; } 50% { translate: -14vw 10vh; } 100% { translate: 6vw 22vh; } }
@keyframes orb-b { 0% { translate: 0 0; } 50% { translate: -22vw -12vh; } 100% { translate: -8vw 14vh; } }
@keyframes orb-c { 0% { translate: 0 0; } 50% { translate: 18vw -14vh; } 100% { translate: 30vw 6vh; } }

.hero__flash {
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 72% 30%, #fff, rgba(255, 255, 255, .6) 40%, transparent 75%);
  opacity: 0;
  animation: flash 1.1s .35s ease-out both;
}
@keyframes flash { 0% { opacity: 0; } 6% { opacity: .9; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero__orb { animation: none; }
  .hero__flash { display: none; }
}

.hero__place {
  font: 600 var(--t-sm)/1 var(--f-display);
  letter-spacing: -0.01em;
  color: var(--brand-soft);
  margin-bottom: 20px;
}
.hero__title {
  font-size: var(--t-hero);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
  max-width: 13ch;
  text-wrap: balance;
  color: #fff;
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid rgba(244, 242, 236, .28);
}
.hero__lede {
  font-size: var(--t-lg);
  line-height: 1.5;
  max-width: 34ch;
  color: rgba(244, 242, 236, .8);
}
.hero .datecheck { color: var(--ink); border-color: transparent; }

.hero__facts {
  list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  font-size: var(--t-sm); color: rgba(244, 242, 236, .66);
}
.hero__facts strong { color: #fff; font-weight: 600; }

.datecheck {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  padding: clamp(20px, 3vw, 32px);
}
.datecheck__label {
  display: block;
  font: 700 var(--t-xl)/1.1 var(--f-display);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.datecheck__row { display: flex; gap: 10px; flex-wrap: wrap; }
.datecheck__input {
  flex: 1 1 200px;
  min-height: 52px;
  padding: 0 14px;
  font-size: 1.125rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
}
.datecheck .btn { min-height: 52px; flex: 0 0 auto; }
.datecheck__hint { margin-top: 14px; font-size: var(--t-sm); color: var(--muted); }
.datecheck__error { margin-top: 10px; font-size: var(--t-sm); color: var(--signal-text); font-weight: 500; }

@media (max-width: 860px) {
  .hero__row { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 480px) {
  .datecheck .btn { width: 100%; }
}

/* --- Abschnittstitel ------------------------------------------------ */
.section-title {
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: -0.045em;
}

/* --- Katalog -------------------------------------------------------- */
.catalog { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--rule); }

.catalog__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 36px;
}

.filter { display: flex; flex-wrap: wrap; gap: 6px; }
.filter__btn {
  font: 500 var(--t-sm)/1 var(--f-body);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-flex; gap: 8px; align-items: center;
}
.filter__btn .mono { font-size: var(--t-xs); color: var(--muted); }
.filter__btn:hover { border-color: var(--ink); }
.filter__btn[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter__btn[aria-pressed="true"] .mono { color: var(--brand-soft); }

.daybar {
  border-left: 4px solid var(--brand) !important;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px;
  margin: -12px 0 32px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-m);
}
.daybar[hidden] { display: none; }
.daybar__text { font-weight: 500; }
.daybar .btn { min-height: 40px; font-size: var(--t-sm); }

.items {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 24px;
}
.item {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.item[hidden] { display: none; }

.item__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--sunk);
  border-bottom: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--brand);
}
.item__media img { width: 100%; height: 100%; object-fit: cover; }
.illu { width: 62%; height: auto; }
.illu__accent { fill: var(--brand-soft); }
.illu__accent-stroke { stroke: var(--brand-soft); stroke-linecap: round; }

.item__status {
  position: absolute; left: 14px; top: 14px;
  font: 500 var(--t-xs)/1 var(--f-mono);
  padding: 7px 10px;
  border-radius: var(--radius-s);
  background: var(--card);
  border: 1px solid var(--ink);
}
.item__status[hidden] { display: none; }
.item[data-day="booked"] .item__status { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.item[data-day="free"] .item__status { background: var(--brand); color: #fff; border-color: var(--brand); }
.item[data-day="booked"] .item__media > :not(.item__status) { opacity: .35; }

.item__body {
  display: flex; flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}
.item__cat { font-size: var(--t-sm); color: var(--muted); margin-bottom: 4px; }
.item__title { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.035em; }
.item__desc { margin-top: 10px; color: #33312C; font-size: var(--t-sm); line-height: 1.6; max-width: 62ch; }

.specs { margin: 18px 0 0; font-size: var(--t-sm); }
.specs > div {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-size: var(--t-xs); line-height: 1.6; padding-top: 1px; }

.prices {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.specs + .prices { margin-top: 0; }
.prices__cell { display: flex; flex-direction: column; gap: 4px; }
.prices__cell + .prices__cell { padding-left: 16px; border-left: 1px solid var(--rule); }
.prices__label { font-size: var(--t-xs); color: var(--muted); }
.prices__value { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }

.item__cta { margin-top: 20px; width: 100%; }
.item[data-day="booked"] .item__cta { background: transparent; border-color: var(--rule); color: var(--muted); }

.empty { padding: 32px 0; color: var(--muted); }

/* --- Ablauf --------------------------------------------------------- */
.steps { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--rule); }
.steps__list {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
  border-top: 2px solid var(--ink);
}
.steps__list li {
  counter-increment: step;
  padding: 24px 28px 8px 0;
}
.steps__list li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.steps__list li::before {
  content: counter(step);
  display: block;
  font: 800 3.25rem/1 var(--f-display);
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}
.steps__list li:first-child::before { color: var(--signal); }
.steps__list h3 { font-size: var(--t-lg); font-weight: 700; margin-bottom: 8px; }
.steps__list p { font-size: var(--t-sm); color: #33312C; max-width: 32ch; }

@media (max-width: 900px) {
  .steps__list { grid-template-columns: 1fr 1fr; }
  .steps__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps__list li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .steps__list { grid-template-columns: 1fr; }
  .steps__list li, .steps__list li + li { padding: 20px 0 16px; border-left: 0; }
  .steps__list li + li { border-top: 1px solid var(--rule); }
  .steps__list li::before { font-size: 2.5rem; margin-bottom: 10px; }
}

/* --- Über mich ------------------------------------------------------ */
.about { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--rule); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about__portrait { margin: 0; position: sticky; top: 96px; }
.about__photo {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(17,17,17,.05) 14px 15px),
    var(--sunk);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  display: grid; place-items: center;
  color: var(--muted);
  font-size: var(--t-sm);
}
.about__portrait figcaption { margin-top: 12px; font-size: var(--t-sm); color: var(--muted); }

.about__text .section-title { margin-bottom: 28px; }
.about__lede {
  font: 500 var(--t-xl)/1.35 var(--f-display);
  letter-spacing: -0.025em;
  max-width: 30ch;
  margin-bottom: 20px;
}
.about__text > p:not(.about__lede) { max-width: 60ch; color: #33312C; }

.promises { margin: 40px 0 0; border-top: 2px solid var(--ink); }
.promises > div {
  display: grid; grid-template-columns: 140px 1fr; gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.promises dt { font: 700 var(--t-lg)/1.3 var(--f-display); letter-spacing: -0.03em; }
.promises dd { margin: 0; color: #33312C; max-width: 54ch; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 320px; }
}
@media (max-width: 520px) {
  .promises > div { grid-template-columns: 1fr; gap: 4px; }
}

/* --- Fuß ------------------------------------------------------------ */
.site-foot { border-top: 2px solid var(--ink); padding: 40px 0 48px; font-size: var(--t-sm); }
.site-foot__inner {
  display: grid; grid-template-columns: 2fr 1fr auto; gap: 24px 48px;
}
.site-foot__inner p + p { margin-top: 4px; }
.site-foot__brand { font: 800 var(--t-lg)/1.2 var(--f-display); letter-spacing: -0.04em; margin-bottom: 6px; }
.site-foot__legal { display: flex; gap: 20px; align-items: start; }
@media (max-width: 720px) { .site-foot__inner { grid-template-columns: 1fr; } }

/* --- Textseiten (Impressum, Datenschutz) ---------------------------- */
.page { padding: clamp(48px, 8vw, 96px) 0; }
.page .section-title { margin-bottom: 32px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--t-lg); margin: 32px 0 8px; }
.prose p + p { margin-top: 12px; }

/* ==================================================================
   Buchungs-Dialog
   ================================================================== */
.booking {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius-m);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.booking::backdrop { background: rgba(17, 17, 17, .55); }
.booking[open] { display: flex; animation: bk-in .22s ease-out; }
@keyframes bk-in { from { opacity: 0; transform: translateY(12px); } }

.booking__inner { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 34px); }

.booking__head {
  display: flex; align-items: start; justify-content: space-between; gap: 16px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}
.booking__cat { font-size: var(--t-sm); color: var(--muted); }
.booking__title { font-size: var(--t-xl); font-weight: 800; letter-spacing: -0.04em; }
.booking__close {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--radius-s);
  background: transparent; color: var(--ink); cursor: pointer;
}
.booking__close:hover { border-color: var(--ink); }

.booking__form {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.booking__form[hidden] { display: none; }

.bk-step { padding: 24px; }
.bk-step--cal { border-right: 1px solid var(--rule); }
.booking__side { display: flex; flex-direction: column; }
.booking__side .bk-step + .bk-step { border-top: 1px solid var(--rule); }
.bk-step__title {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--t-lg); font-weight: 700;
  margin-bottom: 16px;
}
.bk-step__no {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--ink); border-radius: 50%;
  font-size: var(--t-xs); font-weight: 500;
}

/* --- Kalender ------------------------------------------------------- */
.cal__loading, .cal__error { padding: 48px 0; color: var(--muted); text-align: center; }
.cal__error { color: var(--signal-text); }

.cal__nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cal__month { font: 700 var(--t-lg)/1 var(--f-display); letter-spacing: -0.03em; }
.cal__arrows { display: flex; gap: 6px; }
.cal__arrow {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--radius-s);
  color: var(--ink); cursor: pointer;
}
.cal__arrow:hover:not([disabled]) { border-color: var(--ink); }
.cal__arrow[disabled] { opacity: .35; cursor: default; }

.cal__grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal__dow {
  font-size: var(--t-xs); color: var(--muted);
  text-align: center; padding: 4px 0 6px;
}
.cal__dow--we { color: var(--ink); font-weight: 600; }

.cal__day {
  position: relative;
  aspect-ratio: 1 / 1.08;
  min-height: 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  color: var(--ink);
  font: 600 var(--t-md)/1 var(--f-display);
  cursor: pointer;
  padding: 0;
}
.cal__day .cal__price { font: 400 0.6875rem/1 var(--f-mono); color: var(--muted); letter-spacing: -0.02em; }
.cal__day--we { border-color: #CFCBBF; box-shadow: inset 0 -2px 0 var(--brand); }
.cal__day--we[aria-pressed="true"] { box-shadow: none; }
.cal__day--we .cal__price { color: var(--ink); font-weight: 500; }
.cal__day--holiday::after {
  content: ""; position: absolute; top: 5px; right: 5px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--signal);
}
.cal__day:hover:not([aria-disabled="true"]) { border-color: var(--ink); }

.cal__day--booked {
  background:
    repeating-linear-gradient(135deg, transparent 0 5px, rgba(17,17,17,.09) 5px 6px),
    var(--sunk);
  color: var(--muted);
  cursor: not-allowed;
}
.cal__day--booked .cal__num { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal__day--booked .cal__price { color: var(--muted); font-weight: 400; }

.cal__day--off { background: transparent; border-color: transparent; color: #B5B1A6; cursor: default; }
.cal__day--pad { visibility: hidden; }

.cal__day[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.cal__day[aria-pressed="true"] .cal__price { color: var(--paper); }
.cal__day[aria-pressed="true"]::after { background: var(--paper); }

.cal-legend {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: var(--t-xs); color: var(--muted);
}
.cal-legend li { display: inline-flex; align-items: center; gap: 8px; }
.cal-legend .mono { color: var(--ink); }
.cal-legend__swatch { width: 14px; height: 14px; border-radius: 2px; border: 1px solid var(--rule); background: var(--card); }
.cal-legend__swatch--weekend { border-color: #CFCBBF; box-shadow: inset 0 -2px 0 var(--brand); }
.cal-legend__swatch--booked {
  background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(17,17,17,.18) 3px 4px), var(--sunk);
}

/* --- Optionen ------------------------------------------------------- */
.opt-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt-group + .opt-group { margin-top: 18px; }
.opt-group legend { font-size: var(--t-sm); font-weight: 600; margin-bottom: 8px; padding: 0; }
.opt-list { display: grid; gap: 6px; }
.opt {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  cursor: pointer;
  font-size: var(--t-sm);
}
.opt:hover { border-color: #B9B5AA; }
.opt:has(input:checked) { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); background: var(--brand-tint); }
.opt:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.opt__name { flex: 1; }
.opt__price { font: 400 var(--t-xs)/1 var(--f-mono); color: var(--muted); white-space: nowrap; }
.opt:has(input:checked) .opt__price { color: var(--ink); }

/* --- Formular ------------------------------------------------------- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.field--half { grid-column: span 1; }
.field label { font-size: var(--t-sm); font-weight: 500; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font: 400 var(--t-md)/1.4 var(--f-body);
  color: var(--ink);
  background: var(--card);
  border: 1px solid #CFCBBF;
  border-radius: var(--radius-s);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--signal-text) !important; }
.field ::placeholder { color: #9A968C; }

.field--check { flex-direction: row; flex-wrap: wrap; align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.field--check label { flex: 1; font-weight: 400; font-size: var(--t-sm); color: #33312C; }
.field--check .field-error { flex-basis: 100%; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-error { font-size: var(--t-xs); color: var(--signal-text); font-weight: 500; }
.field-error:empty { display: none; }
.bk-step--cal .field-error { margin-top: 10px; }

@media (max-width: 520px) {
  .field--half { grid-column: 1 / -1; }
}

/* --- Preisübersicht -------------------------------------------------- */
.quote {
  margin-top: auto;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--rule);
}
.quote__empty { color: var(--muted); font-size: var(--t-sm); }
.quote__line {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: var(--t-sm);
  padding: 4px 0;
}
.quote__line + .quote__line { border-top: 1px dashed var(--rule); }
.quote__line .mono { font-size: var(--t-xs); white-space: nowrap; padding-top: 2px; }
.quote__line--base { font-weight: 500; }
.quote__line small { display: block; font-size: var(--t-xs); color: var(--muted); font-weight: 400; }

.booking__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px;
  padding: 14px 24px;
  background: var(--card);
  border-top: 2px solid var(--brand);
}
.booking__foot[hidden] { display: none; }
.booking__sum { flex: 1 1 0; min-width: 0; }
.booking__total {
  display: flex; align-items: baseline; gap: 14px;
  font: 700 var(--t-lg)/1 var(--f-display);
}
.booking__total .mono { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.04em; }
.quote__deposit { margin-top: 10px; font-size: var(--t-xs); color: var(--muted); }
.quote__deposit:empty { display: none; }
.booking__foot .form-error { order: 3; flex-basis: 100%; margin: 0; }
.form-error { font-size: var(--t-sm); color: var(--signal-text); font-weight: 500; }

.booking__done { padding: 48px 32px 40px; max-width: 60ch; overflow: auto; }
.booking__done[hidden] { display: none; }
.booking__done:focus { outline: none; }
.booking__done-title { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.045em; margin-bottom: 16px; }
.booking__done p + p { margin-top: 10px; }
.booking__done .btn { margin-top: 28px; }

@media (max-width: 860px) {
  .booking {
    width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh;
    margin: 0; border: 0; border-radius: 0;
  }
  .booking__inner { max-height: 100dvh; height: 100%; }
  .booking__form { grid-template-columns: 1fr; }
  .bk-step--cal { border-right: 0; border-bottom: 1px solid var(--rule); }
  .booking__head { padding: 14px 16px; }
  .bk-step { padding: 20px 16px; }
  .quote { padding: 16px; }
  .booking__foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .booking__foot .btn { padding: 0 16px; }
  .booking__foot .form-error { order: -1; }
  .booking__total { flex-direction: column; gap: 2px; font-size: var(--t-xs); font-family: var(--f-body); font-weight: 500; color: var(--muted); }
  .booking__total .mono { color: var(--ink); }
  .booking__total .mono { font-size: 1.375rem; }
  .booking__title { font-size: var(--t-lg); }
  .cal__grid { gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html:has(dialog[open]) { overflow: hidden; }

.prose--legal h2 { font-size: var(--t-md); letter-spacing: -0.015em; }
.prose ol, .prose ul { padding-left: 1.3em; margin: 8px 0 0; }
.prose li + li { margin-top: 8px; }
.prose .a-muted { color: var(--muted); font-size: var(--t-sm); margin: -20px 0 24px; }

/* ==================================================================
   Mietvertrag (contract.php)
   ================================================================== */
.page--contract { padding-top: clamp(24px, 4vw, 48px); }
.page--contract .wrap { max-width: 860px; }

.contract-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-bottom: 20px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-m);
  font-size: var(--t-sm);
}
.contract-bar .btn { min-height: 42px; font-size: var(--t-sm); }

.contract {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  padding: clamp(20px, 5vw, 56px);
}
.contract > section + section { margin-top: 32px; }
.contract__head { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 2px solid var(--ink); }
.contract__mark { width: 52px; height: auto; flex: 0 0 auto; }
.contract__title { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.045em; }
.contract__no { color: var(--muted); font-size: var(--t-sm); margin-top: 4px; }
.contract__h { font-size: var(--t-md); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }

.contract__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contract__parties p { font-size: var(--t-sm); line-height: 1.55; }
.contract__contact { margin-top: 6px !important; color: var(--muted); }

.contract__facts { margin: 0 0 16px; font-size: var(--t-sm); }
.contract__facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule); }
.contract__facts dt { color: var(--muted); }
.contract__facts dd { margin: 0; }

.contract__table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.contract__table td, .contract__table th { padding: 7px 0; border-top: 1px dashed var(--rule); text-align: left; font-weight: 400; vertical-align: top; }
.contract__table td.mono { text-align: right; white-space: nowrap; font-size: var(--t-xs); padding-left: 16px; }
.contract__table tfoot th, .contract__table tfoot td { border-top: 1px solid var(--ink); font-weight: 600; }
.contract__table tfoot td.mono { font-size: var(--t-md); font-weight: 500; }
.contract__table .contract__deposit th, .contract__table .contract__deposit td { border-top: 0; font-weight: 400; color: var(--muted); }
.contract__table .contract__deposit td.mono { font-size: var(--t-xs); }
.contract__fine { margin-top: 10px; font-size: var(--t-xs); color: var(--muted); }
.contract__booth { margin-top: 12px; font-size: var(--t-sm); }
.a-break { word-break: break-all; }

.contract__ver { font-weight: 400; color: var(--muted); font-size: var(--t-xs); margin-left: 6px; }
.contract__agb-text {
  max-height: 340px; overflow: auto;
  padding: 4px 18px 16px; border: 1px solid var(--rule); border-radius: var(--radius-s);
  background: var(--paper); font-size: var(--t-xs); line-height: 1.6;
}
.contract__agb-text h3 { font-size: var(--t-sm); margin: 16px 0 4px; letter-spacing: -0.01em; }
.contract__agb-text p + p { margin-top: 6px; }
.contract__agb-text ol { padding-left: 1.3em; margin: 0; }
.contract__agb-text li + li { margin-top: 6px; }

.contract__signed { border-top: 2px solid var(--ink); padding-top: 24px; }
.contract__sig { width: min(100%, 420px); height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
.contract__sigline { border-top: 1px solid var(--ink); max-width: 420px; padding-top: 6px; font-size: var(--t-sm); }
.contract__proof { margin: 20px 0 0; font-size: var(--t-xs); }
.contract__proof > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 5px 0; border-top: 1px solid var(--rule); }
.contract__proof dt { color: var(--muted); }
.contract__proof dd { margin: 0; min-width: 0; }

@media (max-width: 600px) {
  .contract__parties { grid-template-columns: 1fr; }
  .contract__facts > div, .contract__proof > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Unterschrift */
.sign {
  display: grid; gap: 18px;
  margin-top: 24px; padding: clamp(20px, 4vw, 40px);
  background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-m);
}
.sign__title { font-size: var(--t-xl); font-weight: 800; letter-spacing: -0.04em; }
.sign__label { font-size: var(--t-sm); font-weight: 500; margin-bottom: 6px; }
.sign__canvas-wrap { position: relative; }
.sign__canvas {
  display: block; width: 100%; aspect-ratio: 3 / 1; min-height: 150px;
  background: var(--paper); border: 1px solid #CFCBBF; border-radius: var(--radius-s);
  touch-action: none; cursor: crosshair;
}
.sign__baseline { position: absolute; left: 6%; right: 6%; bottom: 24%; border-bottom: 1px solid #B9B5AA; pointer-events: none; }
.sign__hint { position: absolute; left: 6%; bottom: calc(24% + 8px); color: #9A968C; font-size: var(--t-sm); pointer-events: none; }
.sign__hint[hidden] { display: none; }
.sign__tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: var(--t-sm); color: var(--muted); }
.sign__fine { font-size: var(--t-xs); color: var(--muted); }
.sign .btn--text { background: transparent; color: var(--brand); border-color: transparent; text-decoration: underline; min-height: 36px; padding: 0 4px; }

/* Druck: nur das Vertragsdokument */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; font-size: 10.5pt; }
  .site-head, .site-foot, .skip, .contract-bar, .sign { display: none !important; }
  .page--contract { padding: 0; }
  .page--contract .wrap { max-width: none; padding: 0; }
  .contract { border: 0; padding: 0; }
  .contract__agb-text { max-height: none; overflow: visible; border: 0; padding: 0; background: none; }
  .contract__signed { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ==================================================================
   Galerie-Button auf der Karte
   ================================================================== */
.item__gallery {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 12px;
  background: none; border: 0; cursor: zoom-in;
}
.item__gallery-count {
  padding: 6px 9px; border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .92); color: var(--brand);
  font-size: var(--t-xs); border: 1px solid var(--rule);
}
.item__gallery:hover .item__gallery-count { background: var(--brand); color: #fff; border-color: var(--brand); }
.item__gallery:focus-visible { outline-offset: -4px; }
.item__status { z-index: 1; pointer-events: none; }

/* ==================================================================
   Lightbox
   ================================================================== */
.lightbox {
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radius-m);
  background: #0E1525; color: #fff;
}
.lightbox::backdrop { background: rgba(10, 16, 30, .82); }
.lightbox[open] { display: flex; }
.lightbox__inner { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 24px); }
.lightbox__head { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; }
.lightbox__title { flex: 1; font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.03em; }
.lightbox__count { color: var(--brand-soft); font-size: var(--t-sm); }
.lightbox__close {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-s); cursor: pointer;
}
.lightbox__close:hover { border-color: #fff; }
.lightbox__stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 64px; touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 210px); object-fit: contain; border-radius: var(--radius-s); user-select: none; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__thumbs { display: flex; gap: 6px; padding: 12px 20px 16px; overflow-x: auto; }
.lightbox__thumbs[hidden] { display: none; }
.lightbox__thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-s); overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.lightbox__thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .lightbox__inner { max-height: 100dvh; height: 100%; }
  .lightbox__stage { padding: 0 8px; }
  .lightbox__nav { top: auto; bottom: 8px; transform: none; }
}

/* ==================================================================
   Passt dazu (Cross-Selling im Buchungsdialog)
   ================================================================== */
.bk-step__hint { font-size: var(--t-sm); color: var(--muted); margin: -6px 0 12px; }
.bk-step__hint[hidden] { display: none; }
.sugg { display: grid; gap: 6px; }
.sugg__item {
  display: grid; grid-template-columns: auto 52px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 12px 8px 14px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-s);
  cursor: pointer; font-size: var(--t-sm);
}
.sugg__item input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.sugg__item:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.sugg__item:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.sugg__item.is-off { cursor: default; }
.sugg__item.is-busy { opacity: .6; }
.sugg__thumb { width: 52px; height: 40px; border-radius: 2px; overflow: hidden; background: var(--brand-tint); }
.sugg__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sugg__text { display: flex; flex-direction: column; min-width: 0; }
.sugg__name { font-weight: 500; }
.sugg__meta { font-size: var(--t-xs); color: var(--muted); }
.sugg__price { font-size: var(--t-xs); white-space: nowrap; }
.quote__line--extra { color: var(--ink); }
.contract__itemrow td:first-child { font-weight: 500; }
.contract__rate { display: block; font-weight: 400; font-size: var(--t-xs); color: var(--muted); }
.contract__addon { padding-left: 14px !important; }
.contract__table tbody + tbody tr:first-child td { border-top: 1px solid var(--rule); }

/* Hintergründe & Übergabe als Teil der Ausstattung */
[data-bk-suggest-step], [data-bk-delivery] { margin-top: 18px; }
[data-bk-suggest-step][hidden] { display: none; }
[data-bk-suggest-step] .bk-step__hint { margin: 8px 0 0; }
.lightbox__caption { padding: 10px 20px 0; color: #fff; font-size: var(--t-sm); min-height: 1.6em; }

.about__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-m); border: 1px solid var(--rule); background: var(--sunk); }

/* Druckvorlage gestalten (vorlage.php) */
.tpl-widget { margin-top: 32px; min-height: 480px; padding: 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-m); }
.tpl-help { margin-top: 20px; font-size: var(--t-sm); color: var(--muted); max-width: 68ch; }

/* Lieferung mit Kilometerpreis */
.km { margin-top: 12px; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius-s); background: var(--paper); display: grid; grid-template-columns: 9.5em 1fr; gap: 10px 12px; }
.km[hidden] { display: none; }
.km .field { margin: 0; }
.km__plz input { font-family: var(--f-mono); letter-spacing: 0.04em; }
.km__place select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--radius-s); background: var(--card); font: inherit; color: var(--ink); }
.km__place select:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--ink); }
.km__info, .km .field-error { grid-column: 1 / -1; margin: 0; font-size: var(--t-xs); color: var(--muted); }
.km .field-error { color: var(--signal-text); }
.km .field-error:empty { display: none; }
@media (max-width: 420px) { .km { grid-template-columns: 1fr; } }

/* Adressen im Buchungsformular */
.addr { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 10px 12px; }
.addr[hidden] { display: none; }
.addr legend { font-size: var(--t-sm); font-weight: 600; padding: 0; margin-bottom: 8px; }
.addr .field { margin: 0; }
.addr__street, .addr__err, .addr__km { grid-column: 1 / -1; }
.addr__plz input { font-family: var(--f-mono); letter-spacing: 0.04em; }
.addr__err { margin: -4px 0 0; }
.addr__km { margin: 0; font-size: var(--t-xs); color: var(--muted); }
.addr .addr__plz { grid-column: 1; }
.addr .addr__city { grid-column: 2; }

/* Partner aus der Region */
.partners { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--rule); }
.partners__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.partners__intro p { margin-top: 16px; color: #33312C; max-width: 34ch; }
.partners__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.partners__list li { border-bottom: 1px solid var(--rule); }
.partner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px;
  padding: 20px 0; color: inherit; text-decoration: none;
}
.partner__name { font: 700 var(--t-lg)/1.2 var(--f-display); letter-spacing: -0.02em; }
.partner__text { grid-column: 1; font-size: var(--t-sm); color: #33312C; }
.partner__url { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: var(--t-xs); color: var(--muted); }
.partner:hover .partner__name { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.partner:hover .partner__url { color: var(--brand); }
.partner:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
@media (max-width: 760px) {
  .partners__grid { grid-template-columns: 1fr; }
  .partner { grid-template-columns: 1fr; }
  .partner__url { grid-column: 1; grid-row: auto; margin-top: 4px; }
}
