@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

:root {
    --primary-color: #f79c00;
    --secondary-color: #1D283D; /* Modernes Dunkelblau statt Schwarz */
    --bg-color: #f4f7fa;
    --white: #ffffff;
    --text-color: #2d3748;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --error-color: #ef4444;
    --success-color: #10b981;
    --container-width: 1100px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    
    /* Glassmorphism & Modern Effects */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(16px);
    --shadow-sm: 0 2px 4px rgba(29, 40, 61, 0.05);
    --shadow-md: 0 8px 20px rgba(29, 40, 61, 0.08);
    --shadow-lg: 0 15px 35px rgba(29, 40, 61, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    
    /* Animations */
    --transition-base: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(247, 156, 0, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(29, 40, 61, 0.03) 0px, transparent 50%);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: relative; /* Nicht mehr sticky */
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 220px;
    display: block;
    transition: var(--transition-base);
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-nav {
        display: none; /* Menü auf Mobil ausblenden */
    }

    .logo img {
        height: 40px;
    }
}

.logo:hover img {
    transform: scale(1.05);
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition-base);
}

.site-nav a:not(.btn):hover {
    color: var(--primary-color);
}

.site-nav a.btn {
    font-weight: 700;
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    text-decoration: none;
    min-width: 160px;
    height: 56px;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e08e00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #2a3a5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background-color: #dc2626;
    color: var(--white) !important;
}

.btn-danger:hover {
    background-color: #b91c1c;
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Hero */
.hero {
    text-align: center;
    padding: 120px 20px; /* Mehr Padding an den Seiten */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin: 40px 0;
    box-shadow: var(--shadow-md);
    animation: fadeIn 1s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
        margin: 20px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--secondary-color);
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 48px;
    color: var(--text-muted);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    border: 1px solid var(--glass-border);
}

.feature:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature h3 {
    margin-bottom: 18px;
    color: var(--secondary-color);
    font-size: 1.6rem;
    font-weight: 700;
}

.feature p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Booking Wizard */
.booking-wizard {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: 60px;
    margin-bottom: 100px;
    border: 1px solid var(--glass-border);
    animation: scaleIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.wizard-steps {
    display: flex;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px;
    gap: 10px;
}

.step {
    flex: 1;
    padding: 18px;
    text-align: center;
    font-weight: 700;
    opacity: 0.7;
    position: relative;
    transition: var(--transition-base);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-md);
}

.step.active {
    opacity: 1;
    background-color: rgba(255,255,255,0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.step.active::after {
    display: none;
}

.wizard-content {
    padding: 60px 40px;
    max-width: 100%;
}

.admin-login-wrapper {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.wizard-pane {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
}

.wizard-pane.active {
    display: block;
}

.wizard-pane h2 {
    margin-bottom: 48px;
    text-align: center;
    font-size: 2.2rem;
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.booking-entry-tabs {
    margin-bottom: 24px;
}

.booking-entry-tabs__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.booking-entry-tabs__button {
    appearance: none;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,249,252,0.98) 100%);
    color: var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    min-height: 88px;
}

.booking-entry-tabs__button:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.booking-entry-tabs__button.is-active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffb13b 100%);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 14px 32px rgba(247, 156, 0, 0.28);
}

.booking-entry-tabs__button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.booking-entry-tabs__button:focus-visible {
    outline: 3px solid rgba(247, 156, 0, 0.35);
    outline-offset: 2px;
}

.booking-entry-tabs__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(19, 41, 75, 0.08);
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.booking-entry-tabs__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.booking-entry-tabs__button.is-active .booking-entry-tabs__icon {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

.booking-entry-tabs__label-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.booking-entry-tabs__label {
    display: block;
    font-size: 1rem;
    line-height: 1.3;
}

.booking-entry-tabs__hint {
    display: block;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--text-muted);
    font-weight: 600;
}

.booking-entry-tabs__button.is-active .booking-entry-tabs__hint {
    color: rgba(255, 255, 255, 0.92);
}

.booking-entry-tabs__panel {
    display: none;
}

.booking-entry-tabs__panel.is-active {
    display: block;
}

.booking-entry-tabs__intro {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 1.02rem;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.staff-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.staff-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.staff-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(247, 156, 0, 0.04);
    box-shadow: 0 0 0 4px rgba(247, 156, 0, 0.15);
    transform: scale(1.02);
}

.staff-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.staff-card.disabled:hover {
    border-color: var(--border-color);
    transform: none;
    box-shadow: var(--shadow-sm);
}

.staff-card.disabled .staff-image {
    filter: grayscale(1);
}

.staff-card.disabled:hover .staff-image {
    transform: none;
}

.staff-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    background-color: #f1f5f9;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.staff-card:hover .staff-image {
    transform: scale(1.08);
}

.staff-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.staff-title {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.staff-unavailable-notice {
    margin: 0 0 10px;
    color: #c62828;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.staff-certs {
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.cert-check {
    color: var(--success-color);
    font-weight: bold;
    flex-shrink: 0;
}

.cert-text {
    line-height: 1.3;
}

.staff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.tag {
    background-color: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.staff-card:hover .tag {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.duration-selection label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--secondary-color);
}

.booking-choice-selection {
    margin-top: 1.5rem;
}

.booking-choice-grid,
.booking-offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.booking-choice-card,
.booking-offer-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-bounce);
    font: inherit;
    color: inherit;
}

.booking-choice-card:hover,
.booking-offer-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.booking-choice-card.selected,
.booking-offer-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(247, 156, 0, 0.04);
    box-shadow: 0 0 0 4px rgba(247, 156, 0, 0.12);
}

.booking-choice-card__badge,
.booking-offer-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fcf2e5;
    color: #a85a00;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.booking-choice-card h3,
.booking-offer-card h3 {
    margin: 0 0 10px 0;
    color: var(--secondary-color);
    font-size: 1.15rem;
}

.booking-choice-card__description,
.booking-offer-card__description {
    margin: 0 0 16px 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.booking-offer-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 0.92rem;
    font-weight: 600;
}

.summary-item {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.summary-item--notice {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Date Selection & Modern Picker */


.date-selection label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--secondary-color);
}

#bookingDate {
    text-align: left;
    padding-left: 18px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231D283D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
    cursor: pointer;
    font-weight: 600;
    border: 2px solid var(--border-color);
    transition: var(--transition-base);
}

#bookingDate::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 45px;
    height: 100%;
    cursor: pointer;
}

#bookingDate:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(247, 156, 0, 0.1);
    outline: none;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 30px;
}

.slots-grid .info,
.loading,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: rgba(29, 40, 61, 0.03);
    border-radius: var(--radius-md);
    color: var(--secondary-color);
    font-weight: 600;
    width: 100%;
    margin: 20px 0;
}

.error-message {
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.wizard-actions {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.wizard-actions .btn {
    min-width: 160px;
}

.wizard-actions:not(:has(.btn-secondary)) {
    justify-content: flex-end;
}

.staff-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.staff-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.staff-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(247, 156, 0, 0.04);
    box-shadow: 0 0 0 4px rgba(247, 156, 0, 0.15);
    transform: scale(1.02);
}

.staff-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.staff-card.disabled:hover {
    border-color: var(--border-color);
    transform: none;
    box-shadow: var(--shadow-sm);
}

.staff-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    background-color: #f1f5f9;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.staff-card:hover .staff-image {
    transform: scale(1.08);
}

.staff-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.staff-title {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.staff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag {
    background-color: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.staff-card:hover .tag {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Slots & Calendar */
.slots-container {
    margin-top: 40px;
}

.date-selector {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 5px 5px 20px 5px;
    margin-bottom: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.date-selector::-webkit-scrollbar {
    display: none;
}

.date-btn {
    flex: 0 0 auto;
    padding: 16px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.date-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-4px);
}

.date-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(247, 156, 0, 0.3);
    transform: translateY(-4px);
}

.date-btn span {
    display: block;
}

.date-btn .day-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    opacity: 0.8;
}

.date-btn .day-number {
    font-size: 1.25rem;
    font-weight: 800;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
}

.slot-btn {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.slot-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.slot-btn.selected {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(29, 40, 61, 0.25);
    transform: scale(1.05);
}

.slot-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: none;
}

/* Forms */
.booking-form {
    margin-top: 40px;
}

.form-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.required-asterisk {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 2px;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    min-width: 0; /* Verhindert, dass Select-Boxen die Breite sprengen */
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: var(--white);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231D283D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 46px;
    line-height: 1.33;
    font-weight: 600;
    cursor: pointer;
}

select.form-control::-ms-expand {
    display: none;
}

select.form-control:disabled {
    cursor: not-allowed;
}

.form-control:disabled {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(247, 156, 0, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.privacy-group {
    margin-top: 20px;
}

.privacy-group .checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 700 !important;
    font-size: 0.95rem;
    color: var(--secondary-color);
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    background-color: var(--white);
    box-shadow: none;
    min-height: 56px;
}


/* Altcha Widget Styling */
.altcha-group {
    margin-bottom: 2rem;
}
.altcha-label {
    margin-bottom: 0 !important;
}

.altcha, altcha-widget {
    --altcha-max-width: 100%;
    --altcha-color-base: var(--white);
    --altcha-color-border: var(--border-color) !important;
    --altcha-border-width: 2px;
    --altcha-border-radius: var(--radius-md);
    --altcha-text-color: var(--text-color);
    --altcha-label-font-weight: 700;
    --altcha-label-color: var(--secondary-color);
    --altcha-button-bg-color: var(--primary-color);
    --altcha-button-text-color: var(--white);
    --altcha-button-border-radius: var(--radius-sm);
    --altcha-focus-color: var(--primary-color);
    display: block;
}

/* Anpassung der inneren Struktur des Widgets an das Design */
altcha-widget::part(container) {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    background-color: var(--white);
    box-shadow: none;
    display: flex;
    align-items: center;
    min-height: 56px; /* Entspricht etwa der Höhe der anderen Inputs */
}

altcha-widget::part(label) {
    font-family: var(--font-family);
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.altcha-checkbox input[type="checkbox"], altcha-widget::part(checkbox) {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 14px 18px;
}

.altcha-checkbox {
    padding: 14px 18px;
}

.altcha-label {
    font-size: 0.95rem;
}

altcha-widget::part(logo) {
    height: 1.5em;
    margin-left: 0.5em;
}


.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 500 !important;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.privacy-group .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.privacy-group .checkbox-label span {
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

body.modal-open {
    overflow: hidden;
}

.booking-loading-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.booking-loading-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.booking-loading-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.booking-loading-modal__dialog {
    position: relative;
    width: min(560px, 100%);
    border-radius: 20px;
    padding: 34px 30px;
    text-align: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.booking-loading-modal__dialog h3 {
    margin: 0 0 10px;
    font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
    color: var(--secondary-color);
}

.booking-loading-modal__dialog p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.booking-loading-modal__spinner {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 4px solid rgba(247, 156, 0, 0.25);
    border-top-color: var(--primary-color);
    animation: bookingSpinner 0.85s linear infinite;
}

@keyframes bookingSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* Confirmation Page */
.confirmation-page {
    margin: 48px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: fadeIn 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.confirmation-hero {
    background: linear-gradient(135deg, rgba(247, 156, 0, 0.12), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(247, 156, 0, 0.25);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.success-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    background-color: rgba(16, 185, 129, 0.14);
    color: var(--success-color);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.confirmation-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(29, 40, 61, 0.08);
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.confirmation-hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
}

.confirmation-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

.confirmation-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.confirmation-card h2 {
    font-size: 1.35rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

.confirmation-card p {
    color: var(--text-muted);
}

.next-steps ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.next-steps li {
    background: rgba(29, 40, 61, 0.04);
    border: 1px solid rgba(29, 40, 61, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-weight: 600;
    color: var(--secondary-color);
}

.meeting-info .btn,
.confirmation-actions .btn {
    width: 100%;
}

.confirmation-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

@media (max-width: 768px) {
    .confirmation-page {
        margin-top: 28px;
        gap: 20px;
    }

    .confirmation-hero {
        padding: 30px 20px;
    }

    .confirmation-hero h1 {
        font-size: 1.75rem;
    }

    .confirmation-hero p,
    .confirmation-card p {
        font-size: 0.98rem;
    }

    .confirmation-card {
        padding: 22px 18px;
        gap: 12px;
    }

    .confirmation-actions {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background: rgba(29, 40, 61, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 25px;
}

.site-footer a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    transition: var(--transition-base);
}

.site-footer a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.admin-layout {
    display: block;
    margin: 40px 0 80px;
    width: 100%;
}

.admin-main {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 28px;
}

.site-nav .admin-top-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 10px;
    transition: var(--transition-base);
}

.site-nav .admin-top-link:hover,
.site-nav .admin-top-link.active {
    background: rgba(247, 156, 0, 0.13);
    color: var(--secondary-color);
}

.admin-header h1 {
    margin: 0 0 8px;
    font-size: 2rem;
    color: var(--secondary-color);
}

.admin-header p {
    margin: 0 0 22px;
    color: var(--text-muted);
}

.admin-alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.admin-alert.success {
    background: rgba(34, 197, 94, 0.14);
    color: #136534;
}

.admin-alert.error {
    background: rgba(220, 53, 69, 0.14);
    color: #a11a2c;
}

.admin-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
}

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

.admin-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.admin-staff-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 14px;
    background: #fbfcff;
    overflow: hidden;
}

.admin-staff-collapse {
    padding: 0;
}

.admin-staff-collapse > summary {
    list-style: none;
    cursor: pointer;
}

.admin-staff-collapse > summary::-webkit-details-marker {
    display: none;
}

.admin-staff-collapse[open] {
    border-color: #d8e0ed;
    box-shadow: var(--shadow-sm);
}

.admin-staff-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    gap: 12px;
    padding: 14px 16px;
}

.admin-staff-body {
    padding: 0 16px 16px;
    border-top: 1px solid #e7edf6;
}

.admin-staff-collapse:not([open]) .admin-staff-body {
    display: none;
}

.admin-staff-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admin-staff-head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.admin-staff-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-staff-badge.is-active {
    background: rgba(34, 197, 94, 0.15);
    color: #136534;
}

.admin-staff-badge.is-inactive {
    background: rgba(148, 163, 184, 0.22);
    color: #334155;
}

.admin-staff-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-move-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-drag-handle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px dashed #c5d2e4;
    background: #f8fbff;
    color: #41506b;
    font-size: 1rem;
    font-weight: 700;
    cursor: grab;
    transition: var(--transition-base);
}

.admin-drag-handle:hover {
    background: #eef3f9;
    border-color: #aabbd3;
}

.admin-drag-handle:active {
    cursor: grabbing;
}

.admin-move-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #f7f9fc;
    color: #41506b;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
}

.admin-move-btn:hover {
    border-color: #cbd5e1;
    background: #eef3f9;
}

.admin-move-btn:focus-visible {
    outline: 2px solid rgba(247, 156, 0, 0.35);
    outline-offset: 2px;
}

.admin-delete-btn {
    min-width: auto;
    height: 42px;
    padding: 10px 14px;
    border-radius: 10px;
    gap: 8px;
}

.admin-delete-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.admin-staff-card.is-dragging {
    opacity: 0.6;
    box-shadow: var(--shadow-lg);
}

.admin-week-grid,
.admin-rules-grid {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.admin-week-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.admin-rules-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.admin-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-switch-slider {
    width: 56px;
    height: 32px;
    border-radius: 999px;
    background: #e7ecf4;
    border: 1px solid #d2dbea;
    position: relative;
    transition: var(--transition-base);
    box-shadow: inset 0 1px 2px rgba(29, 40, 61, 0.12);
}

.admin-switch-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 3px 8px rgba(29, 40, 61, 0.22);
    transition: var(--transition-base);
}

.admin-switch input:checked + .admin-switch-slider {
    background: linear-gradient(135deg, #2ac36a, #22a75a);
    border-color: #1e9b52;
}

.admin-switch input:checked + .admin-switch-slider::before {
    transform: translateX(24px);
}

.admin-switch-label {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #e9edf3;
}

.admin-table th a {
    color: var(--secondary-color);
    text-decoration: none;
}

.admin-table th a:hover {
    text-decoration: underline;
}

.admin-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-status.ok {
    background: rgba(34, 197, 94, 0.15);
    color: #136534;
}

.admin-status.fail {
    background: rgba(220, 53, 69, 0.15);
    color: #a11a2c;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 60px 20px; margin: 20px 0; }
    .hero h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero p { font-size: 1.1rem; }
    
    .site-header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .site-nav ul {
        gap: 15px;
    }
    
    .wizard-content { padding: 30px 15px; }
    .admin-login-wrapper { width: 100%; }
    .wizard-steps { 
        flex-direction: column; 
        gap: 5px;
        padding: 10px;
    }
    .step { 
        width: 100%;
        padding: 10px; 
        font-size: 0.85rem;
        border-radius: var(--radius-sm);
    }
    .step::after { display: none; }
    
    .wizard-pane h2 { font-size: 1.6rem; margin-bottom: 20px; }
    .booking-entry-tabs__nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .booking-entry-tabs__button {
        width: 100%;
        min-height: 0;
        padding: 16px 18px;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .slot-btn {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
        gap: 20px;
    }
    
    /* Touch Targets */
    .btn, .slot-btn {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form-control {
        min-height: 48px;
    }

    .admin-main {
        padding: 16px;
    }

    .admin-settings-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-rules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .btn-large { width: 100%; }
}
