/* Globaler Smooth-Scroll, damit Browser-native Anchor-Navigation
   (z. B. /dashboard#kalender aus der Notification-Bell) sanft scrollt. */
html { scroll-behavior: smooth; }

/* Anchor-Ziele: 16px Atemraum über dem Element beim Anchor-Sprung. */
#kalender { scroll-margin-top: 16px; }

:root{
  /* === Layout === */
  --layout-max: 1440px;
  --layout-px: 32px;

  /* === Cream Theme (Claude-inspired Green) ===
     Diese Namen werden in vielen Templates direkt referenziert
     (--bg0, --card, --accent, --shadow, --radius). Werte werden
     hier auf die neue Palette umgestellt, Namen bleiben. */
  --bg0:var(--cream);            /* Page background */
  --bg1:var(--cream);

  --card:#FFFFFF;                /* Cards white */
  --card2:#FFFFFF;

  --border:#efece2;              /* Lines, dividers, borders */

  --text:var(--ink);             /* Dark text */
  --muted:var(--ink-mute);       /* Muted text */

  --accent:var(--g-700);         /* Primary Brand Green */
  --accent2:var(--g-800);        /* Darker Green (hover) */
  --accentHover:var(--g-800);

  --surface:var(--paper);
  --line:var(--sand);

  --shadow: 0 6px 24px rgba(17,36,26,.08);
  --radius:14px;
}

*{box-sizing:border-box}
html{background:var(--cream)}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--cream);
}

/* Headings global — System-Stack bleibt, aber bold + engeres Tracking. */
h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--g-900);
}
h1 { letter-spacing: -0.035em; }

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

/* === Globaler Eingabe-Cursor & Caret ============================
   Windows 11 (und einige OS-Themes) rendern den I-Beam-Cursor weiß,
   wodurch er auf hellen Input-Hintergründen praktisch unsichtbar
   wird. Wir liefern einen eigenen, dunkel-mit-weißer-Outline I-Beam
   als SVG-Data-URI, damit er auf JEDEM Hintergrund lesbar ist.
   `text` bleibt als Fallback, falls Custom-Cursors blockiert sind.
   `caret-color` stellt sicher, dass der blinkende Eingabe-Caret
   ebenfalls dunkel und sichtbar ist. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="reset"]):not([type="button"]),
textarea,
select {
  caret-color: #1a3a2a;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input:not([type]),
textarea {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'><g fill='none' stroke-linecap='round'><path d='M6 3h8M6 21h8M10 3v18' stroke='white' stroke-width='3.5'/><path d='M6 3h8M6 21h8M10 3v18' stroke='%231a3a2a' stroke-width='1.5'/></g></svg>") 10 12, text;
}


.bb-page-wrapper{min-height: calc(100vh - 120px); padding: 28px 16px 60px;}
.container{max-width:var(--layout-max);margin:0 auto;padding:0 var(--layout-px)}
.page{padding:26px 0 60px}

.bg{position:fixed;inset:0;pointer-events:none;z-index:-1}
.bg-glow{
  position:absolute; width:520px; height:520px; left:-120px; top:-120px;
  background: radial-gradient(circle, rgba(46,229,157,.20), transparent 60%);
  filter: blur(2px);
}
.bg-glow.two{
  left:auto; right:-180px; top:-160px;
  width:620px; height:620px;
  background: radial-gradient(circle, rgba(58,160,255,.18), transparent 60%);
}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:30;
  background: rgba(250,249,245,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sand);
  color: var(--ink);
  /* Force eigener Compositor-Layer — sonst flackert/wackelt die sticky
     Topbar auf Mobile beim Scrollen sub-pixel-weise, weil backdrop-filter
     jeden Scroll-Frame neu blurrt. translateZ(0) lagert das Element auf
     die GPU aus und hält die Position pixel-stabil. */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.topbar-row{
  height:64px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  max-width:100%;
  padding:0 clamp(20px, 3vw, 48px);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color: var(--g-900);
  transition: opacity .15s ease;
}
.brand:hover{ opacity: .85; }
/* Grüner Gradient-Tile als „Schimmer" für das Logo — gleicher Look wie
   im Style-Guide-Mockup. Der eigentliche PNG-Logo sitzt darin und wirkt
   wie ein App-Icon. */
.brand-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-gradient);
  box-shadow:
    inset 0 0 0 1px rgba(15,31,24,.18),
    var(--shadow-brand);
  flex-shrink: 0;
}
.brand-logo{
  height: 28px;
  width: 28px;
  display: block;
  object-fit: contain;
  border-radius: 0;
  /* PNG-Logo ist dunkelgrün auf transparent → auf dem Gradient kaum sichtbar.
     Mit einem leichten White-Filter wird es heller und sitzt sauber im Tile. */
  filter: brightness(0) invert(1);
  opacity: .95;
}
.brand-name{
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 20px;
  color: var(--g-900);
}

.nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:flex-end}

/* Nav-Text-Link: schlicht, kein Pill — wie im Mockup */
.nav-link{
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
  padding: 6px 2px;
}
.nav-link:hover{ color: var(--g-800); }
.nav-link.is-active{ color: var(--g-900); font-weight: 600; }

/* Primary-CTA in der Topbar — kleine Variante des Brand-Buttons */
.nav-cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow:
    inset 0 0 0 1px rgba(15,31,24,.18),
    var(--shadow-brand);
  text-decoration: none;
  transition: background .3s ease, box-shadow .3s ease, transform .15s ease;
}
.nav-cta:hover{
  background: var(--brand-gradient-hover);
  box-shadow:
    inset 0 0 0 1px rgba(15,31,24,.22),
    var(--shadow-brand-hover);
  transform: translateY(-1px);
  color: #ffffff;
}

/* nav-pill: Legacy-Klasse für eingeloggte Bereiche. Cream-Style. */
.nav-pill{
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--sand);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.nav-pill:hover{
  background: var(--g-50);
  border-color: var(--g-300);
  color: var(--g-900);
}
.nav-pill-strong{
  background: var(--brand-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}
.nav-chip{
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--sand);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
}
.nav-sep{width:1px;height:26px;background:rgba(255,255,255,.10);margin:0 4px}

/* Common */
.muted{color:var(--muted)}
.hr{height:1px;background:rgba(255,255,255,.10);margin:14px 0}
h1{font-size:40px;line-height:1.12;margin:10px 0 10px}
h2{font-size:26px;margin:0 0 10px}
p{margin:8px 0}
.lead{font-size:16px;color:rgba(255,255,255,.78)}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

/* Layout */
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns: 1.1fr .9fr}
.grid-3{grid-template-columns: repeat(3, 1fr)}
@media (max-width: 980px){
  h1{font-size:32px}
  .grid-2,.grid-3{grid-template-columns: 1fr}
  .nav{justify-content:flex-start}
}

/* Cards */
.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card-soft{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
}
.card-title{font-weight:800;font-size:16px}
.card-actions{display:flex;gap:10px;flex-wrap:wrap}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;
  padding:10px 14px;border-radius:12px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.92);
  cursor:pointer;
  transition: transform .06s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.10)}
.btn-primary{
  background: rgba(46,229,157,.14);
  border-color: rgba(46,229,157,.35);
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
  margin-top: 6px;
}
@media (max-width: 980px){
  .hero{grid-template-columns:1fr}
}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}
@media (max-width: 560px){
  .stats{grid-template-columns:1fr}
}
.stat{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px;
}
.stat-top{font-weight:900;font-size:18px}

.steps{margin:12px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.steps li{display:flex;gap:12px;align-items:flex-start}
.step-nr{
  width:28px;height:28px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(46,229,157,.12);
  border:1px solid rgba(46,229,157,.25);
  font-weight:900;
}
.step-title{font-weight:800}

/* Sections */
.section{margin-top:18px}
.section-head{margin-bottom:12px}
.icon{font-size:22px;margin-bottom:8px}

/* Lists */
.list{margin:10px 0 0;padding-left:18px;color:rgba(255,255,255,.80)}
.list li{margin:6px 0}

/* CTA */
.cta{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
  align-items:stretch;
}
@media (max-width: 980px){
  .cta{grid-template-columns:1fr}
}
.cta-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.cta-box{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.demo{margin-top:10px;display:grid;gap:10px}
.demo-row{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}
.demo-label{font-weight:800}
.demo-value{color:rgba(255,255,255,.75)}

/* Page head */
.page-head{margin-top:8px;margin-bottom:14px}

/* Quick links */
.quick{display:grid;gap:10px;margin-top:10px}
.quick-item{
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:12px;border-radius:14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.quick-title{font-weight:900}

/* Footer */
.footer{
  border-top:1px solid rgba(255,255,255,.08);
  padding:18px 0 24px;
  background: rgba(8,11,20,.35);
}
.footer-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

.hero-small {
  margin-bottom: 24px;
}

.service-card h3,
.service-admin h3 {
  margin-bottom: 6px;
}

.service-card .btn {
  margin-top: 12px;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.badge.green {
  background: rgba(0,255,150,.15);
  color: #4ade80;
}

.badge.gray {
  background: rgba(255,255,255,.08);
  color: #aaa;
}

.row.between {
  display: flex;
  justify-content: space-between;
}

.row.center {
  align-items: center;
}

.full {
  width: 100%;
}
/* ===== Step F: Customer dashboard cards ===== */

.page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.page-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.booking-card{
  position:relative;
  overflow:hidden;
}
.booking-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.booking-date{
  font-size:18px;
  font-weight:800;
  letter-spacing:-0.2px;
}
.booking-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.booking-body{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.booking-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.booking-k{
  color:rgba(255,255,255,0.7);
}
.booking-v{
  text-align:right;
}

.booking-metrics{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:4px;
}
.metric{
  padding:10px 12px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:14px;
  background:rgba(255,255,255,0.06);
}
.metric-k{
  font-size:12px;
  color:rgba(255,255,255,0.7);
}
.metric-v{
  font-weight:800;
  margin-top:2px;
}

.booking-note{
  margin-top:2px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:14px;
  background:rgba(255,255,255,0.04);
}

.booking-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* Visual state accents */
.booking-upcoming::before,
.booking-past::before,
.booking-canceled::before{
  content:"";
  position:absolute;
  left:-40px;
  top:-40px;
  width:120px;
  height:120px;
  border-radius:999px;
  filter:blur(0px);
  opacity:0.35;
}
.booking-upcoming::before{ background:rgba(34,197,94,0.55); }   /* green */
.booking-past::before{ background:rgba(148,163,184,0.55); }     /* gray */
.booking-canceled::before{ background:rgba(239,68,68,0.55); }   /* red */

@media (max-width: 780px){
  .grid.grid-2{ grid-template-columns: 1fr !important; }
  .booking-v{ text-align:left; }
  .booking-row{ flex-direction:column; }
}

/* ===== Meine Termine – Kunden (FINAL) ===== */

.inline-form{ display:inline; margin:0; }

/* Grid: auf Desktop 2 Spalten, mobil 1 */
.bookings-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
}
@media (max-width: 980px){
  .bookings-grid{ grid-template-columns:1fr; }
}

/* Card */
.booking-card{
  position:relative;
  overflow:hidden;
  padding:16px;
}

/* Dezenter Farbakzent je Status (nicht zu knallig) */
.booking-card::before{
  content:"";
  position:absolute;
  left:-60px;
  top:-60px;
  width:160px;
  height:160px;
  border-radius:999px;
  opacity:.35;
  pointer-events:none;
}

.booking-card-upcoming::before{ background: rgba(255,193,7,.55); }  /* gelb */
.booking-card-done::before{ background: rgba(40,167,69,.55); }      /* grün */
.booking-card-canceled::before{ background: rgba(220,53,69,.55); }  /* rot */

/* Header */
.booking-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.booking-date{
  font-weight:900;
  font-size:18px;
  letter-spacing:-0.2px;
}
.booking-header-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.booking-label{
  font-size:12px;
  opacity:.65;
}

/* Status Pills */
.status{
  padding:6px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  border:1px solid rgba(255,255,255,.12);
}
.status-upcoming{
  background: rgba(255,193,7,.14);
  color: #ffc107;
  border-color: rgba(255,193,7,.35);
}
.status-done{
  background: rgba(40,167,69,.14);
  color: #28a745;
  border-color: rgba(40,167,69,.35);
}
.status-canceled{
  background: rgba(220,53,69,.14);
  color: #dc3545;
  border-color: rgba(220,53,69,.35);
}

/* Boxes (Studio/Service/Dauer/Preis) */
.booking-info-boxes{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
@media (max-width: 900px){
  .booking-info-boxes{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .booking-info-boxes{ grid-template-columns: 1fr; }
}

.info-box{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px 12px;
}
.info-label{
  font-size:12px;
  opacity:.70;
  margin-bottom:4px;
}
.info-value{
  font-weight:900;
  font-size:14px;
}

/* Actions */
.booking-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-start;
}

/* ===== Step F – Clean Customer Bookings (OVERRIDES) ===== */

/* Entfernt die Glow-Kugeln, die deine Cards grün färben */
.booking-upcoming::before,
.booking-past::before,
.booking-canceled::before{
  display:none !important;
  content:none !important;
}

/* Booking Card: sauberer Look, keine farbige Fläche im unteren Bereich */
.booking-card{
  position:relative;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.05));
}

/* dezente farbige Linie links statt riesiger Glow */
.booking-card-upcoming{ border-left: 4px solid rgba(255,193,7,.75); }
.booking-card-done{ border-left: 4px solid rgba(40,167,69,.75); }
.booking-card-canceled{ border-left: 4px solid rgba(220,53,69,.75); }

/* Header */
.booking-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.booking-date-big{
  font-size:18px;
  font-weight:900;
  letter-spacing:-0.2px;
}

/* Status Pills */
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  white-space:nowrap;
}
.pill-danger{
  background: rgba(220,53,69,.16);
  border-color: rgba(220,53,69,.35);
  color: #ff6b7a;
}
.pill-warning{
  background: rgba(255,193,7,.16);
  border-color: rgba(255,193,7,.35);
  color: #ffd15a;
}
.pill-success{
  background: rgba(40,167,69,.16);
  border-color: rgba(40,167,69,.35);
  color: #58e38a;
}

/* Info Tiles: klar getrennt + Label als Chip */
.info-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
@media (max-width: 900px){
  .info-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .info-grid{ grid-template-columns: 1fr; }
}

.info-tile{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
}
.info-chip{
  display:inline-flex;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.2px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.82);
  margin-bottom:8px;
}
.info-main{
  font-size:14px;
  font-weight:900;
  line-height:1.25;
}

/* Action Row */
.booking-actions-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.booking-actions-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

/* ===== Fix: Meine Termine sauber + kein "grünes Fluten" ===== */

/* Entfernt die alten Farb-Blobs falls vorhanden */
.booking-upcoming::before,
.booking-past::before,
.booking-canceled::before{
  content: none !important;
}

/* Booking Card ohne "komische" Hintergründe */
.booking-card-clean{
  background: var(--card);
}

/* Tiles Layout */
.booking-tiles{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}

@media (max-width: 900px){
  .booking-tiles{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .booking-tiles{ grid-template-columns: 1fr; }
}


/* ================================
   Meine Termine (Customer) – FINAL
   konfliktfrei durch mb-* Klassen
   ================================ */

.mb-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
}
@media (max-width: 900px){
  .mb-grid{ grid-template-columns:1fr; }
}

/* Card */
.mb-card{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}

/* Top Row */
.mb-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.mb-date{
  font-size:16px;
  font-weight:900;
  letter-spacing:-0.2px;
}
.mb-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}
.mb-pill{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
}

/* Status Pills */
.mb-status{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
  white-space:nowrap;
}
.mb-status-upcoming{
  background: rgba(255,193,7,.18);
  border:1px solid rgba(255,193,7,.40);
  color:#ffc107;
}
.mb-status-done{
  background: rgba(40,167,69,.18);
  border:1px solid rgba(40,167,69,.40);
  color:#28a745;
}
.mb-status-canceled{
  background: rgba(220,53,69,.18);
  border:1px solid rgba(220,53,69,.40);
  color:#ff5a6a;
}

/* Tiles: klare Kästchen statt grüne Fläche */
.mb-tiles{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
@media (max-width: 900px){
  .mb-tiles{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .mb-tiles{ grid-template-columns: 1fr; }
}

.mb-tile{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12); /* neutral – NICHT grün */
}

.mb-label{
  display:inline-flex;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.82);
  margin-bottom:8px;
}

.mb-value{
  font-size:14px;
  font-weight:900;
  line-height:1.25;
}

/* Actions */
.mb-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.mb-actions-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

/* ===== Modern Book Search (Doctolib-style) ===== */

.alert{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  margin-bottom:14px;
}
.alert-danger{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
}

.field label{
  display:block;
  font-weight:800;
  margin-bottom:8px;
}

.field input,
.field select,
.field textarea,
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.92);
  outline:none;
}
.field textarea{min-height:110px; resize:vertical;}

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

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

.book-search{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:flex-start;
}

.segmented{
  display:inline-flex;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius:999px;
  padding:4px;
}

.seg-btn{
  border:0;
  background: transparent;
  color: rgba(255,255,255,.78);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:900;
}
.seg-btn.is-active{
  background: rgba(46,229,157,.14);
  border:1px solid rgba(46,229,157,.30);
  color: rgba(255,255,255,.92);
}

.autocomplete{
  flex:1;
  min-width:280px;
  position:relative;
}

.suggest{
  position:absolute;
  left:0;
  right:0;
  top:54px;
  z-index:40;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(8,11,20,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 50px rgba(0,0,0,.45);
}

.suggest-item{
  width:100%;
  text-align:left;
  border:0;
  background: transparent;
  color: rgba(255,255,255,.92);
  padding:12px 14px;
  cursor:pointer;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.suggest-item:hover{
  background: rgba(255,255,255,.06);
}

.suggest-title{
  font-weight:900;
  letter-spacing:.1px;
}
.suggest-sub{
  font-size:13px;
  margin-top:4px;
  color: rgba(255,255,255,.70);
}
/* ======================================================
   Doctolib-Search (Book Page) – konfliktfrei (bb-*)
   ====================================================== */

.bb-search-wrap{
  max-width: 720px;
}

.bb-search{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;

  padding:10px 12px;
  border-radius: 16px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 44px rgba(0,0,0,.28);

  backdrop-filter: blur(10px);
}

.bb-search-icon{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;

  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.bb-search-input{
  width:100%;
  border:0;
  outline:none;

  background: transparent;
  color: rgba(255,255,255,.92);

  font-size: 15px;
  padding: 10px 4px;
}

.bb-search-input::placeholder{
  color: rgba(255,255,255,.55);
}

.bb-search-hint{
  margin-top:10px;
  font-size: 13px;
}

/* Dropdown */
.bb-suggest{
  position:absolute;
  left:0;
  right:0;
  top: calc(100% + 10px);
  z-index: 60;

  border-radius: 18px;
  overflow:hidden;

  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,11,20,.92);
  backdrop-filter: blur(14px);

  box-shadow: 0 22px 70px rgba(0,0,0,.55);
}

/* Suggest row */
.bb-suggest-item{
  width:100%;
  text-align:left;

  border:0;
  background: transparent;
  color: rgba(255,255,255,.92);

  padding: 12px 14px;

  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;

  cursor:pointer;

  border-bottom: 1px solid rgba(255,255,255,.08);
}

.bb-suggest-item:last-child{
  border-bottom:0;
}

.bb-suggest-item:hover,
.bb-suggest-item.is-active{
  background: rgba(255,255,255,.06);
}

/* Left block with icon + text */
.bb-suggest-left{
  display:flex;
  gap: 10px;
}

.bb-suggest-icon{
  width:34px;
  height:34px;
  border-radius: 12px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);

  flex: 0 0 auto;
  margin-top:2px;
}

.bb-suggest-title{
  font-weight: 900;
  letter-spacing: .1px;
  line-height: 1.2;
}

.bb-suggest-sub{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.68);
  line-height: 1.35;
}

/* Right chip (Service/Studio) */
.bb-suggest-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 6px 10px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);

  margin-top: 2px;
}

/* Steps on book page */
.bb-step{
  padding: 14px 0;
}

.bb-step-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 10px;
}

.bb-step-nr{
  width:28px;
  height:28px;
  border-radius: 10px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(46,229,157,.12);
  border: 1px solid rgba(46,229,157,.25);
  font-weight: 900;
}

.bb-step-title{
  font-weight: 900;
}

/* ===== Tables (Admin/Studio) ===== */
.table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
.table th,
.table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.10);
  text-align:left;
  vertical-align:middle;
}
.table th{
  color: rgba(255,255,255,.78);
  font-weight:900;
  font-size:12px;
  letter-spacing:.2px;
  text-transform:uppercase;
}

.btn-small{
  padding:8px 10px;
  border-radius:12px;
  font-size:13px;
}
.inline-form{ display:inline; margin:0; }

/* ===== Slot Grid (Doctolib style light) ===== */
.slot-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
  margin-top: 10px;
}
@media (max-width: 900px){
  .slot-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px){
  .slot-grid{ grid-template-columns: repeat(2, 1fr); }
}

.slot{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  font-weight:900;
  transition: transform .06s ease, background .12s ease;
}
.slot:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}
/* ===== Slots UI (Studio Public) ===== */
.slots-box{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 12px;
}

.slots-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.slot-btn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:900;
}

.slot-btn:hover{
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.slot-btn.is-active{
  background: rgba(46,229,157,.14);
  border-color: rgba(46,229,157,.35);
}

/* Datum Navigation (← / →) */
.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 16px;
}

.date-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* ==========================================
   SAGE THEME OVERRIDES (safe & minimal)
   ========================================== */

/* Global background — plain cream, kein Glow mehr. */
body{
  background: var(--cream) !important;
  color: var(--text) !important;
}

/* Glows deaktivieren (sonst sieht man noch das alte Neon) */
.bg, .bg-glow{ display:none !important; }

/* Topbar sauber/hell */
.topbar{
  background: rgba(250,249,245,.85) !important;
  border-bottom: 1px solid var(--sand) !important;
  backdrop-filter: blur(10px);
}

/* Links in Brand-Grün */
a{ color: var(--accent); }
a:hover{ color: var(--accent2); }

/* Cards clean — leichtes Hover-Lift. */
.card{
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 2px rgba(17,36,26,.04) !important;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.card:hover{
  box-shadow: var(--shadow) !important;
  border-color: var(--sand) !important;
}

/* Trennlinien */
.hr,
.nav-sep,
.table th,
.table td{
  border-color: var(--border) !important;
}
.hr{ background: var(--border) !important; }

/* Inputs clean */
.field input,
.field select,
.field textarea,
.input{
  background: #fff !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.field input::placeholder,
.field textarea::placeholder{
  color: rgba(16,32,26,.45) !important;
}

/* Navigation Pills */
.nav-pill{
  background: #fff !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.nav-pill:hover{
  background: rgba(143,168,155,.10) !important;
}

/* Primary CTA / Buttons in Sage */
.btn-primary,
.btn.nav-pill-strong{
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #FFFFFF !important; /* Text auf Grün immer weiß */
}
.btn-primary:hover,
.btn.nav-pill-strong:hover{
  background: var(--accent2) !important;
  border-color: var(--accent2) !important;
  color:#FFFFFF !important;
}

/* Standard Buttons neutral hell */
.btn{
  background: #fff !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.btn:hover{
  background: rgba(143,168,155,.12) !important;
  border-color: rgba(143,168,155,.55) !important;
}

/* Pills / Status */
.pill-success,
.mb-status-done{
  background: rgba(143,168,155,.18) !important;
  border-color: rgba(143,168,155,.45) !important;
  color: var(--accent2) !important;
}

/* Slot Buttons (Studio Public) */
.slot-btn.is-active{
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color:#fff !important;
}
.slot-btn:hover{
  background: rgba(143,168,155,.18) !important;
  border-color: rgba(143,168,155,.55) !important;
}

/* ================================
   FIX: User-Badge Lesbarkeit
   ================================ */

/* Eingeloggter User (Topbar Chip) */
.nav-chip {
  background: #E6F0EC;              /* sehr helles Sage */
  border: 1px solid #D6E2DC;        /* Sage Border */
  color: #2F4F45;                   /* dunkles Grün → gut lesbar */
  font-weight: 700;
}

/* Optional: Hover */
.nav-chip:hover {
  background: #DDEAE4;
}

/* Rolle (customer / studio) – falls extra Text */
.nav-chip small,
.nav-chip span {
  color: #4F6F63;
}

/* ================================
   Sage Theme – Light Overrides (append-only)
   (Wenn nicht gefällt: Block löschen)
   ================================ */

:root{
  --accent:#8FA89B;        /* Sage Green */
  --accentHover:#6F8F82;   /* Darker Sage */
  --surface:#EEF3F1;       /* Very light sage background */
  --line:#D6E2DC;          /* borders / dividers */
  --textDark:#17201c;      /* readable dark text */
  --mutedDark:#55625c;
}

/* General text + backgrounds (keine harte Umstellung, nur lesbarer) */
body{
  color: var(--textDark);
}
.muted{ color: var(--mutedDark); }
.hr{ background: var(--line); }

/* Cards: sauber hell */
.card{
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* Links/Icons/CTA in Sage */
a{ color: var(--accent); }
a:hover{ color: var(--accentHover); }

/* Buttons */
.btn{
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--textDark);
}
.btn:hover{
  background: var(--surface);
  border-color: var(--line);
}

.btn-primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff; /* Text auf grün immer weiß */
}
.btn-primary:hover{
  background: var(--accentHover);
  border-color: var(--accentHover);
  color:#fff;
}

/* Nav/User Chip oben: besser sichtbar */
.nav-chip{
  background: rgba(143,168,155,.18);
  border: 1px solid rgba(143,168,155,.35);
  color: var(--textDark);
}
.nav-pill-strong{
  border-color: rgba(143,168,155,.55);
  box-shadow: 0 0 0 4px rgba(143,168,155,.15) inset;
}

/* Inputs */
.field input,
.field select,
.field textarea,
.input{
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--textDark);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus{
  border-color: rgba(143,168,155,.70);
  box-shadow: 0 0 0 4px rgba(143,168,155,.18);
}

/* Tables */
.table th,
.table td{
  border-bottom: 1px solid var(--line);
}
.table th{
  color: var(--mutedDark);
}

/* ===== WICHTIG: Slot-Buttons (Booking Page) sollen NICHT "disabled" aussehen ===== */
.slots-box{
  border: 1px solid var(--line);
  background: #ffffff;
}

.slot-btn{
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--textDark);
  transition: transform .06s ease, background .12s ease, border-color .12s ease;
}
.slot-btn:hover{
  background: var(--surface);
  border-color: rgba(143,168,155,.55);
  transform: translateY(-1px);
}
.slot-btn.is-active{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Slot-Grid (falls du beide Varianten nutzt) */
.slot{
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--textDark);
}
.slot:hover{
  background: var(--surface);
  border-color: rgba(143,168,155,.55);
}
/* ======================================================
   FIXES für Light/Sage Theme:
   1) Suche (/book): Text + Placeholder sichtbar
   2) Meine Termine (/my-bookings): Tiles/Kästchen klarer
   ====================================================== */

/* ---------- 1) Suche / Inputs allgemein ---------- */

/* Standard Inputs (falls irgendwo Text "weiß" bleibt) */
.field input,
.field select,
.field textarea,
.input{
  color: #1f2a24 !important;                 /* dunkel lesbar */
  background: #FFFFFF !important;
  border-color: #D6E2DC !important;
}

.field input::placeholder,
.field textarea::placeholder,
.input::placeholder{
  color: rgba(31,42,36,.55) !important;      /* sichtbar */
}

/* Doctolib-Search Input (/book) */
.bb-search-input{
  color: #1f2a24 !important;
}
.bb-search-input::placeholder{
  color: rgba(31,42,36,.55) !important;
}

/* Falls deine alte "autocomplete" Search noch irgendwo genutzt wird */
.autocomplete input{
  color:#1f2a24 !important;
}
.autocomplete input::placeholder{
  color: rgba(31,42,36,.55) !important;
}

/* Dropdown Vorschläge: Text dunkel auf hell */
.bb-suggest,
.suggest{
  background: #FFFFFF !important;
  border-color: #D6E2DC !important;
}
.bb-suggest-item,
.suggest-item{
  color: #1f2a24 !important;
}
.bb-suggest-sub,
.suggest-sub{
  color: rgba(31,42,36,.70) !important;
}
.bb-suggest-item:hover,
.bb-suggest-item.is-active,
.suggest-item:hover{
  background: #EEF3F1 !important;
}

/* ---------- 2) Meine Termine – Tiles/Kästchen klarer ---------- */

.mb-card{
  background: #FFFFFF !important;
  border-color: #D6E2DC !important;
}

.mb-tile{
  background: #EEF3F1 !important;            /* sehr helles Sage */
  border: 1px solid #D6E2DC !important;      /* klare Trennung */
  box-shadow: 0 6px 18px rgba(0,0,0,.06);     /* ganz subtil */
}

.mb-label{
  background: #FFFFFF !important;
  border-color: #D6E2DC !important;
  color: #6F8F82 !important;                 /* dunkleres Sage */
}

.mb-value{
  color: #1f2a24 !important;
}

/* Optional: Buttons in "Meine Termine" etwas klarer im Light Theme */
.mb-actions .btn,
.mb-actions-right .btn{
  background: #FFFFFF !important;
  border-color: #D6E2DC !important;
  color: #1f2a24 !important;
}
.mb-actions .btn:hover,
.mb-actions-right .btn:hover{
  background: #EEF3F1 !important;
}
/* ======================================================
   SOFT SAGE LOOK – weniger Weiß, mehr Ruhe
   ====================================================== */

/* Seiten-Hintergrund leicht Sage (statt rein weiß) */
body{
  background: linear-gradient(
          180deg,
          #EEF3F1 0%,
          #E8EFEC 100%
  ) !important;
}

/* Haupt-Cards (Meine Termine, Buchen, Studio) */
.card,
.mb-card{
  background: #F4F8F6 !important;      /* sehr helles Sage */
  border: 1px solid #D6E2DC !important;
}

/* Termin-Kästchen (Studio / Service / Dauer / Preis) */
.mb-tile{
  background: #EEF3F1 !important;      /* Sage statt weiß */
  border: 1px solid #D6E2DC !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

/* Labels in Kästchen */
.mb-label{
  background: #E3ECE8 !important;      /* dunkleres Sage */
  border-color: #C7D8D0 !important;
  color: #6F8F82 !important;
}

/* Werte/Text */
.mb-value{
  color: #1f2a24 !important;
}

/* Status-Pills */
.mb-status-upcoming{
  background: #EAF2EE !important;
  border-color: #8FA89B !important;
  color: #6F8F82 !important;
}

.mb-status-done{
  background: #E3EFE9 !important;
  border-color: #7FA08F !important;
  color: #557C6C !important;
}

.mb-status-canceled{
  background: #F6EAEA !important;
  border-color: #E2BABA !important;
  color: #B85C5C !important;
}

/* Buttons ruhiger */
.btn{
  background: #FFFFFF !important;
  border-color: #D6E2DC !important;
  color: #1f2a24 !important;
}
.btn:hover{
  background: #EEF3F1 !important;
}

/* Primäre Buttons (CTA) — Brand-Gradient global. */
.btn-primary{
  background: var(--brand-gradient) !important;
  border-color: transparent !important;
  color: #fbfdfb !important;
  box-shadow: 0 6px 16px rgba(26,58,42,.25);
}
.btn-primary:hover{
  background: var(--brand-gradient-hover) !important;
  box-shadow: 0 10px 22px rgba(26,58,42,.32);
}
/* ======================================================
   FIX: Texte im Light/Sage Theme lesbar machen
   (Home + überall wo noch "weiß" aus dem Darkmode kommt)
   ====================================================== */

/* Standard-Textfarben */
body{
  color: #1f2a24 !important;
}

/* Muted Texte (z.B. Beschreibungen, kleine Infos) */
.muted,
.lead,
p,
li,
.small,
.footer,
.footer *{
  color: rgba(31,42,36,.72) !important;
}

/* Überschriften */
h1,h2,h3,h4,h5{
  color:#14201b !important;
}

/* Cards / Boxen: Text sicher dunkel */
.card,
.card *,
.cta-box,
.cta-box *,
.quick-item,
.quick-item *,
.stat,
.stat *,
.table,
.table *{
  color:#1f2a24;
}

/* Tabellen-Header nicht mehr hell */
.table th{
  color: rgba(31,42,36,.65) !important;
}

/* Pills/Nav-Chips im Light-Mode lesbar */
.nav-chip{
  background: #E3ECE8 !important;
  border-color: #C7D8D0 !important;
  color: #1f2a24 !important;
}

/* Badge-Farben (falls noch alte grün/weiß Kombis drin sind) */
.badge{
  color: rgba(31,42,36,.75) !important;
  border-color: #D6E2DC !important;
}
/* Topbar Höhe */
.topbar-row{
  height: 64px;
}

/* (.brand-logo / .brand sind oben mit dem .brand-mark-Tile definiert.
   Diese Block-Reihenfolge zwischen den Override-Sektionen würde sonst
   die 28x28-Werte überstimmen, deshalb hier auch tile-konform.) */
.brand-logo{
  height: 28px;
  width: 28px;
  display: block;
  object-fit: contain;
  border-radius: 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
/* Secondary Link-Button (Ghost) */
.btn-ghost{
  background: transparent;
  border-color: rgba(143,168,155,.45); /* sage border */
  color: #6F8F82; /* darker sage */
}
.btn-ghost:hover{
  background: rgba(143,168,155,.10);
  border-color: rgba(143,168,155,.65);
}

/* Hero: Buttons nicht zu “wuchtig” */
.hero-actions .btn{
  min-width: 170px;
}
/* ===== Home – How it works Card ===== */

.how-card{
  background: #EEF3F1;
  border: 1px solid #D6E2DC;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.how-step{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #35524A;
}

.how-dot{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #8FA89B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
/* Meine Termine Cover */
.bb-cover-bookings{
  background-image:
          linear-gradient(rgba(245,248,247,.72), rgba(245,248,247,.72)),
          url("/static/img/my-bookings-cover.png");
}

/* ===== STATUS BADGES (GLOBAL) ===== */
.bb-status{
  display:inline-flex !important;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.3px;
  line-height:1;
  background:#eee;
}

.bb-status-dot{
  width:10px;
  height:10px;
  border-radius:50%;
}

/* ROT – STORNIERT */
.bb-status--canceled{
  background:#fee2e2 !important;
  color:#7f1d1d !important;
  border:1px solid #dc2626 !important;
}
.bb-status--canceled .bb-status-dot{
  background:#dc2626 !important;
}

/* BLAU – BEVORSTEHEND */
.bb-status--pending{
  background:#dbeafe !important;
  color:#1e3a8a !important;
  border:1px solid #3b82f6 !important;
}
.bb-status--pending .bb-status-dot{
  background:#3b82f6 !important;
}

/* GRÜN – ABGESCHLOSSEN */
.bb-status--completed{
  background:#dcfce7 !important;
  color:#14532d !important;
  border:1px solid #22c55e !important;
}
.bb-status--completed .bb-status-dot{
  background:#22c55e !important;
}



/* === GutachterBook Light Overrides (no cover images) === */
.topbar{
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--border);
}
.nav-pill{
  background: rgba(0,0,0,.03);
  border:1px solid rgba(0,0,0,.06);
}
.nav-pill:hover{ background: rgba(0,0,0,.05); }
.nav-pill-strong{
  border-color: rgba(46,107,230,.28);
  box-shadow: 0 0 0 4px rgba(46,107,230,.10) inset;
}
.nav-chip{
  background: rgba(46,107,230,.10);
  border:1px solid rgba(46,107,230,.18);
  color: var(--text);
}
.nav-sep{ background: rgba(0,0,0,.08); }

.btn{
  background: rgba(0,0,0,.03);
  border:1px solid rgba(0,0,0,.08);
  color: var(--text);
}
.btn:hover{ background: rgba(0,0,0,.05); }
.btn-primary{
  background: linear-gradient(135deg, rgba(46,107,230,.92), rgba(18,86,204,.92));
  border-color: rgba(46,107,230,.35);
  color: #fff;
}

.hr{ background: var(--border); }
.lead{ color: var(--muted); }
.badge{
  background: rgba(0,0,0,.03);
  border:1px solid rgba(0,0,0,.06);
  color: var(--muted);
}

.list{ color: var(--text); }
.booking-k{ color: var(--muted); }

.footer{
  background: rgba(255,255,255,.55);
  border-top:1px solid var(--border);
}
/* ==========================================
   Studio Dashboard (Premium) – dash-*
   append-only, bricht nichts
   ========================================== */

.dash-wrap{max-width:var(--layout-max);margin:0 auto;padding:0 var(--layout-px);}
.dash-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;align-items:start}
@media (max-width: 980px){ .dash-hero{grid-template-columns:1fr;} }

.dash-kicker{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
  background: rgba(143,168,155,.18);
  border: 1px solid rgba(143,168,155,.35);
  color: #35524A;
}

.dash-title{margin:10px 0 6px;font-size:34px;line-height:1.1}
.dash-sub{max-width:560px}

.dash-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

.dash-kpis{display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width: 980px){ .dash-kpis{grid-template-columns:1fr;} }

.dash-kpi{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(143,168,155,.10);
}
.dash-kpi-label{font-size:12px;font-weight:900;color:#35524A;letter-spacing:.2px;text-transform:uppercase}
.dash-kpi-value{margin-top:6px;font-size:18px;font-weight:900;color:#10201A}
.dash-kpi-hint{margin-top:4px;font-size:12px}

.dash-grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}
@media (max-width: 980px){
  .dash-grid{grid-template-columns:1fr}
}

.dash-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}

.dash-quick{display:grid;gap:10px;margin-top:12px}
.dash-quick-item{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:14px;border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.dash-quick-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.07);
  background: #F4F8F6;
}
.dash-quick-title{font-weight:900;margin-bottom:4px}
.dash-arrow{font-weight:900;opacity:.6}

.dash-checklist{display:grid;gap:8px;margin-top:12px}
.dash-check{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:800;
  color:#1f2a24;
}

.page-center {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.card-form {
  width: 100%;
  max-width: 900px;   /* 👈 macht es groß & hochwertig */
}
.studio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.gallery-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
/* =========================
   FIX: Studio Carousel Clicks
   ========================= */

.bb-studio-hero{
  padding:0;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.bb-studio-hero .card{
  overflow: visible;
}
.bb-carousel{
  position: relative;
  width: 100%;
  height: 420px;          /* feste Höhe statt aspect-ratio */
  max-height: 420px;
  overflow: hidden;
  border-radius: 20px;
}

.bb-car-btn{
  z-index: 30;
}

.bb-hero-meta{
  position: relative;
  z-index: 10;
}
.bb-car-track{
  position: relative;
  width: 100%;
  height: 100%;
}

.bb-car-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;

  opacity:0;
  transform: scale(1.015);
  transition:
          opacity .45s cubic-bezier(.4,0,.2,1),
          transform .6s cubic-bezier(.4,0,.2,1);

  will-change: opacity, transform;
  backface-visibility: hidden;
}

.bb-car-img.is-active{
  opacity:1;
  transform: scale(1);
  z-index:2;
}

.bb-car-btn{
  pointer-events: auto;
}
/* ====================================
   GLOBAL DESIGN UPGRADE – PROFESSIONAL
==================================== */

/* Hintergrund ruhiger & cleaner */
body{
  background:#f4f6f5;
}

/* Allgemeine Cards schöner */
.bb-inner-card,
.card,
.section-card{
  background:#ffffff;
  border-radius:20px;
  box-shadow:0 20px 60px rgba(0,0,0,0.05);
  border:none;
}

/* Mehr Abstand zwischen Sections */
.bb-page-wrapper{
  padding-top:40px;
  padding-bottom:60px;
}

/* Footer cleaner */
.footer{
  margin-top:60px;
  opacity:.7;
}
/* ====================================
   NAVBAR UPGRADE
==================================== */

.topbar{
  background: rgba(250,249,245,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sand);
}

.nav-pill{
  transition:all .2s ease;
}

.nav-pill-strong{
  background: var(--brand-gradient);
  color:#ffffff !important;
  border-color: transparent;
  border-radius:999px;
  padding:8px 16px;
}
.brand-name{
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--g-900);
}

/* Brand-Logo sitzt im .brand-mark Tile — siehe Definition oben.
   Diese späte Regel würde sonst die Tile-Größe sprengen. */
.brand-logo{
  height: 28px;
  width: 28px;
  display: block;
  object-fit: contain;
  border-radius: 0;
}
/* =========================
   Premium Filter Bar
========================= */

.bb-filter{
  background:#ffffff;
  border-radius:20px;
  padding:22px;
  box-shadow:0 10px 40px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.04);
}

.bb-filter-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap:18px;
  align-items:end;
}

@media (max-width: 980px){
  .bb-filter-grid{
    grid-template-columns:1fr;
  }
}

.bb-filter .field label{
  font-size:12px;
  font-weight:600;
  color:#6f7a74;
  margin-bottom:6px;
}

.bb-filter input,
.bb-filter select{
  height:46px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  padding:0 14px;
  font-size:14px;
  transition:.2s ease;
  background:#fafafa;
}

.bb-filter input:focus,
.bb-filter select:focus{
  border-color:#1f3d2b;
  background:#fff;
  box-shadow:0 0 0 3px rgba(31,61,43,.08);
}

.bb-actions .btn-primary{
  height:46px;
  padding:0 26px;
  border-radius:12px;
  font-weight:600;
  box-shadow:0 8px 24px rgba(31,61,43,.25);
}
.bb-result-title{
  font-size:16px;
  font-weight:600;
  color:#1f3d2b;
}
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px var(--layout-px) 80px var(--layout-px);
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 30px;
}

.legal-page h2 {
  margin-top: 30px;
  font-size: 20px;
}

.legal-page p {
  color: #555;
  line-height: 1.6;
}
.site-body{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

.site-body > main{
  flex:1;
}

.site-footer {
  margin-top: auto;
  /* Höhe so gewählt, dass der border-top der Footer-Leiste optisch auf
     einer Linie mit dem border-top des Sidenav-User-Chips sitzt. Sidenav-
     Footer hat ~64 px Innenraum (padding 12+8 + Chip-Höhe 28 + 16). */
  padding: 22px var(--layout-px);
  min-height: 64px;
  box-sizing: border-box;
  background: var(--cream);
  color: var(--ink-mute);
  border-top: 1px solid var(--sand);
  font-size: 13px;
}

.site-footer .footer-left {
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g-500);
  box-shadow: 0 0 0 3px var(--g-100);
  flex-shrink: 0;
}

.footer-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 var(--layout-px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--g-800);
}
/* ================================
   SAFARI FIX – CAROUSEL LAYER BUG
   ================================ */

.bb-carousel{
  position: relative;
  z-index: 5;
  isolation: isolate;              /* 🔥 wichtig */
  transform: translateZ(0);        /* 🔥 GPU layer */
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bb-car-track{
  position: relative;
  z-index: 1;
}

.bb-hero-meta{
  position: relative;
  z-index: 20;                     /* über Carousel */
}
/* =========================
   Logout Button – Danger Style (NAV ONLY)
========================= */

.nav-logout {
  margin-left: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #b4232c;
  color: white !important;
  font-weight: 600;
  border: 1px solid #b4232c;
  transition: all 0.2s ease;
}

.nav-logout:hover {
  background: #8f1c23;
  border-color: #8f1c23;
  box-shadow: 0 8px 20px rgba(180, 35, 44, .25);
}


/* ==============================
   BUTTON SYSTEM
============================== */

.btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

/* Primary */

.btn-primary {
  background: #5c7c6f;
  border: 1px solid #5c7c6f;
  color: white;
}

.btn-primary:hover {
  background: #4b665b;
  border-color: #4b665b;
}


/* Secondary */

.btn-secondary {
  background: #f2f2f2;
  border: 1px solid #ddd;
  color: #333;
}

.btn-secondary:hover {
  background: #e6e6e6;
}

/* ==============================
   KPI DASHBOARD
============================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.kpi-card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.kpi-number {
  font-size: 30px;
  font-weight: 700;
}

.kpi-label {
  font-size: 14px;
  opacity: 0.6;
}


/* ==============================
   BADGES
============================== */

.badge-green {
  background: #e8f5e9;
  color: #1b5e20;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.badge-red {
  background: #fdecea;
  color: #b02a37;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.badge-blue {
  background: #e3f2fd;
  color: #0d47a1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.badge-gray {
  background: #f0f0f0;
  color: #555;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}


/* ==============================
   TABLE HOVER
============================== */

.table-row:hover {
  background: rgba(0,0,0,0.03);
  transition: 0.2s ease;
}
/* ======================================================
   GLOBAL BUTTON SYSTEM – FINAL CLEAN VERSION
   ====================================================== */

/* Base Button */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 16px;
  border-radius:999px;
  font-weight:600;
  border:1px solid #D6E2DC;
  background:#ffffff;
  color:#1f2a24;
  cursor:pointer;
  transition:all .2s ease;
}

.btn:hover{
  background:#EEF3F1;
  transform:translateY(-1px);
}

/* Small */
.btn-small{
  padding:6px 12px;
  font-size:13px;
}

/* Primary */
.btn-primary{
  background:#5c7c6f;
  border-color:#5c7c6f;
  color:#ffffff;
}

.btn-primary:hover{
  background:#4b665b;
  border-color:#4b665b;
}

/* Danger (DELETE etc) */
.btn-danger{
  background:#b4232c;
  border-color:#b4232c;
  color:#ffffff;
}

.btn-danger-outline{
  background:#ffffff;
  border:1.5px solid #f3d5d5;
  color:#b4232c;
}
.btn-danger-outline:hover{
  background:#fef2f2;
  border-color:#b4232c;
}

.btn-danger:hover{
  background:#8f1c23;
  border-color:#8f1c23;
}

/* Logout (NAV ONLY) */
.nav-logout{
  margin-left:20px;
  padding:8px 16px;
  border-radius:999px;
  background:#b4232c;
  color:#ffffff !important;
  font-weight:600;
  border:1px solid #b4232c;
  transition:all .2s ease;
}

.nav-logout:hover{
  background:#8f1c23;
  border-color:#8f1c23;
}
/* =========================
   MOBILE NAV FIX
========================= */

.nav-burger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 900px) {

  .nav-burger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    z-index: 999;
  }

  .nav-pill,
  .nav-logout,
  .nav-chip {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .nav.is-open {
    display: flex;
  }
}
@media (max-width: 900px){

  .topbar-row{
    height: 70px !important;
  }

  .brand-name{
    font-size: 16px;
  }

  .nav{
    top: 70px !important;
  }

}
@media (max-width: 900px){

  .hero{
    grid-template-columns: 1fr !important;
  }

  h1{
    font-size: 28px !important;
    line-height: 1.2;
  }

  .hero-actions{
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn{
    width: 100%;
  }

  .stats{
    grid-template-columns: 1fr;
  }

}
@media (max-width: 480px){

  body{
    font-size: 14px;
  }

  h1{
    font-size: 24px !important;
  }

}
/* =====================================================
   MOBILE FIX – Desktop bleibt unberührt
   ===================================================== */

@media (max-width: 900px){

  /* Container enger & sauber */
  .app-container{
    padding: 30px var(--layout-px) 60px var(--layout-px) !important;
  }

  /* Hero komplett untereinander */
  .hero{
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  h1{
    font-size: 28px !important;
    line-height: 1.25 !important;
    text-align: center;
  }

  .lead{
    text-align:center;
    font-size: 15px;
  }

  .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn{
    width:100%;
  }

  .stats{
    grid-template-columns:1fr !important;
    text-align:center;
  }

  /* Schnellbuchungs-Card */
  .how-card,
  .cta-box,
  .card{
    padding:22px !important;
    border-radius:20px !important;
  }

  /* Section spacing */
  .section{
    margin-top:50px !important;
  }

  /* Footer schöner */
  .footer-inner{
    flex-direction:column;
    gap:12px;
    text-align:center;
  }

}
@media (max-width: 768px){
  h1{
    font-size:28px;
    line-height:1.2;
  }
}
@media (max-width: 768px){
  .stats{
    grid-template-columns:1fr;
    gap:16px;
    text-align:center;
  }
}
/* ===== FIX: Mobile Click Overlay Bug ===== */

.hero,
.hero * {
  position: relative;
  z-index: 2;
}

.hero::before,
.hero::after {
  pointer-events: none !important;
}

.bb-studio-hero,
.bb-carousel,
.bg,
.bg-glow {
  pointer-events: none !important;
}

/* ==============================
   LEFT BURGER MENU (Header)
============================== */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-burger-wrap {
  position: relative;
}

/* Burger bewusst rahmenlos + transparent: der weiße Button hob sich
   sonst leicht vom (halbtransparenten) Topbar-Hintergrund ab. So bleiben
   nur die drei Striche sichtbar; der 40px-Bereich bleibt als Tap-Target. */
.menu-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--brand-ink);
  font-size: 20px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.menu-burger:hover {
  background: var(--brand-green-tint);
}

.menu-dropdown {
  display: none;
  /* Drawer wird per JS an <body> umgehaengt (siehe base.html), damit der
     position:fixed-Containing-Block-Trick der gestickten Topbar
     (transform: translateZ(0)) nicht zuschlaegt. Auf Desktop zeigt das
     Dropdown daher fixed unter der Topbar, links wo der Burger sitzt. */
  position: fixed;
  top: 72px;
  left: clamp(20px, 3vw, 48px);
  min-width: 260px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  z-index: 100;
  overflow: hidden;
}

.menu-dropdown.is-open {
  display: flex;
  flex-direction: column;
}

.menu-dropdown-item {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  color: #1f2a24;
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: background .15s ease;
}

.menu-dropdown-item:last-child {
  border-bottom: none;
}

.menu-dropdown-item:hover {
  background: #EEF3F1;
}

.menu-dropdown-item.is-active {
  background: #2d6a4f;
  color: #fff;
  position: relative;
}

.menu-dropdown-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #1a3a2a;
}

.menu-dropdown-item.is-active:hover {
  background: #25593f;
}

/* =====================================================
   BURGER rechts + Brand-Name zentriert auf Mobile
   ===================================================== */
@media (max-width: 900px) {
  .topbar-row {
    position: relative;
  }
  .topbar-left {
    width: 100%;
    justify-content: space-between;
  }
  /* Logo bleibt links, nur der Text wird zentriert */
  .brand-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  /* Mobile: nur das Logo-Tile (.brand-mark) ausblenden — der Name
     "GutachterBook" bleibt sichtbar. Vorher hat das Logo-Tile rechts
     hinter der Bell-Position durchgeschimmert. */
  .topbar .brand-mark {
    display: none !important;
  }
  .topbar .brand {
    /* Ohne Logo-Tile sitzt nur noch der Name in der Brand-Group;
       Klick-Bereich bleibt link-kompatibel. */
    gap: 0;
  }
  /* Mobile-Sidenav als echter Off-Canvas-Drawer von links.
     Hoehe: auto + max-height 100vh — der Drawer schrumpft an seinen
     Inhalt (5 Items belegen nicht mehr 100vh leeren Raum) und ist nur
     scrollbar, wenn die Item-Liste laenger als der Viewport waere. */
  .menu-dropdown {
    position: fixed;
    top: max(env(safe-area-inset-top, 0px), 12px);
    left: 12px;
    right: auto;
    bottom: auto;
    width: min(72vw, 280px);
    height: auto;
    max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    min-width: 0;
    /* Auf allen 4 Ecken abgerundet — das Panel "schwebt" mit Abstand
       zum Bildschirmrand statt buendig an der linken Kante zu kleben. */
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 16px 12px 44px rgba(15,31,24,.22);
    background: #ffffff;
    transform: translateX(calc(-100% - 24px));
    transition: transform .26s cubic-bezier(.2,.7,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* `.menu-dropdown` hatte vorher display:none — wir wollen den Drawer
       per transform schieben, also immer rendern, nur off-screen halten. */
    display: flex !important;
    flex-direction: column;
    padding: 0 0 max(env(safe-area-inset-bottom, 0px), 8px);
    gap: 0;
    z-index: 9991;
  }
  .menu-dropdown.is-open {
    transform: translateX(0);
  }
  /* Brand-Header oben im Drawer — gibt dem Off-Canvas-Panel Identitaet,
     spiegelt die Sidenav-Optik vom Desktop. Pseudo-Element, damit wir
     nichts am Markup veraendern muessen. */
  .menu-dropdown::before {
    content: "GutachterBook";
    display: block;
    padding: 18px 18px 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--g-900);
    letter-spacing: -.01em;
    border-bottom: 1px solid var(--sand);
    margin-bottom: 6px;
  }
  /* Items kompakter + Padding angepasst. Item-Container hat zusaetzliches
     horizontales Padding, damit der Active-Pill nicht buendig am Rand sitzt. */
  .menu-dropdown {
    /* Items bekommen einen Innenrand fuer schwebende Pills */
    --gb-drawer-side: 10px;
  }
  .menu-dropdown .menu-dropdown-item {
    margin: 2px var(--gb-drawer-side);
    padding: 11px 14px;
    font-size: 14.5px;
    font-weight: 600;
    border-bottom: none;
    border-radius: 10px;
    color: var(--ink);
    transition: background .15s ease, color .15s ease;
  }
  .menu-dropdown .menu-dropdown-item:hover {
    background: var(--g-50);
    color: var(--g-900);
  }
  /* Active-State: voller Brand-Gradient mit weisser Schrift — gleiche
     Optik wie die Desktop-Sidenav, deutlich sichtbarer als der vorige
     dezente Akzent-Strich. */
  .menu-dropdown .menu-dropdown-item.is-active {
    background: var(--brand-gradient);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: var(--shadow-brand);
  }
  .menu-dropdown .menu-dropdown-item.is-active:hover {
    background: var(--brand-gradient-hover);
    color: #ffffff !important;
  }
  .menu-dropdown .menu-dropdown-item.is-active::before {
    display: none;
  }
  /* Logout immer als letztes Element — bekommt einen Separator oben + rote Akzentfarbe. */
  .menu-dropdown a[href="/logout"] {
    margin-top: 6px;
    border-top: 1px solid var(--sand);
    color: #b91c1c;
    font-weight: 600;
  }
  .menu-dropdown a[href="/logout"]:hover {
    background: #fef2f2;
    color: #b91c1c;
  }
  /* Drawer-Backdrop — dunkelt Content ab, fängt Outside-Klicks. */
  .menu-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,31,24,.45);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }
  body.is-menu-open .menu-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}
/* Desktop: Backdrop nie sichtbar. */
@media (min-width: 901px) {
  .menu-drawer-backdrop { display: none; }
}

/* =====================================================
   MOBILE RESPONSIVE – COMPREHENSIVE (nur ≤768px)
   Desktop bleibt unverändert.
   ===================================================== */

@media (max-width: 768px) {

  /* --- Admin Tables: horizontal scroll --- */
  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 13px;
  }

  .table th,
  .table td {
    padding: 8px 10px;
  }

  /* --- Appointments: Tabs scrollbar --- */
  .ap-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .ap-tab {
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 12px;
  }

  .ap-card {
    padding: 18px;
  }

  .ap-card-top {
    flex-direction: column;
    gap: 10px;
  }

  .ap-badges {
    justify-content: flex-start;
  }

  .ap-details {
    grid-template-columns: 1fr !important;
  }

  .ap-customer {
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* --- Studio Services --- */
  .ss-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ss-header-actions {
    width: 100%;
  }

  .ss-header-actions .ss-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .ss-service-actions {
    gap: 6px;
  }

  .ss-btn-small {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* --- Dashboard --- */
  .db-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .db-header-actions {
    width: 100%;
    flex-direction: column;
  }

  .db-header-actions .db-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .db-page-title {
    font-size: 24px !important;
  }

  /* --- Legal Pages --- */
  .legal-page {
    padding: 30px 20px 60px;
  }

  .legal-page h1 {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .legal-page h2 {
    font-size: 18px;
    margin-top: 24px;
  }

  /* --- Studio Profile --- */
  .studio-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }

  .gallery-item img {
    height: 80px;
  }

  /* --- Generic Cards tighter on mobile --- */
  .card-form {
    max-width: 100%;
  }

  /* --- Footer responsive — kompakt, zentriert, ohne Dot --- */
  .site-footer {
    padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
    min-height: 0;
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 0;
    align-items: center;
    max-width: 520px;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .footer-links a {
    display: inline-flex;
    align-items: center;
    padding: 6px 4px;
    font-size: 13px;
  }
  .site-footer .footer-left {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1.5;
  }
  /* Gruener Status-Dot auf Mobile ausblenden — wirkte irritierend neben
     der reinen Copyright-Zeile, hatte keine semantische Bedeutung. */
  .site-footer .footer-dot {
    display: none;
  }

  /* --- Topbar brand fix --- */
  .brand-name {
    font-size: 16px;
  }

  /* Logo bleibt klein im Brand-Tile — auf Mobile noch etwas kompakter. */
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .brand-logo {
    height: 24px;
    width: 24px;
  }

  /* --- Carousel on mobile --- */
  /* `.sp-carousel` bewusst NICHT mehr hier: eine feste `height` macht
     `aspect-ratio` vollstaendig wirkungslos — unabhaengig von Reihenfolge und
     Spezifitaet. Diese Regel hat die Geometrie des Studio-Karussells aus einer
     zweiten Datei heraus bestimmt, waehrend im Template sieben Regeln um
     dasselbe stritten. Die Geometrie steht jetzt ausschliesslich in
     studio_public.html (`.sp-carousel`, global 4/3 und unter 900px 3/2). */
  .bb-carousel {
    height: 260px;
    max-height: 260px;
  }

  /* --- KPI Grid forced 1 col on small mobile --- */
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    padding: 18px;
  }

  .kpi-number {
    font-size: 24px;
  }

  /* --- Filter bar on mobile (admin) --- */
  .bb-filter-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Even tighter for very small screens */
  .ap-page-title,
  .ss-page-title {
    font-size: 22px !important;
  }

  .ap-date-day {
    font-size: 26px;
  }

  .nav-logout {
    margin-left: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .menu-dropdown {
    min-width: 200px;
    left: 14px;
    right: auto;
    max-width: calc(100vw - 28px);
  }
}

/* ---------------------------------------------------------------
   Password-Policy Live-Checklist
   Wird vom Jinja-Macro `password_policy_hint` (_macros.html) auf
   Register / Reset-Password / Account-Password gerendert.
   Hier zentral, damit alle drei Formulare gleich aussehen und
   eine Style-Änderung nicht an drei Stellen synchron gehalten
   werden muss.
   --------------------------------------------------------------- */
.pw-checklist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}
.pw-checklist li {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600;
  color: #8fa89b;
  transition: color .15s;
}
.pw-checklist .pw-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #e3ece7;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
  position: relative;
}
.pw-checklist li.ok { color: #2d6a4f; }
.pw-checklist li.ok .pw-dot { background: #2d6a4f; }
.pw-checklist li.ok .pw-dot::after {
  content: "";
  width: 6px; height: 3px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
  margin-top: -1px;
}
@media (max-width: 480px) {
  .pw-checklist { grid-template-columns: 1fr; }
}

/* mail_spam_hint (_macros.html) — einheitlicher Hinweis-Block
   auf jeder „wir haben eine Mail verschickt"-UI. */
.mail-spam-hint {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 14px;
  background: #f3f6f4;
  border: 1px solid #e6ece9;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1a3a2a;
  line-height: 1.5;
  text-align: left;
}
.mail-spam-hint svg {
  color: #2d6a4f;
  flex-shrink: 0;
  margin-top: 2px;
}
.mail-spam-hint strong { color: #0f1f18; font-weight: 700; }

/* ============================================================
   Brand-Hover-Konsistenz für alle Page-internen Primary-Buttons.

   Viele Templates definieren ihre Primary-Buttons (auth-submit,
   sv-go, ba-submit etc.) inline in <style>-Blöcken und vergessen
   dabei häufig den Hover-Background-Wechsel — die Buttons reagieren
   nur über transform/shadow, was sich „tot" anfühlt.

   Diese Regel erzwingt app-weit den brand-typischen
   dunkel→hellgrün-Übergang. !important ist hier bewusst gesetzt,
   weil Inline-<style>-Blöcke aus dem content-Block nach den
   externen Stylesheets geladen werden und sonst gewinnen.

   ALLE hier aufgeführten Klassen wurden vorab als grüne Brand-
   Buttons verifiziert. Rote/Danger-Buttons (.kc-btn,
   .sc-btn-danger, .acc-del-submit, .cal-modal-btn--danger) sind
   absichtlich NICHT enthalten.

   Wenn ein neuer grüner Primary-Button hinzukommt: hier in die
   Liste eintragen, statt im Template einen eigenen Hover zu
   definieren.
   ============================================================ */
.auth-submit,
.sv-go, .sv-go--name,
.sv-row-ctabar,
.mb-book-btn,
.hero-cta, .hero-card-cta,
.ph-steps-btn, .ph-cta-actions .btn-primary,
.bl-submit, .ba-submit, .ap-submit,
.bt-submit-btn, .bt-next-btn,
.app-modal-btn--primary, .cal-modal-btn--primary,
.sp-btn-primary, .sp-login-wall-btn-primary, .sp-submit-btn,
.db-btn-primary,
.ss-btn-primary,
.acc-del-confirm-primary,
.is-brand-cta {
  transition: background .25s ease, box-shadow .15s ease, transform .15s ease, filter .15s ease !important;
}
.auth-submit:hover,
.sv-go:hover, .sv-go--name:hover,
.sv-row-ctabar:hover,
.mb-book-btn:hover,
.hero-cta:hover, .hero-card-cta:hover,
.ph-steps-btn:hover, .ph-cta-actions .btn-primary:hover,
.bl-submit:hover, .ba-submit:hover, .ap-submit:hover,
.bt-submit-btn:hover, .bt-next-btn:hover,
.app-modal-btn--primary:hover, .cal-modal-btn--primary:hover,
.sp-btn-primary:hover, .sp-login-wall-btn-primary:hover, .sp-submit-btn:hover,
.db-btn-primary:hover,
.ss-btn-primary:hover,
.acc-del-confirm-primary:hover,
.is-brand-cta:hover {
  background: var(--brand-gradient-hover) !important;
  color: #fbfdfb !important;
  filter: none !important;
}