/* Ärzte am Neckar — statisches Rebuild (Werte aus Browser-Messung am Original) */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-400italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Basis ---------- */
:root {
  --green: #cccd00;
  --blue: #4575bd;
  --blue-deep: #2f65b5;
  --blue-light: #b5cbed;
  --navy: #33537c;
  --dark: #212121;
  --text: #666;
  --heading: #333;
  --grey-mid: #868686;
  --grey-soft: #858585;
  --link-blue: #2ea3f2;
  --card-border: #d8d8d8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px; font-weight: 500; line-height: 1.7em;
  color: var(--text); background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--link-blue); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 500; line-height: 1em; padding-bottom: 10px; }
h1 { font-size: 30px; } h2 { font-size: 26px; } h3 { font-size: 22px; }
h4 { font-size: 18px; } h5 { font-size: 16px; } h6 { font-size: 14px; }
p { padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
ul, ol { list-style: none; }
.container { width: 80%; max-width: 1080px; margin: 0 auto; }
.section { padding: 54px 0; }
main { min-height: 40vh; }

/* Große Sektions-Überschrift (Divi cmsmasters_heading) */
.lead h2 { font-size: 36px; font-weight: 300; color: var(--blue); line-height: 1em; padding-bottom: 10px; }
.lead p { font-size: 20px; font-weight: 300; color: var(--grey-mid); }
.lead { margin-bottom: 17px; }

/* Buttons */
.btn { display: inline-block; font-size: 14px; line-height: 1.7em; padding: 6px 20px; border: 2px solid; border-radius: 3px; cursor: pointer; transition: all .2s; background: transparent; }
.btn-outline-white { color: #fff; border-color: #fff; border-radius: 0; padding: 10px 20px; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }
.btn-white { background: #fff; color: var(--dark); border-color: #fff; font-weight: 600; padding: 10px 24px; }
.btn-white:hover { background: rgba(255,255,255,.85); }
.btn-white svg { width: 14px; height: 14px; fill: var(--dark); margin-right: 8px; vertical-align: -2px; }
.btn-outline-blue { color: var(--blue); border-color: var(--blue); font-size: 20px; font-weight: 500; }
.btn-outline-blue:hover { background: rgba(69,117,189,.08); }

/* ---------- Topbar + Header ---------- */
.site-top { background: url('../img/header-praxis.jpg') center / cover no-repeat; color: #fff; }
.topbar { padding-top: 28px; }
.topbar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 13px; color: #fff; padding-bottom: 27px; border-bottom: 1px solid rgba(255,255,255,.35); }
.topbar a { color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 40px 0 59px; }
.logo img { width: 150px; height: auto; display: block; }
.main-nav ul { display: flex; align-items: center; }
.main-nav > ul > li { position: relative; padding: 10px 0 10px 22px; }
.main-nav a { color: #fff; font-weight: 700; font-size: 14px; }
.main-nav a[aria-current="page"], .main-nav a:hover { opacity: .85; }
.main-nav .caret { display: inline-block; margin-left: 5px; font-size: 10px; vertical-align: 1px; }
.main-nav .sub { display: none; position: absolute; top: 100%; left: 22px; z-index: 50;
  background: #fff; min-width: 220px; padding: 10px 0; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { display: block; }
.main-nav .sub li { display: block; }
.main-nav .sub a { display: block; color: var(--text); font-weight: 500; padding: 6px 20px; }
.main-nav .sub a:hover { opacity: 1; background: #f5f5f5; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }
.subheader { background: var(--green); }
.subheader h4 { color: #fff; font-size: 18px; font-weight: 700; padding: 14px 0; line-height: 22px; }

/* ---------- Slider (Home fullwidth + Content-Slider) ---------- */
.slider { position: relative; overflow: hidden; }
.slider .slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1s ease-in-out; }
.slider .slide.active { opacity: 1; }
.slider-space { width: 80%; max-width: 1080px; margin: 0 auto; }
.slider-space::before { content: ""; display: block; padding-top: 32%; margin: 24px 0; }
.slider .dots { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; z-index: 5; }
.slider .dots button { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); margin: 0 4px; padding: 0; cursor: pointer; }
.slider .dots button.active { background: #fff; }
.content-slider .slider-space { width: 100%; }

/* Aktuelles-Badge über dem Slider (Home) */
.badge-section { padding: 54px 0; }
.badge-section .container { text-align: right; height: 0; }
.badge-section img { display: block; margin-left: auto; width: 200px; height: 200px; margin-top: -273px; position: relative; z-index: 10; }

/* ---------- Kontakt-Blurbs (3 Spalten, Icon links) ---------- */
.blurb-section { padding: 20px 0; }
.blurb-section .contact-blurbs { padding: 18px 0; }
.promo-section { padding: 0 0 54px; }
.diag-section { padding: 30px 0; }
.diag-section .lead, .zusatz-section .lead { padding: 27px 0; margin-bottom: 0; }
.diag-grid { margin: 27px 0; }
.zusatz-section { padding: 54px 0; }
.zusatz-section .contact-blurbs { padding: 27px 0 40px; }
.zusatz-section .contact-blurbs p { font-size: 12px; line-height: 23.8px; }
.contact-blurbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 59px; }
.iblurb { display: flex; align-items: flex-start; }
.iblurb .icon { flex: none; width: 32px; margin-right: 15px; }
.iblurb .icon svg { width: 32px; height: 32px; fill: var(--blue); }
.iblurb h4 { font-size: 18px; color: var(--heading); line-height: .9em; padding-bottom: 6px; }
.iblurb h4 a { color: var(--heading); }
.iblurb p { font-size: 14px; color: var(--text); padding: 0; }

/* ---------- Promo-Boxen (Home, Sidebar) ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promo { padding: 40px; color: #fff; }
.promo h2 { color: #fff; font-size: 23px; padding-bottom: 16px; }
.promo p { font-size: 14px; color: #fff; }
.promo .btn { margin-top: 20px; }
.promo-green { background: var(--green); }
.promo-blue { background: var(--blue); }
.promo-navy { background: var(--navy); padding: 32px 32px 40px; }
.promo-deep { background: var(--blue-deep); }
.promo-grey { background: #868686; }
.promo ul li { border-bottom: 1px solid rgba(255,255,255,.25); }
.promo ul a { display: block; color: var(--blue-light); font-size: 14px; padding: 5px 0; }
.promo-navy ul li, .promo ul li.plain { color: #fff; }
.sidebar-box { padding-bottom: 20px; }
.sidebar-box ul li { border-bottom: 1px solid #a7a7a7; padding: 10px 0; }
.sidebar-box ul a { color: #fff; padding: 0; }
.sidebar-box ul li.plain { padding: 10px 0; }

/* Öffnungszeiten */
.hours .row { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.25); padding: 4px 0; color: #fff; font-size: 14px; }
.hours { margin-bottom: 18px; }

/* ---------- Diagnostik-Sektion (Home) ---------- */
.bg-soft { background: #fcfcfc; }
.diag-grid { display: grid; grid-template-columns: 20.875% 1fr; gap: 59px; align-items: start; }
.diag-grid .promo h2 { line-height: 2.6em; padding-bottom: 0; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.card h2 { font-size: 18px; line-height: 1em; padding: 16px 0 10px; }
.card h2 a { color: var(--heading); }
.card p { font-size: 14px; }
.card img { display: block; width: 100%; aspect-ratio: 400 / 284; object-fit: cover; }
.older-link { display: inline-block; margin-top: 24px; font-size: 14px; color: var(--link-blue); }

/* ---------- Portfolio-Raster (Behandlungen / Weitere Behandlungen) ---------- */
.portfolio-filter { font-size: 14px; padding-bottom: 24px; }
.portfolio-filter a { color: var(--text); font-weight: 600; }
.portfolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 42px; }
.pitem a.pimg { position: relative; display: block; overflow: hidden; }
.pitem img { display: block; width: 100%; aspect-ratio: 400 / 284; object-fit: cover; }
.pitem .pimg::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.9); opacity: 0; transition: opacity .3s; }
.pitem .pimg::before { content: ""; position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px;
  background: var(--blue); border-radius: 50%; z-index: 3; opacity: 0; transition: opacity .3s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z'/></svg>");
  background-size: 16px; background-position: center; background-repeat: no-repeat; }
.pitem:hover .pimg::after, .pitem:hover .pimg::before { opacity: 1; }
.pitem h2 { font-size: 18px; line-height: 1em; padding: 14px 0 6px; }
.pitem h2 a { color: var(--heading); }

/* ---------- Leistungs-Detailseiten ---------- */
/* Hero-Row der Projektseiten: Foto als Hintergrund, blauer Overlay-Kasten */
.service-hero { background-size: cover; background-position: center; }
.service-hero.pos-top { background-position: center top; }
.service-hero.pos-bottom { background-position: center bottom; }
.service-hero .overlay-box { width: 396px; max-width: 100%; background: rgba(69,117,189,.76); padding: 45px 25px 25px; }
.service-hero .overlay-box h2 { color: #fff; font-size: 23px; font-weight: 500; line-height: 1em; padding-bottom: 16px; }
.service-hero .overlay-box p { color: #fff; font-size: 14px; }

.service-grid { display: grid; grid-template-columns: 1fr 29.667%; gap: 59px; align-items: start; }
.service-grid.narrow { grid-template-columns: 33.9% 1fr; }
.service-main > img { margin-bottom: 24px; }
.service-main h2 { font-size: 36px; font-weight: 300; color: var(--blue); line-height: 1em; padding: 0 0 14px; }
.service-main p { font-size: 14px; }
.service-main .lead { margin-bottom: 8px; }
.sidebar-box { margin-bottom: 24px; }
.section-rule { border: none; border-top: 1px solid #e2e2e2; margin: 40px 0; }
.check-list { margin: 8px 0 0; }
.check-list li { display: flex; align-items: center; font-size: 14px; color: var(--text); padding: 3px 0; }
.check-list .ck { flex: none; width: 16px; height: 16px; margin-right: 10px; }
.check-list .ck svg { width: 16px; height: 16px; fill: var(--blue); }

/* Team-Seite */
.team-hero { background: url('../img/hero-team.jpg') center / cover no-repeat; height: 876px;
  display: flex; align-items: center; }
.team-hero h1 { font-size: 30px; color: var(--heading); padding-bottom: 8px; }
.team-hero p { font-size: 14px; color: var(--text); }
.bg-grey { background: #fafafa; }
.team-head h2 { font-size: 36px; font-weight: 300; color: var(--blue); line-height: 1em; padding: 27px 0; }
/* Arzt-Karte: Bild links, Infos rechts */
.doc-card { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.doc-card.boxed { background: #fff; border: 1px solid rgba(134,134,134,.34); padding: 15px; }
.doc-card img { display: block; width: 100%; }
.doc-card h3 { font-size: 22px; color: var(--blue); padding: 10px 0 4px; }
.doc-card h6 { font-size: 14px; color: var(--heading); font-weight: 500; padding-bottom: 14px; }
.doc-card hr { border: none; border-top: 1px solid #ddd; margin: 0 0 20px; }
.doc-card .iblurb { margin-bottom: 12px; }
.doc-card .iblurb .icon { width: 16px; margin-right: 10px; margin-top: 2px; }
.doc-card .iblurb .icon svg { width: 16px; height: 16px; fill: var(--blue); }
.doc-card .iblurb h4 { font-size: 14px; font-weight: 500; padding: 0; line-height: 23.8px; }
.doc-card .iblurb h4 a { color: var(--blue); }
/* Praxisteam-Karten */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 33px; row-gap: 33px; }
.member { border: 1px solid rgba(51,51,51,.21); }
.member img { display: block; width: 100%; }
.member .minfo { padding: 20px; }
.member h3 { font-size: 20px; color: var(--blue); padding-bottom: 4px; }
.member h6 { font-size: 14px; color: var(--heading); font-weight: 500; padding-bottom: 0; }

/* ---------- Aktuelles (Blog-Raster) ---------- */
.news-columns { columns: 3; column-gap: 60px; }
.news-card { break-inside: avoid; border: 1px solid var(--card-border); background: #fff; padding: 19px; margin-bottom: 60px; }
.news-card img { display: block; width: calc(100% + 38px); margin: -19px -19px 19px; max-width: none; }
.news-card h2 { font-size: 18px; line-height: 1em; padding-bottom: 10px; }
.news-card h2 a { color: var(--heading); }
.news-card .meta { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.news-card p { font-size: 14px; padding-bottom: 8px; }
.news-card .more { font-size: 14px; color: var(--link-blue); }

/* ---------- Einzelbeitrag ---------- */
.post-layout { display: grid; grid-template-columns: 1fr 25%; }
.post-layout .post-content { padding-right: 5.5%; }
.post-layout aside { border-left: 1px solid #e2e2e2; padding-left: 30px; }
.post-content h1 { font-size: 30px; font-weight: 500; line-height: 1.2em; padding-bottom: 4px; }
.post-content .meta { font-size: 14px; color: var(--text); padding-bottom: 20px; }
.post-content .meta a { color: var(--text); }
.post-content img { margin-bottom: 24px; }
.widget h4 { font-size: 23px; font-weight: 500; padding: 8px 0 18px; }
.widget ul { margin-bottom: 40px; }
.widget li { border-bottom: 1px solid #e2e2e2; }
.widget li a { display: block; color: var(--grey-soft); font-size: 14px; padding: 8px 0; }

/* ---------- Kontakt ---------- */
.map-consent { background: #fff; text-align: center; padding: 22px 0 28px; }
.map-consent .inner p { font-size: 14px; color: var(--text); padding-bottom: 14px; border-top: 1px solid #e5e5e5; padding-top: 18px; }
.map-consent .map-load-btn { display: block; width: 100%; background: #5b7fc7; color: #fff; border: none; border-radius: 4px; font-family: inherit; font-size: 14px; font-weight: 600; padding: 12px; cursor: pointer; }
.map-consent .map-load-btn:hover { background: var(--blue); }
.map-consent .map-info { padding: 12px 0 0; border: none; }
.map-consent .map-info a { color: #5b7fc7; font-size: 13px; }
.map-small { padding: 0; }
.map-small .inner p { border-top: none; }
.map-wrap iframe { display: block; width: 100%; height: 450px; border: 0; }
.map-small, .map-small iframe { height: 300px; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 59px; align-items: start; }
.contact-cols h2, .contact-cols h1 { font-size: 26px; padding-bottom: 12px; }
form .form-grid { display: grid; gap: 14px; }
form input, form textarea {
  width: 100%; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; font-weight: 400; color: #999;
  background: #fff; border: 1px solid rgba(134,134,134,.19); border-radius: 0; padding: 16px;
}
form textarea { min-height: 150px; resize: vertical; }
form input.error, form textarea.error { border-color: #c0392b; }
.dsgvo { font-size: 14px; padding: 12px 0 4px; }
.dsgvo a { color: var(--text); text-decoration: underline; font-weight: 700; }
.form-message { font-size: 14px; color: var(--blue); padding-bottom: 8px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 14px; font-size: 14px; }
.form-actions .captcha-input { width: 40px; height: 40px; background: #eee; border: none; padding: 8px; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.form-actions .captcha-input::-webkit-outer-spin-button, .form-actions .captcha-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Hinweis-Blurb (Zeiten Hyposensibilisierung) */
.alert-blurb { display: flex; align-items: flex-start; background: var(--blue); padding: 32px; margin-top: 24px; }
.alert-blurb .icon { flex: none; width: 32px; margin-right: 32px; }
.alert-blurb .icon svg { width: 32px; height: 32px; fill: #fff; }
.alert-blurb h4 { color: #fff; font-size: 18px; font-weight: 700; text-transform: uppercase; padding-bottom: 8px; }
.alert-blurb p { color: #fff; font-size: 14px; padding: 0; }
/* SIT-Zeiten-Tabelle */
.sit-table .row { display: flex; justify-content: space-between; font-size: 18px; color: #7a7a7a;
  padding: 12px 0; border-bottom: 1px solid #e2e2e2; }

/* ---------- Termine-Band (CTA) ---------- */
.cta-band { background: var(--green); padding: 10px 0; }
.cta-band .container { padding-top: 27px; padding-bottom: 27px; }
.cta-band .container { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.cta-band h1 { color: #fff; font-size: 30px; padding-bottom: 6px; }
.cta-band h4 { color: #fff; font-size: 18px; padding: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.site-footer h3 { color: #fff; font-size: 22px; padding-bottom: 10px; }
.fdivider { width: 40px; border: none; border-top: 2px solid var(--blue); margin: 0 0 24px; }
.site-footer .flogo img { width: 230px; }
.fblurb { display: flex; align-items: flex-start; margin-bottom: 15px; }
.fblurb .icon { flex: none; width: 22px; margin-right: 12px; }
.fblurb .icon svg { width: 20px; height: 20px; fill: var(--grey-mid); }
.fblurb p, .fblurb { font-size: 14px; color: var(--text); }
.fblurb a { color: var(--text); }
.flist li { border-bottom: 1px solid #333; line-height: 26px; }
.flist a { color: var(--grey-soft); font-size: 14px; }
.flist li::before { content: "• "; color: var(--grey-soft); }
.footer-bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 14px; color: var(--grey-soft); }
.footer-bottom a { color: var(--grey-soft); }

/* ---------- Splash (Startseite der Praxisgemeinschaft) ---------- */
.splash { min-height: 100vh; background: url('../img/header-praxis.jpg') center / cover no-repeat;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 5%; }
.splash .logo-img { width: 260px; margin: 0 auto 30px; }
.splash h1 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 100px; color: #fff; line-height: 1.1em; padding-bottom: 6px; }
.splash p { font-size: 16px; color: #fff; padding-bottom: 34px; }
.splash .btn-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.splash .btn { border: none; border-radius: 0; font-size: 14px; padding: 14px 26px; line-height: 1.5em; }
.splash .btn strong { display: block; }
.splash .btn-green { background: var(--green); color: #fff; }
.splash .btn-plain { background: #fff; color: #7a7a7a; }

/* ---------- Rechtstexte ---------- */
.legal h1 { font-size: 30px; padding-bottom: 20px; }
.legal h2 { font-size: 26px; padding: 24px 0 10px; }
.legal h3 { font-size: 22px; padding: 18px 0 8px; }
.legal h4 { font-size: 18px; padding: 12px 0 6px; }
.legal ul { list-style: disc; padding-left: 24px; margin-bottom: 1em; }
.legal a { color: var(--link-blue); word-break: break-word; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .container { width: 90%; }
  .header-row { padding: 20px 0 30px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); z-index: 100; }
  .main-nav.open { display: block; }
  .main-nav ul { display: block; padding: 10px 5%; }
  .main-nav > ul > li { padding: 8px 0; }
  .main-nav .sub { display: block; position: static; background: transparent; box-shadow: none; padding: 0 0 0 18px; min-width: 0; }
  .main-nav .sub a { color: #fff; opacity: .85; padding: 6px 0; }
  .site-header-inner { position: relative; }
  .nav-toggle { display: block; }
  .site-top { position: relative; }
  .contact-blurbs, .promo-grid, .team-grid { grid-template-columns: 1fr; gap: 30px; }
  .promo-grid { gap: 0; }
  .diag-grid, .service-grid, .service-grid.narrow, .contact-cols, .post-layout { grid-template-columns: 1fr; }
  .post-layout aside { border-left: none; padding-left: 0; margin-top: 40px; }
  .portfolio { grid-template-columns: repeat(3, 1fr); }
  .news-columns { columns: 2; column-gap: 30px; }
  .news-card { margin-bottom: 30px; }
  .splash h1 { font-size: 73px; }
  .cards-2 { gap: 30px; }
  .badge-section img { width: 160px; height: 160px; margin-top: -140px; }
}
@media (max-width: 767px) {
  .topbar-inner { justify-content: center; text-align: center; gap: 2px; }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .news-columns { columns: 1; }
  .splash h1 { font-size: 48px; }
  .cta-band .container { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .badge-section img { width: 130px; height: 130px; margin-top: -110px; }
}
@media (max-width: 479px) {
  .portfolio { grid-template-columns: 1fr; }
}
