/* podologie-ritter.de – Stylesheet (mobile first, ohne Bibliotheken) */

@font-face {
    font-family: "Maven Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/maven-pro-v18-latin-regular.woff2") format("woff2");
}
@font-face {
    font-family: "Maven Pro";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/maven-pro-v18-latin-500.woff2") format("woff2");
}
@font-face {
    font-family: "Maven Pro";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/maven-pro-v18-latin-700.woff2") format("woff2");
}

:root {
    --green: #257c22;
    --green-dark: #1c5f1a;
    --green-tint: #eef5ec;
    --text: #222;
    --text-muted: #555;
    --surface: #fff;
    --page: #ece8e4;
    --line: #dcd6d0;
    --radius: 6px;
    --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 16px rgb(0 0 0 / .06);
    --gap: clamp(1rem, 4vw, 2rem);
    --max: 62rem;
    --nav-h: 3rem;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + .75rem);
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: "Maven Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--page);
}

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

a { color: var(--green-dark); text-underline-offset: .15em; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem); color: var(--green); font-weight: 700; }
h3 { font-size: 1.15rem; color: var(--green); font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
    position: absolute; left: .5rem; top: -3rem; z-index: 10;
    padding: .5rem 1rem; background: var(--surface); border-radius: var(--radius);
}
.skip-link:focus { top: .5rem; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: currentColor; }

/* Kopf */

.site-header {
    max-width: var(--max);
    margin: 0 auto;
}

.brand {
    background: var(--green);
    color: #fff;
    text-align: center;
    padding: 1.1rem var(--gap) .9rem;
}
.brand__title {
    font-size: clamp(1.5rem, 1.1rem + 2vw, 2.1rem);
    font-weight: 500;
    letter-spacing: .02em;
    margin: 0;
}
.brand__subtitle {
    margin: .15rem 0 0;
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    opacity: .9;
}

.contact-bar {
    list-style: none;
    margin: 0;
    padding: .9rem var(--gap);
    display: grid;
    gap: .75rem;
    background: rgb(255 255 255 / .92);
    font-size: .95rem;
    line-height: 1.4;
}
.contact-bar__item { display: flex; gap: .75rem; align-items: center; }
.contact-bar .icon { color: var(--green); width: 1.75rem; height: 1.75rem; }

/* Navigation */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    max-width: var(--max);
    margin: 0 auto;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 3px solid var(--green);
}
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    overflow-x: auto;
}
.site-nav li { flex: 1 1 auto; }
.site-nav a {
    display: block;
    min-height: var(--nav-h);
    padding: .8rem .3rem;
    color: var(--text);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .74rem;
    font-weight: 500;
    white-space: nowrap;
}
.site-nav a:hover { background: var(--green-tint); color: var(--green-dark); }

/* Inhalt */

main {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--gap) 0;
    display: grid;
    gap: var(--gap);
}

.card {
    background: var(--surface);
    padding: var(--gap);
    box-shadow: var(--shadow);
}
.card--split { padding: 0; display: grid; }
.card--split .card__body { padding: var(--gap); align-self: center; }

.section-title {
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--green);
    margin-bottom: 1.25rem;
}

.lead { font-size: 1.1rem; }

.profile { display: grid; gap: var(--gap); }
.profile__photo img { width: 197px; border-radius: var(--radius); }

.vita {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}
.vita li {
    display: grid;
    gap: .1rem 1.25rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
}
.vita__time { font-weight: 700; color: var(--green-dark); white-space: nowrap; }

.feature { display: grid; gap: var(--gap); align-items: start; }
.feature__media img { border-radius: var(--radius); width: 100%; }

.contact { display: grid; gap: var(--gap); }
.contact__address { font-style: normal; font-size: 1.1rem; }

.button {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.2rem;
    background: var(--green);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
}
.button:hover { background: var(--green-dark); color: #fff; }
.button .icon { width: 1.2rem; height: 1.2rem; }

/* Fuß */

.site-footer {
    max-width: var(--max);
    margin: 0 auto var(--gap);
    background: var(--green);
    color: #fff;
    padding: 1rem var(--gap);
    text-align: center;
    font-size: .85rem;
    letter-spacing: .04em;
}
.site-footer p { margin: 0 0 .4rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 1.5rem; }
.site-footer a { color: #fff; text-transform: uppercase; }

/* Rechtstexte (Impressum, Datenschutz) */

.legal { max-width: 46rem; margin: 0 auto; }
.legal h1 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem); color: var(--green); }
.brand__title a { color: inherit; text-decoration: none; }
.legal h2 { margin-top: 1.5em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.25em; font-size: 1.05rem; }
.legal dl { margin: 0; }
.legal dt { font-weight: 700; margin-top: 1rem; }
.legal dd { margin: 0; }
.back-link { display: inline-block; margin-bottom: 1rem; }

/* Ab Tablet */

@media (min-width: 640px) {
    .site-nav ul { justify-content: center; }
    .site-nav li { flex: 0 0 auto; }
    .site-nav a { padding: .75rem 1.5rem; font-size: .85rem; letter-spacing: .06em; }
    .contact-bar { grid-template-columns: repeat(3, auto); justify-content: space-between; }
    .vita li { grid-template-columns: 8.5rem 1fr; }
    .feature { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .feature--reverse .feature__media { order: 2; }
    .feature--reverse { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
    .contact { grid-template-columns: 1fr 1.4fr; }
}

/* Ab Desktop: Landschaftsbild als Hintergrund, Karten mit Abstand */

@media (min-width: 960px) {
    body {
        background:
            linear-gradient(to bottom, rgb(236 232 228 / 0) 0, rgb(236 232 228 / 0) 800px, var(--page) 1180px),
            url("../img/hintergrund-1920.webp") top center / 1920px auto no-repeat,
            var(--page);
        padding-top: 2.5rem;
    }
    .site-nav { margin-top: 1.5rem; border-top: 0; }
    .card--split { grid-template-columns: 460px 1fr; }
    .card--split .card__media img { height: 100%; object-fit: cover; }
    .profile { grid-template-columns: 197px 1fr; align-items: start; }
    .card--contact {
        background:
            linear-gradient(to right, rgb(255 255 255 / .82), rgb(255 255 255 / .97) 50%),
            url("../img/kalender-1216.webp") left center / cover no-repeat,
            var(--surface);
    }
}
.text-muted { color: var(--text-muted); font-size: .9rem; }

/* Sehr schmale Geräte */

@media (max-width: 359px) {
    .site-nav a { font-size: .68rem; letter-spacing: .01em; padding-inline: .2rem; }
}
