/* wiens.hamburg – gemeinsames Stylesheet (index, impressum, datenschutz).
   Keine externen Ressourcen: Systemschriften, Icons als Inline-SVG. */

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

:root {
    --navy: #1a3a5c;
    --navy-deep: #12283f;
    --petrol: #2e7d6f;
    --petrol-deep: #1f6559;

    --bg: #ffffff;
    --bg-soft: #f3f6f9;
    --surface: #ffffff;
    --border: #dde4ea;
    --text: #1d2733;
    --muted: #4a5866;
    --heading: #1a3a5c;
    --link: #246758;
    --link-visited: #3c5e58;
    --link-bg: #e6f2ef;
    --link-bg-hover: #cfe7e1;
    --chip-bg: #e3f1ee;
    --chip-text: #1f6559;
    --shadow: 0 1px 2px rgba(18, 40, 63, 0.06), 0 8px 24px rgba(18, 40, 63, 0.06);
    --focus: #2e7d6f;
    --error: #b4442f;

    --max: 1080px;
    --radius: 14px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e1a26;
        --bg-soft: #122131;
        --surface: #16293b;
        --border: #24394e;
        --text: #e6edf3;
        --muted: #a9b7c4;
        --heading: #f1f5f9;
        --link: #5cc4ae;
        --link-visited: #a3cfc5;
        --link-bg: #15302f;
        --link-bg-hover: #1d4441;
        --chip-bg: #183b3a;
        --chip-text: #7fd6c2;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
        --focus: #5cc4ae;
        --error: #f0a08e;
        color-scheme: dark;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

img,
svg {
    max-width: 100%;
}

/* Keine Unterstriche auf der ganzen Seite (Obendorf/Weinreich, WWW2003): Links im Lesetext tragen Farbe,
   Halbfett und Tönung (siehe „Links im Lesetext“), alle anderen sind Navigation, Knöpfe oder Kacheln. */
a {
    color: var(--link);
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- Kopfzeile ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--heading);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.brand-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--petrol-deep) 100%);
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.brand-text small {
    display: block;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--muted);
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    background: var(--bg-soft);
    color: var(--heading);
}

.site-nav a.nav-cta {
    background: var(--petrol);
    color: #fff;
}

.site-nav a.nav-cta:hover {
    background: var(--petrol-deep);
    color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    font-family: inherit;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: 10px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
}

.btn-primary {
    background: var(--petrol);
    color: #fff;
}

.btn-primary:hover {
    background: var(--petrol-deep);
}

.btn-light {
    background: #fff;
    color: var(--navy);
}

.btn-light:hover {
    background: #e9f3f1;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
    outline-color: #fff;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(92, 196, 174, 0.28), transparent 60%),
        linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--petrol-deep) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 1.25rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero h1 {
    margin: 0 0 1.25rem;
    max-width: 18ch;
    font-size: clamp(2.3rem, 5.5vw, 3.9rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    color: #a6e6d8;
}

.hero .lead {
    max-width: 40rem;
    margin: 0 0 2.25rem;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #e3ecf3;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* ---------- Abschnitte ---------- */

.section {
    padding: 5.5rem 0;
}

.section-alt {
    background: var(--bg-soft);
}

.section-head {
    max-width: 42rem;
    margin-bottom: 3rem;
}

.section .kicker {
    margin: 0 0 0.6rem;
    color: var(--link);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section h2 {
    margin: 0 0 1rem;
    color: var(--heading);
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

/* Leistungen */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 1.25rem;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--petrol);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: var(--chip-bg);
    color: var(--chip-text);
}

.card-icon svg {
    width: 1.6rem;
    height: 1.6rem;
}

.card h3 {
    -webkit-hyphens: auto;
    hyphens: auto;
    margin: 0 0 0.6rem;
    color: var(--heading);
    font-size: 1.2rem;
    line-height: 1.3;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

/* Über mich */

.about {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}

.about p {
    margin: 0 0 1.1rem;
    color: var(--muted);
}

.about p.intro {
    color: var(--text);
    font-size: 1.2rem;
}

.about .quote {
    margin: 1.75rem 0 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 4px solid var(--petrol);
    color: var(--heading);
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
}

.facts {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.facts li {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.facts strong {
    display: block;
    color: var(--heading);
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.facts span {
    color: var(--muted);
    font-size: 0.95rem;
}

.facts .card-icon {
    margin: 0;
    flex: none;
}

/* Community */

.community {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1.25rem;
}

.community-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.community-card:hover {
    transform: translateY(-3px);
    border-color: var(--petrol);
}

.community-card .domain {
    color: var(--link);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.community-card h3 {
    margin: 0;
    color: var(--heading);
    font-size: 1.3rem;
    line-height: 1.3;
}

.community-card p {
    margin: 0;
    color: var(--muted);
}

.community-card .more {
    margin-top: auto;
    padding-top: 0.75rem;
    color: var(--link);
    font-weight: 600;
}

/* Kontakt */

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 3.5rem;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(40rem 20rem at 100% 0%, rgba(92, 196, 174, 0.3), transparent 60%),
        linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--petrol-deep) 100%);
}

.cta-band h2 {
    color: #fff;
}

.cta-band .kicker {
    color: #a6e6d8;
}

.cta-band p {
    max-width: 38rem;
    margin: 0 0 2rem;
    color: #e3ecf3;
    font-size: 1.1rem;
}

.contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin: 2rem 0 0;
    padding: 1.75rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-list svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: none;
    color: #a6e6d8;
}

.contact-list a {
    color: #fff;
    font-weight: 600;
    transition: color 0.15s ease;
}

.contact-list a:hover {
    color: #a6e6d8;
}

/* ---------- Rechtstexte ---------- */

.page-title {
    color: #fff;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--petrol-deep) 100%);
}

.page-title .container {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.page-title h1 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.prose {
    max-width: 46rem;
    padding-top: 3rem;
    padding-bottom: 4.5rem;
}

.prose h2 {
    margin: 2.5rem 0 0.8rem;
    color: var(--heading);
    font-size: 1.5rem;
    line-height: 1.3;
}

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

.prose h3 {
    margin: 1.75rem 0 0.5rem;
    color: var(--heading);
    font-size: 1.2rem;
}

.prose h4 {
    margin: 1.4rem 0 0.4rem;
    color: var(--text);
    font-size: 1.05rem;
}

.prose p,
.prose ul {
    margin: 0 0 1rem;
    color: var(--muted);
}

.prose ul {
    padding-left: 1.25rem;
}

.prose strong {
    color: var(--text);
}

/* ---------- Links im Lesetext ----------
   Studie Obendorf/Weinreich (WWW2003): Unterstreichungen senken die Lesbarkeit messbar, eine dezente
   Hintergrund-Markierung kaum. Deshalb im Lesetext (Impressum, Datenschutz, Hinweise) Farbe + getönter Hintergrund
   statt Unterstrich; besuchte Links etwas gedämpft; Links auf fremde Seiten mit ↗. */

.prose a,
.hint a,
.privacy a {
    padding: 0 0.15em;
    border-radius: 3px;
    color: var(--link);
    background: var(--link-bg);
    font-weight: 600; /* zweites Merkmal neben der Farbe (WCAG 1.4.1) – Fett statt Unterstrich, wie in der Typografie üblich */
    text-decoration: none;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background 0.15s ease;
}

.prose a:visited,
.hint a:visited,
.privacy a:visited {
    color: var(--link-visited);
}

.prose a:hover,
.hint a:hover,
.privacy a:hover {
    background: var(--link-bg-hover);
}

.prose a[href^="http"]::after {
    content: "\00a0\2197";
    content: "\00a0\2197" / " (externe Seite)";
}

/* ---------- Terminbuchung (termin.html) ---------- */

.page-lead {
    max-width: 40rem;
    margin: 0.6rem 0 0;
    color: #e3ecf3;
}

.booking-section {
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
}

.booking {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 2rem;
    align-items: start;
}

.panel {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.booking-steps > * + * {
    margin-top: 1.25rem;
}

.panel h2 {
    margin: 0 0 1.1rem;
    color: var(--heading);
    font-size: 1.25rem;
    line-height: 1.3;
}

.step {
    display: inline-grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--chip-bg);
    color: var(--chip-text);
    font-size: 0.9rem;
}

.panel fieldset {
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
}

.panel fieldset:last-child {
    margin-bottom: 0;
}

.panel legend,
.panel .label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.choice {
    position: relative;
}

.choice input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.choice span {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-weight: 600;
}

.choice input:checked + span {
    border-color: var(--petrol);
    background: var(--chip-bg);
    color: var(--chip-text);
}

.choice input:focus-visible + span {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.custom-duration {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.custom-duration[hidden] {
    display: none;
}

.custom-duration .hint {
    margin: 0;
    flex-basis: 100%;
}

.custom-duration label {
    color: var(--muted);
}

.panel .custom-duration input[type=text] {
    width: 5.5rem;
    min-height: 2.75rem;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.panel .custom-duration input[type=text].active {
    border-color: var(--petrol);
    background: var(--chip-bg);
    color: var(--chip-text);
    font-weight: 600;
}

.hint {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.panel .hint + .btn {
    margin-top: 1rem;
}

.request-link {
    margin-top: 1.25rem;
}

.field {
    margin-bottom: 1rem;
}

.panel input[type=text],
.panel input[type=email],
.panel textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.panel textarea {
    min-height: 6rem;
    resize: vertical;
}

.panel ::placeholder {
    color: var(--muted);
    opacity: 1;
}

.panel input[aria-invalid=true],
.panel textarea[aria-invalid=true] {
    border-color: var(--error);
}

.error-msg {
    margin: 0.3rem 0 0;
    color: var(--error);
    font-size: 0.9rem;
}

.privacy {
    color: var(--muted);
    font-size: 0.9rem;
}

.btn[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

.week {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.week strong {
    color: var(--heading);
}

.icon-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1.2rem;
    cursor: pointer;
}

.icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.days {
    display: grid;
    gap: 1rem;
}

.day h3 {
    margin: 0 0 0.5rem;
    color: var(--heading);
    font-size: 1rem;
}

.slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.slot {
    min-width: 5rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.slot:hover {
    border-color: var(--petrol);
}

.slot[aria-pressed=true] {
    border-color: var(--petrol);
    background: var(--petrol);
    color: #fff;
}

.notice {
    margin: 0;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--muted);
}

.notice.ok {
    border-left: 4px solid var(--petrol);
    color: var(--text);
}

.notice.error {
    border-left: 4px solid var(--error);
    color: var(--text);
}

.summary dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    margin: 0 0 1rem;
}

.summary-row {
    display: contents;
}

.summary dt {
    color: var(--muted);
}

.summary dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.skeleton {
    height: 2.75rem;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--bg-soft), var(--border), var(--bg-soft));
    background-size: 200% 100%;
    animation: skeleton 1.2s infinite;
}

@keyframes skeleton {
    to {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton {
        animation: none;
    }
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .booking {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .panel {
        padding: 1.25rem;
    }
}

/* ---------- Monatskalender (termin.html) ---------- */

.calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
    transition: opacity 0.15s ease;
}

.calendar.is-loading {
    opacity: 0.45;
}

.cal-head {
    padding-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.cal-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 3rem;
    padding: 0.25rem 0;
    border: 1.5px solid transparent;
    border-radius: 10px;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1;
}

button.cal-day {
    cursor: pointer;
}

.cal-day.is-free {
    border-color: var(--border);
    border-color: color-mix(in srgb, var(--petrol) 45%, transparent);
    background: var(--bg);
    font-weight: 700;
}

/* Auslastung: je mehr frei, desto kräftiger getönt – zusätzlich zum Balken, damit man den Monat auf einen Blick
   überfliegt. Der gewählte Tag (aria-pressed, unten) überschreibt die Tönung. */
.cal-day.is-free.lvl-3 {
    background: color-mix(in srgb, var(--petrol) 30%, var(--bg));
}

.cal-day.is-free.lvl-2 {
    background: color-mix(in srgb, var(--petrol) 12%, var(--bg));
}

.cal-day.is-free.lvl-1 {
    border-color: color-mix(in srgb, var(--petrol) 30%, transparent);
    font-weight: 600;
}

.cal-day.is-short {
    border-color: var(--border);
    border-color: color-mix(in srgb, var(--petrol) 45%, transparent);
    border-style: dashed;
    background: var(--bg);
}

.cal-day.is-none {
    color: var(--muted);
}

.cal-day.is-out {
    color: var(--muted);
    opacity: 0.45;
}

/* Nichts frei, aber schon ein Termin des Kunden (US #215): wählbar, deshalb mit Rand */
button.cal-day.is-none {
    border-color: var(--border);
}

button.cal-day:hover {
    border-color: var(--petrol);
}

.cal-day[aria-pressed=true],
.cal-day.is-free[aria-pressed=true] {
    border-color: var(--petrol);
    border-style: solid;
    background: var(--chip-bg);
    color: var(--chip-text);
}

.cal-dot,
.cal-ring {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--petrol);
}

.cal-ring {
    background: none;
    border: 1.5px solid var(--petrol);
}

.cal-meter {
    display: inline-flex;
    gap: 2px;
    align-items: flex-end;
}

.cal-meter span {
    display: block;
    width: 0.32rem;
    border-radius: 1px;
    background: color-mix(in srgb, var(--muted) 40%, transparent);
}

.cal-meter span:nth-child(1) { height: 0.35rem; }
.cal-meter span:nth-child(2) { height: 0.55rem; }
.cal-meter span:nth-child(3) { height: 0.75rem; }

.cal-meter span.on {
    background: var(--petrol);
}

.cal-day[aria-pressed=true] .cal-meter span.on {
    background: var(--chip-text);
}

/* Dunkel: das Petrol der hellen Seite ist auf dunklem Grund zu schwach – helleres Grün für Balken, kräftigere Tönung */
@media (prefers-color-scheme: dark) {
    .cal-meter span.on {
        background: var(--chip-text);
    }

    .cal-day.is-free.lvl-3 {
        background: color-mix(in srgb, var(--petrol) 50%, var(--bg));
    }

    .cal-day.is-free.lvl-2 {
        background: color-mix(in srgb, var(--petrol) 22%, var(--bg));
    }
}

.cal-short {
    color: var(--link);
    font-size: 0.7rem;
    font-weight: 700;
}

.cal-short::before {
    content: "";
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.15rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    vertical-align: 0.05em;
}

/* Bestehender Termin des Kunden (US #215): kleines Quadrat oben rechts – andere Form und Farbe als „frei“ */
.cal-existing {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 2px;
    background: var(--heading);
}

.cal-day .cal-existing {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
}

.existing-hint {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.9rem;
    border-left: 4px solid var(--heading);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 0.95rem;
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.25rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.85rem;
}

.cal-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.day-slots {
    margin-top: 1.25rem;
}

.day-slots h3 {
    margin: 0 0 0.6rem;
    color: var(--heading);
    font-size: 1rem;
}

.shorter-hint {
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--petrol);
    border-radius: 10px;
    background: var(--bg-soft);
}

.shorter-hint p {
    margin: 0 0 0.85rem;
    color: var(--text);
}

@media (max-width: 400px) {
    .calendar {
        gap: 0.15rem;
    }

    .cal-day {
        min-height: 2.75rem;
        font-size: 0.9rem;
    }
}

/* ---------- Fußzeile ---------- */

.site-footer {
    padding: 3rem 0;
    color: #c5d3df;
    background: var(--navy-deep);
    font-size: 0.95rem;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}

.site-footer .brand {
    color: #fff;
}

.site-footer .brand-text small {
    color: #c5d3df;
}

.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

/* Hover nur als Farbwechsel – und nicht am Logo (Avatar „PW“ und Name bleiben ruhig) */
.site-footer nav a:hover {
    color: #a6e6d8;
}

.site-footer a[aria-current="page"] {
    color: #a6e6d8;
}

/* ---------- Responsiv ---------- */

@media (max-width: 820px) {
    .about {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 720px) {
    html {
        scroll-padding-top: 0;
    }

    .site-header {
        position: static;
    }

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .site-nav ul {
        gap: 0.15rem;
    }

    .site-nav a {
        padding: 0.4rem 0.6rem;
    }

    .hero .container {
        padding-top: 3.75rem;
        padding-bottom: 4rem;
    }

    .section {
        padding: 4rem 0;
    }

    .cta-band {
        padding: 2.25rem 1.5rem;
        border-radius: 16px;
    }
}

@media (max-width: 400px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-nav a {
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
