/*
Theme Name: Nervenarzt Info
Theme URI: https://bv-nervenarzt.de/
Author: bv-nervenarzt.de
Description: Seriöses Informationsportal-Theme für Neurologie und Psychiatrie: institutionelles Navy-Design, barrierearme Ansicht, Krankheitsbilder, Weg zum Facharzttermin, Aktuelles und Kontakt.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nervenarzt
Tags: medical, accessibility-ready, custom-logo, custom-menu, featured-images, threaded-comments, two-columns, right-sidebar
*/

:root {
	--c-primary: #1f3a5f;
	--c-primary-dark: #132640;
	--c-primary-soft: #e6edf5;
	--c-accent: #0e9f8e;
	--c-accent-dark: #0b7f72;
	--c-on-primary: #ffffff;
	--c-on-accent: #ffffff;
	--c-bg: #f6f8fa;
	--c-surface: #ffffff;
	--c-surface-2: #edf1f5;
	--c-text: #14202e;
	--c-muted: #4f5d6c;
	--c-border: #dbdee2;
	--c-footer: #132640;
	--c-on-footer: #e9eef2;
	--font-head: 'IBM Plex Serif', serif;
	--font-body: 'IBM Plex Sans', sans-serif;
	--head-weight: 600;
	--head-ls: -0.01em;
	--head-tt: none;
	--radius: 6px;
	--radius-lg: 11px;
	--radius-btn: 6px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
	--shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
	--container: 1200px;
	--header-h: 76px;
}

/* ========== Reset & base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-ls); line-height: 1.18; margin: 0 0 .6em; color: inherit; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { overflow-wrap: break-word; }
.hero [class*="grid"] > *, .grid > *, .search-form label { min-width: 0; }
ul, ol { padding-left: 1.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus, .skip-link:focus { background: var(--c-surface); clip: auto !important; clip-path: none; color: var(--c-text); display: block; height: auto; left: 8px; padding: 12px 20px; top: 8px; width: auto; z-index: 100000; border-radius: var(--radius); box-shadow: var(--shadow); }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; flex-shrink: 0; }

/* ========== Buttons ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.6em; border-radius: var(--radius-btn); border: 2px solid transparent; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background: var(--c-primary-dark); color: var(--c-on-primary); }
.btn-accent { background: var(--c-accent); color: var(--c-on-accent); }
.btn-accent:hover { background: var(--c-accent-dark); color: var(--c-on-accent); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.btn-light { background: #fff; color: var(--c-primary-dark); }
.btn-light:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--c-primary-dark); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ========== Header ========== */
.topbar { background: var(--c-primary-dark); color: rgba(255,255,255,.88); font-size: .86rem; }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 40px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-items { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: 7px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-surface); border-bottom: 1px solid var(--c-border); transition: box-shadow .25s ease, background-color .25s ease; }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15,23,42,.08); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.site-branding { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); flex-shrink: 0; }
.site-branding:hover { color: var(--c-text); }
.custom-logo { max-height: 56px; width: auto; }
.logo-mark { width: 46px; height: 46px; border-radius: var(--radius); background: var(--c-primary); color: var(--c-on-primary); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-title { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.22rem; letter-spacing: var(--head-ls); }
.logo-tagline { font-size: .78rem; color: var(--c-muted); margin-top: 3px; }
.primary-nav { margin-left: auto; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 10px 14px; color: var(--c-text); text-decoration: none; font-weight: 500; font-size: .96rem; border-radius: var(--radius); transition: color .15s, background-color .15s; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--c-primary); background: var(--c-primary-soft); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 10; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { display: flex; flex-direction: column; text-decoration: none; color: var(--c-text); line-height: 1.2; }
.header-phone strong { font-size: 1.05rem; white-space: nowrap; }
.header-phone small { color: var(--c-muted); font-size: .76rem; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); cursor: pointer; place-items: center; font-size: 22px; color: var(--c-text); }
.a11y-toggle { background: none; border: 1px solid rgba(255,255,255,.4); color: inherit; border-radius: 6px; padding: 4px 10px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; font-size: .85rem; }

/* header variants */
.hv-dark .site-header { background: var(--c-primary-dark); border-color: transparent; }
.hv-dark .site-branding, .hv-dark .site-branding:hover, .hv-dark .header-phone, .hv-dark .primary-nav a { color: #fff; }
.hv-dark .logo-tagline, .hv-dark .header-phone small { color: rgba(255,255,255,.7); }
.hv-dark .primary-nav a:hover, .hv-dark .primary-nav .current-menu-item > a { background: rgba(255,255,255,.12); color: #fff; }
.hv-dark .primary-nav .sub-menu { background: var(--c-primary-dark); }
.hv-dark .logo-mark { background: var(--c-accent); color: var(--c-on-accent); }
.hv-dark .menu-toggle { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

.hv-centered .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 0 24px; padding-top: 18px; }
.hv-centered .site-branding { order: 2; flex-direction: column; text-align: center; margin: 0 auto; }
.hv-centered .logo-title { font-size: 2rem; }
.hv-centered .header-left { order: 1; flex: 1; }
.hv-centered .header-actions { order: 3; flex: 1; justify-content: flex-end; }
.hv-centered .primary-nav { order: 4; width: 100%; margin: 14px 0 0; border-top: 1px solid var(--c-border); }
.hv-centered .primary-nav .menu { justify-content: center; }
.hv-centered .primary-nav a { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 600; border-radius: 0; padding: 14px 16px; }
.hv-centered .primary-nav a:hover { background: none; }

.hv-gov .header-inner { min-height: 96px; }
.hv-gov .header-actions { margin-left: auto; }
.hv-gov .nav-bar { background: var(--c-primary); }
.hv-gov .primary-nav { margin: 0; }
.hv-gov .primary-nav a { color: #fff; border-radius: 0; padding: 14px 16px; }
.hv-gov .primary-nav a:hover, .hv-gov .primary-nav .current-menu-item > a { background: var(--c-primary-dark); color: #fff; }

.hv-transparent .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.hv-transparent .site-header:not(.is-scrolled) .site-branding,
.hv-transparent .site-header:not(.is-scrolled) .header-phone,
.hv-transparent .site-header:not(.is-scrolled) .primary-nav > div > .menu > li > a,
.hv-transparent .site-header:not(.is-scrolled) .primary-nav > .menu > li > a { color: #fff; }
.hv-transparent .site-header:not(.is-scrolled) .logo-tagline, .hv-transparent .site-header:not(.is-scrolled) .header-phone small { color: rgba(255,255,255,.75); }
.hv-transparent .site-header:not(.is-scrolled) .primary-nav .menu > li > a:hover { background: rgba(255,255,255,.15); }
.hv-transparent .site-header:not(.is-scrolled) .menu-toggle { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.hv-transparent .site-header.is-scrolled { background: var(--c-surface); border-color: var(--c-border); }
.hv-transparent:not(.home) .site-main { padding-top: var(--header-h); }
.hv-transparent:not(.home) .site-header:not(.is-scrolled) { background: var(--c-primary-dark); }

.hv-minimal .primary-nav { display: none; }
.hv-minimal .menu-toggle { display: grid; }
.hv-minimal .header-actions { margin-left: auto; }

/* ========== Sections ========== */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--c-surface-2); }
.section-dark { background: var(--c-primary-dark); color: #fff; }
.section-dark .section-lead, .section-dark .muted { color: rgba(255,255,255,.75); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 14px; }
.section-dark .eyebrow { color: var(--c-accent); }
.section-title { margin-bottom: .4em; }
.section-lead { font-size: 1.12rem; color: var(--c-muted); margin: 0; }
.muted { color: var(--c-muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* cards */
.card { position: relative; background: var(--c-surface); border-radius: var(--radius-lg); padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; color: var(--c-text); }
.cs-elevated .card { box-shadow: var(--shadow); }
.cs-elevated .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cs-outline .card { border: 1px solid var(--c-border); }
.cs-outline .card:hover { border-color: var(--c-primary); }
.cs-tinted .card { background: var(--c-surface-2); }
.cs-tinted .section-alt .card { background: var(--c-surface); }
.cs-tinted .card:hover { background: var(--c-primary-soft); }
.cs-leftbar .card { border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary); border-radius: var(--radius); }
.cs-leftbar .card:hover { border-left-color: var(--c-accent); box-shadow: var(--shadow); }
.cs-line .card { background: transparent; padding: 28px 0 0; border-top: 2px solid var(--c-text); border-radius: 0; }
.cs-line .card:hover { border-top-color: var(--c-primary); }
.card-icon { width: 56px; height: 56px; border-radius: var(--radius); display: grid; place-items: center; font-size: 26px; background: var(--c-primary-soft); color: var(--c-primary); margin-bottom: 20px; }
.cs-line .card-icon { background: none; width: auto; justify-content: start; height: auto; font-size: 32px; }
.card h3 { margin-bottom: .45em; font-size: 1.2rem; }
.card p { color: var(--c-muted); margin: 0; font-size: .97rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--c-primary-soft); color: var(--c-primary-dark); }
.tag-accent { background: var(--c-accent); color: var(--c-on-accent); }
.card-price { margin-top: 18px; font-weight: 700; color: var(--c-primary); font-size: 1.05rem; }
.card-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.card-num { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--c-primary); opacity: .9; margin-bottom: 14px; display: block; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat { padding: 8px 0; }
.stat-num { font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--c-primary); display: block; margin-bottom: 8px; }
.section-dark .stat-num { color: #fff; }
.stat-label { color: var(--c-muted); font-size: .95rem; }
.section-dark .stat-label { color: rgba(255,255,255,.75); }

/* about */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-visual { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); display: grid; place-items: center; color: rgba(255,255,255,.9); overflow: hidden; }
.about-visual .icon { font-size: 120px; opacity: .9; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 40px solid rgba(255,255,255,.07); right: -18%; bottom: -24%; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--c-primary); font-size: 22px; margin-top: 2px; }
.section-dark .checklist .icon { color: var(--c-accent); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 2.6rem; line-height: 1; color: var(--c-primary); }
.step::after { content: ""; position: absolute; top: 22px; left: 76px; right: 12px; height: 2px; background: var(--c-border); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--c-muted); font-size: .96rem; margin: 0; }
.section-dark .step p { color: rgba(255,255,255,.72); }
.section-dark .step::before { color: var(--c-accent); }
.section-dark .step::after { background: rgba(255,255,255,.18); }

/* prices */
.price-table { width: 100%; border-collapse: collapse; background: var(--c-surface); border-radius: var(--radius-lg); overflow: hidden; }
.price-table td { padding: 18px 24px; border-bottom: 1px solid var(--c-border); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; color: var(--c-primary-dark); }
.price-table tr:hover td { background: var(--c-primary-soft); }
.price-note { margin-top: 16px; font-size: .88rem; color: var(--c-muted); }

/* faq */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--c-primary); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; position: relative; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--c-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--c-muted); padding-bottom: 20px; margin: 0; }

/* do / dont */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dodont-col { border-radius: var(--radius-lg); padding: 32px; background: var(--c-surface); border: 1px solid var(--c-border); }
.dodont-col h3 { display: flex; align-items: center; gap: 10px; }
.dodont-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dodont-col li { display: flex; gap: 10px; }
.dodont-col .icon { font-size: 20px; margin-top: 3px; }
.dodont-do h3, .dodont-do .icon { color: #15803d; }
.dodont-dont h3, .dodont-dont .icon { color: #b91c1c; }

/* quote */
.big-quote { max-width: 900px; margin: 0 auto; text-align: center; }
.big-quote blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.35; font-weight: var(--head-weight); }
.big-quote cite { display: block; margin-top: 24px; font-style: normal; color: var(--c-muted); }

/* notice / banner */
.notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.notice { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text); transition: border-color .2s, transform .2s; }
.notice:hover { border-color: var(--c-primary); transform: translateY(-2px); color: var(--c-text); }
.notice .icon { font-size: 30px; color: var(--c-primary); }
.notice strong { display: block; margin-bottom: 4px; }
.notice span { color: var(--c-muted); font-size: .92rem; }

/* cta band */
.cta-band { border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px); background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.82); max-width: 560px; }
.cta-band::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.07); right: -80px; top: -140px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text); text-decoration: none; font-weight: 500; transition: all .2s; }
.chip:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
a.card { display: block; text-decoration: none; }

/* posts */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head-row .section-lead { max-width: 640px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-border); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--c-primary-soft), var(--c-surface-2)); display: grid; place-items: center; color: var(--c-primary); font-size: 46px; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { font-size: .82rem; color: var(--c-muted); margin-bottom: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.post-card-meta a { color: var(--c-primary); text-decoration: none; font-weight: 600; }
.post-card h3 { font-size: 1.18rem; margin-bottom: .5em; }
.post-card h3 a { color: var(--c-text); text-decoration: none; }
.post-card h3 a:hover { color: var(--c-primary); }
.post-card-excerpt { color: var(--c-muted); font-size: .95rem; flex: 1; }
.post-card-excerpt p { margin: 0; }
.empty-note { padding: 40px; text-align: center; border: 1px dashed var(--c-border); border-radius: var(--radius-lg); color: var(--c-muted); }

/* form */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.form-card { background: var(--c-surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); color: var(--c-text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea, .search-form input[type="search"], .comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .search-form input[type="search"]:focus, .comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.field textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--c-muted); }
.consent input { margin-top: 4px; accent-color: var(--c-primary); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 16px 20px; border-radius: var(--radius); background: #dcfce7; color: #166534; margin-bottom: 20px; font-weight: 600; }
.form-error { padding: 16px 20px; border-radius: var(--radius); background: #fee2e2; color: #991b1b; margin-bottom: 20px; font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { font-size: 22px; color: var(--c-primary); margin-top: 3px; }
.section-dark .contact-list .icon { color: var(--c-accent); }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list small { display: block; color: var(--c-muted); font-size: .8rem; }
.section-dark .contact-list small { color: rgba(255,255,255,.6); }

/* contacts */
.contacts-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: stretch; }
.map-box { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; background: var(--c-surface-2); position: relative; display: grid; place-items: center; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { text-align: center; color: var(--c-muted); padding: 32px; background-image: linear-gradient(var(--c-border) 1px, transparent 1px), linear-gradient(90deg, var(--c-border) 1px, transparent 1px); background-size: 40px 40px; position: absolute; inset: 0; display: grid; place-items: center; }
.map-placeholder .icon { font-size: 54px; color: var(--c-primary); }

/* ========== Inner pages ========== */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); background: var(--c-surface-2); border-bottom: 1px solid var(--c-border); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .3em; }
.page-hero .archive-description { color: var(--c-muted); max-width: 720px; }
.breadcrumbs { font-size: .86rem; color: var(--c-muted); margin-bottom: 14px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-primary); }
.content-area { padding: clamp(40px, 6vw, 72px) 0; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--c-muted); font-size: .9rem; }
.entry-meta a { color: inherit; }
.entry-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; }
.entry-content { max-width: 760px; }
.layout-sidebar .entry-content, .full-width .entry-content { max-width: none; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }
.entry-content blockquote { margin: 1.6em 0; padding: 8px 0 8px 24px; border-left: 4px solid var(--c-primary); font-size: 1.12rem; font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--c-border); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--c-surface-2); }
.entry-content img { border-radius: var(--radius); }
.entry-content pre { background: var(--c-surface-2); padding: 18px; border-radius: var(--radius); overflow: auto; }
.entry-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; gap: 8px; }
.entry-footer a { text-decoration: none; }
.post-navigation { margin-top: 48px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation a { display: block; padding: 20px 24px; border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; color: var(--c-text); height: 100%; }
.post-navigation a:hover { border-color: var(--c-primary); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .meta-nav { display: block; font-size: .8rem; color: var(--c-muted); margin-bottom: 4px; }
.pagination, .posts-pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; color: var(--c-text); }
.page-numbers.current, .page-numbers:hover { background: var(--c-primary); color: var(--c-on-primary); border-color: var(--c-primary); }
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: calc(100% + 120px); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption, figcaption { font-size: .86rem; color: var(--c-muted); margin-top: 8px; }
.sticky .post-card { border-color: var(--c-accent); }
.bypostauthor > article .comment-author b { color: var(--c-primary); }

/* sidebar & widgets */
.widget-area .widget { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.widget-title { font-size: 1.06rem; margin-bottom: 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--c-border); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; color: var(--c-text); }
.widget a:hover { color: var(--c-primary); }
.widget-area .widget h2, .widget-area .wp-block-heading { font-size: 1.1rem; margin-bottom: 14px; }
.wp-block-search__label { font-weight: 600; font-size: .9rem; }
.wp-block-search__input { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 11px 14px; background: var(--c-bg); }
.wp-block-search__button { background: var(--c-primary); color: var(--c-on-primary); border: 0; border-radius: var(--radius); padding: 0 18px; font-weight: 600; cursor: pointer; }
.wp-block-latest-comments { padding: 0; margin: 0; }
.wp-block-latest-comments__comment { padding: 7px 0; }
.site-footer .wp-block-heading { color: #fff; font-size: 1.05rem; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-submit { padding: 0 18px; border: 0; border-radius: var(--radius); background: var(--c-primary); color: var(--c-on-primary); cursor: pointer; font-weight: 600; }

/* comments */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--c-border); max-width: 760px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--c-border); }
.comment-meta { display: flex; gap: 12px; align-items: center; font-size: .9rem; margin-bottom: 8px; }
.comment-meta img { border-radius: 50%; }
.comment-metadata a { color: var(--c-muted); text-decoration: none; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit { background: var(--c-primary); color: var(--c-on-primary); border: 0; padding: 13px 26px; border-radius: var(--radius-btn); font-weight: 600; cursor: pointer; }

/* 404 */
.error-404 { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.error-404 .big { font-family: var(--font-head); font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: var(--c-primary); font-weight: var(--head-weight); }
.error-404 .search-form { max-width: 460px; margin: 28px auto 0; }

/* ========== Footer ========== */
.site-footer { background: var(--c-footer); color: var(--c-on-footer); padding: 72px 0 0; font-size: .95rem; }
.site-footer a { color: var(--c-on-footer); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-title { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 18px; color: #fff; }
.footer-about p { opacity: .75; margin-top: 16px; }
.site-footer .site-branding, .site-footer .site-branding:hover { color: #fff; }
.site-footer .logo-tagline { color: rgba(255,255,255,.6); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .contact-list { margin: 0; gap: 14px; }
.site-footer .contact-list .icon { color: var(--c-accent); }
.site-footer .contact-list small { color: rgba(255,255,255,.55); }
.site-footer .widget { background: none; border: 0; padding: 0; margin-bottom: 24px; }
.site-footer .widget li { border-color: rgba(255,255,255,.1); }
.site-footer .widget a { color: var(--c-on-footer); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .85rem; opacity: .75; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.med-disclaimer { font-size: .8rem; opacity: .6; text-transform: uppercase; letter-spacing: .04em; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--c-primary); color: var(--c-on-primary); display: grid; place-items: center; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s; z-index: 40; }
.to-top .icon { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* accessibility mode (large font / high contrast) */
body.a11y-mode { font-size: 21px; }
body.a11y-mode, body.a11y-mode .site-header, body.a11y-mode .section, body.a11y-mode .card, body.a11y-mode .section-alt, body.a11y-mode .hero { background: #fff !important; color: #000 !important; }
body.a11y-mode * { color: #000 !important; border-color: #000 !important; box-shadow: none !important; background-image: none !important; }
body.a11y-mode .btn, body.a11y-mode .primary-nav, body.a11y-mode .topbar { background: #000 !important; }
body.a11y-mode .btn, body.a11y-mode .btn *, body.a11y-mode .primary-nav a, body.a11y-mode .topbar, body.a11y-mode .topbar * { color: #fff !important; }
body.a11y-mode img { filter: grayscale(1); }

/* ========== Responsive ========== */
@media (min-width: 961px) {
	.primary-nav .menu { flex-wrap: nowrap; }
	.primary-nav > .menu > li > a, .primary-nav .menu > li > a { white-space: nowrap; padding: 10px 11px; }
	.hv-centered .primary-nav .menu { flex-wrap: wrap; }
}
@media (max-width: 1300px) {
	.hv-classic .header-phone, .hv-dark .header-phone, .hv-transparent .header-phone { display: none; }
}
@media (max-width: 1180px) {
	.hv-classic .logo-tagline, .hv-dark .logo-tagline, .hv-transparent .logo-tagline { display: none; }
}
@media (max-width: 1100px) {
	.grid-4, .stats, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.step::after { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.header-phone small { display: none; }
}
@media (max-width: 960px) {
	.menu-toggle { display: grid; }
	.header-actions { margin-left: auto; }
	.primary-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--c-surface); z-index: 100; padding: 88px 24px 32px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; box-shadow: var(--shadow-lg); margin: 0 !important; display: block !important; }
	.nav-open .primary-nav { transform: none; }
	.primary-nav .menu { flex-direction: column; gap: 2px; max-width: none; }
	.primary-nav a { color: var(--c-text) !important; padding: 12px 14px; font-size: 1.05rem; background: none; }
	.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--c-primary-soft) !important; color: var(--c-primary) !important; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; background: none; }
	.nav-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .3s; }
	.nav-open .nav-overlay { opacity: 1; visibility: visible; }
	.nav-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); font-size: 20px; display: grid; place-items: center; cursor: pointer; color: var(--c-text); }
	.hv-gov .nav-bar { background: none; height: 0; }
	.hv-gov .header-inner { min-height: 76px; }
	.hv-centered .header-left { display: none; }
	.hv-centered .site-branding { order: 1; margin: 0; align-items: flex-start; text-align: left; }
	.hv-centered .logo-title { font-size: 1.4rem; }
	.hv-centered .header-inner { padding: 10px 24px; }
	.grid-3, .posts-grid, .notice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about, .form-wrap, .contacts-wrap, .layout-sidebar, .dodont { grid-template-columns: 1fr; gap: 40px; }
	.alignwide { margin-left: 0; margin-right: 0; max-width: 100%; }
}
@media (min-width: 961px) { .nav-close, .nav-overlay { display: none; } .hv-minimal .nav-close, .hv-minimal .nav-overlay { display: grid; } }
@media (min-width: 961px) {
	.hv-minimal .primary-nav { display: block; position: fixed; inset: 0 0 0 auto; width: 420px; background: var(--c-surface); z-index: 100; padding: 110px 40px 40px; transform: translateX(100%); transition: transform .35s ease; box-shadow: var(--shadow-lg); margin: 0; }
	.hv-minimal.nav-open .primary-nav { transform: none; }
	.hv-minimal .primary-nav .menu { flex-direction: column; }
	.hv-minimal .primary-nav a { font-family: var(--font-head); font-size: 1.5rem; padding: 10px 0; background: none !important; }
	.hv-minimal .primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; }
	.hv-minimal .primary-nav .sub-menu a { font-size: 1.05rem; }
	.hv-minimal .nav-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .3s; }
	.hv-minimal.nav-open .nav-overlay { opacity: 1; visibility: visible; }
	.hv-minimal .nav-close { position: absolute; top: 28px; right: 32px; width: 48px; height: 48px; border: 1px solid var(--c-border); border-radius: 50%; background: none; font-size: 20px; place-items: center; cursor: pointer; color: var(--c-text); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding: 0 18px; }
	.grid-2, .grid-3, .grid-4, .posts-grid, .notice-grid, .stats, .steps, .form-grid, .footer-grid { grid-template-columns: 1fr; }
	.header-actions { display: none; }
	.header-inner { gap: 12px; }
	.menu-toggle { margin-left: auto; flex-shrink: 0; }
	.site-branding { min-width: 0; }
	.logo-title { font-size: 1.05rem; }
	.logo-mark { width: 40px; height: 40px; font-size: 21px; }
	.logo-tagline { display: none; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.price-table td { padding: 14px 16px; }
	.topbar .container { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

.layout-sidebar .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card.sticky { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent); }
@media (max-width: 640px) { .layout-sidebar .posts-grid { grid-template-columns: 1fr; } }

/* ========== Nervenarzt Info: unique design ========== */
.topbar { background: #0b1a2e; }
.logo-title { font-family: var(--font-head); }
.hero-portal { padding: clamp(48px, 7vw, 88px) 0; background: linear-gradient(180deg, #fff 0%, var(--c-bg) 100%); border-bottom: 1px solid var(--c-border); }
.hpo-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-portal h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); color: var(--c-primary-dark); }
.hero-portal p { color: var(--c-muted); font-size: 1.12rem; margin-bottom: 28px; }
.portal-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--c-primary); border-radius: 8px; padding: 6px 6px 6px 16px; }
.portal-search .icon { color: var(--c-muted); font-size: 20px; }
.portal-search input { flex: 1; border: 0; outline: 0; padding: 10px 0; font-size: 1.05rem; background: none; min-width: 0; }
.hpo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hpo-tiles a { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 8px; background: #fff; border: 1px solid var(--c-border); border-top: 4px solid var(--c-accent); text-decoration: none; color: var(--c-text); transition: box-shadow .2s, transform .2s; }
.hpo-tiles a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hpo-tiles .icon { font-size: 30px; color: var(--c-primary); margin-bottom: 10px; }
.hpo-tiles span { font-size: .9rem; color: var(--c-muted); }
.notice { border-left: 4px solid var(--c-accent); }
.notice .icon { color: var(--c-accent); }
.cs-leftbar .card { border-left-color: var(--c-accent); }
.section-head .section-title { color: var(--c-primary-dark); }
.section-dark { background: var(--c-primary-dark); }
@media (max-width: 960px) { .hpo-grid { grid-template-columns: 1fr; } }

.legal-links a { margin: 0 4px; }
