@font-face {
    font-family: "Jura";
    src: url("../fonts/jura.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --papier: #f5f1ea;
    --papier-tief: #ebe5da;
    --weiss: #fffdf9;
    --tinte: #231f20;
    --tinte-weich: #5b5553;
    --blau: #5499d9;
    --blau-tief: #2a6cae;
    --nacht: #1f2a36;
    --titel: "Jura", "Segoe UI", system-ui, sans-serif;
    --sans: "Open Sans", "Segoe UI", system-ui, sans-serif;
    --rand: clamp(1.25rem, 5vw, 4rem);
    --breite: 76rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* auf grossen Bildschirmen wächst die ganze Seite mit, statt schmal in der Mitte zu stehen */
    font-size: clamp(100%, 0.45vw + 0.55rem, 137.5%);
    scroll-behavior: smooth;
    scroll-padding-top: 6.75rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--papier);
    color: var(--tinte);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
    font-family: var(--titel);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 2px solid var(--blau-tief);
    outline-offset: 3px;
}

.rahmen {
    width: 100%;
    max-width: calc(var(--breite) + 2 * var(--rand));
    margin-inline: auto;
    padding-inline: var(--rand);
}

.skip {
    position: absolute;
    left: var(--rand);
    top: -4rem;
    z-index: 20;
    padding: 0.6rem 1rem;
    background: var(--tinte);
    color: var(--papier);
}

.skip:focus {
    top: 0.5rem;
}

/* Kopf */

.kopf {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--papier) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow 0.25s;
}

.kopf.ist-gescrollt {
    box-shadow: 0 1px 0 rgba(35, 31, 32, 0.1);
}

.kopf__innen {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    min-height: clamp(4.75rem, 7vw, 6rem);
}

.kopf__logo {
    margin-right: auto;
    flex: none;
}

.kopf__logo img {
    width: clamp(10.5rem, 19vw, 15rem);
}

.kopf__nav {
    display: flex;
    gap: clamp(1rem, 2.4vw, 2.25rem);
}

.kopf__nav a {
    text-decoration: none;
    padding-block: 0.4rem;
    background: linear-gradient(var(--blau), var(--blau)) left bottom / 0 2px no-repeat;
    transition: background-size 0.25s;
}

.kopf__nav a:hover {
    background-size: 100% 2px;
}

.kopf__tel {
    flex: none;
    text-decoration: none;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: var(--tinte);
    color: var(--papier);
    transition: background-color 0.2s;
}

.kopf__tel:hover {
    background: var(--blau-tief);
}

/* Auftakt */

.auftakt {
    padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
    overflow: hidden;
}

.auftakt__raster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.auftakt h1 {
    font-size: clamp(1.9rem, 3.9vw, 3.4rem);
    hyphens: manual;
}

.auftakt__lead {
    margin-top: 1.75rem;
    max-width: 34rem;
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--tinte-weich);
}

.auftakt__aktionen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    margin-top: 2.5rem;
}

.auftakt__bild {
    margin: 0;
    /* Bild läuft rechts bis an den Fensterrand, solange das Fenster nicht breiter als der Satzspiegel ist */
    margin-right: calc(-1 * var(--rand));
}

.auftakt__bild img {
    width: 100%;
    height: clamp(20rem, 46vw, 36rem);
    object-fit: cover;
    object-position: 60% 70%;
    border-radius: 0.375rem 0 0 0.375rem;
}

@media (min-width: 84rem) {
    .auftakt__bild {
        margin-right: 0;
    }

    .auftakt__bild img {
        border-radius: 0.375rem;
    }
}

.knopf {
    display: inline-block;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: var(--blau-tief);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.knopf:hover {
    background: var(--tinte);
    transform: translateY(-1px);
}

.textlink {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--blau);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
    transition: text-decoration-color 0.2s;
}

.textlink:hover {
    text-decoration-color: currentColor;
}

/* Leitsatz */

.leitsatz {
    background: var(--weiss);
    padding-block: clamp(3.5rem, 8vw, 7rem);
}

.leitsatz__text {
    max-width: 58rem;
    font-family: var(--titel);
    font-size: clamp(1.6rem, 3.4vw, 2.9rem);
    font-weight: 500;
    line-height: 1.25;
    text-wrap: balance;
}

.leitsatz__text span {
    color: var(--blau-tief);
}

/* Leistungen */

.leistungen {
    padding-block: clamp(4rem, 9vw, 8rem) clamp(2rem, 5vw, 4rem);
}

.abschnittskopf {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.5rem clamp(2rem, 5vw, 5rem);
    align-items: end;
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.abschnittskopf h2,
.ueber h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.abschnittskopf p {
    max-width: 36rem;
    font-size: 1.15rem;
    color: var(--tinte-weich);
}

.leistungsliste {
    display: grid;
    gap: clamp(3.5rem, 8vw, 7rem);
}

.leistung {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.leistung:nth-child(even) .leistung__bild {
    order: 2;
}

.leistung__bild img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.375rem;
}

.leistung h3 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    hyphens: manual;
}

.leistung__text > p {
    margin-top: 1rem;
    max-width: 32rem;
    font-size: 1.1rem;
    color: var(--tinte-weich);
}

.leistung__liste {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    max-width: 32rem;
}

.leistung__liste li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.75rem;
}

.leistung__liste li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 0.9rem;
    height: 2px;
    background: var(--blau);
}

/* Über uns */

.ueber {
    padding-block: clamp(3rem, 8vw, 7rem) clamp(4rem, 9vw, 8rem);
}

.ueber__raster {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.5rem clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.ueber__text p:first-child {
    font-size: 1.15rem;
}

.ueber__text p {
    max-width: 38rem;
}

.ueber__text p + p {
    margin-top: 1.1rem;
    color: var(--tinte-weich);
}

/* Team */

.team {
    background: var(--weiss);
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

.person {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.5rem clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.person h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.person h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.person__rolle {
    margin-top: 0.35rem;
    color: var(--blau-tief);
    font-weight: 600;
}

.person__kontakt {
    margin-top: 1.25rem;
}

.person__kontakt a {
    text-decoration-color: var(--blau);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

/* Kontakt */

.kontakt {
    background: var(--nacht);
    color: #f1ede5;
    padding-block: clamp(4rem, 9vw, 7.5rem);
}

.kontakt__raster {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 3rem clamp(2rem, 5vw, 5rem);
    align-items: end;
}

.kontakt h2 {
    max-width: 30rem;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
    color: #b9c6d4;
}

.kontakt__tel {
    display: block;
    width: fit-content;
    margin-top: 1.5rem;
    font-family: var(--titel);
    font-size: clamp(2.2rem, 6.4vw, 5rem);
    font-weight: 500;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.kontakt__mail {
    display: inline-block;
    margin-top: 1rem;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    text-decoration: underline;
    text-decoration-color: var(--blau);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
    transition: color 0.2s;
}

.kontakt__tel:hover,
.kontakt__mail:hover {
    color: #9cc6ee;
}

.kontakt__daten h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #b9c6d4;
    margin-bottom: 0.6rem;
}

.kontakt__daten address {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.kontakt__daten address + h3 {
    margin-top: 0.5rem;
}

.kontakt__daten p {
    font-size: 1.2rem;
}

.anfahrt {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 2rem clamp(2rem, 5vw, 5rem);
    align-items: end;
    margin-top: clamp(3rem, 6vw, 5rem);
}

.anfahrt__karte {
    margin: 0;
}

.anfahrt__karte img {
    width: 100%;
    height: clamp(15rem, 30vw, 24rem);
    object-fit: cover;
    object-position: 32% 35%;
    border-radius: 0.375rem;
}

.anfahrt__karte figcaption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #8798aa;
}

.anfahrt__text {
    padding-bottom: 1.8rem;
}

.anfahrt__text h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #b9c6d4;
    margin-bottom: 0.6rem;
}

.anfahrt__text p {
    margin-bottom: 1.25rem;
}

/* Rechtstexte */

.rechtstext {
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.rechtstext .rahmen > * {
    max-width: 44rem;
}

.rechtstext h1 {
    font-size: clamp(1.9rem, 3.9vw, 3rem);
    margin-bottom: 1.5rem;
}

.rechtstext h2 {
    font-size: 1.25rem;
    margin: 2.5rem 0 0.75rem;
}

.rechtstext p + p,
.rechtstext ul + p {
    margin-top: 0.9rem;
}

.rechtstext ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.rechtstext .stand {
    margin-top: 3rem;
    color: var(--tinte-weich);
}

.textlink--hell:hover {
    text-decoration-color: #fff;
}

:is(.kontakt, .fuss) :focus-visible {
    outline-color: #9cc6ee;
}

/* Fuss */

.fuss {
    background: #18212b;
    color: #b9c6d4;
    padding-block: clamp(2.5rem, 5vw, 4rem);
    font-size: 0.975rem;
}

.fuss__raster {
    display: grid;
    grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr));
    gap: 2rem clamp(1.5rem, 4vw, 4rem);
}

.fuss__logo {
    width: 10rem;
}

.fuss h2 {
    font-family: var(--sans);
    font-size: 0.975rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.65;
    color: #f1ede5;
    margin-bottom: 0.4rem;
}

.fuss p + p,
.fuss address + p {
    margin-top: 0.6rem;
}

.fuss a {
    text-decoration: none;
}

.fuss a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Einblenden beim Scrollen – nur mit JS und ohne reduzierte Bewegung */

@media (prefers-reduced-motion: no-preference) {
    .js [data-zeig] {
        opacity: 0;
        transform: translateY(1.25rem);
        transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .js [data-zeig].ist-sichtbar {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Schmalere Fenster */

@media (max-width: 60rem) {
    .fuss__raster {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fuss__raster > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 52rem) {
    .kopf__nav {
        display: none;
    }

    .auftakt__raster,
    .abschnittskopf,
    .ueber__raster,
    .kontakt__raster,
    .anfahrt {
        grid-template-columns: minmax(0, 1fr);
    }

    .auftakt__bild {
        margin-inline: calc(-1 * var(--rand));
    }

    .auftakt__bild img {
        border-radius: 0;
    }

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

    .leistung:nth-child(even) .leistung__bild {
        order: 0;
    }

    .leistung__bild img {
        aspect-ratio: 16 / 10;
    }

    .anfahrt__text {
        padding-bottom: 0;
    }

    .kontakt__raster {
        align-items: start;
    }
}

@media (max-width: 34rem) {
    body {
        font-size: 1rem;
    }

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

    .kopf__tel {
        padding-inline: 0.9rem;
    }
}

@media print {
    .kopf,
    .skip,
    .auftakt__aktionen {
        display: none;
    }

    .kontakt,
    .fuss {
        background: none;
        color: #000;
    }
}
