@import url("reset.css");

.clear {
    clear: both;
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--schrift);
    background: white;
}

body b {
    font-weight: 600;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

* {
    box-sizing: border-box;
    transition: 0.5s;
}


:root {
    --schrift: #07141e;
    --blau: #1900ab;
    --hellblau: #0161b5;
    --radius: 25px;
}

/*-+-+-+--+- HEADER +-+-+-++-*/

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    width: 100%;
    height: 90px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 8%;
    z-index: 999;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

nav .logo img {
    display: block;
    height: 42px;
    width: auto;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    display: inline-block;
    margin-left: 40px;
}

nav ul li a {
    font-size: 17px;
    color: var(--schrift);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--hellblau);
    font-weight: 600;
}

/* Kontakt-Button: Aussehen und Hover kommen von .button */
nav ul li a.nav-button {
    display: block;
}

nav ul li a.nav-button.active {
    background: var(--hellblau);
    border-color: var(--hellblau);
    color: white;
    --fill: var(--blau);
}

.header-bild {
    position: relative;
    margin-top: 90px;
    min-height: 620px;
    height: calc(100vh - 90px);
    max-height: 1000px;
    display: flex;
    align-items: flex-end;
    padding: 0 8% 7%;
    background: var(--blau) url("../images/reifenwechsel-kfz-werkstatt-velen.webp") center / cover no-repeat;
    background-attachment: fixed;
}

.header-leistungen {
    background-image: url("../images/header-leistungen-hebebuehne-oelwechsel.webp");
}

.header-service {
    background-image: url("../images/header-service-reifenmontage.webp");
}

.header-pruefungen {
    background-image: url("../images/header-hu-au-bremsenpruefung.webp");
}

.header-kontakt {
    background-image: url("../images/header-kontakt-luftbild-velen-ramsdorf.webp");
}

.header-ueber {
    background-image: url("../images/kfz-meister-ernst-pannenbecker-werkstatt.webp");
}

.header-bild::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--blau);
    opacity: 0.65;
    mix-blend-mode: multiply;
}

.header-text {
    position: relative;
    z-index: 1;
    max-width: 830px;
    color: white;
}

.header-text h1 {
    color: white;
    margin-bottom: 15px;
}

.header-text h1 span {
    display: block;
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.header-text p {
    font-size: 24px;
    line-height: 1.35;
}

.anrufen {
    position: fixed;
    right: 0;
    top: 62vh;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--schrift);
    padding: 14px 22px;
    border-radius: 12px 0 0 12px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 10px 0px;
}

.anrufen img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.anrufen span {
    display: block;
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.4s, opacity 0.3s;
}

.anrufen:hover {
    color: var(--hellblau);
}

/* beim Scrollen: nur noch das Icon */
.anrufen.klein {
    gap: 0;
}

.anrufen.klein span {
    max-width: 0;
    opacity: 0;
}

.anrufen.klein:hover {
    gap: 10px;
}

.anrufen.klein:hover span {
    max-width: 160px;
    opacity: 1;
}


/*-+-+-+--+- BUTTONS +-+-+-++-*/

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-top: 30px;
}

.button {
    display: inline-block;
    background: var(--blau);
    color: white;
    border: 2px solid var(--blau);
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --fill: var(--hellblau);
    --fill-text: white;
    transition: color 0.4s, border-color 0.4s, transform 0.3s, box-shadow 0.3s;
}

/* Hover: Farbe läuft von links rein und nach rechts wieder raus */
.button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--fill);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.button:hover,
.button:focus-visible {
    color: var(--fill-text);
    border-color: var(--fill);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(7, 20, 30, 0.25);
}

.button:hover::before,
.button:focus-visible::before {
    transform: scaleX(1);
    transform-origin: left;
}

.button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(7, 20, 30, 0.2);
}

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

.button-weiss {
    background: transparent;
    border-color: white;
    color: white;
    --fill: white;
    --fill-text: var(--blau);
}

.button-hell {
    background: var(--hellblau);
    border-color: var(--hellblau);
    --fill: var(--blau);
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .button::before {
        transition: none;
    }

    .button:hover,
    .button:focus-visible {
        transform: none;
    }
}


/*-+-+-+--+- ALLGEMEIN +-+-+-++-*/

.wrap {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 180px 8%;
}

.col {
    width: 46%;
}

.col p + p {
    margin-top: 22px;
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 46px;
}

h2 {
    font-size: 38px;
    color: var(--blau);
    margin-bottom: 20px;
}

h3 {
    font-weight: 600;
    font-size: 20px;
}

.subline {
    display: block;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--hellblau);
    margin-bottom: 8px;
}

.bild-rahmen {
    position: relative;
    padding: 38px 0 0 35px;
}

.bild-rahmen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 95%;
    height: 90%;
    background: var(--hellblau);
    border-radius: var(--radius);
}

.bild-rahmen img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    background: #d9e3ee;
}

/* Rahmen mit Überschrift auf der Linie */
.rahmen-box {
    position: relative;
    border: 3px solid var(--blau);
    border-radius: var(--radius);
}

.rahmen-titel {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: white;
    padding: 0 25px;
    white-space: nowrap;
    margin: 0;
}


/*-+-+-+--+- UEBER +-+-+-++-*/


#ueber .col:first-child {
    width: 50%;
}


/*-+-+-+--+- VORTEILE +-+-+-++-*/

#vorteile ul {
    display: flex;
    color: white;
    text-align: center;
    font-size: 17px;
}

#vorteile li {
    position: relative;
    flex: 1;
    padding: 20px 10px 20px 24px;
    margin-right: -14px;
    border-radius: 0 12px 12px 0;
    background: var(--hellblau);
}

#vorteile li:nth-child(even) {
    background: var(--blau);
}

#vorteile li:last-child {
    margin-right: 0;
    border-radius: 0;
}

#vorteile li:nth-child(1) { z-index: 6; }
#vorteile li:nth-child(2) { z-index: 5; }
#vorteile li:nth-child(3) { z-index: 4; }
#vorteile li:nth-child(4) { z-index: 3; }
#vorteile li:nth-child(5) { z-index: 2; }
#vorteile li:nth-child(6) { z-index: 1; }


/*-+-+-+--+- LEISTUNGEN +-+-+-++-*/

.wrap-block {
    display: block;
    text-align: center;
}

#leistungen .wrap {
    padding-bottom: 100px;
}

#leistungen .rahmen-box {
    margin-top: 45px;
    padding: 80px 30px 60px;
}

.leistungen-liste {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 40px 15px;
}

.leistungen-liste .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 118px;
    height: 118px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: var(--hellblau);
}

.leistungen-liste .icon img {
    width: 55%;
    height: 55%;
    object-fit: contain;
}

.leistungen-liste h3 {
    font-size: 25px;
    line-height: 1.3;
    color: var(--hellblau);
    hyphens: manual;
}


/*-+-+-+--+- SERVICE +-+-+-++-*/

#service .wrap,
#seit-1996 .wrap {
    padding-top: 100px;
    padding-bottom: 100px;
}

#service .col:first-child,
#seit-1996 .col:first-child {
    width: 40%;
}

#service .col:last-child,
#seit-1996 .col:last-child {
    width: 46%;
}

.liste {
    margin-top: 25px;
}

.liste li {
    position: relative;
    padding-left: 24px;
}

.liste li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--blau);
    border-radius: 50%;
}


/*-+-+-+--+- PRUEFUNGEN +-+-+-++-*/

#pruefungen .wrap {
    align-items: stretch;
    gap: 40px;
    padding-top: 120px;
    padding-bottom: 190px;
}

.karte {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 65px 40px 50px;
}

.karte .rahmen-titel {
    font-size: 36px;
    letter-spacing: -1.5px;
    color: var(--blau);
    padding: 0 20px;
}

/* Buttons in allen Karten auf gleicher Höhe */
.karte .button {
    margin-top: auto;
}

.karte p {
    max-width: 360px;
       margin: 0 auto 30px;
    font-size: 20px;
}


/*-+-+-+--+- LEISTUNGEN (UNTERSEITE) +-+-+-++-*/

#leistungen-details .wrap {
    padding-bottom: 180px;
}

#service-details .wrap {
    padding-bottom: 60px;
}

#ansprechpartner .wrap {
    padding-top: 80px;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 90px 40px;
    margin-top: 100px;
    text-align: left;
}

/* Karte mit Icon auf der Rahmenlinie */
.leistung-karte {
    position: relative;
    padding: 70px 35px 40px;
    border: 3px solid var(--blau);
    border-radius: var(--radius);
    background: white;
}

.leistung-karte:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(7, 20, 30, 0.12);
}

.leistung-karte .icon {
    position: absolute;
    top: 0;
    left: 35px;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 8px solid white;
    background: var(--hellblau);
}

.leistung-karte .icon img {
    width: 55%;
    height: 55%;
    object-fit: contain;
}

.leistung-karte h3 {
    font-size: 24px;
    line-height: 1.3;
    color: var(--blau);
    margin-bottom: 12px;
}

#leistungen-details .buttons {
    justify-content: center;
    margin-top: 70px;
}


/*-+-+-+--+- HU, AU & FAHRZEUGCHECKS +-+-+-++-*/

#pruefungen-info .wrap {
    align-items: stretch;
    padding-bottom: 60px;
}

#pruefungen-info .col:first-child {
    align-self: center;
}

.termin-box {
    height: 100%;
    padding: 50px;
    border-radius: var(--radius);
    background: var(--hellblau);
    color: white;
}

.termin-box h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.termin-box table {
    font-size: 18px;
    margin-bottom: 20px;
}

.termin-box td {
    padding: 3px 25px 3px 0;
}

.termin-box td:first-child {
    font-weight: 600;
}

.termin-box .button {
    margin-top: 25px;
}

/* Prüfkarten direkt nach dem Info-Block: weniger Abstand */
#pruefungen-info + #pruefungen .wrap {
    padding-top: 100px;
    padding-bottom: 60px;
}

#premiumservice .wrap {
    padding-bottom: 180px;
}

.hinweis {
    margin: 25px 0;
    padding: 18px 25px;
    border-left: 5px solid var(--hellblau);
    border-radius: 0 12px 12px 0;
    background: #eef4fb;
    font-size: 20px;
    color: var(--blau);
}

.hinweis b {
    display: block;
}


/*-+-+-+--+- KONTAKT (UNTERSEITE) +-+-+-++-*/

#formular .wrap {
    align-items: flex-start;
}

#formular .col:first-child {
    width: 40%;
}

#formular .col:last-child {
    width: 52%;
}

.kontakt-daten {
    margin-top: 30px;
    padding: 30px;
    border-radius: var(--radius);
    background: #eef4fb;
}

.kontakt-daten p {
    margin-bottom: 15px;
}

.kontakt-daten p + p {
    margin-top: 0;
}

.kontakt-daten td {
    padding-right: 15px;
}

.kontakt-daten a:hover {
    color: var(--hellblau);
}

.formular-box {
    min-height: 500px;
    padding: 70px 40px 40px;
}

.formular-box iframe {
    display: block;
    width: 100%;
    height: 1050px;
    border: 0;
}


/*-+-+-+--+- ANIMATIONEN +-+-+-++-*/

/* seitliche Animationen dürfen keinen horizontalen Scroll erzeugen */
main,
footer {
    overflow-x: clip;
}

/* Header: Text blendet beim Laden nacheinander ein */
@media (prefers-reduced-motion: no-preference) {
    .header-text h1,
    .header-text p,
    .header-text .buttons {
        animation: einblenden-hoch 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .header-text h1 {
        animation-delay: 0.15s;
    }

    .header-text p {
        animation-delay: 0.3s;
    }

    .header-text .buttons {
        animation-delay: 0.45s;
    }
}

@keyframes einblenden-hoch {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Bildrahmen: erst der blaue Rahmen, dann das Bild */
[data-aos="rahmen"]::before {
    opacity: 0;
    transform: translate(-40px, -40px);
    transition: opacity 0.7s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-aos="rahmen"] img {
    opacity: 0;
    transform: translate(30px, 30px);
    transition: opacity 0.7s 0.25s, transform 0.7s 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-aos="rahmen"].aos-animate::before,
[data-aos="rahmen"].aos-animate img {
    opacity: 1;
    transform: none;
}

/* Leistungs-Icons: Hover */
.leistungen-liste .icon img {
    transition: transform 0.3s;
}

.leistungen-liste li:hover .icon {
    background: var(--blau);
}

.leistungen-liste li:hover .icon img {
    animation: wackeln 0.5s ease-in-out;
}

@keyframes wackeln {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Leistungskarten: Hover (höhere Spezifität als AOS, ohne Verzögerung) */
.leistungen-grid .leistung-karte.aos-animate:hover {
    transform: translateY(-6px);
    transition-delay: 0s;
}

/* Prüfkarten: Hover (höhere Spezifität als AOS, ohne Verzögerung) */
.rahmen-box.karte.aos-animate:hover,
.rahmen-box.karte:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(7, 20, 30, 0.12);
    transition-delay: 0s;
}


/*-+-+-+--+- COOKIE-HINWEIS (dsa Consent Manager) +-+-+-++-*/

.cookie-overlay-dsa {
    background-color: rgba(7, 20, 30, 0.7);
}

.cookie-overlay-dsa .dsa-cookie-notice-form {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    min-height: 0;
    padding: 40px 35px 25px;
    border: 3px solid var(--blau);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    font-family: 'Montserrat', sans-serif;
    color: var(--schrift);
}

.cookie-overlay-dsa .cookie-overlay-headline {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    color: var(--blau);
}

.cookie-overlay-dsa .cookie-choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    border: 0;
    margin: 0 0 20px;
    padding: 0;
}

/* Einleitungstext über den Checkboxen */
.cookie-overlay-dsa .cookie-choices p {
    flex: 0 0 100%;
}

.cookie-overlay-dsa .cookie-choices .clear {
    display: none;
}

.cookie-overlay-dsa .dsa-cookie-notice-form fieldset p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.cookie-overlay-dsa .dsa-cookie-notice-form .cookie-item {
    flex: 1;
    float: none;
    width: auto;
}

.cookie-overlay-dsa .dsa-cookie-notice-form fieldset label {
    font-size: 15px;
    color: var(--schrift);
}

/* Checkboxen */
.cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"] + label::before {
    width: 20px;
    height: 20px;
    margin: 0 auto 8px;
    border: 2px solid var(--blau);
    border-radius: 5px;
    background-color: white;
}

.cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"]:checked + label::before,
.cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"]:disabled + label::before {
    box-shadow: inset 0 0 0 3px white;
    background-color: var(--blau);
}

.cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"]:disabled + label::before {
    opacity: 0.6;
}

/* Buttons wie auf der Website */
.cookie-overlay-dsa .dsa-cookie-button {
    margin: 0 0 10px;
    padding: 10px 20px;
    border: 2px solid var(--blau);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.cookie-overlay-dsa #dsa-check-all.dsa-cookie-button {
    margin-top: 0;
    background-color: var(--blau) !important;
    color: white;
}

.cookie-overlay-dsa #dsa-check-all.dsa-cookie-button:hover {
    border-color: var(--hellblau);
    background-color: var(--hellblau) !important;
}

.cookie-overlay-dsa #dsa-save-button.dsa-cookie-button {
    background-color: white;
    color: var(--blau);
}

.cookie-overlay-dsa #dsa-save-button.dsa-cookie-button:hover {
    background-color: var(--blau);
    color: white;
}

.cookie-overlay-dsa .cookie-powered-by {
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    color: #6b7680;
}

.cookie-overlay-dsa .cookie-powered-by p {
    margin: 0;
}

.cookie-overlay-dsa .cookie-powered-by a {
    color: var(--hellblau);
    text-decoration: underline;
}

/* Icon zum erneuten Öffnen: pink -> blau */
.cookie-edit img {
    filter: hue-rotate(245deg) saturate(1.3);
}


/*-+-+-+--+- 404-SEITE +-+-+-++-*/

#fehler .wrap {
    padding-top: 200px;
    padding-bottom: 180px;
}

.fehler-grafik {
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
}

#fehler .fehler-zahl {
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 220px;
    font-weight: 600;
    line-height: 1;
    color: var(--blau);
}

/* die "0" als Reifen */
.fehler-zahl .reifen {
    width: 0.82em;
    height: 0.82em;
}

/* Bremsspur unter dem Reifen */
.bremsspur {
    position: absolute;
    left: 0;
    bottom: -22px;
    width: 50%;
    height: 10px;
    border-radius: 5px;
    background: repeating-linear-gradient(90deg, var(--schrift) 0 16px, transparent 16px 26px);
    opacity: 0.2;
}

#fehler h1 {
    margin-bottom: 15px;
    font-size: 40px;
    color: var(--blau);
}

#fehler p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 18px;
}

#fehler .buttons {
    justify-content: center;
    margin-top: 35px;
}

#fehler .fehler-telefon {
    margin-top: 30px;
    font-size: 16px;
}

#fehler .fehler-telefon a {
    font-weight: 600;
    color: var(--hellblau);
    text-decoration: underline;
}

@media (prefers-reduced-motion: no-preference) {
    .fehler-zahl .reifen {
        animation: reinrollen 1.6s cubic-bezier(0.2, 0.8, 0.3, 1) both,
                   nachwippen 0.5s ease-out 1.6s;
    }

    .bremsspur {
        transform-origin: left;
        animation: spur-ziehen 1.6s cubic-bezier(0.2, 0.8, 0.3, 1) both;
    }
}

@keyframes reinrollen {
    from {
        transform: translateX(-100vw) rotate(-1080deg);
    }

    to {
        transform: translateX(0) rotate(0);
    }
}

@keyframes nachwippen {
    0%, 100% { transform: rotate(0); }
    40% { transform: rotate(8deg); }
    70% { transform: rotate(-3deg); }
}

@keyframes spur-ziehen {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}


/*-+-+-+--+- RECHTSTEXTE (Impressum, Datenschutz) +-+-+-++-*/

/* schmaler Seitenkopf statt großem Headerbild */
.seiten-kopf {
    margin-top: 90px;
    padding: 90px 8% 70px;
    background: var(--blau);
    color: white;
}

.rechtstext .wrap {
    max-width: 1000px;
    margin: 0;
    padding-top: 90px;
    padding-bottom: 180px;
    text-align: left;
}

.rechtstext h2 {
    font-size: 26px;
    margin: 45px 0 12px;
}

.rechtstext h2:first-child {
    margin-top: 0;
}

.rechtstext p + p {
    margin-top: 15px;
}

.rechtstext a {
    color: var(--hellblau);
    text-decoration: underline;
    overflow-wrap: anywhere;
}


/*-+-+-+--+- UEBER UNS: EINBLICKE +-+-+-++-*/

#einblicke .wrap {
    padding-top: 0;
    padding-bottom: 60px;
}

#einblicke .rahmen-box {
    margin-top: 45px;
    padding: 75px 40px 55px;
}

#einblicke p {
    max-width: 880px;
    margin: 0 auto;
    font-size: 18px;
}

#einblicke .buttons {
    justify-content: center;
    margin-top: 40px;
}

.button-video {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.button-video svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

/* Video-Lightbox */
.popup-video {
    position: relative;
    width: 80vw;
    max-width: 1100px;
}

.popup-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    background: black;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-close {
    position: absolute;
    top: -55px;
    right: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 48px;
    line-height: 1;
    color: white;
    cursor: pointer;
}

.video-close:hover {
    color: #9fc6ea;
}


/*-+-+-+--+- UEBER UNS: WERKSTATT-SLIDER +-+-+-++-*/

#werkstatt .wrap {
    padding-top: 80px;
    padding-bottom: 180px;
}

.werkstatt-slider {
    position: relative;
    margin-top: 50px;
}

.werkstatt-slider .slick-list {
    margin: 0 -18px;
}

.werkstatt-slider .slick-slide {
    margin: 0 18px;
}

.werkstatt-slider a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: zoom-in;
}

.werkstatt-slider img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #d9e3ee;
}

.werkstatt-slider a:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.slick-lightbox-slick-img {
    border-radius: 12px;
}

.slick-lightbox-slick-caption {
    display: block;
    margin-top: 15px;
    font-size: 16px;
    color: white;
}

.slick-lightbox .slider-pfeil {
    width: 44px;
    height: 44px;
    color: white;
}

.slick-lightbox .slider-pfeil:hover {
    color: #9fc6ea;
}

.slick-lightbox .slider-prev {
    left: 25px;
}

.slick-lightbox .slider-next {
    right: 25px;
}

.slick-lightbox-close {
    top: 20px;
    right: 30px;
    width: auto;
    height: auto;
    font-size: 48px;
    line-height: 1;
    color: white;
}

.slick-lightbox-close::before {
    content: none;
}

.slick-lightbox-close:hover {
    color: #9fc6ea;
}

.slider-pfeil {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: none;
    color: var(--schrift);
    cursor: pointer;
}

.slider-pfeil svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.slider-pfeil:hover {
    color: var(--hellblau);
}

.slider-prev {
    left: -70px;
}

.slider-next {
    right: -70px;
}

.werkstatt-slider .slick-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.werkstatt-slider .slick-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid var(--blau);
    border-radius: 50%;
    background: transparent;
    font-size: 0;
    cursor: pointer;
}

.werkstatt-slider .slick-dots .slick-active button {
    background: var(--blau);
}


/*-+-+-+--+- KONTAKT / FOOTER +-+-+-++-*/

footer {
    position: relative;
}

.kontakt-box {
    position: relative;
    z-index: 2;
    background: var(--hellblau);
    color: white;
    border-radius: var(--radius);
    padding: 70px 8% 100px;
}

.kontakt-box h2 {
    color: white;
    letter-spacing: -1.5px;
    margin-bottom: 50px;
}

.kontakt-spalten {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.kontakt-spalte p {
    margin-bottom: 28px;
}

.kontakt-spalte table td {
    padding-right: 15px;
}

.kontakt-spalte .button {
    margin-top: 20px;
}

.kontakt-spalte a:hover {
    text-decoration: underline;
}

.kontakt-spalte a.button:hover {
    text-decoration: none;
}

.karte-bild {
    position: relative;
    margin-top: -40px;
    background: #b0cde8;
}

.karte-bild img {
    display: block;
    width: 100%;
    min-height: 450px;
    object-fit: cover;
}

.footer-links {
    position: fixed;
    right: 5%;
    bottom: 0;
    z-index: 997;
    display: flex;
    gap: 8px;
}

.footer-links li a {
    display: block;
    background: var(--blau);
    color: white;
    padding: 6px 18px;
    border-radius: 10px 10px 0 0;
}

.footer-links li a:hover {
    background: var(--hellblau);
}

#maps{
    width: 100%!important;
    height: 600px;
    margin-top: calc(-1 * var(--radius));
    z-index: 1;
    border-radius: 0;
}

/*-+-+-+--+- RESPONSIVE NAV +-+-+-++-*/

#resp-nav {
    display: none;
    cursor: pointer;
}

#resp-nav img {
    display: block;
    width: 34px;
}

nav .closebtn {
    display: none;
}

.small {
    font-size: 15px !important;
}

/* ================ Popups ================ */

#popup1 a {
    text-decoration: underline;
    font-style: italic;
    color: var(--hellblau);
}

#popup1 .close-popup {
    color: white;
    text-decoration: none;
}


#popup1,
#popup2,
#popup3,
#popup4,
#popup5,
#popup6,
#popup7,
#popup8,
#popup9,
#popup10,
#popup11,
#popup12,
#popup13 {
    transform: scale(0.8)
}

.popup_visible #popup1,
.popup_visible #popup2,
.popup_visible #popup3,
.popup_visible #popup4,
.popup_visible #popup5,
.popup_visible #popup6,
.popup_visible #popup7,
.popup_visible #popup8,
.popup_visible #popup9,
.popup_visible #popup10,
.popup_visible #popup11,
.popup_visible #popup12,
.popup_visible #popup13 {
    transform: scale(1)
}

.popup-style {
    margin: 2rem 0;
    width: 60%;
    min-height: 20px;
    padding: 50px;
    background-color: white;
    border-radius: 7px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
    color: var(--blau);
}

.popup-style h3 {
    margin-top: 0;
}

.popup-style p {
    margin: 0 0 20px 0;
}

.popup-style ul {
    margin: 0 0 20px 15px;
}

.popup-style ul li {
    list-style: disc;
}

.close-popup {
    position: absolute;
    right: 30px;
    bottom: -20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 10px;
    background: var(--blau);
    color: white;
    border-radius: 5px;
    transition: 0.5s;
    font-size: 20px
}


.close-popup:hover {
    background: var(--blau);
    color: white;
    transition: 0.4s
}

.close-popup img {
    width: 10px;
    height: 10px;
    cursor: pointer;
    display: block;
    margin-left: 5px
}

.list{
    font-weight: 600;
}


/*---------------------------------------
MEDIA Queries | Tablet | Phone
--------------------------------------*/

@media screen and (max-width: 1500px) {
    nav ul li {
        margin-left: 25px;
    }

    nav ul li a {
        font-size: 16px;
    }

    h1 {
        font-size: 40px;
    }

    .header-text h1 span {
        font-size: 22px;
    }

    h2 {
        font-size: 32px;
    }

    .subline {
        font-size: 20px;
    }

    .leistungen-liste .icon {
        width: 95px;
        height: 95px;
    }

    .leistungen-liste h3 {
        font-size: 20px;
    }

    .karte .rahmen-titel {
        font-size: 28px;
        letter-spacing: -1px;
    }
}

@media screen and (max-width: 1190px) {
    nav {
        height: 75px;
        padding: 10px 5%;
    }

    /* gleiche ul wie Desktop, hier als Overlay */
    nav ul {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        background-color: rgba(25, 0, 171, 0.95);
        text-align: center;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.5s, visibility 0.5s;
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open nav ul {
        transform: translateX(0);
        visibility: visible;
    }

    nav ul li {
        display: block;
        margin: 0;
    }

    nav ul li a {
        display: block;
        padding: 8px;
        font-size: 20px;
        color: white;
    }

    nav ul li a:hover,
    nav ul li a.active {
        color: #9fc6ea;
    }

    nav ul li a.nav-button {
        margin-top: 10px;
        background: white;
        border-color: white;
        color: var(--blau);
        --fill: var(--hellblau);
        --fill-text: white;
    }

    #resp-nav {
        display: block;
    }

    body.nav-open #resp-nav {
        visibility: hidden;
    }

    body.nav-open nav .closebtn {
        display: block;
        position: fixed;
        top: 10px;
        right: 25px;
        z-index: 1001;
        font-size: 44px;
        line-height: 1;
        color: white;
        cursor: pointer;
    }

    #fehler .wrap {
        padding-top: 170px;
    }

    .seiten-kopf {
        margin-top: 75px;
        padding: 70px 5% 50px;
    }

    .header-bild {
        margin-top: 75px;
        height: calc(100vh - 75px);
        padding: 0 5% 10%;
        /* fixed wird von iOS nicht unterstützt und zoomt das Bild dort stark */
        background-attachment: scroll;
    }

    .header-text p {
        font-size: 20px;
    }

    .wrap {
        padding: 120px 5%;
    }

    .leistungen-liste {
        grid-template-columns: repeat(4, 1fr);
    }

    .leistungen-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 80px 30px;
    }

    #pruefungen .wrap {
        gap: 25px;
        padding-bottom: 140px;
    }

    .karte {
        padding: 55px 20px 40px;
    }

    .karte .rahmen-titel {
        font-size: 22px;
        padding: 0 12px;
    }

    .kontakt-box {
        padding: 60px 5% 90px;
    }
}

@media screen and (max-width: 900px) {
    /* Header kleiner, damit darunter schon Inhalt sichtbar ist */
    .header-bild {
        height: auto;
        min-height: 70vh;
        min-height: 70svh;
        padding: 130px 5% 60px;
    }

    [data-aos="fade-right"],
    [data-aos="fade-left"] {
        transform: translate3d(0, 40px, 0);
    }

    .wrap {
        flex-direction: column;
        gap: 60px;
        padding: 90px 5%;
    }

    .col,
    #formular .col:first-child,
    #formular .col:last-child,
    #ueber .col:first-child,
    #service .col:first-child,
    #service .col:last-child,
    #seit-1996 .col:first-child,
    #seit-1996 .col:last-child {
        width: 100%;
    }

    #ueber .wrap,
    #leistungen .wrap,
    #service .wrap,
    #seit-1996 .wrap,
    #einblicke .wrap {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    #werkstatt .wrap {
        padding-top: 60px;
        padding-bottom: 110px;
    }

    #fehler .fehler-zahl {
        font-size: 150px;
    }

    #fehler .wrap {
        padding-bottom: 110px;
    }

    #leistungen-details .wrap {
        padding-bottom: 110px;
    }

    .rechtstext .wrap {
        padding-top: 60px;
        padding-bottom: 110px;
    }

    #pruefungen-info + #pruefungen .wrap {
        padding-top: 70px;
    }

    #premiumservice .wrap {
        padding-bottom: 110px;
    }

    #service-details .wrap {
        padding-bottom: 40px;
    }

    #ansprechpartner .wrap {
        padding-top: 60px;
    }

    .werkstatt-slider .slick-list {
        margin: 0 -8px;
    }

    .werkstatt-slider .slick-slide {
        margin: 0 8px;
    }

    .popup-video {
        width: 92vw;
    }

    #vorteile ul {
        flex-wrap: wrap;
        gap: 6px;
        padding: 20px 5% 0;
        font-size: 16px;
    }

    #vorteile li,
    #vorteile li:last-child {
        flex: 0 0 calc(33.333% - 4px);
        margin-right: 0;
        padding: 14px 10px;
        border-radius: 10px;
    }

    #pruefungen .wrap {
        gap: 60px;
        padding-top: 90px;
        padding-bottom: 110px;
    }

    .karte {
        width: 100%;
    }

    .karte .rahmen-titel {
        font-size: 28px;
    }

    .kontakt-spalten {
        flex-direction: column;
        gap: 10px;
    }

    .karte-bild img {
        min-height: 350px;
    }
}

@media screen and (max-width: 600px) {
    html {
        scroll-padding-top: 80px;
    }

    nav .logo img {
        height: 34px;
    }

    .header-bild {
        min-height: 65vh;
        min-height: 65svh;
        padding-top: 110px;
        padding-bottom: 50px;
        background-position: 30% center;
    }

    h1 {
        font-size: 30px;
    }

    .header-text h1 span {
        font-size: 17px;
    }

    h2 {
        font-size: 26px;
    }

    .subline {
        font-size: 17px;
    }

    .header-text p {
        font-size: 18px;
    }

    .buttons {
        gap: 12px;
    }

    .button {
        font-size: 16px;
    }

    /* über den Footer-Links (Impressum/Datenschutz) */
    .anrufen {
        top: auto;
        bottom: 55px;
        padding: 12px 16px;
    }

    .bild-rahmen {
        padding: 22px 0 0 20px;
    }

    #vorteile li,
    #vorteile li:last-child {
        flex: 0 0 calc(50% - 3px);
        font-size: 15px;
    }

    #leistungen .rahmen-box {
        padding: 70px 15px 40px;
    }

    #einblicke .rahmen-box {
        padding: 70px 20px 40px;
    }

    #einblicke p {
        font-size: 16px;
    }

    .termin-box {
        padding: 35px 25px;
    }

    .kontakt-daten {
        padding: 22px;
    }

    .cookie-overlay-dsa .dsa-cookie-notice-form {
        padding: 30px 20px 20px;
    }

    .cookie-overlay-dsa .cookie-overlay-headline {
        font-size: 19px;
    }

    .rechtstext h2 {
        font-size: 21px;
        margin-top: 35px;
    }

    #fehler .fehler-zahl {
        gap: 6px;
        font-size: 110px;
    }

    .bremsspur {
        bottom: -16px;
        height: 7px;
    }

    #fehler .wrap {
        padding-top: 140px;
    }

    #fehler h1 {
        font-size: 28px;
    }

    #fehler p {
        font-size: 16px;
    }

    .formular-box {
        padding: 60px 15px 25px;
    }

    .formular-box iframe {
        height: 1200px;
    }

    .termin-box h3 {
        font-size: 22px;
    }

    .termin-box table {
        font-size: 16px;
    }

    .hinweis {
        font-size: 18px;
    }

    .rahmen-titel {
        white-space: normal;
        width: 85%;
        padding: 0 10px;
        font-size: 24px;
    }

    .leistungen-liste {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 10px;
    }

    .leistungen-grid {
        grid-template-columns: 1fr;
        gap: 70px;
        margin-top: 80px;
    }

    .leistung-karte {
        padding: 60px 22px 30px;
    }

    .leistung-karte .icon {
        left: 22px;
        width: 84px;
        height: 84px;
    }

    .leistung-karte h3 {
        font-size: 21px;
    }

    .leistungen-liste .icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .leistungen-liste h3 {
        font-size: 17px;
    }

    .karte .rahmen-titel {
        width: auto;
        white-space: nowrap;
        font-size: 24px;
    }

    .kontakt-box h2 br {
        display: none;
    }

    .kontakt-box h2 {
        margin-bottom: 35px;
    }

    .footer-links {
        right: 50%;
        transform: translateX(50%);
    }
}
