/* ==========================================================================
   Baudorf Immobilien — Design Tokens & Base Styles
   Marke: diskret, ruhig, luxuriös. Gold nur als Akzent. Inter-Typografie.
   ========================================================================== */

:root,
[data-pal="gold"] {
  --gold:    #C4A46B;
  --gold-lt: #D9BF8E;
  --gold-dk: #96773A;
  --black:   #0C0C0C;
  --ink:     #181614;
  --graph:   #232120;
  --stone:   #5C5550;
  --parch:   #F5F2EC;
  --linen:   #EDE8DF;
  --white:   #FDFCFA;

  --bg:      #F5F2EC;
  --surface: #FDFCFA;
  --band:    #ECE6DA;
  --muted:   #5C5550;
  --line:    #EDE8DF;
  --line2:   #DCD5C8;
  --accent:  #C4A46B;
  --accent-dk: #96773A;
  --accent-lt: #D9BF8E;
  --on-accent: #181614;
  --bd-gold: #C4A46B;

  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --maxw: 1560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

.bd-italic-accent { font-style: italic; color: var(--gold-dk); }

/* Overline: kleiner Text, weite Laufweite, mit Goldstrich davor */
.bd-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}
.bd-overline::before {
  display: none;
}

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

/* Buttons */
.bd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.bd-btn--gold { background: var(--gold); color: var(--ink); }
.bd-btn--gold:hover { background: var(--gold-dk); color: var(--white); }
.bd-btn--outline { border-color: currentColor; background: transparent; }
.bd-btn--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Scroll-Reveal (über IntersectionObserver in site.js aktiviert) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

[x-cloak] { display: none !important; }

.bd-btn--sm { padding: 0.6rem 1.1rem; font-size: 0.84rem; }
.bd-btn--ghost { border-color: rgba(253,252,250,0.5); color: var(--white); background: transparent; }
.bd-btn--ghost:hover { background: rgba(253,252,250,0.1); border-color: var(--white); }

.bd-overline--light { color: var(--gold-lt); }
.bd-overline--light::before { background: var(--gold); }

.bd-link-gold { color: var(--gold-dk); font-weight: 500; white-space: nowrap; }
.bd-link-gold:hover { color: var(--gold); }


/* ==========================================================================
   Immobilien — Liste, Filter, Detail
   ========================================================================== */

.bd-objekt__title a { color: inherit; }
.bd-objekt__title a:hover { color: var(--gold-dk); }
.bd-btn--block { width: 100%; justify-content: center; }

/* Page head (dunkler Banner unter Nav) */
.bd-pagehead { background: var(--ink); color: var(--linen); padding: calc(5rem + 60px) 0 3.5rem; }
.bd-pagehead h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0.6rem 0 0.8rem; }
.bd-pagehead p { color: var(--linen); max-width: 560px; margin: 0; }
.bd-section--top { padding-top: 3rem; }

/* Filter */
.bd-filter { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 5px; margin-bottom: 1.5rem; }
.bd-filter__field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1 1 170px; }
.bd-filter__field label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.bd-filter input, .bd-filter select {
  font-family: inherit; font-size: 0.92rem; padding: 0.6rem 0.7rem;
  border: 1px solid var(--line2, #DCD5C8); border-radius: 3px; background: var(--parch); color: var(--ink);
}
.bd-filter input:focus, .bd-filter select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.bd-filter .bd-btn { flex: 0 0 auto; }

.bd-result-meta { color: var(--stone); font-size: 0.9rem; margin-bottom: 1.4rem; }

.bd-empty { text-align: center; padding: 4rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.bd-empty p { color: var(--stone); margin: 0; }

/* Pager */
.bd-pager { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; }
.bd-pager__link { color: var(--gold-dk); font-weight: 500; }
.bd-pager__link:hover { color: var(--gold); }
.bd-pager__info { color: var(--stone); font-size: 0.9rem; }

/* Detail */
.bd-detail { padding: calc(2rem + 80px) 0 5rem; background: var(--parch); }
.bd-back { display: inline-block; color: var(--stone); font-size: 0.9rem; margin-bottom: 1.5rem; }
.bd-back:hover { color: var(--gold-dk); }
.bd-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.bd-detail__head h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0.4rem 0 0; }
.bd-detail__badge { position: static; }

/* Galerie */
.bd-gallery { margin-bottom: 2.5rem; }
.bd-gallery__main { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--linen); }
.bd-gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.bd-gallery.is-locked .bd-gallery__main img { filter: blur(16px); cursor: default; }
.bd-gallery__lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; color: var(--white); background: rgba(12,12,12,0.45); }
.bd-gallery__thumbs { display: flex; gap: 0.7rem; margin-top: 0.7rem; flex-wrap: wrap; }
.bd-gallery__thumb { width: 92px; height: 68px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; padding: 0; cursor: pointer; background: none; }
.bd-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bd-gallery__thumb:hover { border-color: var(--gold); }

.bd-lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(12,12,12,0.92); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.bd-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.bd-lightbox__close { position: absolute; top: 1.4rem; right: 1.8rem; background: none; border: 0; color: var(--white); font-size: 2.4rem; cursor: pointer; line-height: 1; }

.bd-lock-icon { font-size: 1.6rem; }

/* Detail grid */
.bd-detail__grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.bd-detail__main h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.bd-prose { margin-bottom: 2.5rem; }
.bd-prose p { color: var(--stone); }

.bd-gate { background: var(--ink); color: var(--linen); border-radius: 6px; padding: 2.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin-bottom: 2.5rem; }
.bd-gate h2 { color: var(--white); margin: 0; }
.bd-gate p { color: var(--linen); max-width: 460px; }
.bd-gate__cta { display: flex; gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }

.bd-fakten { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 2rem; }
.bd-fakten__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.bd-fakten__list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.bd-fakten__list dt { color: var(--stone); margin: 0; }
.bd-fakten__list dd { margin: 0; font-weight: 500; text-align: right; }

/* Sidebar card */
.bd-detail__aside { position: sticky; top: 90px; }
.bd-aside-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; }
.bd-aside-card__label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.bd-aside-card__price { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; }
.bd-aside-card__kpi { list-style: none; padding: 0; margin: 0 0 0.6rem; display: flex; gap: 1.5rem; }
.bd-aside-card__kpi li { display: flex; flex-direction: column; }
.bd-aside-card__kpi span { font-size: 0.78rem; color: var(--stone); }
.bd-aside-card__kpi strong { font-size: 1.1rem; }
.bd-aside-card__note { font-size: 0.8rem; color: var(--stone); margin: 0.4rem 0 0; }

.bd-similar { margin-top: 4rem; }

@media (max-width: 900px) {
  .bd-detail__grid { grid-template-columns: 1fr; }
  .bd-detail__aside { position: static; }
}
@media (max-width: 520px) {
  .bd-fakten__list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Kontaktformular
   ========================================================================== */

.bd-kontakt-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 3rem; align-items: start; }

.bd-kontakt-objekt { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 4px; padding: 1rem 1.2rem; margin-bottom: 1.6rem; }
.bd-kontakt-objekt strong { display: block; margin-top: 0.3rem; }

.bd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.bd-form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.bd-form-field label { font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.bd-form-field input,
.bd-form-field select,
.bd-form-field textarea {
  font-family: inherit; font-size: 0.95rem; padding: 0.75rem 0.85rem;
  border: 1px solid var(--line2, #DCD5C8); border-radius: 8px; background: var(--white); color: var(--ink);
  width: 100%; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.bd-form-field textarea { resize: vertical; min-height: 120px; }
.bd-form-field input:focus,
.bd-form-field select:focus,
.bd-form-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,164,107,0.18); }
.bd-form-field .field-validation-error { color: #9b2c2c; font-size: 0.82rem; }
.bd-form-field input.input-validation-error,
.bd-form-field textarea.input-validation-error,
.bd-form-field select.input-validation-error { border-color: #c0564a; }

.bd-validation-summary:not(:empty) { background: #fbeceb; border: 1px solid #e3b9b4; border-radius: 4px; padding: 0.8rem 1rem; margin-bottom: 1.2rem; color: #9b2c2c; font-size: 0.9rem; }
.bd-validation-summary ul { margin: 0; padding-left: 1.1rem; }

.bd-form-check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.4rem 0 0.4rem; }
.bd-form-check input { margin-top: 0.25rem; width: 16px; height: 16px; accent-color: var(--gold-dk); flex: 0 0 auto; }
.bd-form-check label { font-size: 0.88rem; color: var(--stone); line-height: 1.5; }
.bd-form-check a { color: var(--gold-dk); text-decoration: underline; }
.bd-check-error { display: block; color: #9b2c2c; font-size: 0.82rem; margin-bottom: 1rem; }
.bd-kontakt-form button[type="submit"] { margin-top: 1.4rem; }

/* Honeypot — visuell entfernt, aber für Bots im DOM */
.bd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Danke-Screen */
.bd-thanks { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 3rem 2.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.bd-thanks__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.bd-thanks h2 { margin: 0; }
.bd-thanks p { color: var(--stone); max-width: 420px; margin: 0; }

.bd-kontakt-actions { display: flex; gap: 0.7rem; margin-top: 0.4rem; }

@media (max-width: 900px) {
  .bd-kontakt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .bd-form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Admin
   ========================================================================== */

.bd-admin { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; margin: 0; }

/* Sidebar */
.bd-admin__nav { background: var(--ink); color: var(--linen); display: flex; flex-direction: column; padding: 1.4rem 0.9rem 1.4rem; gap: 0.35rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.bd-admin__nav::-webkit-scrollbar { width: 7px; }
.bd-admin__nav::-webkit-scrollbar-thumb { background: rgba(245,242,236,0.12); border-radius: 999px; }
.bd-admin__brand { display: flex; align-items: center; padding: 0.2rem 0.7rem 0.5rem; }
.bd-admin__brand img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.bd-admin__back { display: inline-flex; align-items: center; gap: 8px; margin: 0.1rem 0.3rem 0.5rem; padding: 0.62rem 0.9rem; border-radius: 9px; background: rgba(245,242,236,0.06); border: 1px solid rgba(245,242,236,0.12); color: var(--linen); font: 600 12px/1 var(--font); letter-spacing: 0.03em; transition: 0.25s var(--ease); }
.bd-admin__back svg { width: 15px; height: 15px; flex: 0 0 auto; }
.bd-admin__back:hover { background: rgba(196,164,107,0.16); border-color: rgba(196,164,107,0.42); color: var(--gold-lt); }

.bd-admin__nav nav { display: flex; flex-direction: column; gap: 0.1rem; }
.bd-admin__group { font: 600 10px/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,242,236,0.32); padding: 0.95rem 0.85rem 0.45rem; }
.bd-admin__nav nav a { display: flex; align-items: center; padding: 0.58rem 0.85rem; border-radius: 8px; color: rgba(245,242,236,0.8); font: 500 13.5px/1.15 var(--font); transition: background 0.2s var(--ease), color 0.2s var(--ease); position: relative; }
.bd-admin__nav nav a:hover { background: rgba(245,242,236,0.07); color: #fff; }
.bd-admin__nav nav a.is-active { background: rgba(196,164,107,0.15); color: var(--gold-lt); font-weight: 600; }
.bd-admin__nav nav a.is-active::before { content: ""; position: absolute; left: -0.9rem; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }

/* Main */
.bd-admin__main { background: var(--bg); min-width: 0; display: flex; flex-direction: column; }
.bd-admin__head { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.15rem 2.2rem; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.bd-admin__crumb { display: block; font: 600 10px/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: 7px; }
.bd-admin__head h1 { font: 500 1.5rem/1 var(--font); margin: 0; letter-spacing: -0.01em; color: var(--ink); }
.bd-admin__user { display: flex; align-items: center; gap: 0.9rem; flex: 0 0 auto; }
.bd-admin__user-name { font: 500 13px/1 var(--font); color: var(--stone); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.bd-admin__konto { font: 600 11px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dk); white-space: nowrap; transition: 0.25s var(--ease); }
.bd-admin__konto:hover { color: var(--gold); }
.bd-admin__logout { font: 600 11px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--line2, #DCD5C8); padding: 0.6rem 1rem; border-radius: 8px; cursor: pointer; transition: 0.25s var(--ease); }
.bd-admin__logout:hover { border-color: var(--gold); color: var(--gold-dk); background: rgba(196,164,107,0.06); }

.bd-admin__content { padding: 2rem 2.4rem 3rem; width: 100%; }

/* Stats */
.bd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.bd-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.35rem; box-shadow: 0 14px 34px -30px rgba(24,22,20,0.5); }
.bd-stat__num { font: 600 2.4rem/1 var(--font); letter-spacing: -0.03em; color: var(--ink); }
.bd-stat__label { font-weight: 500; color: var(--ink); }
.bd-stat__sub { font-size: 0.82rem; color: var(--stone); }
.bd-muted { color: var(--stone); }

@media (max-width: 860px) {
  .bd-admin { grid-template-columns: 1fr; min-height: 0; }
  .bd-admin__nav { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bd-admin__brand { padding: 0; flex: 0 0 auto; }
  .bd-admin__brand img { height: 32px; }
  .bd-admin__back { margin: 0; white-space: nowrap; flex: 0 0 auto; }
  .bd-admin__group { display: none; }
  .bd-admin__nav nav { flex-direction: row; flex-wrap: nowrap; gap: 0.25rem; }
  .bd-admin__nav nav a { white-space: nowrap; padding: 0.5rem 0.7rem; font-size: 0.86rem; }
  .bd-admin__nav nav a.is-active::before { display: none; }
  .bd-admin__head { padding: 1rem 1.1rem; }
  .bd-admin__content { padding: 1.2rem 1.1rem 2rem; }
  .bd-item-row { grid-template-columns: 1fr; }
  .bd-item-row__btns { justify-content: flex-start; }
  .bd-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---- Admin: Flash, Tabellen, Formulare, Buttons ---- */
.bd-flash { padding: 0.9rem 1.2rem; border-radius: 4px; margin-bottom: 1.5rem; font-size: 0.92rem; }
.bd-flash--ok { background: #e7f3ec; border: 1px solid #bcdcc6; color: #225c39; }
.bd-flash--err { background: #fbeceb; border: 1px solid #e3b9b4; color: #9b2c2c; }

.bd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.bd-toolbar h2 { margin: 0; font-size: 1.3rem; }

.bd-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.bd-table th, .bd-table td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; vertical-align: middle; }
.bd-table th { background: var(--linen); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone); }
.bd-table tr:last-child td { border-bottom: none; }
.bd-table tr:hover td { background: var(--parch); }
/* Actions bleiben eine echte Tabellenzelle (kein display:flex am <td>),
   damit die Zeilen-Unterlinie exakt mit den übrigen Spalten fluchtet. */
.bd-table__actions { text-align: right; white-space: nowrap; }
.bd-table__actions a, .bd-table__actions form { display: inline-flex; vertical-align: middle; }
.bd-table__actions > * + * { margin-left: 0.4rem; }
.bd-table .bd-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.bd-table--compact td, .bd-table--compact th { padding: 0.55rem 0.8rem; }

.bd-pill { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 500; }
.bd-pill--ok { background: #e7f3ec; color: #225c39; }
.bd-pill--warn { background: #fcf2e2; color: #8a5a16; }
.bd-pill--muted { background: var(--linen); color: var(--stone); }
.bd-pill--gold { background: var(--gold-lt); color: var(--ink); }
.bd-pill--dark { background: var(--ink); color: var(--linen); }

.bd-btn--xs { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.bd-btn--ink { background: var(--ink); color: var(--white); }
.bd-btn--ink:hover { background: var(--graph); }
.bd-btn--danger { background: #fff; border-color: #c0564a; color: #9b2c2c; }
.bd-btn--danger:hover { background: #9b2c2c; color: #fff; border-color: #9b2c2c; }
.bd-btn--plain { border-color: var(--line2, #DCD5C8); color: var(--ink); background: var(--surface); }
.bd-btn--plain:hover { border-color: var(--gold); color: var(--gold-dk); }

/* Admin form */
.bd-aform { max-width: none; }
.bd-aform .bd-form-field label { color: var(--ink); }
.bd-aform fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem 1.6rem 0.4rem; margin: 0 0 1.6rem; background: var(--surface); }
.bd-aform legend { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dk); padding: 0 0.5rem; font-weight: 600; }
.bd-aform .bd-form-field input,
.bd-aform .bd-form-field select,
.bd-aform .bd-form-field textarea { background: var(--white); }
.bd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.bd-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.2rem; }
.bd-form-actions { display: flex; gap: 0.8rem; align-items: center; margin-top: 0.5rem; }
.bd-checkline { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.2rem; }
.bd-checkline input { width: 17px; height: 17px; accent-color: var(--gold-dk); }
.bd-checkline label { font-size: 0.9rem; }

/* Media manager */
.bd-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1rem; }
.bd-media-tile { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--surface); position: relative; }
.bd-media-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.bd-media-tile.is-cover { outline: 2px solid var(--gold); }
.bd-media-tile__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.3rem; padding: 0.4rem 0.5rem; }
.bd-media-tile__cover { font-size: 0.72rem; color: var(--gold-dk); }
.bd-media-empty { color: var(--stone); font-size: 0.9rem; padding: 1rem 0; }

.bd-dz { border: 2px dashed var(--line2, #DCD5C8); border-radius: 6px; padding: 1.6rem; text-align: center; color: var(--stone); background: var(--surface); }
.bd-dz input { display: block; margin: 0.6rem auto 0; }

/* Dashboard recent lists */
.bd-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 0.5rem; }
.bd-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem 1.6rem; }
.bd-panel h3 { margin: 0 0 1rem; font-size: 1rem; }
.bd-panel__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.bd-panel__row:last-child { border-bottom: none; }
.bd-panel__row .bd-muted { font-size: 0.8rem; }
.bd-empty-row { color: var(--stone); font-size: 0.88rem; padding: 0.5rem 0; }

@media (max-width: 760px) {
  .bd-grid-2, .bd-grid-3, .bd-dash-grid { grid-template-columns: 1fr; }
}

/* Admin: inline search, item rows */
.bd-inline-search { display: flex; gap: 0.5rem; }
.bd-inline-search input { font-family: inherit; font-size: 0.9rem; padding: 0.5rem 0.7rem; border: 1px solid var(--line2, #DCD5C8); border-radius: 8px; background: var(--surface); }
.bd-filter-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.bd-item-row { display: grid; grid-template-columns: 1fr 1.6fr auto auto; gap: 0.6rem; align-items: center; margin-bottom: 0.6rem; }
.bd-item-row input { font-family: inherit; font-size: 0.88rem; padding: 0.5rem 0.6rem; border: 1px solid var(--line2, #DCD5C8); border-radius: 8px; background: var(--white); }
.bd-item-row__btns { display: flex; gap: 0.3rem; }
.bd-item-row--add { border-top: 1px dashed var(--line2, #DCD5C8); padding-top: 0.8rem; margin-top: 0.4rem; }
@media (max-width: 760px) { .bd-item-row { grid-template-columns: 1fr; } }

/* WhatsApp floating button */
.bd-wa { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 52px; height: 52px; border-radius: 50%; background: rgba(37,178,94,0.92); color: #fff; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 6px 22px -6px rgba(37,178,94,0.5), 0 2px 10px rgba(0,0,0,0.14); backdrop-filter: saturate(120%); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.bd-wa svg { width: 25px; height: 25px; opacity: 0.95; }
.bd-wa:hover { transform: scale(1.06); color: #fff; box-shadow: 0 10px 30px -6px rgba(37,178,94,0.6), 0 3px 12px rgba(0,0,0,0.18); }
@media (max-width: 560px) { .bd-wa { right: 16px; bottom: 16px; width: 48px; height: 48px; } }

/* ==========================================================================
   Nav + Footer (originalgetreu, ueberschreibt fruehere Regeln)
   ========================================================================== */
.bd-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; background: rgba(13,12,11,.72); backdrop-filter: blur(22px) saturate(135%); -webkit-backdrop-filter: blur(22px) saturate(135%); border-bottom: 1px solid rgba(255,255,255,.09); box-shadow: 0 1px 30px -14px rgba(0,0,0,.6); padding: 20px 0; transition: padding .45s var(--ease), background .45s var(--ease); }
.bd-nav.is-scrolled { padding: 11px 0; background: rgba(10,10,10,.8); }
/* Dreispaltiges Layout: Links (Menü) — Mitte (Logo) — Rechts (Telefon/Login/Registrieren). */
.bd-nav__inner { position: relative; margin: 0 auto; padding: 0 clamp(20px,4vw,56px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; max-width: none; }
.bd-nav__left { justify-self: start; display: flex; align-items: center; gap: 26px; }
.bd-nav__left > a { font: 700 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: rgba(245,242,236,.86); padding: 8px 0; transition: color .3s; white-space: nowrap; }
.bd-nav__left > a:hover { color: var(--accent-lt); }
.bd-nav__brand { justify-self: center; display: flex; align-items: center; }
.bd-nav__brand img { height: 66px; width: auto; display: block; transition: height .45s var(--ease); filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.bd-nav.is-scrolled .bd-nav__brand img { height: 52px; }
.bd-nav__right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.bd-nav__phone { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--font); letter-spacing: .04em; color: var(--accent-lt); white-space: nowrap; transition: .3s; }
.bd-nav__phone:hover { color: #fff; }
.bd-nav__login { display: inline-flex !important; align-items: center; gap: 7px; font: 700 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: rgba(245,242,236,.86); white-space: nowrap; transition: .3s; }
.bd-nav__login:hover { color: var(--accent-lt); }
.bd-nav__register { font: 700 11px/1 var(--font) !important; letter-spacing: .14em !important; text-transform: uppercase; color: var(--on-accent) !important; background: var(--bd-gold); padding: 13px 24px !important; border: 0 !important; border-radius: 7px; box-shadow: 0 8px 22px -12px rgba(150,119,58,.6); transition: .35s; white-space: nowrap; }
.bd-nav__register:hover { background: var(--accent-dk); color: #fff !important; }
.bd-nav__user { display: inline-flex !important; align-items: center; gap: 7px; font: 700 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: rgba(245,242,236,.9); white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.bd-nav__logout { display: inline-flex; margin: 0; }
.bd-nav__logout button { border: 0; cursor: pointer; }
.bd-nav__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: 0; position: absolute; left: clamp(18px,4vw,40px); top: 50%; transform: translateY(-50%); }
.bd-nav__burger span { width: 26px; height: 1.5px; background: var(--parch); display: block; }
.bd-nav__burger span:last-child { width: 18px; background: var(--accent); }
.bd-mobile { position: fixed; inset: 0; z-index: 95; background: var(--bg); display: none; flex-direction: column; padding: 30px clamp(22px,6vw,48px); }
.bd-mobile.is-open { display: flex; }
.bd-mobile__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 60px; }
.bd-mobile__close { font: 300 34px/1 var(--font); color: var(--ink); cursor: pointer; background: none; border: 0; }
.bd-mobile__links { display: flex; flex-direction: column; gap: 6px; }
.bd-mobile__links a { font: 400 38px/1 var(--font); color: var(--ink); padding: 10px 0; border-bottom: 1px solid rgba(24,22,20,.12); }
.bd-mobile__actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.bd-mobile__login { font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line2); padding: 16px 28px; }
.bd-mobile__register { font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--on-accent); background: var(--bd-gold); padding: 16px 30px; }
@media (max-width: 1200px) { .bd-nav__left, .bd-nav__right { display: none; } .bd-nav__burger { display: flex; } }
.bd-mobile__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; font: 700 18px/1 var(--font); letter-spacing: .02em; color: var(--accent-dk); }
.bd-footer { background: var(--band); padding: clamp(60px,8vw,90px) 0 40px; border-top: 1px solid var(--line2); }
.bd-footer__grid { max-width: 1560px; margin: 0 auto; padding: 0 clamp(22px,5vw,48px) 54px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px 30px; border-bottom: 1px solid rgba(24,22,20,.1); }
.bd-footer__brand img { height: 40px; margin-bottom: 24px; }
.bd-footer__brand p { margin: 0; max-width: 280px; font: 300 14px/1.7 var(--font); color: rgba(24,22,20,.6); }
.bd-footer__slogan { margin: 24px 0 0 !important; font: italic 20px/1.4 var(--font) !important; color: var(--bd-gold) !important; }
.bd-footer__col { display: flex; flex-direction: column; gap: 13px; }
.bd-footer__head { font: 600 11px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dk); margin-bottom: 9px; }
.bd-footer__col a, .bd-footer__col span { font: 300 14px/1.6 var(--font); color: rgba(24,22,20,.7); transition: .3s; }
.bd-footer__col a:hover { color: var(--accent); }
.bd-footer__muted { color: rgba(24,22,20,.5) !important; }
.bd-footer__legal { max-width: 1560px; margin: 0 auto; padding: 26px clamp(22px,5vw,48px) 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.bd-footer__legal > span { font: 300 12px/1.5 var(--font); color: rgba(24,22,20,.4); }
.bd-footer__legal nav { display: flex; gap: 26px; }
.bd-footer__legal nav a { font: 300 12px/1 var(--font); color: rgba(24,22,20,.5); transition: .3s; }
.bd-footer__legal nav a:hover { color: var(--accent); }
@media (max-width: 900px) { .bd-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bd-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Admin — Mediathek, Medien-Picker, WYSIWYG (Quill)
   ========================================================================== */
.bd-media-drop { display: block; border: 2px dashed var(--line2); border-radius: 8px; padding: 28px; text-align: center; cursor: pointer; color: var(--stone); transition: .25s; }
.bd-media-drop:hover { border-color: var(--gold); color: var(--ink); background: var(--linen); }
.bd-media-drop input[type=file] { display: none; }
.bd-media-drop small { display: block; margin-top: 4px; font-size: .8rem; color: var(--stone); }

.bd-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 1.5rem; }
.bd-media-card { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.bd-media-card__thumb { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--linen); }
.bd-media-card figcaption { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.bd-media-card__url { font-size: 11px; padding: 5px 7px; border: 1px solid var(--line2); border-radius: 4px; background: var(--parch); color: var(--stone); width: 100%; cursor: pointer; }
.bd-media-card__alt { display: flex; gap: 5px; }
.bd-media-card__alt input { flex: 1; font-size: 12px; padding: 5px 7px; border: 1px solid var(--line2); border-radius: 4px; }

/* Video-Thumbnails (Mediathek + Picker) */
.bd-media-card__thumb--video { position: relative; }
.bd-media-card__thumb--video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-media-card__play, .bd-mp__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; text-shadow: 0 2px 10px rgba(0,0,0,.55); pointer-events: none; }
.bd-mp__item--video { position: relative; overflow: hidden; }
.bd-mp__item--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Hero-Slide-Editor */
.bd-slide-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 14px; background: var(--surface); }
.bd-slide-card__grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.bd-slide-card__fields .bd-form-field { margin-bottom: 0.9rem; }
.bd-slide-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 680px) { .bd-slide-card__grid { grid-template-columns: 1fr; } }

/* Picker-Modal */
.bd-mp { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.bd-mp[hidden] { display: none; }
.bd-mp__backdrop { position: absolute; inset: 0; background: rgba(12,12,12,.55); backdrop-filter: blur(2px); }
.bd-mp__dialog { position: relative; width: min(820px, 92vw); max-height: 86vh; display: flex; flex-direction: column; background: var(--white); border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(12,12,12,.5); overflow: hidden; }
.bd-mp__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.bd-mp__x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--stone); }
.bd-mp__tabs { display: flex; gap: 4px; padding: 10px 20px 0; border-bottom: 1px solid var(--line); }
.bd-mp__tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: 600 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--stone); cursor: pointer; }
.bd-mp__tab.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.bd-mp__body { padding: 18px 20px; overflow-y: auto; }
.bd-mp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.bd-mp__item { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background-size: cover; background-position: center; cursor: pointer; transition: .2s; }
.bd-mp__item:hover { outline: 2px solid var(--gold); outline-offset: 1px; }
.bd-mp__status { margin-top: 12px; font-size: 13px; color: var(--stone); }
.bd-mp__loading { padding: 30px; text-align: center; }

/* Quill */
.bd-rte { background: var(--white); }
.bd-rte .ql-editor { min-height: 220px; font-family: var(--font); font-size: 15px; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: var(--line2); }

/* ==========================================================================
   Cookie-Consent
   ========================================================================== */
.bd-cc { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(10,10,10,.55); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); animation: bdCcFade .35s ease; }
.bd-cc[hidden] { display: none; }
@keyframes bdCcFade { from { opacity: 0; } to { opacity: 1; } }
.bd-cc__card { width: min(560px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); padding: 34px 34px 28px; animation: bdCcRise .4s var(--ease); }
@keyframes bdCcRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bd-cc__title { margin: 0 0 10px; font: 600 18px/1.3 var(--font); color: var(--ink); }
.bd-cc__text { margin: 0 0 18px; font: 300 14px/1.6 var(--font); color: var(--stone); }
.bd-cc__prefs { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; padding: 16px; background: var(--parch); border-radius: 8px; }
.bd-cc__prefs[hidden] { display: none; }
.bd-cc__pref { display: flex; gap: 10px; font: 300 13px/1.5 var(--font); color: var(--stone); cursor: pointer; }
.bd-cc__pref input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--gold-dk); flex: 0 0 auto; }
.bd-cc__pref strong { color: var(--ink); font-weight: 600; }
.bd-cc__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bd-cc__btn { font: 600 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; padding: 12px 18px; border-radius: 4px; cursor: pointer; border: 1px solid var(--line2); background: transparent; color: var(--ink); transition: .25s; }
.bd-cc__btn--ghost:hover { border-color: var(--accent); color: var(--accent-dk); }
.bd-cc__btn--gold { background: var(--bd-gold); color: var(--on-accent); border-color: var(--bd-gold); }
.bd-cc__btn--gold:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }
.bd-cc__link { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--stone); border-bottom: 1px solid var(--line2); }
.bd-cc__link:hover { color: var(--accent-dk); }
@media (max-width: 520px) { .bd-cc { padding: 14px; } .bd-cc__card { padding: 26px 22px 22px; } }
