/* Path: /opt/booking/app/public/assets/css/style.css */

/* -------------------------------------------------------
   GLOBALS / ROOT-VARIABLES
------------------------------------------------------- */
:root {
    color-scheme: dark;
    --bg: #050608;
    --bg-elevated: #020617;
    --bg-card: #111827;
    --bg-card-soft: #020617;
    --accent: #22c55e;
    --accent-soft: #22c55e33;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: #1e293b;
}

/* -------------------------------------------------------
   RESET / BASICS
------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
    color: var(--text-main);
    line-height: 1.5;
}

.shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

/* kleine Helfer */
.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.small {
    font-size: 0.8rem;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }

/* -------------------------------------------------------
   HEADER / NAV
------------------------------------------------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
}

header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.15rem;
}

nav a:hover {
    color: var(--text-main);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.18s ease-out;
}

nav a:hover::after {
    width: 100%;
}

/* Header auf schmalen Screens stapeln */
@media (max-width: 720px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    nav {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}
/* -------------------------------------------------------
   UTIL: Button-Varianten (semantisch)
------------------------------------------------------- */
.btn-primary{
  /* absichtlich leer: .btn liefert das Styling bereits */
}

/* -------------------------------------------------------
   UTIL: Card Title + Divider (für Views ohne Inline-Styles)
------------------------------------------------------- */
.card-title{
  margin: 0 0 0.65rem 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card-divider{
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 10px 0;
}

/* Booking Success: Meta-Lines (ersetzt line-height inline) */
.booking-success-meta{
  line-height: 1.65;
}

/* -------------------------------------------------------
   CARDS (Services + Booking Summary)
------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}

/* Service Cover */
.card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.25s ease-out;
}

.card-media:hover img {
    transform: scale(1.06);
}

.card-media-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.55);
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-media-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-card-soft);
}

.card-media-initial {
    font-size: 3rem;
    opacity: 0.4;
}

/* Card Body */
.card-body {
    padding: 1.25rem 1.4rem 1.4rem;
}

.card-body h2 {
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.price {
    font-weight: 700;
    margin-top: 0.3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    background: var(--accent);
    color: #020617;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, filter 0.08s ease-out;
}
.btn.btn-danger {
    background: #ef4444;
    color: #0b1020;
}

.btn.btn-danger:hover {
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.35);
    filter: brightness(1.05);
}

.btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* -------------------------------------------------------
   BOOKING SCREEN – COVER IMAGE
------------------------------------------------------- */
.booking-cover {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.booking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Cover */
@media (max-width: 768px) {
    .booking-cover {
        height: 200px;
    }
}

/* -------------------------------------------------------
   BOOKING LAYOUT & FORM
------------------------------------------------------- */
.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 1.75rem;
    margin-top: 1.5rem;
    align-items: flex-start;
}

/* auf kleineren Screens untereinander */
@media (max-width: 960px) {
    .booking-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.booking-summary {
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
}

.booking-summary .card-body {
    padding-top: 1rem;
}

/* Formular-Card */
.booking-form {
    background: var(--bg-card);
    padding: 1.6rem 1.5rem 1.7rem;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}

.booking-form h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Feldzeilen */
.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field-row > div {
    flex: 1 1 0;
    min-width: 0;
}

/* Labels & Inputs */
.booking-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.booking-form input,
.booking-form textarea,
.booking-form select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out;
}
/* Checkboxen im Formular NICHT wie Textinputs behandeln */
.booking-form input[type="checkbox"]{
  width: auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  border-radius: 0;
  accent-color: var(--accent);
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5);
    background: #020617;
}

.booking-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* -------------------------------------------------------
   SEXY PRICE BADGE 😏
------------------------------------------------------- */
.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #22c55e33, transparent 60%),
                linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
    margin-top: 1rem;
}

.price-tag-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbf7d0;
}

.price-tag-value {
    background: rgba(255,255,255,0.15);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
}

/* -------------------------------------------------------
   ADMIN TABLES / PILL STATUS
------------------------------------------------------- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.75rem;
    font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #111827;
}

.admin-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
}

.admin-thumb {
    max-width: 72px;
    border-radius: 10px;
}


/* -------------------------------------------------------
   ADMIN TABLES / PILL STATUS
------------------------------------------------------- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.75rem;
    font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #111827;
}

.admin-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
}

.admin-thumb {
    max-width: 72px;
    border-radius: 10px;
}

/* Status-Pills (zentral, ~+30%) */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.20rem 0.78rem;
    border-radius: 999px;
    font-size: 0.99rem;
    text-transform: lowercase;
    line-height: 1.15;
}

.pill span {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

/* Legacy / Meta (gruen) */
.pill-on {
    background: rgba(34, 197, 94, 0.10);
    color: #bbf7d0;
}
.pill-on span { background: #22c55e; }

/* Legacy Off (grau) */
.pill-off {
    background: rgba(148, 163, 184, 0.15);
    color: #e5e7eb;
}
.pill-off span { background: #9ca3af; }

/* Status */
.pill-status-confirmed {
    background: rgba(34, 197, 94, 0.10);
    color: #bbf7d0;
}
.pill-status-pending {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
}
.pill-status-cancelled {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}
.pill-status-paycheck{
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

/* -------------------------------------------------------
   LIGHTBOX
------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lightbox-inner img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 18px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #1f2937;
    color: var(--text-main);
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* -------------------------------------------------------
   BOOKING CALENDAR (flatpickr) – RESPONSIVE
------------------------------------------------------- */

/* Datum-Feld klickbar machen */
.booking-form #booking_date.flatpickr-input[readonly] {
    cursor: pointer;
}

/* Grundlayout des Kalenders – Container */
.booking-form .flatpickr-calendar,
.booking-form .dungeon-calendar {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    color: var(--text-main) !important;
    margin-top: 0.6rem;
    border-radius: 16px !important;
    padding: 0.75rem 0.8rem 0.9rem !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box;
    overflow: visible !important;
}

/* innere Container */
.booking-form .flatpickr-calendar .flatpickr-innerContainer,
.booking-form .flatpickr-weekdays,
.booking-form .flatpickr-weekdays .flatpickr-weekdaycontainer {
    width: 100% !important;
    max-width: 100% !important;
}

/* Monatskopf + Wochentage */
.booking-form .flatpickr-months .flatpickr-month,
.booking-form .flatpickr-weekdays {
    background: transparent !important;
    color: var(--text-main) !important;
}

.booking-form .flatpickr-months {
    display: flex !important;
    justify-content: center;
}

.booking-form .flatpickr-current-month .cur-month,
.booking-form .flatpickr-current-month .numInputWrapper input {
    color: var(--text-main) !important;
    font-weight: 600;
}

.booking-form span.flatpickr-weekday {
    color: #9ca3af !important;
    font-weight: 500;
}

/* Wochen-Grid Container */
.booking-form .flatpickr-weekdays .flatpickr-weekdaycontainer {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    justify-items: center;
}

/* Tagebereich */
.booking-form .flatpickr-days {
    width: 100% !important;
    max-width: 100% !important;
}

/* Day-Container → echtes Grid über 7 Spalten, skaliert mit Breite */
.booking-form .flatpickr-days .dayContainer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.28rem 0.28rem; /* Zeilen- / Spaltenabstand */
    justify-items: center;
}

/* Tage → nehmen immer 1/7 der Breite, bleiben Kreise */
.booking-form .flatpickr-day {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(148, 163, 184, 0.5) !important;
    color: #e5e7eb !important;
    background: transparent !important;
    font-size: 0.9rem !important;
}

.booking-form .flatpickr-day:hover {
    background: rgba(148, 163, 184, 0.25) !important;
}

/* Nur Tage des aktuellen Monats sichtbar, aber Platz bleibt im Grid */
.booking-form .flatpickr-day.prevMonthDay,
.booking-form .flatpickr-day.nextMonthDay {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ausgewählt */
.booking-form .flatpickr-day.selected,
.booking-form .flatpickr-day.startRange,
.booking-form .flatpickr-day.endRange {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #020617 !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.7);
}

/* Heute */
.booking-form .flatpickr-day.today:not(.selected) {
    border-color: #38bdf8 !important;
}

/* freie Tage */
.booking-form .flatpickr-day.day-has-free:not(.selected):not(.flatpickr-disabled) {
    border-color: rgba(34, 197, 94, 0.9) !important;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

/* voll belegt */
.booking-form .flatpickr-day.day-full-booked {
    border-color: #4b5563 !important;
    background: #020617 !important;
    color: #4b5563 !important;
    position: relative;
}

.booking-form .flatpickr-day.day-full-booked::after {
    content: "×";
    position: absolute;
    right: 4px;
    bottom: 2px;
    font-size: 0.7rem;
    color: #f97373;
}

/* Kalender über Datum- und Uhrzeit-Spalte hinweg
   → Standard: über beide Spalten (Tablet + Desktop) */
.booking-form .field-row:nth-of-type(2) {
    position: relative;
    align-items: flex-start;
}
/* Kalender soll normale Breite nutzen */
.booking-form .field-row:nth-of-type(2) .flatpickr-calendar,
.booking-form .field-row:nth-of-type(2) .dungeon-calendar {
    width: 100% !important;
    max-width: 100% !important;
}

/* -------------------------------------------------------
   MOBILE (PHONE) – BIS 640px
------------------------------------------------------- */
@media (max-width: 640px) {

    /* Datum & Uhrzeit untereinander */
    .booking-form .field-row:nth-of-type(2) {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-form .field-row:nth-of-type(2) > div {
        width: 100%;
    }

    /* Kalender volle Formularbreite */
    .booking-form .field-row:nth-of-type(2) .flatpickr-calendar,
    .booking-form .field-row:nth-of-type(2) .dungeon-calendar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.6rem !important;
    }

    /* ein Monat, kompakt */
    .booking-form span.flatpickr-weekday {
        font-size: 0.78rem !important;
    }

    .booking-form .flatpickr-days .dayContainer {
        gap: 0.22rem 0.22rem !important;
    }

    .booking-form .flatpickr-day {
        font-size: 0.8rem !important;
    }
}

/* -------------------------------------------------------
   TABLET – 641px bis 1024px
------------------------------------------------------- */
@media (min-width: 641px) and (max-width: 1024px) {

    .booking-form .flatpickr-calendar,
    .booking-form .dungeon-calendar {
        padding: 0.7rem 0.7rem 0.9rem !important;
    }

    .booking-form .flatpickr-days .dayContainer {
        gap: 0.26rem 0.26rem !important;
    }

    .booking-form .flatpickr-day {
        font-size: 0.9rem !important;
    }
}

/* -------------------------------------------------------
   DESKTOP – AB 1025px
------------------------------------------------------- */
@media (min-width: 1025px) {

    .booking-form .flatpickr-calendar,
    .booking-form .dungeon-calendar {
        padding: 0.7rem 0.6rem 0.9rem !important;
    }

    .booking-form .flatpickr-days .dayContainer {
        gap: 0.3rem 0.3rem !important;
    }

    .booking-form .flatpickr-day {
        font-size: 0.95rem !important;
    }
}
/* -------------------------------------------------------
   Nur auf DESKTOP zwei Monate anzeigen
   → Mobile & Tablet (bis 1024px): 1 Monat
------------------------------------------------------- */
@media (max-width: 1024px) {

    /* zweiten Monatskopf ausblenden */
    .booking-form .flatpickr-months .flatpickr-month:nth-of-type(2) {
        display: none !important;
    }

    /* zweiten Tage-Container (2. Monat) ausblenden */
    .booking-form .flatpickr-days .dayContainer:nth-of-type(2) {
        display: none !important;
    }
}
.timeslot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.timeslot-pill {
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease-out, border-color 0.15s ease-out, transform 0.1s ease-out;
}

.timeslot-pill:hover {
    transform: translateY(-1px);
}

.timeslot-pill.active {
    background: var(--accent);
    color: #020617;
}
/* =========================================
   ADMIN LAYOUT
========================================= */
.admin-body {
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
    color: var(--text-main);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    padding: 1.5rem 1.25rem;
    background: #020617;
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
}

.admin-logo-title {
    font-weight: 600;
}

.admin-logo-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
}

.admin-nav-link:hover {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-main);
}

.admin-nav-icon {
    width: 1.3rem;
    text-align: center;
}

.admin-sidebar-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-main {
    flex: 1;
    padding: 1.5rem 2rem;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.admin-topbar h1 {
    font-size: 1.4rem;
}

.admin-topbar-pill {
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    background: rgba(148, 163, 184, 0.15);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-content {
    display: block;
}

/* Dashboard */
.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.admin-stat-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-subtle);
}

.admin-stat-span2 {
    grid-column: span 2;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-stat-value {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.admin-dashboard-row .admin-panel {
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

/* -------------------------------------------------------
   LEGAL PAGES / FOOTER
------------------------------------------------------- */

.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.site-footer-nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text-muted);
}

.site-footer-nav a:hover {
    color: var(--accent);
}

.legal-page h1 {
    margin-bottom: 1rem;
}

.legal-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-content h2,
.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 0.6rem;
}

.monospace-textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}
/* =========================================
   ADMIN FORMS – INPUTS / SELECTS / TEXTAREAS
   (Nur Admin, Booking bleibt unberührt)
========================================= */

.admin-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out;
}

/* Focus */
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

/* Placeholder */
.admin-form input::placeholder,
.admin-form textarea::placeholder {
    color: rgba(148, 163, 184, 0.65);
}

/* Textarea */
.admin-form textarea {
    resize: vertical;
    min-height: 90px;
}

/* Select – nicer arrow + remove default styling */
.admin-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding-right: 2.4rem;
    background-image: linear-gradient(45deg, transparent 50%, rgba(148,163,184,.9) 50%),
                      linear-gradient(135deg, rgba(148,163,184,.9) 50%, transparent 50%);
    background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

/* Number inputs – remove ugly spinners (optional, looks cleaner) */
.admin-form input[type="number"]::-webkit-outer-spin-button,
.admin-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.admin-form input[type="number"] {
    -moz-appearance: textfield;
}

/* Field rows in Admin (your booking-form already has it, this just polishes) */
.admin-form .field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-form .field-row > div {
    flex: 1 1 240px;
    min-width: 220px;
}
/* Admin: Feld soll volle Breite nehmen (z.B. Gutschein, Notizen) */
.admin-form .field-full{
    flex: 1 1 100%;
    min-width: 220px;
}
.admin-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
/* Admin: Readonly Input (z.B. Gutscheincode) */
.admin-form .input-readonly{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(245,158,11,.35);
    color: #fbbf24;
}

/* Buttons inside admin forms spacing */
.admin-form .btn {
    margin-top: 0;
}
/* =========================================
   QUICK WINS – ADMIN TABLE POLISH
========================================= */

/* 1) Sticky Header für Admin-Tabellen */
.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(2, 6, 23, 0.92); /* dark glass */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
/* 2) Zebra + Hover für bessere Lesbarkeit */
.admin-table tbody tr:nth-child(odd) td {
  background: rgba(148, 163, 184, 0.03);
}

.admin-table tbody tr:hover td {
  background: rgba(34, 197, 94, 0.06);
}

/* kleine Abstände/Typografie polieren */
.admin-table td,
.admin-table th {
  padding: 0.65rem 0.75rem; /* etwas luftiger */
}

.admin-table td {
  vertical-align: middle;
}
.admin-table td.actions {
  white-space: nowrap;
}
.admin-table td.actions .btn {
  padding: 0.45rem 1.05rem;
  font-size: 0.9rem;
}
/* -------------------------------------------------------
   BRAND / LOGO
------------------------------------------------------- */
.brand-stack {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-icon img {
    height: 42px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ff5a1f; /* exakt dein Orange */
    letter-spacing: 0.02em;
}

.brand-subline {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .brand-icon img { height: 34px; }
    .brand-name { font-size: 1.15rem; }
}

/* =======================================================
   ADD-ON: PAYMENTS PAGE (ADMIN) – Grid/Cards/Flash/Checkbox
   Buttons bleiben wie sie sind ✅
======================================================= */

.admin-grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px){
  .admin-grid-2{ grid-template-columns: 1fr; }
}

.admin-card{
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

.admin-span-2{
  grid-column: span 2;
}
@media (max-width: 900px){
  .admin-span-2{ grid-column: auto; }
}

.admin-card-title{
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 .65rem 0;
  letter-spacing: -0.01em;
}

.admin-label{
  display: block;
  margin: .65rem 0 .35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-input-row{
  margin-top: .35rem;
}
.admin-input-row .input{
  max-width: 320px;
}

.admin-check{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  padding: .55rem .65rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(2, 6, 23, 0.35);
}

.admin-check:hover{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.06);
}

.admin-check input[type="checkbox"]{
  margin-top: 3px;
  transform: scale(1.08);
  accent-color: var(--accent);
}

.admin-flash{
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.55);
  color: var(--text-main);
}

.admin-flash-success{
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.10);
  color: #bbf7d0;
}

/* =========================================
   BOOKING – PAYMENT CHOICE + PAYPAL POLISH
========================================= */

.pay-choice { margin-top: 10px; }
.pay-choice-hint { margin: 0 0 8px 0; }

.pay-choice-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pay-choice-buttons .btn{
  min-width: 180px;
}

.pay-methods{ margin-top: 12px; }

.pay-card--paypal .pay-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.pay-card--paypal .pay-title{ margin:0; }

.pay-card--paypal .pay-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--border-subtle);
  background: rgba(255,255,255,0.04);
  font-size:12px;
  color: var(--text-main);
  white-space:nowrap;
}

.pay-card--paypal .pay-desc{ margin-top: 8px; }
.pay-card--paypal .pay-hint{ margin-top: 10px; }

.pay-card--paypal .pp-row{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.pay-card--paypal .pp-meta{
  padding-top:6px;
  border-top:1px dashed rgba(255,255,255,0.12);
}

.pay-card--paypal .pp-meta-label{
  display:block;
  margin-bottom: 2px;
}

.pay-card--paypal .pp-shell{
  margin-top: 12px;
  border:1px solid var(--border-subtle);
  background: rgba(255,255,255,0.03);
  border-radius:14px;
  padding:14px;
}

.pay-card--paypal .pp-inner{
  background:#fff;
  border-radius:12px;
  padding:12px;
  overflow:hidden;
  transform: translateZ(0);
}

.pay-card--paypal #paypal-button-container{
  max-width: 420px;
  margin: 0 auto;
}

.pay-card--paypal .pp-note{ display:block; margin-top: 10px; }

.pay-card--paypal .pp-fallback{ margin-top: 12px; }
.pay-card--paypal .pp-fallback-text{ margin-top: 8px; }

.pay-card--paypal .pp-fallback-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

.pay-card--paypal .pp-fallback-note{
  display:block;
  margin-top: 8px;
}

.pay-card--paypal .pay-error{ margin-top: 10px; }
.pay-card--paypal .pay-missing{ margin-top: 12px; }


@media (max-width: 520px){
  .pay-choice-buttons .btn{
    min-width: 0;
    width: 100%;
  }
  .pay-card--paypal #paypal-button-container{
    max-width: 100%;
  }
}

/* =========================================
   ADMIN DASHBOARD – UPCOMING TABLE
========================================= */
.admin-upcoming-table td.col-when{
  font-weight: 600;
  white-space: nowrap;
}

.admin-upcoming-table td.col-actions{
  text-align: right;
  white-space: nowrap;
}

/* =========================================
   SERVICES LISTING – clamp + actions
========================================= */
.card--service .card-body{
  display:flex;
  flex-direction:column;
  gap: .55rem;
  min-height: 260px;
}

.card-meta{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  margin: .1rem 0 .2rem;
}

.card-desc{
  color: var(--text-main);
  opacity: .95;

  display: -webkit-box;
  -webkit-line-clamp: 6;      /* <- Anzahl Zeilen im Listing */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions{
  margin-top:auto;            /* <- CTA immer unten */
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Ghost Button */
.btn-ghost{
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.btn-ghost:hover{
  box-shadow: 0 0 18px rgba(148, 163, 184, 0.18);
}

/* =========================================
   SERVICE DETAIL PAGE – RICHTIGES LAYOUT
========================================= */
.service-detail{
  margin-top: 1rem;
}

/* Hero */
.service-hero{
  height: 360px;
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  border: 1px solid rgba(148,163,184,.10);
  background: rgba(2,6,23,.35);
}
.service-hero img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Head */
.service-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1.25rem;
  margin-top: 1.1rem;
  margin-bottom: 1.25rem;
}
.service-detail-head h1{
  margin: 0 0 .35rem 0;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.service-badges{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  margin-bottom:.55rem;
}
.service-teaser{
  margin-top:.4rem;
  max-width: 78ch;
}

/* CTA Block */
.service-cta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: .75rem;
  min-width: 220px;
}

/* Body – cards untereinander, sauberer Flow */
.service-detail-body{
  display:block;
}

/* Long text */
.service-long{
  line-height: 1.75;
}
.service-long p{ margin: 0 0 .65rem 0; }
.service-long ul, .service-long ol{ margin: .4rem 0 .6rem 1.2rem; }
.service-long li{ margin: .2rem 0; }

/* Gallery */
.service-gallery{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .85rem;
}
.service-thumb{
  display:block;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.35);
  transition: transform .12s ease-out, box-shadow .12s ease-out, border-color .12s ease-out;
}
.service-thumb:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(148, 163, 184, 0.16);
  border-color: rgba(34,197,94,.30);
}
.service-thumb img{
  width:100%;
  height:130px;
  object-fit:cover;
  display:block;
}

/* Responsive */
@media (max-width: 900px){
  .service-detail-head{
    flex-direction: column;
  }
  .service-cta{
    justify-content:flex-start;
    min-width: 0;
  }
}
@media (max-width: 768px){
  .service-hero{ height: 220px; }
  .service-gallery{ grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .service-thumb img{ height: 110px; }
}
/* =======================================================
   CTA-Upgrade – Service Cards
======================================================= */

.card--service .card-actions {
    margin-top: 1rem;
    display: flex;
}

.card--service .card-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-weight: 600;
}

/* Starker Call-to-Action */
.btn-cta.btn-cta-details {
    position: relative;
    box-shadow:
        0 0 0 1px rgba(34,197,94,0.35),
        0 10px 30px rgba(34,197,94,0.25);
    animation: ctaPulse 2.4s ease-in-out infinite;
}

.btn-cta.btn-cta-details:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(34,197,94,0.6),
        0 16px 40px rgba(34,197,94,0.35);
}

.btn-cta.btn-cta-details:active {
    transform: scale(0.98);
    animation: none;
}

@keyframes ctaPulse {
    0% {
        box-shadow:
            0 0 0 1px rgba(34,197,94,0.25),
            0 10px 30px rgba(34,197,94,0.2);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(34,197,94,0.6),
            0 18px 50px rgba(34,197,94,0.35);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(34,197,94,0.25),
            0 10px 30px rgba(34,197,94,0.2);
    }
/* =======================================================
    }
}
   SERVICE DETAIL SPACING PATCH (2026-01)
   Ziel: bessere Abstaende/Flow auf /services/{id}
======================================================= */

/* Gesamter Detailbereich: etwas mehr Luft */
.service-detail{
  margin-top: 1.25rem;
}

/* Hero: auf Desktop etwas weniger dominant + Abstand darunter */
.service-hero{
  height: 300px;
  margin-bottom: 1.15rem;
}

/* Head: enger zusammen, aber sauberer Abstand nach unten */
.service-detail-head{
  margin-top: 0;
  margin-bottom: 1rem;
  gap: 1rem;
}

/* Titel/Badges: minimal kompakter */
.service-detail-head h1{
  margin: 0 0 .25rem 0;
}

/* CTA Block: nicht so "hochgezogen", sitzt ruhiger neben dem Titel */
.service-cta{
  align-self: flex-start;
  margin-top: .15rem;
}

/* Body: jede Section bekommt konsistent Abstand zur naechsten */
.service-detail-body > * + *{
  margin-top: 1rem;
}

/* Falls Sections als .card gerendert werden: auch hier spacing */
.service-detail-body .card{
  margin-top: 1rem;
}
.service-detail-body .card:first-child{
  margin-top: 0;
}

/* Beschreibung-Text: etwas angenehmer */
.service-long{
  line-height: 1.8;
}
.service-long p{
  margin: 0 0 .75rem 0;
}

/* Gallery: bisschen Luft nach oben, thumbs etwas luftiger */
.service-gallery{
  margin-top: .35rem;
  gap: 1rem;
}

/* Mobile Tweaks */
@media (max-width: 768px){
  .service-hero{
    height: 220px; /* entspricht deinem bisherigen mobile feeling */
    margin-bottom: .95rem;
  }
  .service-detail-body > * + *{
    margin-top: .85rem;
  }
}

/* =======================================================
   SERVICE DETAIL MOBILE PADDING PATCH (2026-01)
   Ziel: mehr Luft links/rechts + Back-Button nicht am Rand
======================================================= */

/* Grundsätzlich: Cards/Sections auf Mobile etwas mehr Padding */
@media (max-width: 480px) {
  /* Falls dein Wrapper so heißt (kommt in deinem Markup vor) */
  .service-detail {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Falls du stattdessen mit container arbeitest */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Back Button: etwas Abstand nach oben + nicht am Rand kleben */
  .service-back {
    margin-top: 12px !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  /* Falls der Back-Button als .btn im Header liegt */
  .service-detail-head .btn,
  .service-detail-head a.btn {
    margin-top: 10px !important;
  }
}

/* --- Service Detail: Pills größer & lesbarer --- */
.service-detail .pill {
  font-size: 0.9rem;        /* vorher ~0.75–0.8 */
  padding: 6px 12px;        /* mehr Luft */
  border-radius: 999px;     /* sauber rund */
  line-height: 1.2;
}

@media (max-width: 480px) {
  .service-detail .pill {
    font-size: 0.95rem;
    padding: 7px 14px;
  }
}

/* --- Service Detail: Pills +30% größer --- */
.service-detail .pill {
  font-size: 1.25rem;      /* vorher ~0.95rem → +31% */
  padding: 9px 18px;       /* vorher 7x14 → +28–30% */
  line-height: 1.2;
}

@media (max-width: 480px) {
  .service-detail .pill {
    font-size: 1.3rem;
    padding: 10px 20px;
  }
}
