:root {
    --primary-color: #0056b3;
    --secondary-color: #333;
    --accent-color: #ff9800;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --font-main: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--secondary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    max-width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Mobile-Menü (Hamburger) */
.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.site-nav {
    display: flex;
}

.site-nav ul {
    list-style: none;
    display: flex;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)), url('https://source.unsplash.com/1600x900/?car,repair') no-repeat center center/cover;
    height: 80vh;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .hero-lead {
    margin-bottom: 12px;
}

.hero .hero-note {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 1.15rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #e68900;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
}

.bg-light {
    background: var(--light-bg);
}

.lead {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Modal für Terminbuchung */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 2000;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 650px;
    width: 100%;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

#bookingForm .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.checkbox-group {
    margin-top: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

#bookingForm label {
    font-size: 0.9rem;
    font-weight: 500;
}

#bookingForm input,
#bookingForm select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.form-row-inline {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row-inline .field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row-inline label {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-row-inline input,
.form-row-inline select {
    width: 100%;
}

#bookingResult,
#bookingOverview {
    margin-top: 20px;
    font-size: 0.9rem;
}

#bookingResult ul,
#bookingOverview ul {
    list-style: none;
    padding-left: 0;
}

#bookingResult li,
#bookingOverview li {
    margin-bottom: 10px;
}

.booking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.booking-table thead {
    background: var(--primary-color);
    color: #fff;
}

.booking-table th,
.booking-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.9rem;
}

.booking-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.booking-table tbody tr:hover {
    background: #eef5ff;
}

.small-text {
    font-size: 0.8rem;
    color: #666;
}

.booking-older-wrapper {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 10px;
}

.day-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.day-title {
    font-weight: 600;
    color: var(--primary-color);
    flex: 1 1 auto;
    min-width: 220px;
}

.day-nav {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    background: var(--white);
    cursor: pointer;
    font-size: 1rem;
}

.day-nav:hover {
    background: #f5f5f5;
}

.day-picker {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
}

.day-today {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
}

.day-today:hover {
    background: #f5f5f5;
}

.day-util {
    margin-bottom: 20px;
}

.day-util-header {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.day-full-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f44336;
    color: #fff;
    vertical-align: middle;
}

.day-util-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #e0e0e0;
    overflow: hidden;
}

.day-util-bar-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0;
}

.detail-section {
    margin-bottom: 16px;
}

.detail-section h4 {
    margin-bottom: 6px;
    font-size: 1rem;
    color: var(--primary-color);
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.detail-table td:first-child {
    font-weight: 500;
    width: 40%;
    padding: 2px 6px 2px 0;
}

.detail-table td:last-child {
    width: 60%;
    padding: 2px 0;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 20mm;
    }

    body {
        background: #ffffff;
    }

    header,
    footer,
    .section,
    .booking-table,
    .day-controls,
    .booking-delete,
    .link-button,
    .modal-close,
    #printDetails {
        display: none !important;
    }

    .detail-modal {
        position: static;
        display: block !important;
        background: transparent;
        padding: 0;
    }

    .detail-modal .modal-content {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
        padding: 0;
    }

    .print-logo {
        text-align: left;
        margin-bottom: 10mm;
    }

    .print-logo .logo-img {
        height: 40px;
        width: auto;
    }

    #detailContent {
        font-size: 11pt;
    }

    #detailContent h3 {
        margin-bottom: 5mm;
    }

    #detailContent p {
        margin: 2mm 0;
    }

    .detail-table td:first-child,
    .detail-table td:last-child {
        padding: 1mm 0;
    }
}

.booking-delete {
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 1px solid #cc0000;
    background: transparent;
    color: #cc0000;
    cursor: pointer;
}

.booking-delete:hover {
    background: #cc0000;
    color: #fff;
}

.link-button {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
}

#bookingMessage {
    margin-top: 10px;
}

.booking-message.success {
    color: #2e7d32;
    font-weight: 500;
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
}

.feature-item {
    flex-basis: 30%;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer a {
    color: inherit;
    text-decoration: underline;
}

footer a:hover {
    color: inherit;
}

footer p {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 16px;
    }

    .logo-img {
        height: 40px;
        max-width: 220px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
    }

    .site-nav.open {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 3000;
        padding: 80px 20px 20px;
        justify-content: center;
        align-items: flex-start;
    }

    .site-nav ul {
        width: min(420px, 100%);
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px;
        background: var(--white);
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }

    .site-nav ul li {
        margin-left: 0;
    }

    .site-nav ul li a {
        display: block;
        padding: 10px 6px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .feature-item {
        flex-basis: 100%;
    }

    #bookingForm label,
    #bookingForm input,
    #bookingForm select {
        flex-basis: 100%;
    }

    .form-row-inline {
        flex-direction: column;
    }
}

/* Stile für rechtliche Seiten */
.legal-page {
    background: var(--white);
    color: var(--secondary-color);
    min-height: 100vh;
}

.legal-page a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-page .container {
    padding-top: 40px;
    padding-bottom: 40px;
}