:root {
    --primary: #0082ca; 
    --primary-hover: #006da8;
    --primary-light: #e6f4fb;
    --surface-color: rgba(255, 255, 255, 0.90); 
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--primary);
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 66%, #ffffff 100%),
        url('Logo Schardthof Bogenkino ohne URL.jpg');
    background-position: center top, center 55%;
    background-size: 100% 100%, 20%;
    background-attachment: fixed, fixed;
    background-repeat: no-repeat, no-repeat;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.top-fade-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 90px;
    background: linear-gradient(to bottom, rgba(0, 130, 202, 1) 0%, rgba(0, 130, 202, 0.85) 50%, rgba(0, 130, 202, 0) 100%);
    z-index: 900; pointer-events: none; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}

header {
    position: fixed; width: 100%; top: 12px; left: 0; z-index: 1000; padding: 0 20px; pointer-events: none;
}

.main-header {
    pointer-events: auto; max-width: 1100px; margin: 0 auto; padding: 6px 24px; background-color: #ffffff;
    border-radius: var(--radius-lg); box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.18); border: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center; position: relative; gap: 15px;
}

.logo-area { display: flex; align-items: center; position: relative; height: 38px; flex-shrink: 0; }
.header-logo {
    height: 38px; width: auto; max-width: 50vw; object-fit: contain; border-radius: 4px;
    transform: scale(1.15) translateY(3px); transform-origin: left center;
}

/* DESKTOP-NAVIGATION */
.main-nav {
    list-style: none; display: flex; align-items: center; flex-wrap: nowrap; margin: 0; padding: 0;
}
.main-nav li { display: inline-flex; flex-shrink: 0; }
.main-nav a {
    color: var(--text-main); text-decoration: none; margin-left: 18px; font-size: 0.90rem; font-weight: 600;
    transition: color 0.2s; position: relative; white-space: nowrap;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
    background-color: var(--primary); transition: width 0.3s ease; border-radius: 2px;
}
.main-nav a:hover::after { width: 100%; }

/* MOBIL-BUTTON */
.menu-toggle {
    display: none; align-items: center; gap: 8px; cursor: pointer; color: var(--primary);
    padding: 6px 14px; border-radius: 10px; border: 1.5px solid var(--border-color);
    background-color: #ffffff; user-select: none; transition: all 0.2s ease;
    font-size: 0.92rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}
.menu-toggle:hover { background-color: var(--primary-light); border-color: var(--primary); }
.menu-icon { font-size: 1.25rem; line-height: 1; }

/* MOBILER ZUSTAND */
.main-header.force-mobile .menu-toggle { display: inline-flex; }
.main-header.force-mobile .main-nav {
    display: none; flex-direction: column; width: 100%; position: absolute;
    top: calc(100% + 8px); left: 0; background-color: #ffffff; border-radius: var(--radius-lg);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15); border: 1px solid var(--border-color);
    padding: 10px 0; overflow: hidden;
}
.main-header.force-mobile .main-nav.active { display: flex; }
.main-header.force-mobile .main-nav li { width: 100%; border-bottom: 1px solid #f1f5f9; }
.main-header.force-mobile .main-nav li:last-child { border-bottom: none; }
.main-header.force-mobile .main-nav a {
    margin: 0; padding: 13px 22px; display: flex; align-items: center; width: 100%;
    font-size: 1rem; font-weight: 700; color: #1e293b; text-align: left;
    background-color: transparent; transition: background-color 0.2s, color 0.2s;
}
.main-header.force-mobile .main-nav a:hover,
.main-header.force-mobile .main-nav a:active { background-color: #f0f9ff; color: var(--primary); }
.main-header.force-mobile .main-nav a::after { display: none; }

@media (max-width: 1120px) {
    header { top: 8px; padding: 0 10px; }
    .main-header { padding: 8px 16px; }
    .header-logo { max-width: 55vw; }
    .menu-toggle { display: inline-flex; }
    .main-nav {
        display: none; flex-direction: column; width: 100%; position: absolute;
        top: calc(100% + 8px); left: 0; background-color: #ffffff; border-radius: var(--radius-lg);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15); border: 1px solid var(--border-color);
        padding: 10px 0; overflow: hidden;
    }
    .main-nav.active { display: flex; }
    .main-nav li { width: 100%; border-bottom: 1px solid #f1f5f9; }
    .main-nav li:last-child { border-bottom: none; }
    .main-nav a {
        margin: 0; padding: 13px 22px; display: flex; align-items: center; width: 100%;
        font-size: 1rem; font-weight: 700; color: #1e293b; text-align: left;
        background-color: transparent; transition: background-color 0.2s, color 0.2s;
    }
    .main-nav a:hover, .main-nav a:active { background-color: #f0f9ff; color: var(--primary); }
    .main-nav a::after { display: none; }
}

section { padding: 30px 20px; scroll-margin-top: 95px; }
#news { padding-top: 105px; display: block; }
.container { max-width: 1100px; margin: 0 auto; }
.card {
    background-color: var(--surface-color); border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

h1, h2 { color: #000000; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 24px; }
h2 { font-size: 2rem; position: relative; display: inline-block; }
h2::after { content: ''; display: block; width: 40%; height: 4px; background: var(--primary); margin-top: 8px; border-radius: 2px; opacity: 0.2; }
h3 { color: #000000; margin-top: 24px; margin-bottom: 12px; font-size: 1.25rem; font-weight: 700; }
h3:first-of-type { margin-top: 10px; }
p { margin-bottom: 16px; font-size: 1.05rem; }

.info-list { list-style-type: disc; padding-left: 20px; margin-bottom: 24px; }
.info-list li { margin-bottom: 12px; font-size: 1.05rem; }

.table-wrapper {
    overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-color); background-color: rgba(255, 255, 255, 0.5);
}
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--border-color); }
table th {
    background-color: rgba(230, 244, 251, 0.8); color: var(--primary); font-weight: 700;
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px;
}
table tr:last-child td { border-bottom: none; }
table tbody tr:hover { background-color: rgba(248, 250, 252, 0.8); }
table td:nth-child(2) { font-weight: 700; color: var(--primary); }

.btn-table-inquiry {
    display: inline-block; padding: 6px 14px; font-size: 0.82rem; font-weight: 700; border-radius: 20px;
    background-color: var(--primary); color: #ffffff; border: none; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.btn-table-inquiry:hover { background-color: var(--primary-hover); transform: translateY(-1px); }

/* KALENDER */
.calendar-container {
    background: var(--surface-color); border-radius: var(--radius-md); padding: 20px 0 0 0;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); width: 100%;
}
.calendar-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 15px;
}
.calendar-header button {
    background-color: var(--primary-light); color: var(--primary); border: none; padding: 10px 18px;
    border-radius: 20px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-size: 0.95rem;
}
.calendar-header button:hover { background-color: var(--primary); color: white; }

.calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; padding: 0 15px 15px 15px; width: 100%;
}
.day-name {
    font-weight: 800; color: var(--text-muted); padding: 8px 0; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.day-cell {
    padding: 10px 2px; border-radius: 10px; font-weight: 700; font-size: 1.05rem; cursor: pointer;
    transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 64px; position: relative; user-select: none;
}
.day-num { line-height: 1.1; }
.day-subtext {
    font-size: 0.68rem; font-weight: 800; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap;
}
.day-free { background-color: #ecfdf5; color: #065f46; border: 2px solid #10b981; box-shadow: 0 2px 4px rgba(16, 185, 129, 0.12); }
.day-free .day-subtext { color: #047857; }
.day-free:hover { background-color: #10b981; color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); }
.day-free:hover .day-subtext { color: #ffffff; }
.day-booked { background-color: #fee2e2; color: #991b1b; border: 1.5px solid #f87171; box-shadow: 0 1px 2px rgba(239, 68, 68, 0.08); }
.day-booked .day-subtext { color: #b91c1c; }
.day-unavailable { background-color: #f1f5f9; color: #94a3b8; border: 1px dashed #cbd5e1; opacity: 0.8; }
.day-unavailable .day-subtext { color: #94a3b8; font-weight: 600; }
.day-today {
    box-shadow: 0 0 0 3px #0284c7, 0 4px 12px rgba(2, 132, 199, 0.25) !important;
    border-color: #0284c7 !important; font-weight: 900 !important; transform: scale(1.02); z-index: 2;
}
.day-today::before {
    content: 'HEUTE'; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
    background-color: #0284c7; color: #ffffff; font-size: 0.58rem; font-weight: 900; padding: 1px 6px;
    border-radius: 10px; letter-spacing: 0.5px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); white-space: nowrap;
}
.day-empty { background-color: transparent; border: none; cursor: default; box-shadow: none; min-height: unset; }

.calendar-legend {
    margin-top: 12px; padding: 0 15px 18px; display: flex; gap: 16px; font-size: 0.9rem; justify-content: center; flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 6px; color: var(--text-main); font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 4px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 15px; }

.btn {
    display: inline-block; padding: 10px 24px; background-color: var(--primary); color: white;
    text-decoration: none; border-radius: 30px; font-weight: 600; transition: all 0.3s;
    box-shadow: var(--shadow-sm); cursor: pointer; border: none; font-size: 1rem;
}
.btn:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:disabled { background-color: #94a3b8; cursor: not-allowed; transform: none; }

/* MODALS */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; z-index: 2000; padding: 15px; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--surface-color); padding: 30px; border-radius: var(--radius-lg); width: 100%; max-width: 580px;
    position: relative; box-shadow: var(--shadow-lg); transform: translateY(20px); transition: transform 0.3s ease;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.4);
    max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal {
    position: absolute; top: 16px; right: 16px; font-size: 1.8rem; line-height: 1; cursor: pointer;
    color: var(--text-muted); background: none; border: none; transition: color 0.2s; z-index: 10;
}
.close-modal:hover { color: #000; }

/* SLOTS */
.slot-selection-box { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; }
.slot-checkbox-label {
    display: flex; justify-content: space-between; align-items: center; padding: 12px 14px;
    border-radius: var(--radius-md); font-weight: 700; border: 2px solid var(--border-color); background: #ffffff;
    cursor: pointer; transition: all 0.2s ease; user-select: none; font-size: 0.95rem;
}
.slot-checkbox-label.is-free { border-color: #cbd5e1; background: #ffffff; color: var(--text-main); }
.slot-checkbox-label.is-free:hover { border-color: var(--primary); background: #f0f9ff; }
.slot-checkbox-label.is-selected {
    border-color: var(--primary) !important; background-color: #e0f2fe !important; color: #0369a1 !important;
    box-shadow: 0 0 0 3px rgba(0, 130, 202, 0.2) !important;
}
.slot-status-tag {
    padding: 4px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px;
}
.tag-free { background-color: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.tag-selected { background-color: var(--primary); color: #ffffff; }
.tag-booked { background-color: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.tag-none { background-color: #f1f5f9; color: #94a3b8; border: 1px solid #cbd5e1; }
.tag-new { background-color: #fef08a; color: #854d0e; border: 1.5px solid #ca8a04; font-weight: 900; }
.slot-checkbox-label.is-booked { background: #fef2f2; border-color: #fecaca; color: #991b1b; cursor: not-allowed; opacity: 0.65; }
.slot-checkbox-label.is-none { background: #f8fafc; border-color: #e2e8f0; color: #94a3b8; cursor: not-allowed; opacity: 0.65; }

.seamless-slot-badge {
    background-color: #ecfdf5; border: 1.5px solid #10b981; color: #065f46;
    padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; margin: 4px 0 12px 0;
    display: none; line-height: 1.45; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.price-summary-card {
    background: #e6f4fb; border: 1.5px solid #bae6fd; border-radius: var(--radius-md);
    padding: 14px; margin: 14px 0; font-size: 0.92rem; color: #0369a1;
}
.price-summary-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.price-summary-total {
    display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; color: #0f172a;
    border-top: 2px solid #93c5fd; padding-top: 8px; margin-top: 8px;
}

.form-group { margin-bottom: 12px; text-align: left; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.form-control {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px;
    font-size: 0.95rem; background: #ffffff; color: var(--text-main); font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 130, 202, 0.15); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.booking-notice {
    background-color: #fffbeb; border-left: 4px solid #f59e0b; padding: 10px 12px;
    border-radius: 6px; margin: 12px 0; font-size: 0.85rem; color: #92400e; line-height: 1.4;
}

.revocation-notice-box {
    background-color: #f1f5f9; border-left: 4px solid var(--primary); padding: 11px 13px;
    border-radius: 6px; margin: 14px 0 10px; font-size: 0.83rem; color: #334155; line-height: 1.45;
}

.form-checkbox {
    display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin: 10px 0;
}
.form-checkbox input { margin-top: 2px; cursor: pointer; width: 16px; height: 16px; flex-shrink: 0; }

.video-modal-content {
    background: #0f172a; padding: 16px; max-width: 850px; width: 100%; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.1);
}
.video-modal-content .close-modal { color: #94a3b8; top: 10px; right: 12px; }
.video-modal-content .close-modal:hover { color: #ffffff; }
.video-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: #000; margin-top: 10px;
}
.video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; outline: none; }

footer { background-color: #1e293b; color: #cbd5e1; text-align: center; padding: 40px 20px; margin-top: 60px; }
footer a { color: white; text-decoration: none; margin: 0 10px; transition: color 0.2s; }
footer a:hover { color: var(--primary-light); }

@media (max-width: 768px) {
    body { background-size: 100% 100%, 45%; background-position: center top, center 60%; }
    #news { padding-top: 90px; }
    section { padding: 20px 10px 10px; }
    .card { padding: 20px 14px; border-radius: 14px; }
    h2 { font-size: 1.6rem; }
    .calendar-container { padding: 12px 0 0 0; border-radius: 12px; }
    .calendar-header { padding: 0 8px 12px; margin-bottom: 10px; }
    .calendar-header button { padding: 8px 12px; font-size: 0.85rem; }
    #month-display { font-size: 1.15rem !important; }
    .calendar-grid { padding: 0 4px 10px 4px; gap: 4px; }
    .day-name { font-size: 0.75rem; padding: 4px 0; letter-spacing: 0; }
    .day-cell { padding: 6px 1px; min-height: 48px; font-size: 0.92rem; border-radius: 6px; border-width: 1.5px; }
    .day-subtext { font-size: 0.58rem; margin-top: 1px; letter-spacing: 0; }
    .calendar-legend { gap: 10px; font-size: 0.78rem; padding: 0 6px 12px; }
    .modal-overlay { padding: 8px; }
    .modal-content { padding: 22px 14px; border-radius: 14px; max-height: 94vh; }
    .form-row-2 { grid-template-columns: 1fr; gap: 0; }
    .slot-checkbox-label { padding: 10px 12px; font-size: 0.88rem; }
    .table-wrapper { border: none; box-shadow: none; background: transparent; }
    table, thead, tbody, tr { display: block; width: 100%; }
    table thead { display: none; }
    table tr { margin-bottom: 14px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background-color: var(--surface-color); padding: 10px 0; }
    table td { display: block; text-align: left; padding: 6px 14px; border-bottom: none; }
    table td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--primary); font-size: 0.75rem; text-transform: uppercase; margin-bottom: 2px; }
}