/*
Theme Name: Frauenärztinnen Südstraße
Theme URI: https://frauenarzt-he.de
Author: AppleIn.blue – Daniel Nimz
Author URI: https://applein.blue
Description: WordPress-Theme für die Frauenarztpraxis Dr. Hosang & Anna Stamm in Helmstedt.
Version: 1.1.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: frauenarzt
*/

/* ---- Self-hosted Fonts (kein Google/externe Verbindung) ---- */
@font-face {
  font-family: 'Syncopate';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/syncopate-ext-400.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syncopate';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/syncopate-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Syncopate';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/syncopate-ext-700.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syncopate';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/syncopate-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/mulish-ext-300.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/mulish-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/mulish-ext-400.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/mulish-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/mulish-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/mulish-ext-600.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/mulish-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/mulish-ext-700.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/mulish-700.woff2') format('woff2');
}

/* ---- CSS Variablen ---- */
:root {
  --color-primary:       #1a5276;
  --font-content-heading: 'Lato', 'Segoe UI', sans-serif;
  --color-primary-light: #2471a3;
  --color-accent:        #c0392b;
  --color-text:          #1a1a1a;
  --color-text-light:    #444444;
  --color-bg:            #ffffff;
  --color-bg-light:      #f4f8fb;
  --color-bg-dark:       #1a2a3a;
  --color-border:        #c8d8e8;
  --font-heading:        'Mulish', 'Segoe UI', sans-serif;
  --font-body:           'Mulish', 'Segoe UI', sans-serif;
  --max-width:           1100px;
  --radius:              4px;
  --shadow:              0 2px 12px rgba(0,0,0,0.10);
  --transition:          0.2s ease;
}

/* ---- Reset & Basis ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: underline; transition: color var(--transition); }
a:hover, a:focus { color: var(--color-primary-light); text-decoration: none; }

/* ---- Skip-Link ---- */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--color-primary); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; z-index: 9999; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; outline: 3px solid #fff; outline-offset: 2px; }

/* ---- Header ---- */
.site-header {
  background: var(--color-bg-dark);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.site-header__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 70px;
}
.site-logo {
  font-family: 'Syncopate', sans-serif; font-size: 0.75rem; font-weight: 700;
  color: #fff; text-decoration: none; line-height: 1.3; letter-spacing: 0.04em; flex-shrink: 0;
}
.site-logo:hover, .site-logo:focus { color: #a8c8e8; }
.site-logo span {
  display: block; font-size: 0.78rem; font-family: var(--font-body);
  font-weight: 300; opacity: 0.85; letter-spacing: 0.03em;
}

/* Mobile Toggle */
.nav-toggle {
  display: none; background: none; border: 2px solid #fff;
  border-radius: var(--radius); color: #fff; cursor: pointer;
  padding: 0.4rem 0.6rem; font-size: 1.3rem; line-height: 1;
}
.nav-toggle:focus { outline: 3px solid #a8c8e8; outline-offset: 2px; }

/* Navigation */
.primary-nav { display: flex; align-items: center; }
.primary-nav ul { list-style: none; display: flex; gap: 0.15rem; flex-wrap: wrap; padding: 0; margin: 0; }
.primary-nav ul li a {
  display: block; padding: 0.55rem 0.9rem; color: #d0e4f0;
  text-decoration: none; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--radius);
}
.primary-nav ul li a:hover,
.primary-nav ul li a:focus { background: rgba(255,255,255,0.15); color: #fff; outline: none; }
.primary-nav .current-menu-item > a { color: #fff; background: var(--color-primary-light); }
.primary-nav .menu-item--cta > a { background: #be185d; color: #fff !important; }
.primary-nav .menu-item--cta > a:hover { background: #9d1256; color: #fff !important; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 340px;
  display: flex; align-items: center; overflow: hidden; background: var(--color-bg-dark);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top; opacity: 0.55;
}
.hero__content {
  position: relative; max-width: var(--max-width);
  margin: 0 auto; padding: 2.5rem 1.5rem; width: 100%;
}
.hero__content h1 {
  font-family: var(--font-body); font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: #fff; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em;
  margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero__content p { font-size: 1.15rem; color: #e8f0f8; max-width: 600px; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }

/* ---- Layout ---- */
main { outline: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.5rem 0; }
.section--light { background: var(--color-bg-light); }

.section-title {
  font-family: var(--font-body); font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-primary); margin-bottom: 1.5rem; font-weight: 700; letter-spacing: 0.01em;
}

/* ---- Kontakt (Startseite) ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

.contact-info { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; margin-bottom: 1.5rem; }
.contact-info dt { font-weight: 600; color: var(--color-primary); align-self: start; padding-top: 0.1em; }
.contact-info dd { margin: 0; }

.opening-hours { margin-top: 0.5rem; }
.opening-hours h3 {
  color: var(--color-primary); margin: 1.25rem 0 0.5rem;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
}
.opening-hours h3:first-child { margin-top: 0; }
.opening-hours table { border-collapse: collapse; width: 100%; margin-top: 0.4rem; }
.opening-hours th, .opening-hours td {
  text-align: left; padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--color-border); font-size: 0.95rem;
}
.opening-hours th { font-weight: 600; color: var(--color-primary); width: 55%; }

/* hours-table helper */
.hours-block { margin-bottom: 1.5rem; }
.hours-block h3 {
  color: var(--color-primary); margin-bottom: 0.5rem;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.hours-table { border-collapse: collapse; width: 100%; }
.hours-table td { padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { font-weight: 500; width: 55%; }
.opening-hours-wrap { display: flex; flex-direction: column; }

.maps-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--color-primary); font-weight: 600; margin-top: 1rem; }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-top: 2rem; }
.team-card { background: var(--color-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--color-border); }
.team-card__icon { width: 100%; height: 200px; background: linear-gradient(135deg, #c8d8e8, #e8f0f8); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.team-card__body { padding: 1.5rem; }
.team-card__role { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary-light); margin-bottom: 0.4rem; }
.team-card h3 { font-family: var(--font-body); font-size: 1.2rem; color: var(--color-primary); margin-bottom: 1rem; font-weight: 700; letter-spacing: 0.04em; }
.team-card__body p, .team-card__body li { font-size: 0.93rem; color: var(--color-text-light); line-height: 1.6; }
.team-card__qual h4 { font-size: 0.88rem; font-weight: 700; color: var(--color-primary); margin-top: 1rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.team-card__qual ul { padding-left: 1.2rem; }
.team-card__qual li { margin-bottom: 0.2rem; font-size: 0.9rem; }

/* ---- Accordion (Geburtshilfe/Gynäkologie) ---- */
.leistungen-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; margin-top: 1.5rem; }
details.leistung {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
details.leistung:hover { box-shadow: 0 4px 16px rgba(26,82,118,0.10); border-color: var(--color-primary-light); }
details.leistung[open] { border-color: var(--color-primary-light); box-shadow: 0 4px 16px rgba(26,82,118,0.10); }
details.leistung > summary {
  padding: 1.1rem 1.35rem; cursor: pointer; font-weight: 600; color: var(--color-primary);
  font-size: 1rem; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
}
details.leistung > summary::-webkit-details-marker { display: none; }
details.leistung > summary::after {
  content: ''; width: 10px; height: 10px; flex-shrink: 0;
  border-right: 2px solid var(--color-primary-light); border-bottom: 2px solid var(--color-primary-light);
  transform: rotate(45deg); transition: transform 0.3s ease;
  margin-right: 4px;
}
details.leistung[open] > summary::after { transform: rotate(-135deg); }
details.leistung > summary:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: -3px; border-radius: 8px; }
details.leistung > summary:hover { background: var(--color-bg-light); }
details.leistung[open] > summary { border-bottom: 1px solid var(--color-border); color: var(--color-primary); }
.leistung__content {
  padding: 1.25rem 1.35rem 1.35rem; color: var(--color-text-light);
  font-size: 0.95rem; line-height: 1.7;
  animation: accordionSlide 0.3s ease-out;
}
@keyframes accordionSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Termine ---- */
.termin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.termin-buchung { background: var(--color-bg-light); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.termin-buchung__header { background: var(--color-primary); color: #fff; padding: 1rem 1.25rem; }
.termin-buchung__header h2 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); margin: 0; }
.termin-buchung iframe { width: 100%; height: 380px; border: 0; display: block; background: #fff; transition: height 0.3s ease; }
.termin-info h2 {
  font-family: var(--font-content-heading); font-size: 1.15rem;
  color: var(--color-primary); margin-bottom: 0.75rem; font-weight: 700;
}
.termin-info > p,
.termin-info > .wp-block-paragraph {
  color: var(--color-text-light); margin-bottom: 0.75rem; font-size: 0.93rem; line-height: 1.7;
}
/* Hinweis-Karte (Bestätigung etc.) */
.termin-info > p:nth-of-type(2),
.termin-info > .wp-block-paragraph:nth-of-type(2) {
  background: var(--color-bg-light); border-radius: 8px;
  padding: 0.9rem 1.1rem; border-left: 3px solid var(--color-primary-light);
  font-size: 0.9rem;
}
/* Notfall-Infobox auf Terminseite */
.termin-info .notfall-infobox {
  background: linear-gradient(135deg, #eaf3fb, #f0f6fc);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px; padding: 1.25rem 1.4rem; margin: 1.25rem 0;
}
.termin-info .notfall-infobox p { font-size: 0.9rem; margin-bottom: 0.6rem; }
.termin-info .notfall-infobox p:last-child { margin-bottom: 0; }
/* Notfall-Termin Absatz */
.termin-info > p:last-of-type,
.termin-info > .wp-block-paragraph:last-of-type {
  background: #fff5f5; border-left: 3px solid #c0392b; border-radius: 8px;
  padding: 0.9rem 1.1rem; font-size: 0.9rem; color: #7b241c;
}
.termin-info > p:last-of-type a { color: #922b21; font-weight: 600; }
/* Termingrund-Liste */
.termin-info h3 {
  font-family: var(--font-content-heading); font-size: 0.9rem; font-weight: 700;
  color: var(--color-primary); margin: 1.25rem 0 0.6rem;
  letter-spacing: 0.03em;
}
.termin-info ul {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1rem;
}
.termin-info ul li {
  background: var(--color-bg-light); border: 1px solid var(--color-border);
  border-radius: 20px; padding: 0.35rem 0.9rem; font-size: 0.82rem;
  color: var(--color-primary); font-weight: 600; white-space: nowrap;
}

/* ---- WP-Content (Editor-Ausgabe im Frontend) ---- */
.wp-content p { margin-bottom: 1rem; color: var(--color-text-light); line-height: 1.7; }
.wp-content p:last-child { margin-bottom: 0; }
.wp-content h2 { font-family: var(--font-body); font-size: 1.4rem; color: var(--color-primary); margin: 1.5rem 0 .75rem; font-weight: 700; }
.wp-content h3 { font-family: var(--font-body); font-size: 1.15rem; color: var(--color-primary); margin: 1.25rem 0 .5rem; font-weight: 600; }
.wp-content ul, .wp-content ol { padding-left: 1.4em; color: var(--color-text-light); margin-bottom: 1rem; }
.wp-content li { margin-bottom: .3rem; line-height: 1.6; }
.wp-content strong { color: var(--color-text); }
.wp-content a { color: var(--color-primary); }
.team-content p { color: var(--color-text-light); font-size: .93rem; line-height: 1.7; margin-bottom: .75rem; }
.team-content h3 { font-family: var(--font-body); font-size: 1.3rem; color: var(--color-primary); margin: 2rem 0 .5rem; font-weight: 700; }
.team-content h4 { font-family: var(--font-body); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-primary); margin: 1rem 0 .4rem; }
.team-content ul { padding-left: 1.2em; color: var(--color-text-light); font-size: .9rem; }
.team-content li { margin-bottom: .2rem; }

/* Notfall */
.notfall-block { display: flex; gap: 1rem; align-items: flex-start; background: #fff5f5; border: 2px solid #c0392b; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.notfall-block__icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 0.1rem; }
.notfall-block__body {}
.notfall-block__titel { font-weight: 700; color: #922b21; font-size: 1rem; display: block; margin-bottom: 0.4rem; }
.notfall-block__text { font-size: 0.93rem; color: #7b241c; display: block; margin-bottom: 0.75rem; }
.notfall-block__text a { color: #922b21; font-weight: 700; }
.notfall-block__link { display: inline-flex; align-items: center; gap: 0.4rem; background: #c0392b; color: #fff !important; text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 0.55rem 1.1rem; border-radius: var(--radius); }
.notfall-block__link:hover { background: #922b21; }
.emergency-box { display: flex; gap: 1rem; align-items: flex-start; background: #fff5f5; border: 2px solid #c0392b; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.25rem 0; }
.emergency-box__icon { font-size: 1.5rem; flex-shrink: 0; }
.emergency-box p { color: #7b241c; font-size: 0.92rem; margin-bottom: 0.5rem; }
.emergency-box a { color: #922b21; font-weight: 700; }
.btn--emergency { display: inline-block; background: #c0392b; color: #fff; text-decoration: none; font-weight: 600; padding: 0.55rem 1.1rem; border-radius: var(--radius); font-size: 0.9rem; margin-top: 0.5rem; }
.btn--emergency:hover { background: #922b21; color: #fff; }
.booking-info-list { list-style: none; padding: 0; }
.booking-info-list li { padding: 0.25rem 0; color: var(--color-text-light); font-size: 0.93rem; }
.booking-info-list li::before { content: '→ '; color: var(--color-primary); font-weight: 700; }

/* ---- Legal ---- */
.legal-title {
  font-family: var(--font-content-heading); font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary); font-weight: 700; letter-spacing: 0.01em;
  margin-bottom: 0.5rem; padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}
.legal-content h2 { font-family: var(--font-body); font-size: 1rem; color: var(--color-primary); margin: 2rem 0 0.75rem; font-weight: 700; letter-spacing: 0.05em; }
.legal-content h3 { font-size: 1.05rem; color: var(--color-primary); margin: 1.5rem 0 0.5rem; font-weight: 600; }
.legal-content p { margin-bottom: 1rem; color: var(--color-text-light); }
.legal-content ul { padding-left: 1.5rem; color: var(--color-text-light); margin-bottom: 1rem; }

/* ---- Footer ---- */
.site-footer { background: var(--color-bg-dark); color: #c0d4e8; padding: 2.5rem 0 1.5rem; }
.site-footer__grid { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem 1.5rem; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; align-items: start; }
.site-footer h4 { font-family: var(--font-body); font-size: 0.78rem; color: #fff; margin-bottom: 0.75rem; font-weight: 600; letter-spacing: 0.05em; }
.site-footer p, .site-footer address { font-size: 0.88rem; line-height: 1.7; font-style: normal; color: #c0d4e8; }
.site-footer a { color: #a0c0dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-note { max-width: var(--max-width); margin: 0 auto; padding: 1rem 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; color: #788898; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-note a { color: #788898; text-decoration: none; }
.footer-note a:hover { color: #a0c0dc; }

/* ---- Fokus ---- */
:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 2px; border-radius: 2px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .termin-layout { grid-template-columns: 1fr; }
  .termin-info { order: -1; }
  .termin-buchung { order: 1; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .primary-nav { position: absolute; top: 70px; left: 0; right: 0; background: var(--color-bg-dark); display: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0 1rem; }
  .primary-nav ul li a { padding: 0.7rem 1.5rem; font-size: 0.95rem; }
  .site-header__inner { flex-wrap: wrap; padding: 0.75rem 1.5rem; }
}
@media (max-width: 640px) {
  .hero { min-height: 220px; }
  .hero__content h1 { font-size: 1.4rem; }
  .hero__content { padding: 1.8rem 1.5rem; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ---- Animationen ---- */

/* Scroll-Reveal Basis */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}

/* Varianten */
.reveal--left {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal--left.is-visible { opacity: 1; transform: translateX(0); }

.reveal--right {
  opacity: 0; transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal--right.is-visible { opacity: 1; transform: translateX(0); }

/* Gestaffeltes Einblenden */
.reveal--stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal--stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.reveal--stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.reveal--stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.reveal--stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.reveal--stagger.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.reveal--stagger.is-visible > *:nth-child(n+6) { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }

/* Hero Lade-Animation */
.hero__content h1 {
  animation: heroSlideUp 0.8s ease both;
}
.hero__content p {
  animation: heroSlideUp 0.8s ease 0.2s both;
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nav: sanftes Fade-out beim Verlassen */
.primary-nav ul li a {
  transition: background 0.5s ease, color 0.5s ease;
}
.primary-nav ul li a:hover,
.primary-nav ul li a:focus {
  transition: background 0.15s ease, color 0.15s ease;
}

/* Termin-Button Hover */
.primary-nav .menu-item--cta > a {
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.primary-nav .menu-item--cta > a:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(190,24,93,0.3);
}

/* Team-Cards Hover Lift */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right { opacity: 1; transform: none; transition: none; }
  .reveal--stagger > * { opacity: 1; transform: none; transition: none; }
  .hero__content h1, .hero__content p { animation: none; }
  .team-card { transition: none; }
  .primary-nav ul li a::after { transition: none; }
}

/* ---- Hero-Bilder pro Seite ---- */
.hero__bg {
  background-image: url('images/hero.jpeg');
}
.page-team .hero__bg {
  background-image: url('images/hero.jpeg');
}
.page-geburtshilfe .hero__bg {
  background-image: url('images/hero.jpeg');
}
.page-gynaekologie .hero__bg {
  background-image: url('images/hero.jpeg');
}
.page-termin-buchen .hero__bg {
  background-image: url('images/hero.jpeg');
}


/* ============================================================
   ÜBERSCHRIFTEN-FONTS (4 Optionen, eine aktivieren)
   Aktiviere eine Option durch Einkommentieren in :root oben,
   oder ändere --font-content-heading direkt.
   ============================================================ */

/* DM Sans (Modern & Klar) */
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/dm-sans-ext-400.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/dm-sans-400.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/dm-sans-ext-700.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/dm-sans-700.woff2') format('woff2'); }

/* Playfair Display (Elegant & Serif) */
@font-face { font-family:'Playfair Display'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/playfair-ext-400.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Playfair Display'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/playfair-400.woff2') format('woff2'); }
@font-face { font-family:'Playfair Display'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/playfair-ext-700.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Playfair Display'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/playfair-700.woff2') format('woff2'); }

/* Nunito (Warm & Freundlich) */
@font-face { font-family:'Nunito'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/nunito-ext-400.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Nunito'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/nunito-400.woff2') format('woff2'); }
@font-face { font-family:'Nunito'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/nunito-ext-700.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Nunito'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/nunito-700.woff2') format('woff2'); }

/* Lato (Neutral & Zeitlos) */
@font-face { font-family:'Lato'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/lato-ext-400.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Lato'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family:'Lato'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/lato-ext-700.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Lato'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/lato-700.woff2') format('woff2'); }

/* ============================================================
   AKTIVER ÜBERSCHRIFTEN-FONT — hier umschalten:
   'DM Sans'          → Modern & Klar
   'Playfair Display' → Elegant & Serif
   'Nunito'           → Warm & Freundlich
   'Lato'             → Neutral & Zeitlos
   ============================================================ */
/* font-content-heading ist jetzt in :root oben */

.section-title,
.hero__content h1,
.wp-content h2, .wp-content h3,
.team-content h3, .team-content h4,
.legal-content h2, .legal-content h3,
.hours-block h3, .opening-hours h3,
.termin-info h2, .termin-info h3 {
  font-family: var(--font-content-heading) !important;
}


/* ---- Team-Karten: Profilfotos ---- */
.team-card__image-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-light);
}
.team-card__image-wrap img,
.team-card__image-wrap figure img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}
.team-card__image-wrap figure {
  margin: 0;
}
.team-card__placeholder {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  background: linear-gradient(135deg, #c8d8e8, #e8f0f8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* Team-Card Body: Inhalte aus dem Editor */
.team-card__body > p:first-child { margin-top: 0; }
.team-card__body h3 {
  font-family: var(--font-content-heading);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin: 0 0 .5rem;
  font-weight: 700;
}
.team-card__body h4 {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-primary);
  margin: 1rem 0 .4rem;
}
.team-card__body p {
  font-size: .93rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: .6rem;
}
.team-card__body ul {
  padding-left: 1.2em;
  color: var(--color-text-light);
  font-size: .9rem;
  margin-bottom: .5rem;
}
.team-card__body li { margin-bottom: .2rem; }
.team-card__body strong { color: var(--color-text); }


/* ---- Notfall-Infobox (Geburtshilfe-Seite) ---- */
.notfall-infobox {
  background: #eaf3fb;
  border-left: 4px solid var(--color-primary) !important;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem !important;
  margin-bottom: 2rem;
}
.notfall-infobox h3 {
  font-family: var(--font-content-heading);
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: .6rem;
  font-weight: 700;
}
.notfall-infobox p {
  font-size: .95rem;
  color: var(--color-text-light);
  margin-bottom: .5rem;
  line-height: 1.6;
}
.notfall-infobox p:last-child { margin-bottom: 0; }
.notfall-infobox a { color: var(--color-primary); font-weight: 600; }

/* ---- Praxis-Mitteilung Banner ---- */
.praxis-mitteilung {
  background: #fff3cd;
  border-left: 4px solid #b85c00;
  border-radius: 0 4px 4px 0;
  padding: 20px 24px 28px 20px;
  margin: 8px 0 80px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-sizing: border-box;
}
.praxis-mitteilung__icon {
  width: 22px;
  height: 22px;
  background: #b85c00;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}
.praxis-mitteilung__icon::after {
  content: '!';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  width: 100%;
}
.praxis-mitteilung__titel {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  color: #7d3e00;
  margin-bottom: 4px;
}
.praxis-mitteilung__text {
  font-size: .9rem;
  color: #7d3e00;
  line-height: 1.6;
  margin: 0;
}
.praxis-mitteilung__text a { color: #7d3e00; font-weight: 700; }
