@font-face {
    font-family: "EB Garamond";
    src: url("fonts/ebgaramond-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap
}

@font-face {
    font-family: "Lato";
    src: url("fonts/lato-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: "Lato";
    src: url("fonts/lato-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap
}

@font-face {
    font-family: "Playfair Display";
    src: url("fonts/playfair-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap
}

:root {
    --primary: #4FBEBB;
    --secondary: #116866;
    --text: #4C4C4C;
    --accent: #2CA7A6;
    --soft: #A9DAD7;
    --mint: #DCF2F1;
    --light: #F9F9F9;
    --f-head: "EB Garamond", Garamond, "Times New Roman", serif;
    --f-sub: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-link: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: var(--f-sub);
    color: #fff;
    background: var(--secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit
}

:focus-visible {
    outline: 2px solid var(--soft);
    outline-offset: 4px;
    border-radius: 4px
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: #fff;
    color: var(--secondary);
    padding: .6rem 1rem
}

.skip:focus {
    left: 1rem;
    top: 1rem
}

/* ---------- Startbereich ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(3rem, 8vh, 5rem) 1.25rem 6rem;
    background: #4a4a4a url("bilder/hintergrund.webp") center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(17, 104, 102, .55) 0%, rgba(25, 25, 25, .30) 45%, rgba(17, 104, 102, .72) 100%);
}

.hero h1 {
    font-family: var(--f-head);
    font-weight: 600;
    margin: 0;
    line-height: 1.05;
    letter-spacing: .01em;
    font-size: clamp(2.6rem, 7.5vw, 5.2rem);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.hero .sub {
    font-weight: 700;
    letter-spacing: .06em;
    font-size: clamp(1rem, 2.4vw, 1.35rem);
    margin: .7rem 0 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .45)
}

.hero .name {
    font-size: clamp(.92rem, 2vw, 1.08rem);
    margin: .3rem 0 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .5)
}

.hero .name sup {
    font-size: .65em
}

.lead {
    max-width: 42rem;
    margin: clamp(1.6rem, 4vh, 2.4rem) auto 0;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55)
}

/* ---------- Porträt ---------- */
.portrait {
    width: min(340px, 72vw);
    margin: clamp(2rem, 5vh, 3rem) auto 0
}

.portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: 50% 25%;
    border-radius: 18px;
    border: 4px solid rgba(255, 255, 255, .85);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.scroll {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    opacity: .85;
    animation: bob 2.2s ease-in-out infinite;
}

.scroll:hover {
    opacity: 1
}

.scroll svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

@keyframes bob {

    0%,
    100% {
        transform: translate(-50%, 0)
    }

    50% {
        transform: translate(-50%, 7px)
    }
}

/* ---------- Kontakt ---------- */
.contact {
    background: var(--text);
    padding: clamp(2.8rem, 7vw, 4.5rem) 1.25rem;
    text-align: center
}

.contact h2 {
    font-family: var(--f-sub);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--soft);
    margin: 0 0 1.6rem
}

.contact-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.8rem
}

.contact-list .contact-item {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .35rem .1rem;
    font-family: var(--f-link);
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
    overflow-wrap: anywhere;
}

.contact-list a.contact-item:hover {
    color: var(--soft);
    border-color: var(--soft)
}

.contact-list svg {
    width: 1.4em;
    height: 1.4em;
    flex: none;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--secondary);
    border-top: 4px solid var(--soft);
    padding: 2.6rem 1.25rem 1.6rem
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
    font-size: 1.3rem;
    color: #fff
}

.brand img {
    width: 64px;
    height: 64px
}

.site-footer nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.8rem
}

.site-footer nav a {
    font-family: var(--f-link);
    font-size: 1.15rem;
    color: var(--soft);
    text-decoration: none
}

.site-footer nav a:hover {
    text-decoration: underline
}

.copy {
    text-align: center;
    color: var(--soft);
    font-size: .85rem;
    margin: 2.2rem 0 0;
    opacity: .85
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal-header {
    background: var(--secondary);
    padding: .9rem 1.25rem
}

.legal-header .brand img {
    width: 46px;
    height: 46px
}

.legal {
    background: var(--light);
    color: var(--text);
    padding: clamp(2rem, 6vw, 4rem) 1.25rem
}

.legal article {
    max-width: 720px;
    margin: 0 auto
}

.legal h1 {
    font-family: var(--f-head);
    font-weight: 600;
    color: var(--secondary);
    font-size: clamp(2.1rem, 5vw, 2.9rem);
    line-height: 1.15;
    margin: 0 0 .4rem
}

.legal h2 {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.15rem;
    margin: 2.2rem 0 .5rem
}

.legal p,
.legal li {
    margin: .4rem 0
}

.legal a {
    color: var(--secondary)
}

.legal .todo {
    background: #fff1c2;
    padding: 0 .3em;
    border-radius: 3px
}

.back-link {
    display: inline-block;
    margin-top: 2.8rem;
    font-family: var(--f-link);
    font-size: 1.1rem
}

@media (max-width:640px) {
    .contact-list {
        flex-direction: column;
        align-items: center
    }

    .footer-inner {
        flex-direction: column;
        text-align: center
    }

    .site-footer nav ul {
        justify-content: center
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .scroll {
        animation: none
    }
}