@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);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    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-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%;
}

.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;
}

/* 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-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-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);
}

/* 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-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);
}

.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;
}

/* Altcha Widget Styling */
.altcha-group {
    margin-bottom: 2rem;
}
.altcha-label {
    margin-top: 0.5em;
}

.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);
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
}

altcha-widget::part(checkbox) {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

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);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

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

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

/* 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);
}

/* 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; }
    .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; }
    
    .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;
    }
}

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