/* ==========================================================================
   stylesheet.css
   Zentrales Layout-Stylesheet für neu zu erstellende Seiten.
   Basiert auf der Struktur/Optik von affaere.html.
   Farben, Schriftart, Radius, max-width etc. kommen ausschließlich aus
   master-header.css (:root-Variablen) – hier werden keine Farb-/Font-Werte
   hart kodiert, um das Design zentral pflegbar zu halten.

   Einbindereihenfolge im <head> (wichtig wegen Variablen-Herkunft):
     1. cookie.css
     2. master-header.css   (definiert :root { --accent, --sans, ... })
     3. stylesheet.css       (diese Datei, nutzt die Variablen)
   ========================================================================== */

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

html { scroll-behavior: smooth; font-size: 15px; }

body {
    font-family: var(--sans);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
}

/* ─── Grundraster ─── */
.container {
    width: 92%;
    max-width: var(--max-w);
    margin-inline: auto;
}

/* ─── Banner unter dem Header (Seitentitel-Bereich) ─── */
.header-banner {
    display: inline-block;
    width: 100%;
    margin-top: 5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 100%);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.header-banner h1 {
    color: var(--white) !important;
    font-family: var(--serif);
    font-size: 2.5rem;
    margin: 0;
}

.header-banner p {
    color: var(--white);
    opacity: 0.9;
    max-width: 700px;
    margin: 0.75rem auto 0;
    font-size: 1.05rem;
}

/* ─── Vorstellungsbox (Portrait) ─── */
.portrait-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    display: flex;
    gap: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.54);
}

.portrait-img {
    width: 220px;
    flex: 0 0 220px;
    border-radius: 5px;
    object-fit: cover;
}

.intro-content h2 {
    font-family: var(--serif);
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

/* ─── Inhaltsabschnitte im Wechsel (Bild/Text) ─── */
.section-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
}

.section-row.reverse { flex-direction: row-reverse; }

.section-image { flex: 0 0 400px; }

.section-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.section-text h2 {
    font-family: var(--serif);
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

/* ─── Bildplatzhalter (images/platzhalter.jpg) ─── */
.img-placeholder {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--gray-100);
    border-radius: 8px;
}

/* ─── CTA-Box (Verweis auf sprechstunde_online.html) ─── */
.cta-box {
    text-align: center;
    background: var(--accent-light);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    margin: 3rem auto;
    max-width: 850px;
}

.cta-box h3 {
    color: var(--accent);
    font-family: var(--serif);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.cta-box p { margin-bottom: 2.5rem; }

.btn-action {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: var(--radius);
    transition: background var(--t);
}

.btn-action:hover { background: var(--accent-mid); }

/* ─── Footer ─── */
footer {
    background: var(--gray-200);
    color: var(--gray-500);
    padding: 2rem 0;
    font-size: 0.8rem;
}

footer a { color: #101827; }

.footer-ki-hinweis {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: #101827;
}

/* ─── Responsive: Sektionen stapeln auf schmalen Viewports ─── */
@media (max-width: 768px) {
    .section-row,
    .section-row.reverse {
        flex-direction: column;
        gap: 20px;
        margin: 40px 0;
    }
    .section-image { flex: 0 0 auto; width: 100%; }
    .portrait-box { flex-direction: column; text-align: center; }
    .portrait-img { width: 160px; flex: 0 0 auto; margin: 0 auto; }
    .header-banner h1 { font-size: 1.9rem; }
}

.topic-list {
    list-style: disc;
    padding-left: 1.25rem;
}
.topic-list li {
    margin-bottom: 0.75rem;
}

/* ─── Ablauf-Box (Prozessdarstellung Erstgespräch) ─── */
.process-box {
    background: var(--accent-light);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin: 3rem auto;
    max-width: 850px;
}

.process-box h2 {
    font-family: var(--serif);
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.process-box ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.process-box li {
    margin-bottom: 0.6rem;
}

/* ─── Themen-Grid (Karten je Angebotsthema) ─── */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.theme-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.theme-card__body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.theme-card__body h3 {
    font-family: var(--serif);
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.theme-card__body p {
    font-size: 0.92rem;
    color: var(--gray-700);
    flex: 1;
    margin-bottom: 1rem;
}

.theme-card__link {
    align-self: flex-start;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

.theme-card__link:hover {
    color: var(--accent-mid);
    border-color: var(--accent-mid);
}