/* ==========================================================================
   Praxis für Psychotherapie Patricia Winheim – Designsystem
   ========================================================================== */

:root {
    --primary-green: #5a7a61;
    --accent-green: #8da493;
    --bg-warm: #faf8f5;
    --text-dark: #2c3e2e;
    --text-muted: #616c63;
    --white: #ffffff;
    --border-color: #e2e8f0;

    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans: "Source Sans 3", system-ui, sans-serif;

    --shadow-soft: 0 4px 24px rgba(44, 62, 46, 0.08);
    --shadow-card: 0 8px 32px rgba(44, 62, 46, 0.06);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: 0.25s ease;
    --container-max: 1120px;
    --header-green: #6d8f75;
    --nav-green: #8da493;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--bg-warm);
    min-height: 100vh;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--primary-green);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

a:hover,
a:focus-visible {
    color: var(--accent-green);
}

ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--primary-green);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* Layout */
.container {
    width: min(100% - 2rem, var(--container-max));
    margin-inline: auto;
}

/* Header */
.site-header {
    background: linear-gradient(180deg, var(--header-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    position: relative;
    z-index: 100;
}

.header-accent {
    height: 6px;
    background: var(--accent-green);
    opacity: 0.85;
}

.header-brand {
    padding: 2.5rem 1rem 2rem;
    text-align: center;
}

.brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.brand-link:hover {
    color: inherit;
    opacity: 0.95;
}

.brand-logo {
    width: 7rem;
    height: 7rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: clamp(1.875rem, 5vw, 3.75rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.brand-title {
    font-size: clamp(0.75rem, 2vw, 1.25rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.92;
    margin-top: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 28rem;
}

.header-tagline {
    max-width: 40rem;
    margin: 1.5rem auto 0;
}

.tagline-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
}

.tagline-sub {
    font-size: clamp(0.75rem, 1.5vw, 1.125rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    opacity: 0.88;
    margin-top: 0.5rem;
}

/* Navigation bar */
.nav-bar {
    background: var(--nav-green);
    box-shadow: var(--shadow-soft);
}

.nav-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    min-height: 3.25rem;
}

.nav-hint {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    opacity: 0.92;
    white-space: nowrap;
}

/* Desktop navigation */
.nav-desktop {
    display: none;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition), opacity var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    border-bottom-color: rgba(255, 255, 255, 0.85);
    color: var(--white);
    opacity: 1;
}

/* Mobile toggle */
.nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-toggle-icon {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    position: relative;
    box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    box-shadow: none;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    transform: rotate(-90deg);
}

/* Mobile navigation overlay */
.nav-mobile {
    background: var(--nav-green);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.nav-mobile.is-open {
    max-height: 520px;
    opacity: 1;
}

.nav-mobile-list {
    padding: 0.75rem 1rem 1.25rem;
    max-width: 24rem;
    margin-inline: auto;
}

.nav-mobile-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 300;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.nav-mobile-link:hover,
.nav-mobile-link:focus-visible,
.nav-mobile-link.is-active {
    background: rgba(90, 122, 97, 0.45);
    color: var(--white);
}

.nav-mobile-legal {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-mobile-legal a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-decoration: none;
}

/* Hero */
.hero {
    padding: 4rem 0 3.5rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-warm) 100%);
}

.hero-inner {
    text-align: center;
    max-width: 42rem;
}

.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.hero-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #4a6a51;
    border-color: #4a6a51;
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(90, 122, 97, 0.1);
    color: var(--primary-green);
}

/* Sections */
.section {
    padding: 3.5rem 0;
}

.section-header {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.section-lead {
    color: var(--text-muted);
}

/* Cards */
.cards-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: 0 12px 40px rgba(44, 62, 46, 0.1);
    transform: translateY(-2px);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.card-link {
    font-weight: 500;
    text-decoration: none;
}

.card-link::after {
    content: " →";
}

/* Trust section */
.section-trust {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.trust-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--text-muted);
}

/* Inner pages */
.page-hero {
    padding: 2.5rem 0 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.page-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 40rem;
}

.prose {
    max-width: 42rem;
}

.prose p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.prose h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-dark);
    margin: 2rem 0 0.75rem;
}

.prose .btn {
    margin-top: 0.5rem;
}

.styled-list {
    list-style: decimal;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.styled-list li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Contact */
.contact-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

.contact-map {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--white);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

.contact-map-link {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.contact-map-link a {
    font-weight: 500;
    text-decoration: none;
}

.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.form-note {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1.25rem;
}

.form-row-split {
    grid-template-columns: 1fr 1fr;
}

.form-row-street {
    grid-template-columns: 2fr 1fr;
}

.form-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.form-required {
    color: #b42318;
}

.form-field input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 8px);
    font: inherit;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(90, 122, 97, 0.15);
}

.form-field input[aria-invalid="true"] {
    border-color: #b42318;
}

.form-error {
    margin-top: 0.35rem;
    color: #b42318;
    font-size: 0.9rem;
}

.form-alert {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 1.25rem;
}

.form-alert-success {
    background: #eef6ef;
    border: 1px solid #c8dcc9;
    color: var(--text-dark);
}

.form-alert-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

@media (max-width: 640px) {
    .form-row-split,
    .form-row-street {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background: var(--primary-green);
    color: var(--white);
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding: 3rem 1rem 2rem;
    grid-template-columns: 1fr;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.footer-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 300;
}

.footer-heading {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-hours {
    margin-top: 0.75rem;
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.12);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    text-align: center;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-dsgvo {
    font-size: 0.8rem;
    opacity: 0.75;
    max-width: 36rem;
    margin-inline: auto;
}

/* Media queries */
@media (min-width: 768px) {
    .nav-hint {
        display: block;
    }

    .nav-toggle {
        display: none;
    }

    .nav-desktop {
        display: block;
        flex: 1;
    }

    .nav-bar-inner {
        justify-content: flex-end;
        gap: 2rem;
    }

    .nav-mobile {
        display: none !important;
    }

    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .header-brand {
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }
}

@media (max-width: 767px) {
    .nav-hint {
        display: none;
    }
}

/* Print – keine Flex/Grid-Probleme */
@media print {
    .site-header,
    .nav-bar,
    .nav-mobile,
    .skip-link,
    .hero-actions .btn-secondary {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .cards-grid,
    .trust-grid,
    .footer-grid,
    .contact-grid {
        display: block !important;
    }

    .card,
    .trust-item {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
    }

    .btn {
        display: none;
    }
}

/* Online-Terminbuchung (eingebettet) */
.nav-link-cta {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
}

.nav-hint a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.nav-hint a:hover,
.nav-hint a:focus-visible {
    text-decoration: underline;
    color: var(--white);
}

.section-termin-embed {
    padding-top: 0;
}

.termin-embed-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.termin-embed-frame {
    display: block;
    width: 100%;
    min-height: 920px;
    border: 0;
    background: #f4f7f5;
}

.termin-embed-fallback {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
}

.page-termin .page-hero {
    padding-bottom: 1.5rem;
}
