:root {
    --primary-color: #4a4a4a;
    --hover-color: #2d2d2d;
    --text-color: #4a4a4a;
    --accent-color: #f5f5f5;
    --light-grey: #e8e8e8;
    --medium-grey: #757575;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-brand span {
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active {
    font-weight: bold;
}

.hero {
    background: #4a4a4a;
    color: white;
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    margin-top: 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.content {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--light-grey);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.feature h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature p {
    color: var(--text-color);
    line-height: 1.7;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--accent-color);
    border-radius: 8px;
    margin: 3rem 0;
}

.cta-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-section p {
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #4a4a4a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 2rem;
    font-weight: 500;
}

.cta-button:hover {
    background-color: #2d2d2d;
}

.pricing-section {
    padding: 4rem 2rem;
}

.pricing-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.table-container {
    max-width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 800px;
}

.pricing-table th {
    background-color: #4a4a4a;
    color: white;
    padding: 1rem;
    text-align: left;
}

.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-grey);
    color: var(--text-color);
}

.pricing-table tr:hover {
    background-color: var(--accent-color);
}

.pricing-notes {
    margin-top: 2rem;
    color: var(--medium-grey);
    font-size: 0.9rem;
}

.pricing-notes p {
    margin: 0.5rem 0;
}

.welcome-section {
    text-align: center;
}

.welcome-message {
    background: #fff;
    border-radius: 8px;
    padding: 4rem;
    margin: 0.2em auto 1.5rem auto;
    max-width: 900px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.vacation-hint {
    background: #fff3cd;
    color: #b71c1c;
    border: 2px solid #f44336;
    padding: 1em;
    margin: 1em auto 0.5em auto;
    max-width: 650px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(247, 23, 23, 0.08);
}

.welcome-message h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.welcome-message p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.welcome-message p:last-child {
    margin-bottom: 0;
}

.team-message {
    color: var(--primary-color) !important;
    font-weight: 500;
    font-size: 1.2rem !important;
    margin-top: 2rem;
}

/* Common section styles */
.info-section,
.team-section,
.vehicle-section,
.contact-section,
.impressum-section,
.pricing-section,
.welcome-section,
.privacy-section {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 80px auto 0;
}

/* Remove the specific margin override that was causing inconsistency */
.info-section:first-child {
    margin-top: 80px;
}

/* Section headers */
section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.section-description {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Fahrschule page styles */
.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.contact-info {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.team-member {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
}

.member-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
    background-color: #f5f5f5;
}

.member-info {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-info h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.member-role {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-description {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Vehicle Section Styles */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.vehicle-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
}

.vehicle-photo {
    width: 100%;
    padding-top: 75%;
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
}

.vehicle-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-info {
    padding: 1.5rem;
    text-align: center;
}

.vehicle-info h3 {
    color: var(--text-color);
    margin: 1rem 0;
    font-size: 1.2rem;
}

.vehicle-class {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.vehicle-feature {
    color: var(--primary-color);
    font-style: italic;
    font-size: 0.9rem;
}

/* Contact and Impressum Sections */
.contact-section .info-card,
.impressum-section .info-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.contact-section h3,
.impressum-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-section p,
.impressum-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.impressum-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.impressum-section a:hover {
    text-decoration: underline;
}

.impressum-section strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Privacy Section Styles */
.privacy-section {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 80px auto 0;
}

.privacy-content {
    padding: 2rem;
}

.privacy-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.privacy-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.privacy-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.privacy-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.privacy-card ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-card li {
    margin-bottom: 0.5rem;
}

.privacy-card a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-word;
}

.privacy-card a:hover {
    text-decoration: underline;
}

.privacy-card.source {
    text-align: center;
    font-style: italic;
    color: #666;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        z-index: 2000;
        padding: 1rem 0;
        gap: 0;
    }
    .nav-menu.open {
        display: flex;
        max-height: 50vh;
        overflow-y: auto;
        min-width: 140px;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0.3rem 0;
        border-bottom: 1px solid #eee;
    }
    .nav-menu li:last-child {
        border-bottom: none;
    }
    .nav-menu a {
        width: 100%;
        display: block;
        font-size: 0.95rem;
        padding: 0.5rem 0.5rem;
        line-height: 1.2;
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 28px;
        height: 28px;
        cursor: pointer;
        z-index: 3000;
        margin-left: auto;
    }
    .hamburger span {
        height: 3px;
        width: 20px;
        background: #4a4a4a;
        margin: 3px 0;
        border-radius: 2px;
        transition: 0.3s;
        display: block;
    }
    .navbar {
        flex-wrap: wrap;
        padding: 1rem 1rem;
    }
    .welcome-message {
        font-size: 1rem;
        padding: 1rem;
        line-height: 1.5;
        max-width: 98vw;
    }
    .vacation-hint {
        font-size: 1rem;
        padding: 1rem;
        max-width: 98vw;
    }
    .content {
        margin-top: -1rem;
    }
    .cookie-content {
        padding: 1rem;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    .info-content, .team-grid {
        grid-template-columns: 1fr;
    }
    .info-card, .team-member {
        margin: 0 1rem;
    }
}

/* Hamburger hidden by default, show on mobile */
.hamburger {
    display: none;
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 280px;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-accept {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cookie-accept:hover {
    background-color: var(--hover-color);
}

.cookie-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.cookie-more:hover {
    color: var(--hover-color);
    text-decoration: underline;
}
