:root {
    --bg: #ffffff;
    --bg-soft: #f4f4f4;

    --text: #1b1b1b;
    --text-muted: #666666;

    --accent: #b00000;
    --accent-dark: #7f0000;

    --border: #dddddd;

    --content-width: 1180px;
}


/* =========================================================
   RESET / BASIS
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    color: var(--text);
    background: var(--bg);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    min-height: 60vh;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 1000;

    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: min(100% - 40px, var(--content-width));
    min-height: 90px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* =========================================================
   LOGO
   ========================================================= */

.site-logo {
    display: block;
    flex: 0 0 auto;
}

.site-logo img {
    width: auto;
    max-width: 260px;
    max-height: 68px;
}


/* =========================================================
   HAUPTNAVIGATION
   ========================================================= */

.main-navigation {
    display: flex;
    align-items: center;

    gap: 28px;
}

.main-navigation a {
    position: relative;

    padding: 32px 0 28px;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    transition:
        color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--accent);
}

.main-navigation a::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 19px;

    height: 2px;

    background: var(--accent);

    transform: scaleX(0);
    transform-origin: center;

    transition:
        transform 0.2s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    transform: scaleX(1);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 6px 0;

    background: var(--text);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 620px;

    overflow: hidden;

    background: #111111;
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.42) 50%,
            rgba(0, 0, 0, 0.12) 100%
        );
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    z-index: 2;

    top: 20px;
    left: 50%;

    width: min(100% - 40px, var(--content-width));

    transform: translateX(-50%);

    color: #ffffff;
}

.hero-content h1 {
    max-width: 700px;

    margin: 10px 0 0;

    font-size: clamp(2.4rem, 4.2vw, 4rem);
    line-height: 1.05;

    letter-spacing: -0.03em;
}

.hero-content > p:not(.eyebrow) {
    max-width: 680px;

    margin: 0;

    font-size: 1.3rem;
    line-height: 1.5;
}

.eyebrow {
    margin:
        0
        0
        14px;

    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================================================
   ALLGEMEINE INHALTSBREITE
   ========================================================= */

.content {
    width: min(100% - 40px, var(--content-width));

    margin: 0 auto;
    padding: 80px 0;
}

.content-narrow {
    max-width: 800px;
}


/* =========================================================
   TYPOGRAFIE
   ========================================================= */

h1,
h2,
h3 {
    line-height: 1.2;
}

h2 {
    margin:
        0
        0
        24px;

    font-size: clamp(2rem, 3vw, 3rem);

    letter-spacing: -0.02em;
}

h3 {
    margin:
        0
        0
        12px;

    font-size: 1.35rem;
}

p {
    margin:
        0
        0
        1.3em;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.65;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 24px;

    border: 2px solid var(--accent);

    background: var(--accent);
    color: #ffffff;

    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.button-outline {
    background: transparent;
    color: var(--accent);
}

.button-outline:hover {
    color: #ffffff;
}


/* =========================================================
   CTA UNFALL
   ========================================================= */

.accident-cta {
    background: #1b1b1b;
    color: #ffffff;
}

.accident-cta-inner {
    width: min(100% - 40px, var(--content-width));

    margin: 0 auto;
    padding: 70px 0;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 50px;
}

.accident-cta h2 {
    margin-bottom: 12px;
}

.accident-cta p {
    max-width: 760px;

    margin: 0;

    color: #dddddd;

    font-size: 1.1rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #111111;
    color: #cccccc;

    border-top: 1px solid #333333;
}

.footer-inner {
    width: min(100% - 40px, var(--content-width));

    margin: 0 auto;
    padding: 38px 0;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 30px;
}


.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    color: #ffffff;
}

.footer-brand span {
    font-size: 0.9rem;
}

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

.footer-phone a {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.footer-phone a:hover {
    color: var(--accent);
}

.footer-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer-phone span {
    font-size: 0.9rem;
    color: #cccccc;
}

.footer-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-self: end;
    justify-content: flex-start;
    gap: 22px;
}

.footer-navigation a {
    font-size: 0.92rem;
}

.footer-navigation a:hover {
    color: #ffffff;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 960px) {

    .header-inner {
        min-height: 78px;
    }

    .site-logo img {
        max-width: 220px;
        max-height: 58px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 8px 20px 20px;

        background: #ffffff;

        border-bottom: 1px solid var(--border);
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation a {
        padding: 15px 0;

        border-bottom: 1px solid var(--border);
    }

    .main-navigation a:last-child {
        border-bottom: 0;
    }

    .main-navigation a::after {
        display: none;
    }

    .hero {
        min-height: 540px;
    }

    .accident-cta-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 600px) {

    .header-inner,
    .hero-content,
    .content,
    .accident-cta-inner,
    .footer-inner {
        width: min(100% - 28px, var(--content-width));
    }

    .hero {
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content > p:not(.eyebrow) {
        font-size: 1.1rem;
    }

    .content {
        padding: 60px 0;
    }

    .accident-cta-inner {
        padding: 55px 0;
    }

    .footer-navigation {
        flex-direction: column;

        gap: 10px;
    }
}


@media (max-width: 600px) {

    .hero-content {
        top: 32px;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

}

/* =========================================================
   STARTSEITE – LEISTUNGEN
   ========================================================= */

.services {
    background: var(--bg-soft);
}

.section-heading {
    max-width: 780px;

    margin-bottom: 48px;
}

.section-heading .lead {
    margin-bottom: 0;
}

.eyebrow-dark {
    color: var(--accent);
}

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.10);
}

.service-card-image {
    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #dddddd;
}

.service-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.3s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.03);
}

.service-card-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 26px;
}

.service-card-content h3 {
    font-size: 1.4rem;
}

.service-card-content p {
    color: var(--text-muted);
}

.service-link {
    margin-top: auto;

    color: var(--accent);

    font-size: 0.95rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* =========================================================
   RESPONSIVE LEISTUNGEN
   ========================================================= */

@media (max-width: 1000px) {

    .service-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .service-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        margin-bottom: 34px;
    }

}

/* =========================================================
   UNTERSEITEN
   ========================================================= */

.page-hero {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: #111111;
}

.page-hero > img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.68) 0%,
            rgba(0, 0, 0, 0.32) 55%,
            rgba(0, 0, 0, 0.10) 100%
        );
}

.page-hero-content {
    position: absolute;
    z-index: 2;

    top: 42px;
    left: 50%;

    width: min(100% - 40px, var(--content-width));

    transform: translateX(-50%);

    color: #ffffff;
}

.page-hero-content h1 {
    max-width: 760px;

    margin: 10px 0 0;

    font-size: clamp(2.4rem, 4.2vw, 4rem);
    line-height: 1.05;

    letter-spacing: -0.03em;
}

.page-section {
    background: #ffffff;
}

.page-section-soft {
    background: var(--bg-soft);
}

.two-column {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;

    gap: 70px;
}

.two-column-reverse {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
}

.feature-image {
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: auto;
}

.service-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 40px;

    margin-top: 35px;
}

.service-list ul {
    margin: 0;
    padding-left: 22px;
}

.service-list li {
    margin-bottom: 10px;
}

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 300px;

    object-fit: cover;
}

.partner-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 45px;
}

.partner-logos img {
    width: auto;
    max-width: 150px;
    max-height: 110px;
}


@media (max-width: 800px) {

    .page-hero {
        min-height: 380px;
    }

    .page-hero-content {
        top: 28px;
    }

    .two-column,
    .two-column-reverse,
    .service-list {
        grid-template-columns: 1fr;
    }

    .two-column {
        gap: 35px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: auto;
    }

}


@media (max-width: 600px) {

    .page-hero {
        min-height: 340px;
    }

    .page-hero-content {
        top: 20px;

        width: min(100% - 28px, var(--content-width));
    }

    .page-hero-content h1 {
        font-size: 2.3rem;
    }

}

/* =========================================================
   IMPRESSUM & DATENSCHUTZ
   ========================================================= */

.legal-page {
    padding: 80px 0 100px;
    background: #ffffff;
}

.legal-content {
    max-width: 900px;
}

.legal-content h1 {
    margin: 0 0 35px;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
}

.legal-content h2 {
    margin: 45px 0 15px;
    font-size: 1.45rem;
}

.legal-content p,
.legal-content li {
    line-height: 1.75;
}

.legal-content ul {
    margin: 20px 0;
    padding-left: 24px;
}

.legal-content hr {
    margin: 80px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.legal-content a {
    color: var(--accent);
}

#datenschutz {
    scroll-margin-top: 30px;
}

@media (max-width: 600px) {

    .legal-page {
        padding: 55px 0 70px;
    }

    .legal-content hr {
        margin: 60px 0;
    }

}

/* EUROGARANT-Kachel */

.service-card[href$="/eurogarant/"] .service-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #ffffff;
}

.service-card[href$="/eurogarant/"] .service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Öffnungszeiten */

.opening-hours {
    margin-top: 25px;
    line-height: 1.7;
}

.opening-hours strong {
    display: inline-block;
    margin-bottom: 5px;
}

/* Startseite: Bezeichnung oberhalb des unveränderten Hauptbildes */

.hero-home {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    background: #ffffff;
}

.hero-home .hero-image {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
}

.hero-home .hero-image::before,
.hero-home .hero-image::after,
.hero-home::before,
.hero-home::after {
    display: none;
    content: none;
}

.hero-home .hero-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    filter: none;
    opacity: 1;
}

/* Firmenbezeichnung unter dem Logo */

.header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
}

.header-brand .site-logo {
    display: block;
}

.header-brand-subtitle {
    display: block;
    margin-top: 3px;
    color: #333333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}

/* Partnerwerkstatt */

.partnerwerkstatt-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.partnerwerkstatt-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

/* Footer: mobile Darstellung korrigieren */

@media (max-width: 600px) {

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-navigation {
        width: 100%;
        margin-left: 0;
        justify-self: stretch;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }

    .footer-navigation a {
        display: block;
        text-align: center;
    }

}
