/* ============================================================
   Borsig Friseursalon – Design-Tokens
   Palette: Espresso / Messing / Papier / Ziegel (Borsigplatz)
   Type:    Fraunces (Display) · Outfit (Body)
   ============================================================ */
:root {
    --espresso: #1A1714;
    --espresso-soft: #26211C;
    --brass: #C9A24D;
    --brass-soft: #E0C078;
    --paper: #F8F4ED;
    --paper-dim: #EFE8DC;
    --ink: #26211C;
    --smoke: #8C8378;
    --brick: #A3402F;
    --green: #3E7A4E;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(26, 23, 20, 0.12);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Outfit", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em { font-style: italic; color: var(--brass); }

.container { width: min(1100px, 92%); margin: 0 auto; }
.muted { color: var(--smoke); }
.small { font-size: 0.85rem; }
.eyebrow {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--brass); margin: 0 0 0.8rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 0.75rem 1.5rem; border-radius: 999px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.btn-brass { background: var(--brass); color: var(--espresso); }
.btn-brass:hover { background: var(--brass-soft); }
.btn-dark { background: var(--espresso); color: var(--paper); }
.btn-outline { background: transparent; color: var(--paper); border-color: rgba(248, 244, 237, 0.45); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: rgba(38, 33, 28, 0.3); }
.btn-outline-dark:hover { border-color: var(--ink); }
.btn-gold { background: linear-gradient(135deg, var(--brass), var(--brass-soft)); color: var(--espresso); }
.btn-danger { background: var(--brick); color: #fff; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; text-align: center; }
.link-btn {
    background: none; border: none; padding: 0; font: inherit; cursor: pointer;
    color: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.inline-form { display: inline; }

/* ---------- Navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(26, 23, 20, 0.94); backdrop-filter: blur(8px);
    color: var(--paper);
    /* In der installierten App (iOS standalone) läuft der Inhalt unter die
       Statusleiste/Notch – Safe-Area-Abstand hält die Navbar tappbar. */
    padding-top: env(safe-area-inset-top);
}
.nav-inner {
    width: min(1100px, 94%); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.7rem 0; gap: 1rem;
}
.brand {
    display: flex; align-items: center; gap: 0.65rem;
    font-family: var(--font-display); font-size: 1.15rem; text-decoration: none;
}
.brand img { border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 1.3rem; font-size: 0.95rem; }
.nav-links a { text-decoration: none; opacity: 0.9; }
.nav-links a:hover { color: var(--brass); opacity: 1; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--paper); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { background: var(--espresso); color: var(--paper); overflow: hidden; }
.hero-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem;
    align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero .lead { font-size: 1.15rem; color: rgba(248, 244, 237, 0.82); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.6rem 0 1rem; }
.hero-hint { font-size: 0.9rem; color: var(--smoke); }
.hero-hint a { color: var(--brass); }

/* Signature: rotierender Stempel-Badge */
.hero-badge-wrap { display: flex; justify-content: center; }
.stamp-badge { position: relative; width: clamp(200px, 26vw, 290px); aspect-ratio: 1; }
.stamp-ring { width: 100%; height: 100%; animation: spin 28s linear infinite; }
.stamp-ring text {
    font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.32em; fill: var(--brass);
}
.stamp-core {
    position: absolute; inset: 0; margin: auto; width: 52%; aspect-ratio: 1;
    border: 2px solid var(--brass); border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--paper); transform: rotate(-8deg);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .stamp-ring { animation: none; }
    html { scroll-behavior: auto; }
    .btn:hover { transform: none; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper:nth-of-type(even) { background: var(--paper-dim); }
.section-dark { background: var(--espresso-soft); color: var(--paper); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }

/* ---------- Preisliste ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.5rem; }
.price-card {
    background: #fff; border-radius: var(--radius); padding: 1.6rem;
    box-shadow: var(--shadow); border-top: 4px solid var(--brass);
}
.price-list { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.price-list li {
    display: flex; align-items: baseline; gap: 0.5rem;
    padding: 0.55rem 0; font-size: 0.97rem;
}
.price-list li i { flex: 1; border-bottom: 2px dotted rgba(140, 131, 120, 0.5); }
.price-list li span:last-child { font-weight: 600; white-space: nowrap; }
.price-note { font-size: 0.82rem; color: var(--smoke); margin-top: 1rem; }

/* ---------- Aktionen ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 1.5rem; }
.offer-card {
    background: var(--espresso); border: 1px solid rgba(201, 162, 77, 0.4);
    border-radius: var(--radius); padding: 1.5rem;
}
.offer-card h3 { color: var(--brass-soft); }
.offer-card p { color: rgba(248, 244, 237, 0.85); margin: 0.4rem 0; }
.offer-valid { font-size: 0.82rem; color: var(--smoke); }

/* ---------- Stempelheft-Promo (Demo-Phone) ---------- */
.steps { padding-left: 1.2rem; margin: 1.2rem 0; }
.steps li { margin: 0.5rem 0; }
.mini-card-demo { display: flex; justify-content: center; }
.demo-phone {
    width: 270px; background: var(--espresso); color: var(--paper);
    border-radius: 26px; padding: 1.4rem 1.2rem;
    box-shadow: 0 20px 50px rgba(26, 23, 20, 0.35);
    border: 1px solid rgba(201, 162, 77, 0.35);
    transform: rotate(2.5deg);
}
.demo-head { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1rem; }
.demo-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.55rem; }
.demo-dot {
    aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
    font-size: 0.85rem; border: 1.5px dashed rgba(248, 244, 237, 0.35); color: var(--smoke);
}
.demo-dot.is-stamped {
    border: 2px solid var(--brass); color: var(--brass);
    transform: rotate(-10deg); font-size: 1rem;
}
.demo-foot { margin-top: 1rem; font-size: 0.85rem; color: var(--brass-soft); }

/* ---------- Kontakt ---------- */
.contact-line { font-size: 1.05rem; margin: 0.4rem 0; }
.contact-line a { color: var(--brass-soft); }
.hours-card {
    background: var(--espresso); border-radius: var(--radius);
    padding: 1.8rem; border: 1px solid rgba(201, 162, 77, 0.35);
}
.hours-list li { color: rgba(248, 244, 237, 0.9); }
.hours-list li i { border-color: rgba(201, 162, 77, 0.35); }
#kontakt .btn-outline { margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: var(--paper); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 0.5rem; }
.footer-head { font-weight: 600; margin: 0 0 0.5rem; color: var(--brass); }
.footer a { color: rgba(248, 244, 237, 0.85); }
.footer-note { margin-top: 2.5rem; font-size: 0.8rem; color: var(--smoke); }

/* ---------- Flash ---------- */
.flash-wrap { position: fixed; top: 70px; left: 0; right: 0; z-index: 100; display: grid; place-items: center; gap: 0.5rem; pointer-events: none; }
.flash {
    padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 500;
    box-shadow: var(--shadow); transition: opacity 0.4s; max-width: 92%;
}
.flash-success { background: var(--green); color: #fff; }
.flash-error { background: var(--brick); color: #fff; }

/* ---------- Formulare / Auth ---------- */
.auth-section { min-height: 70vh; display: grid; align-items: center; }
.auth-box { max-width: 440px; }
.form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 500; font-size: 0.92rem; }
.form input, .form textarea {
    font: inherit; padding: 0.7rem 0.9rem; border-radius: 10px;
    border: 1.5px solid rgba(38, 33, 28, 0.25); background: #fff;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.25); }
.form-error { color: var(--brick); font-size: 0.9rem; margin: 0; }
.auth-switch { margin-top: 1.4rem; }
.auth-privacy { font-size: 0.8rem; }

/* ---------- Stempelheft (App-Screen) ---------- */
.app-mode { background: var(--espresso); }
.app-mode .nav { background: var(--espresso); }
.card-screen { background: var(--espresso); color: var(--paper); min-height: calc(100vh - 64px); padding: 2rem 0 4rem; }
.card-container { max-width: 480px; }
.card-head h1 { font-size: 1.9rem; }
.stamp-card-ui {
    background: var(--espresso-soft); border: 1px solid rgba(201, 162, 77, 0.4);
    border-radius: 22px; padding: 1.5rem; margin-top: 1.2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.stamp-card-ui.is-full { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35); }
.stamp-card-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 1.2rem; }
.stamp-counter { color: var(--brass); font-family: var(--font-display); font-size: 1.3rem; }
.stamp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; }
.stamp-slot {
    aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
    border: 2px dashed rgba(248, 244, 237, 0.3);
}
.stamp-slot .stamp-num { color: var(--smoke); font-size: 0.9rem; }
.stamp-slot .stamp-gift { font-size: 1.3rem; filter: grayscale(0.4); }
.stamp-slot.is-stamped {
    border: 2.5px solid var(--brass);
    background: radial-gradient(circle, rgba(201, 162, 77, 0.18), transparent 70%);
    animation: stampIn 0.35s ease;
}
.stamp-mark { color: var(--brass); font-size: 1.4rem; transform: rotate(-12deg); display: block; }
@keyframes stampIn {
    0% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.card-progress-text { margin: 1.2rem 0 0; color: rgba(248, 244, 237, 0.8); }
.card-full-banner {
    margin-top: 1.2rem; padding: 1rem; border-radius: 14px;
    background: linear-gradient(135deg, var(--brass), var(--brass-soft));
    color: var(--espresso); font-weight: 600;
}
.customer-code-box { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(248, 244, 237, 0.15); }
.customer-code-box p { font-size: 0.85rem; color: var(--smoke); margin: 0 0 0.5rem; }
.customer-code {
    font-family: var(--font-display); font-size: 2.4rem; letter-spacing: 0.12em;
    text-align: center; color: var(--brass-soft);
    background: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 0.6rem;
}
.card-history { margin-top: 1rem; }
.card-offers { margin-top: 2.2rem; }
.card-offers h2 { font-size: 1.4rem; }
.offer-card-app { margin-top: 0.9rem; background: var(--espresso-soft); }
.card-meta { margin-top: 2rem; font-size: 0.88rem; }

/* ---------- PWA-Install-Button ---------- */
.pwa-install-btn {
    position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
    z-index: 90; padding: 0.85rem 1.6rem; border-radius: 999px; border: none;
    background: var(--brass); color: var(--espresso); font-family: var(--font-body);
    font-weight: 700; font-size: 0.95rem; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ---------- Adminbereich ---------- */
.admin-body { background: var(--paper-dim); }
.admin-topbar { background: var(--espresso); color: var(--paper); }
.admin-topbar-inner {
    width: min(1100px, 94%); margin: 0 auto; padding: 0.65rem 0;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
}
.admin-nav { display: flex; align-items: center; gap: 1.2rem; font-size: 0.92rem; flex-wrap: wrap; }
.admin-nav a { text-decoration: none; opacity: 0.85; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.admin-nav a:hover { opacity: 1; }
.admin-nav a.is-active { color: var(--brass); border-bottom-color: var(--brass); opacity: 1; }
.admin-main { padding: 2rem 0 4rem; }
.admin-main h1 { font-size: 1.9rem; }
.flash-wrap-admin { top: 60px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.4rem 0 2rem; }
.stat-card {
    background: #fff; border-radius: var(--radius); padding: 1.2rem;
    box-shadow: var(--shadow); display: grid; gap: 0.2rem;
    border-top: 4px solid var(--brass);
}
.stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; }
.stat-label { font-size: 0.82rem; color: var(--smoke); text-transform: uppercase; letter-spacing: 0.06em; }

.admin-panel { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); margin-bottom: 1.6rem; }
.admin-panel h2 { font-size: 1.25rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.admin-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--smoke); padding: 0.6rem 0.7rem; border-bottom: 2px solid var(--paper-dim); }
.admin-table td { padding: 0.7rem; border-bottom: 1px solid var(--paper-dim); vertical-align: middle; }
.admin-table code { background: var(--paper-dim); padding: 0.15rem 0.45rem; border-radius: 6px; font-size: 0.88rem; }
.row-full td { background: rgba(201, 162, 77, 0.1); }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline-block; margin-right: 0.3rem; }

.search-bar { display: flex; gap: 0.6rem; margin: 1.2rem 0 1.6rem; flex-wrap: wrap; }
.search-bar input {
    flex: 1; min-width: 240px; font: inherit; padding: 0.65rem 1rem;
    border-radius: 999px; border: 1.5px solid rgba(38, 33, 28, 0.25); background: #fff;
}
.search-bar input:focus { outline: none; border-color: var(--brass); }

.mini-progress { width: 90px; height: 7px; background: var(--paper-dim); border-radius: 99px; overflow: hidden; margin-bottom: 0.25rem; }
.mini-progress-bar { height: 100%; background: linear-gradient(90deg, var(--brass), var(--brass-soft)); border-radius: 99px; }

.tag { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--paper-dim); color: var(--smoke); }
.tag-gold { background: rgba(201, 162, 77, 0.25); color: #8a6a25; }
.tag-green { background: rgba(62, 122, 78, 0.18); color: var(--green); }

.form-offer { max-width: 560px; }
.pager { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.pager-btn {
    padding: 0.4rem 1rem; border-radius: 999px; text-decoration: none;
    background: #fff; box-shadow: var(--shadow); font-size: 0.88rem; font-weight: 600;
}
.pager-btn.is-disabled { opacity: 0.4; }

/* ---------- Legal ---------- */
.legal-section { padding-top: 3rem; }
.legal-box { max-width: 720px; }
.legal-box h2 { font-size: 1.2rem; margin-top: 1.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero-grid, .split { grid-template-columns: 1fr; }
    .hero-badge-wrap { order: -1; padding-top: 1rem; }
    .price-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--espresso); flex-direction: column; align-items: flex-start;
        padding: 1.2rem 5%; gap: 1rem; border-top: 1px solid rgba(201, 162, 77, 0.3);
    }
    .nav-links.is-open { display: flex; }
    .admin-table { display: block; overflow-x: auto; }
}

/* ============================================================
   Update v2: Terminbuchung + Admin-Kalender
   ============================================================ */

/* ---------- Buchungsseite ---------- */
.booking-section { min-height: 70vh; }
.booking-box { max-width: 560px; }
.booking-form select {
    font: inherit; padding: 0.7rem 0.9rem; border-radius: 10px;
    border: 1.5px solid rgba(38, 33, 28, 0.25); background: #fff;
}
.booking-form select:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.25); }
.slot-area { display: grid; gap: 0.4rem; }
.slot-label { font-weight: 500; font-size: 0.92rem; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 2.6rem; }
.slot-btn {
    font: inherit; font-weight: 600; font-size: 0.9rem;
    padding: 0.5rem 0.95rem; border-radius: 999px; cursor: pointer;
    background: #fff; border: 1.5px solid rgba(38, 33, 28, 0.25);
    transition: border-color 0.12s, background 0.12s, transform 0.12s;
}
.slot-btn:hover { border-color: var(--brass); transform: translateY(-1px); }
.slot-btn.is-selected { background: var(--espresso); color: var(--brass-soft); border-color: var(--espresso); }
.slot-btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- Termine im Stempelheft ---------- */
.card-appointments { margin-top: 2.2rem; }
.card-appts-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.card-appts-head h2 { font-size: 1.4rem; margin: 0; }
.appt-row {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: var(--espresso-soft); border: 1px solid rgba(201, 162, 77, 0.3);
    border-radius: 14px; padding: 0.9rem 1.1rem; margin-bottom: 0.7rem;
}

/* ---------- Admin-Kalender ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.cal-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cal-panel { overflow-x: auto; padding: 1rem; }
.cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 760px; font-size: 0.82rem; }
.cal-table th { padding: 0.5rem 0.3rem; text-align: center; border-bottom: 2px solid var(--paper-dim); }
.cal-table th.cal-today { background: rgba(201, 162, 77, 0.18); border-radius: 8px 8px 0 0; }
.cal-table th.cal-closed-col { opacity: 0.45; }
.cal-time-col { width: 52px; text-align: right; padding-right: 0.5rem !important; color: var(--smoke); font-size: 0.75rem; white-space: nowrap; }
.cal-cell {
    border: 1px solid var(--paper-dim); height: 44px; vertical-align: top;
    padding: 0.2rem 0.35rem; position: relative;
}
.cal-cell.cal-closed { background: repeating-linear-gradient(45deg, var(--paper-dim), var(--paper-dim) 6px, #fff 6px, #fff 12px); }
.cal-cell.cal-appt {
    background: rgba(62, 122, 78, 0.14); border-left: 3px solid var(--green);
}
.cal-cell.cal-block {
    background: rgba(163, 64, 47, 0.12); border-left: 3px solid var(--brick);
}
.cal-cell.cal-cont { border-top: none; }
.cal-cell strong { display: block; font-size: 0.8rem; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-cell .small { display: block; font-size: 0.72rem; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-x {
    position: absolute; top: 2px; right: 2px; border: none; cursor: pointer;
    background: rgba(255, 255, 255, 0.85); border-radius: 50%;
    width: 18px; height: 18px; line-height: 1; font-size: 0.65rem; color: var(--brick);
}
.cal-x:hover { background: var(--brick); color: #fff; }

/* ---------- Block-Formular ---------- */
.block-form-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.block-form-row label { flex: 1; min-width: 140px; }
.block-form-row button { height: fit-content; }

/* ============================================================
   Update v3: Verfügbarkeits-Kalender auf der Buchungsseite
   ============================================================ */
.avail-cal {
    background: #fff; border-radius: var(--radius); padding: 1rem;
    box-shadow: var(--shadow); border-top: 4px solid var(--brass);
}
.avail-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.avail-cal-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.avail-nav {
    font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer;
    width: 2.2rem; height: 2.2rem; border-radius: 50%;
    border: 1.5px solid rgba(38, 33, 28, 0.25); background: #fff;
}
.avail-nav:hover:not(:disabled) { border-color: var(--brass); color: var(--brass); }
.avail-nav:disabled { opacity: 0.3; cursor: default; }

.avail-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.avail-grid-head { margin-bottom: 4px; }
.avail-grid-head span {
    text-align: center; font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--smoke);
}
.avail-loading { grid-column: 1 / -1; text-align: center; }

.avail-day {
    font: inherit; aspect-ratio: 1; border-radius: 10px; cursor: pointer;
    border: 1.5px solid transparent; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1px; padding: 2px;
    transition: transform 0.1s, border-color 0.1s;
}
.avail-day:not(:disabled):hover { transform: translateY(-1px); border-color: var(--espresso); }
.avail-num { font-weight: 600; font-size: 0.95rem; line-height: 1; }
.avail-state { font-size: 0.58rem; font-weight: 600; line-height: 1; }

.avail-day.is-free { background: rgba(62, 122, 78, 0.16); color: #2c5a39; }
.avail-day.is-busy { background: rgba(201, 162, 77, 0.28); color: #7a5d1e; }
.avail-day.is-full { background: rgba(163, 64, 47, 0.16); color: var(--brick); cursor: not-allowed; }
.avail-day.is-closed { background: var(--paper-dim); color: var(--smoke); cursor: not-allowed; }
.avail-day.is-past { background: transparent; color: rgba(140, 131, 120, 0.45); cursor: default; }
.avail-day.is-today .avail-num { text-decoration: underline; text-underline-offset: 3px; }
.avail-day.is-selected {
    border-color: var(--espresso); background: var(--espresso);
    color: var(--brass-soft) !important;
}
.avail-day:focus-visible { outline: 3px solid var(--brass); outline-offset: 1px; }

.avail-legend {
    display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.8rem;
    font-size: 0.78rem; color: var(--smoke);
}
.avail-legend .dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    margin-right: 4px; vertical-align: baseline;
}
.dot-free { background: rgba(62, 122, 78, 0.7); }
.dot-busy { background: var(--brass); }
.dot-full { background: var(--brick); }
.dot-closed { background: var(--paper-dim); border: 1px solid var(--smoke); }

/* ============================================================
   Update v4: echtes Salon-Logo
   ============================================================ */
.stamp-core-logo {
    border: none;
    transform: rotate(-6deg);
    width: 62%;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.stamp-core-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand img { background: #fff; }
