/* =========================================
   RESET & BASIS
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2933;
    line-height: 1.6;
    background-color: #f5f7fa;
    padding-top: 72px; /* kompakter Header */
}

@media (min-width: 768px) {
    body {
        padding-top: 64px;
    }
}

/* =========================================
   LAYOUT HELFER
========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
header {
    background: #0f172a;
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.35s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0; /* ✅ schlanker */
}

/* Logo */
.logo h1 {
    font-size: 1.4rem;
    letter-spacing: 0.4px;
    line-height: 1.2;
    margin: 0;
}

/* Burger */
.menu-toggle {
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
    display: block;
    color: #ffffff;
}

/* Desktop Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: #38bdf8;
}

/* =========================================
   MOBILE NAVIGATION
========================================= */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #0f172a;
        width: 100%;
        padding: 1rem 0;
    }

    nav ul.open {
        display: flex;
    }
}

/* =========================================
   HERO
========================================= */
.hero {
    background: linear-gradient(
                rgba(15, 23, 42, 0.85),
                rgba(15, 23, 42, 0.85)
            ),
            url("../img/hero.jpg") center / cover no-repeat;
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    background: #38bdf8;
    color: #0f172a;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    border: 2px solid #38bdf8;
    color: #ffffff;
}

.btn.secondary:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* =========================================
   INTRO
========================================= */
.intro {
    padding: 4rem 0;
    background: #ffffff;
    text-align: center;
}

.intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.intro p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.75;
}

/* =========================================
   ÜBER UNS
========================================= */
.about {
    padding: 4rem 0;
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.about-text p {
    color: #374151;
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
}

.about-text .btn {
    margin-top: 1.2rem;
}

.about-image img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* =========================================
   WARUM WIR
========================================= */
.why-us {
    margin-top: 3rem;
}

.why-us h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.why-us ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-us li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
    color: #374151;
    font-size: 1.05rem;
}

.why-us li::before {
    content: "\2713"; /* FIX: korrektes Häkchen */
    position: absolute;
    left: 0;
    top: 0;
    color: #38bdf8;
    font-weight: 700;
}

/* =========================================
   RESPONSIVE ÜBER UNS
========================================= */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
    }
}

@media (max-width: 600px) {
    .about-text h3 {
        font-size: 1.6rem;
    }
    .about-text p {
        font-size: 0.98rem;
    }
}

/* =========================================
   LEISTUNGEN
========================================= */
.services {
    padding: 4rem 0;
    background: #f5f7fa;
}

.services h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: #0f172a;
}

.service-card p {
    color: #4b5563;
    font-size: 0.95rem;
}

/* =========================================
   KONTAKT
========================================= */
.contact {
    padding: 4rem 0;
    background: #ffffff;
}

.contact h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #4b5563;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* =========================================
   FEEDBACK-MELDUNGEN
========================================= */
.contact-success {
    color: #16a34a;
    background: #d1fae5;
    border: 1px solid #16a34a;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-error {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #b91c1c;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-error ul {
    list-style: disc;
    margin: 0;
    padding-left: 1.5rem;
    text-align: left;
    display: inline-block;
}

/* =========================================
   FOOTER
========================================= */
footer {
    background: #0f172a;
    color: #9ca3af;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    margin-top: 3rem;
}

/* =========================================
   NAVIGATION MOBIL
========================================= */
/* =========================================
   NAVIGATION MOBIL (korrigiert)
   -> Logo links, Burger rechts, Menü klappt darunter aus
========================================= */
@media (max-width: 768px) {
    /* Headerzeile bleibt eine Reihe */
    .nav {
        flex-direction: row;          /* ✅ statt column */
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 0.75rem 0;           /* schlanker Header */
    }

    /* Burger rechts */
    .menu-toggle {
        display: block;
        color: #ffffff;
        font-size: 1.8rem;
        line-height: 1;
    }

    /* Navigation als Dropdown unter Header */
    #navbar ul {
        display: none;
        flex-direction: column;
        background: #0f172a;
        width: 100%;
        padding: 0.75rem 0;
        margin-top: 0.75rem;          /* Abstand unter Headerzeile */
    }

    #navbar ul.open {
        display: flex;
    }

    /* Optional: Links im Dropdown zentriert oder links */
    #navbar ul li {
        text-align: center;           /* wenn du lieber links willst: left */
    }

    .hero h2 {
        font-size: 2rem;
    }
}

/* =========================================
   RIBBON – WEBSITE IM AUFBAU
========================================= */
.corner-ribbon {
    width: 260px;
    background: #dc2626;
    color: white;
    text-align: center;
    font-weight: 600;
    padding: 12px 10px;

    position: fixed;
    top: 30px;
    right: -70px;
    transform: rotate(45deg);
    z-index: 9999;

    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-size: 0.82rem;
    line-height: 1.25rem;
    letter-spacing: 0.3px;
}

@media (max-width: 600px) {
    .corner-ribbon {
        width: 230px;
        right: -60px;
        top: 20px;
        font-size: 0.75rem;
        line-height: 1.2rem;
        padding: 10px 8px;
    }
}

/* =========================================
   ANFAHRT-KARTE
========================================= */
.map-container {
    width: 100%;
    height: 420px;
    margin-top: -2rem;
}

/* =========================================
   HONEYPOT
========================================= */
.hp-field {
    position: absolute;
    left: -9999px;
}

/* =========================================
   DATENSCHUTZERKLÄRUNG
========================================= */

.datenschutz-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1f2933;
    padding: 2rem 0;
}

.datenschutz-content p {
    margin-bottom: 1.2rem;
}

.datenschutz-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.9rem;
    color: #0f172a;
}

.datenschutz-content h3 {
    margin-top: 2.2rem;
    margin-bottom: 0.7rem;
    font-size: 1.35rem;
    color: #111827;
}

.datenschutz-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
    color: #1f2937;
}

.datenschutz-content ul {
    margin: 1rem 0 1.2rem 1.5rem;
    list-style: disc;
}

.datenschutz-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.datenschutz-content a {
    color: #0ea5e9;
    text-decoration: underline;
}

.datenschutz-content a:hover {
    color: #0284c7;
    text-decoration: none;
}

.datenschutz-content section {
    margin-bottom: 2rem;
}

/* =========================================
   IMPRESSUM – Struktur & Typografie
========================================= */

.impressum-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1f2933;
    padding: 2rem 0;
}

.impressum-content p {
    margin-bottom: 1.2rem;
}

.impressum-content h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #0f172a;
}

.impressum-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.45rem;
    color: #111827;
}

.impressum-content a {
    color: #0ea5e9;
    text-decoration: underline;
}

.impressum-content a:hover {
    color: #0284c7;
    text-decoration: none;
}

/* ===== Leistungen – Call-to-Action Button ===== */
.services-cta {
    text-align: center;
    margin-top: 3rem;     /* Abstand nach oben */
    margin-bottom: 1rem;  /* optionaler Abstand nach unten */
}

.services-cta .btn {
    padding: 0.9rem 2rem;  /* etwas größerer Button */
    font-size: 1.05rem;     /* leicht größere Schrift */
}

/* =========================================
   TEAM-BEREICH (Über uns)
========================================= */

.team {
    padding: 4rem 0;
    background: #ffffff;
}

.team h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.team-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
    color: #4b5563;
}

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

.team-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.team-photo {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-role {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.team-text {
    font-size: 0.95rem;
    color: #4b5563;
    margin-top: 0.5rem;
}

/* =========================================
   TEAM – Einblend-Animation
========================================= */

/* Ausgangszustand der Karten */
.team-card {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Zustand wenn sichtbar */
.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: leichte Verzögerungen für dynamischen Effekt */
.team-card:nth-child(1) {
    transition-delay: 0.1s;
}
.team-card:nth-child(2) {
    transition-delay: 0.25s;
}
.team-card:nth-child(3) {
    transition-delay: 0.4s; /* falls du später erweiterst */
}

/* Minimalistischer Apple-Style Divider */
.section-divider {
    width: 55%;
    max-width: 660px;
    height: 2px;
    margin: 0 auto;              /* ✅ KEIN vertikaler Abstand */
    background-color: rgba(15, 23, 42, 0.15);
}

.section-divider {
    opacity: 0;
    transform: scaleX(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-divider.visible {
    opacity: 1;
    transform: scaleX(1);
}

/* =========================================
   STARTSEITE – Vorteile
========================================= */

.home-benefits {
    padding: 4rem 0;
    background: #ffffff;
    text-align: center;
}

.home-benefits h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: #f9fafb;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 0.6rem;
}

/* =========================================
   STARTSEITE – Beliebte Leistungen
========================================= */

.home-highlights {
    padding: 4rem 0;
    background: #f5f7fa;
    text-align: center;
}

.home-highlights h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    text-align: center;
}

.highlight-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: #0f172a;
}

.highlight-card p {
    color: #4b5563;
    margin-bottom: 1.2rem;
}

/* =========================================
   STARTSEITE – Team Preview
========================================= */

.home-team-preview {
    padding: 4rem 0;
    background: #ffffff;
    text-align: center;
}

.home-team-preview h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0f172a;
     letter-spacing: -0.3px;
}

.team-preview-text {
    max-width: 650px;
    margin: 0 auto 2rem;
    color: #4b5563;
}

.team-preview-buttons .btn {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #0f172a;
        width: 100%;
        padding: 1rem 0;
    }

    nav ul.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: white;
    }

    .nav {
        justify-content: space-between;
        align-items: center;
    }
}

.site-footer {
    background: #0f172a;
    color: #9ca3af;
    padding-top: 3rem;
    font-size: 0.9rem;
}

/* Desktop */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    align-items: start;
}

.footer-col {
    line-height: 1.6;
    text-align: left; /* ✅ Desktop: linksbündig */
}

.footer-company {
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}

.footer-company span {
    font-weight: 400;
    color: #9ca3af;
}

.footer-address {
    margin-bottom: 0.8rem;
}

.footer-contact a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-title {
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.8rem;
}

/* Öffnungszeiten */
.opening-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opening-hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.08);
}

/* Menü */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.4rem;
}

.footer-menu a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-menu a:hover {
    text-decoration: underline;
}

/* Unterer Block */
.footer-bottom {
    border-top: 1px solid rgba(229, 231, 235, 0.1);
    text-align: center;
    padding: 1.2rem 1rem;
    color: #6b7280;
    font-size: 0.85rem;
}

/* ✅ Mobile: untereinander & zentriert */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .opening-hours-list li {
        justify-content: center;
    }
}

/* =========================================
   ANFAHRT – ÖFFNUNGSZEITEN
========================================= */

.anfahrt-opening-hours {
    padding: 3rem 0 4rem;
    background: #ffffff;
}

.anfahrt-opening-hours h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.anfahrt-opening-hours .opening-hours-list {
    max-width: 420px;
    margin: 0 auto;
}

.opening-status {
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.opening-status.open {
    color: #22c55e; /* grün */
}

.opening-status.closed {
    color: #f87171; /* rot */
}

.google-reviews {
    padding: 4rem 0;
    background: #f9fafb;
    text-align: center;
}

.google-reviews h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.review-card {
    background: #ffffff;
    padding: 2rem 1.8rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.review-stars {
    color: #fbbf24; /* warmes Gold */
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 0.95rem;
    font-style: italic;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-source {
    font-size: 0.85rem;
    color: #6b7280;
}

.review-link {
    margin-top: 1rem;
}

.review-link a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
}

.review-link a:hover {
    text-decoration: underline;
}

/* =========================================
   LEISTUNGEN – E-MOBILITY HINWEIS ALS GRID-KARTE
========================================= */

.service-card-wide {
    grid-column: 1 / -1;
    background: #ffffff;
    border-left: 4px solid #38bdf8;
}

.service-card-wide h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card-wide {
    border-left: 4px solid #38bdf8;
}