/* =========================================================================
   Ergotherapie Klinkicht – Stylesheet
   Selbstgehostet, keine externen Fonts/CDNs (DSGVO-freundlich).
   ========================================================================= */

:root {
    /* Markenfarben (aus dem bestehenden Logo abgeleitet, aufgefrischt) */
    --green-900: #3f5636;
    --green-700: #5d7d4c;
    --green-600: #6b8c56;
    --green-500: #749960;
    --green-100: #e9f0e2;
    --green-050: #f3f7ef;

    --cream: #fbf8f3;
    --sand: #f2ebe0;
    --terracotta: #c9705a;

    --ink: #2b3327;
    --body: #43503c;
    --muted: #6f7a68;
    --line: #e4e2da;
    --white: #ffffff;

    --shadow-sm: 0 1px 3px rgba(43, 51, 39, .08), 0 1px 2px rgba(43, 51, 39, .06);
    --shadow-md: 0 6px 20px rgba(43, 51, 39, .10);
    --shadow-lg: 0 18px 40px rgba(43, 51, 39, .14);

    --radius: 14px;
    --radius-lg: 22px;
    --maxw: 1140px;
    --header-h: 76px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
        Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--body);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }
a { color: var(--green-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-900); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--green-050); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }

.lead { font-size: 1.2rem; color: var(--body); }
.text-center { text-align: center; }
.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: .8rem;
}
.muted { color: var(--muted); }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: 1rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-900); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--green-700); border-color: var(--green-500); }
.btn--ghost:hover { background: var(--green-100); color: var(--green-900); }
.btn--light { background: #fff; color: var(--green-900); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--green-050); color: var(--green-900); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 243, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 46px; width: auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name strong { color: var(--green-700); font-size: 1.12rem; font-weight: 800; }
.brand__name span { color: var(--muted); font-size: .78rem; font-weight: 600; }

.nav__toggle {
    display: none;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
    color: var(--green-700);
}
.nav__toggle svg { display: block; }

.nav__menu {
    display: flex;
    align-items: center;
    gap: .3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__menu > li { position: relative; }
.nav__link {
    display: block;
    padding: .55rem .85rem;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 600;
    font-size: .98rem;
}
.nav__link:hover { background: var(--green-100); color: var(--green-900); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--green-700); }
.nav__link[aria-current="page"]::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--green-500);
    border-radius: 2px;
    margin-top: 3px;
}

/* Dropdown */
.has-dropdown > .nav__link::after {
    content: " ▾";
    display: inline;
    height: auto;
    margin: 0;
    background: none;
    font-size: .75em;
    color: var(--muted);
}
.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
    display: block;
    padding: .55rem .8rem;
    border-radius: 8px;
    color: var(--body);
    font-weight: 500;
    font-size: .95rem;
}
.dropdown a:hover { background: var(--green-050); color: var(--green-900); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(43, 51, 39, .82) 0%, rgba(63, 86, 54, .62) 55%, rgba(63, 86, 54, .30) 100%);
}
.hero__inner {
    padding-block: clamp(4rem, 12vw, 8rem);
    max-width: 640px;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero p { color: rgba(255, 255, 255, .92); font-size: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Info banner ---------- */
.notice {
    background: var(--green-100);
    border: 1px solid #d3e2c6;
    border-left: 5px solid var(--green-500);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.notice__icon { font-size: 1.4rem; line-height: 1.4; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--green-900); }

/* ---------- Cards grid ---------- */
.grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 16 / 11; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { color: var(--green-700); margin-bottom: .4rem; }
.card__body p { color: var(--muted); font-size: .98rem; flex: 1; }
.card__link {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--green-700);
    align-self: flex-start;
}
.card__link:hover { color: var(--green-900); }
.card__link::after { content: " →"; transition: margin .15s ease; }
.card:hover .card__link::after { margin-left: 4px; }

/* ---------- Page header (Unterseiten) ---------- */
.page-head {
    background: linear-gradient(160deg, var(--green-700), var(--green-900));
    color: #fff;
    padding-block: clamp(3rem, 8vw, 5rem);
}
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: rgba(255, 255, 255, .9); font-size: 1.15rem; margin-bottom: 0; max-width: 60ch; }
.breadcrumbs { font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.breadcrumbs a { color: rgba(255,255,255,.9); }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Prose / content ---------- */
.prose { max-width: 72ch; }
.prose.prose--wide { max-width: 100%; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose ul li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: .7rem;
}
.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green-100);
    border: 3px solid var(--green-500);
}
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-block: 1.5rem; }

.two-col {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 820px) {
    .two-col { grid-template-columns: 1fr 1fr; }
    .two-col--reverse .two-col__media { order: -1; }
}
.two-col__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }

/* highlight box */
.callout {
    background: var(--green-050);
    border: 1px solid var(--green-100);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin-block: 1.5rem;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Über mich ---------- */
.profile {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: 1fr;
    align-items: start;
}
@media (min-width: 780px) { .profile { grid-template-columns: 280px 1fr; } }
.profile__photo {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ---------- Kontakt ---------- */
.contact-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { width: 1.7rem; flex: none; color: var(--green-600); display: flex; justify-content: center; padding-top: .15rem; }
.contact-list a { font-weight: 600; }
.contact-list .label { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(160deg, var(--green-700), var(--green-900));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.2rem);
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #cdd3c6;
    padding-block: 3rem 1.5rem;
    font-size: .95rem;
}
.site-footer a { color: #dfe6d6; }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-brand strong { color: #fff; font-size: 1.15rem; display: block; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    justify-content: space-between;
    align-items: center;
    color: #9aa592;
}
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--green-700);
    color: #fff;
    padding: .7rem 1.1rem;
    border-radius: 0 0 8px 0;
    z-index: 200;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
    .nav__toggle { display: inline-flex; }
    .nav__menu {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        padding: .6rem;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .nav__menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav__link { padding: .85rem 1rem; border-radius: 10px; }
    .nav__link[aria-current="page"]::after { display: none; }
    .has-dropdown > .nav__link::after { content: " ▾"; float: right; }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--green-100);
        border-radius: 0;
        margin: .1rem 0 .4rem .8rem;
        padding: 0 0 0 .3rem;
        display: none;
    }
    .has-dropdown.is-open .dropdown { display: block; }
    .brand__name span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
