* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #1a1a1a;
    color: white;
    font-family: Arial, sans-serif;
}

h1 {
    color: goldenrod;
    font-size: 50px;
    margin-bottom: 20px;
}

h2 {
    font-size: 32px;
}

.hero {
    padding: 60px 30px;
    text-align: center;
}

.rinseless,
#leistungen,
#kontakt {
    background-color: #1e1e1e;
}

#einzugsgebiet,
.referenzen,
#ueber-uns {
    background-color: #252525;
}

#ueber-uns h2,
#ueber-uns h3 {
    color: goldenrod;
}

#ueber-uns > p {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.8;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 30px;
    background-color: #242424;
}

nav strong {
    color: goldenrod;
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    color: goldenrod;
}

/* Startseite mit Autobild */
.startseite {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.85)
        ),
        url("auto.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.startseite h1 {
    font-size: clamp(38px, 6vw, 76px);
    margin: 15px 0;
    max-width: 900px;
}

.startseite-aktionen {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.untertitel {
    color: goldenrod;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.beschreibung {
    max-width: 550px;
    line-height: 1.8;
    color: #dddddd;
    margin-bottom: 30px;
}

/* Rinseless-Bereich */
.rinseless p {
    line-height: 1.8;
}

.rinseless .beschreibung {
    margin: 0 auto;
}

/* Leistungen */
.angebote {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.karte {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2b2b2b;
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
}

.karte h3 {
    color: goldenrod;
}

.karte p {
    line-height: 1.6;
}

.karte .button {
    margin-top: auto;
}

.flottenangebot {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 28px;
    border: 1px solid rgba(218, 165, 32, 0.55);
    border-radius: 14px;
    background-color: #252525;
}

.flottenangebot h3 {
    margin-top: 0;
    color: goldenrod;
}

.flottenangebot p {
    margin-bottom: 22px;
    line-height: 1.7;
}

/* Goldene Buttons */
.button {
    display: inline-block;
    background-color: goldenrod;
    color: #1a1a1a;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.button:hover {
    background-color: #f5c542;
}

.button-secondary {
    border: 1px solid goldenrod;
    background-color: transparent;
    color: white;
}

.button-secondary:hover {
    background-color: rgba(218, 165, 32, 0.15);
}

/* Kontaktformular */
.kontakt-formular {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 450px;
    margin: 30px auto;
    text-align: left;
}

.kontakt-whatsapp {
    margin-top: 12px;
}

.kontakt-formular label {
    font-weight: bold;
}

.kontakt-formular input,
.kontakt-formular select,
.kontakt-formular textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #2b2b2b;
    color: white;
    font: inherit;
}

.kontakt-formular input:focus,
.kontakt-formular select:focus,
.kontakt-formular textarea:focus {
    outline: 2px solid goldenrod;
    outline-offset: 2px;
}

.kontakt-formular button {
    margin-top: 10px;
}

.hinweis {
    font-size: 13px;
    color: #bbb;
    line-height: 1.6;
}

.google-maps {
    max-width: 900px;
    height: 400px;
    margin: 30px auto 0;
    overflow: hidden;
    border: 1px solid rgba(218, 165, 32, 0.45);
    border-radius: 12px;
}

.google-maps iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.karte-einzugsgebiet {
    max-width: 1000px;
    height: 450px;
    margin: 30px auto 0;
    overflow: hidden;
    border: 1px solid rgba(218, 165, 32, 0.45);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.karte-einzugsgebiet iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.referenzen .beschreibung {
    margin: 0 auto 30px;
}

.bildvergleich {
    --vergleich-position: 50%;
    position: relative;
    width: min(100%, 900px);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(218, 165, 32, 0.45);
    border-radius: 16px;
    background-color: #2b2b2b;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    isolation: isolate;
}

.bildvergleich-nachher,
.bildvergleich-vorher img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bildvergleich-vorher {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--vergleich-position)) 0 0);
}

.bildvergleich-label {
    position: absolute;
    z-index: 1;
    top: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: rgba(26, 26, 26, 0.8);
    color: white;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
}

.bildvergleich-label-vorher {
    left: 16px;
}

.bildvergleich-label-nachher {
    right: 16px;
}

.bildvergleich-trenner {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: var(--vergleich-position);
    width: 3px;
    background-color: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.bildvergleich-trenner::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    border: 2px solid white;
    border-radius: 50%;
    background-color: goldenrod;
    content: "↔";
    color: #1a1a1a;
    font-size: 24px;
    font-weight: bold;
    line-height: 38px;
    text-align: center;
    transform: translate(-50%, -50%);
}

.bildvergleich-regler {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: ew-resize;
    opacity: 0;
    touch-action: pan-y;
}

.bildvergleich-regler:focus-visible {
    outline: 3px solid goldenrod;
    outline-offset: -4px;
}

.referenzgalerie-titel {
    margin: 48px 0 22px;
    color: goldenrod;
}

.referenzgalerie {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: min(100%, 1000px);
    margin: 0 auto;
}

.referenzfoto {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(218, 165, 32, 0.35);
    border-radius: 12px;
    background-color: #2b2b2b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.referenzfoto img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.referenzfoto figcaption {
    padding: 14px;
    color: #ddd;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 25px;
    background-color: #242424;
    color: #aaa;
}

/* Handy-Optimierung */
@media (max-width: 600px) {
    h1 {
        font-size: 40px;
    }

    .hero {
        padding: 45px 20px;
    }

    nav {
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
    }

    .startseite {
        min-height: 70vh;
    }

    .referenzgalerie {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}
