/*
Theme Name: Hautarzt Relaunch
Theme URI: https://hautarztnuernberg.eu/
Author: Hautarztpraxis St. Johannis
Description: Individuelles WordPress-Theme für die lokale Relaunch-Vorschau.
Version: 1.2.6
Text Domain: hautarzt-relaunch
*/

:root {
	--white: #fff;
	--paper: #fbfcfd;
	--mist: #f2f6f9;
	--sky: #e9f1f6;
	--blue: #276b96;
	--blue-dark: #163f5d;
	--ink: #29343b;
	--muted: #5d6a72;
	--line: #d7e0e6;
	--focus: #8f4600;
	--content: 76rem;
	--reading: 45rem;
	--radius: .4rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
	font-size: 1.0625rem; line-height: 1.7; text-rendering: optimizeLegibility;
}
a { color: var(--blue-dark); text-decoration-thickness: .075em; text-underline-offset: .2em; }
a:hover { color: #0b314b; }
:focus-visible { outline: .19rem solid var(--focus); outline-offset: .23rem; }
img, svg, iframe { display: block; max-width: 100%; }

.skip-link { position: fixed; z-index: 9999; top: .75rem; left: .75rem; padding: .65rem 1rem; background: var(--ink); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.staging-notice { background: #fff4cd; color: #523900; font-size: .82rem; letter-spacing: .01em; }
.notice-inner, .header-inner, .footer-inner, .site-main { width: min(calc(100% - 2.5rem), var(--content)); margin-inline: auto; }
.notice-inner { padding-block: .32rem; text-align: center; }

.site-header { position: relative; z-index: 100; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 97%); }
.header-inner { display: flex; min-height: 5.25rem; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .72rem; color: var(--ink); font-weight: 680; line-height: 1.12; letter-spacing: -.01em; text-decoration: none; }
.brand-mark { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; }
.brand small { display: block; margin-top: .23rem; color: var(--muted); font-size: .73rem; font-weight: 450; letter-spacing: .015em; }
.menu-toggle { display: none; margin-left: auto; min-height: 2.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); padding: .55rem .78rem; font: inherit; font-weight: 600; }
.primary-nav { display: flex; margin-left: auto; align-items: center; gap: .05rem; }
.primary-nav > a, .nav-group summary { display: block; padding: .65rem .48rem; color: var(--ink); font-size: .87rem; font-weight: 520; text-decoration: none; white-space: nowrap; cursor: pointer; }
.primary-nav > a:not(.button):hover, .nav-group summary:hover { color: var(--blue); }
.nav-group { position: relative; }
.nav-group summary { list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: "⌄"; margin-left: .26rem; color: var(--blue); }
.nav-submenu { position: absolute; top: calc(100% + .55rem); left: 0; display: grid; width: 19rem; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 1rem 2.5rem rgb(20 48 67 / 10%); }
.nav-submenu a { padding: .62rem .7rem; text-decoration: none; }
.nav-submenu a:hover { background: var(--mist); }

.button, a.button { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; border: 1px solid var(--blue); border-radius: var(--radius); background: var(--blue); color: var(--white); padding: .62rem 1.05rem; font-weight: 610; line-height: 1.2; text-align: center; text-decoration: none; }
.button:hover, a.button:hover { border-color: var(--blue-dark); background: var(--blue-dark); color: var(--white); }
.button-secondary, a.button-secondary { background: var(--white); color: var(--blue-dark); }
.header-cta { margin-left: .42rem; }
.text-link { font-weight: 600; text-decoration-thickness: 1px; }
.arrow-link::after { content: "  →"; }
.eyebrow { margin: 0 0 .85rem; color: var(--blue); font-size: .78rem; font-weight: 680; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }

.site-main { padding-block: clamp(3rem, 6vw, 6rem); }
.entry-content { overflow-wrap: anywhere; }
.entry-content > * { max-width: var(--reading); margin-inline: auto; }
.entry-content > h1 { margin-top: 0; color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 5vw, 4.35rem); font-weight: 500; line-height: 1.07; letter-spacing: -.035em; }
.entry-content > h2 { margin-top: clamp(3.8rem, 7vw, 6.3rem); color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.85rem, 3.1vw, 2.65rem); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.entry-content > h3 { margin-top: 2.5rem; color: var(--ink); font-size: 1.23rem; line-height: 1.3; }
.entry-content p { margin-block: 0 1.25rem; }
.entry-content .lead { color: #3d4d57; font-size: clamp(1.12rem, 1.7vw, 1.3rem); line-height: 1.62; }
.entry-content ul { padding-left: 1.2rem; }
.entry-content li { margin-block: .45rem; padding-left: .2rem; }
.entry-content li::marker { color: var(--blue); }
.cta-row { display: inline-flex; width: auto; margin: .35rem .55rem 1.3rem 0; }
.entry-content > h3 { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.page-visual { position: relative; max-width: 58rem; min-height: 24rem; margin: 2.7rem auto 5rem; overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.page-visual img { width: 100%; height: 100%; min-height: 24rem; object-fit: cover; object-position: center; filter: saturate(.82); }
.page-visual figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 1rem 1.25rem; background: rgb(13 44 65 / 86%); color: var(--white); }
.page-visual figcaption strong, .page-visual figcaption span { display: block; }
.page-visual figcaption span { margin-top: .18rem; font-size: .84rem; opacity: .84; }
.page-index { display: grid; max-width: 58rem; grid-template-columns: 1.1fr repeat(3, auto); gap: 1.25rem; align-items: center; margin: 2.7rem auto 5rem; padding: 1.2rem 0; border-block: 1px solid var(--line); }
.page-index span { color: var(--muted); font-size: .84rem; }
.page-index a { font-weight: 600; text-decoration: none; }
.diagnostic-route { display: grid; max-width: 58rem; grid-template-columns: repeat(3, 1fr); margin: 2.7rem auto 5rem; border-block: 1px solid var(--line); }
.diagnostic-route div { min-height: 9rem; padding: 1.35rem; border-right: 1px solid var(--line); }
.diagnostic-route div:last-child { border-right: 0; }
.diagnostic-route span, .diagnostic-route strong { display: block; }
.diagnostic-route span { margin-bottom: 2.5rem; color: var(--blue); font-size: .76rem; }
.diagnostic-route strong { color: var(--blue-dark); line-height: 1.35; }
.test-overview { display: grid; max-width: 58rem; grid-template-columns: repeat(3, 1fr); margin: 2.7rem auto 5rem; background: var(--blue-dark); color: var(--white); }
.test-overview div { padding: 1.5rem; border-right: 1px solid rgb(255 255 255 / 20%); }
.test-overview div:last-child { border-right: 0; }
.test-overview dt { margin-bottom: .65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.test-overview dd { margin: 0; color: rgb(255 255 255 / 78%); font-size: .92rem; line-height: 1.5; }
.observation-panel { max-width: 36rem; margin: 2.7rem max(calc((100% - var(--reading)) / 2), 0px) 5rem auto; padding: 1.7rem 2rem; border-left: 3px solid var(--blue); background: var(--mist); }
.observation-panel strong { color: var(--blue-dark); }
.observation-panel ul { margin-bottom: 0; }
.symptom-band { display: grid; max-width: 58rem; grid-template-columns: repeat(4, 1fr); margin: 2.7rem auto 5rem; border-block: 1px solid var(--line); }
.symptom-band span { padding: 1.35rem 1rem; border-right: 1px solid var(--line); color: var(--blue-dark); text-align: center; }
.symptom-band span:last-child { border-right: 0; }
.appointment-route { display: grid; max-width: 62rem; grid-template-columns: repeat(4, 1fr); margin: 2.7rem auto 5rem; padding: 0; list-style: none; counter-reset: none; }
.appointment-route li { display: grid; min-height: 8.5rem; align-content: space-between; margin: 0; padding: 1.25rem; border-top: 1px solid var(--blue); border-right: 1px solid var(--line); color: var(--blue-dark); }
.appointment-route li:last-child { border-right: 0; }
.appointment-route li span { color: var(--blue); font-size: .78rem; }
.contact-intro { display: grid; max-width: 62rem; grid-template-columns: 1.2fr 1fr .7fr; margin: 2.7rem auto 5rem; border-block: 1px solid var(--line); font-style: normal; }
.contact-intro div { padding: 1.35rem; border-right: 1px solid var(--line); }
.contact-intro div:last-child { border-right: 0; }
.contact-intro span, .contact-intro strong, .contact-intro a { display: block; }
.contact-intro span { margin-bottom: .45rem; color: var(--muted); font-size: .78rem; }
.contact-intro strong, .contact-intro a { color: var(--blue-dark); font-weight: 600; text-decoration: none; }
.appointment-panel { max-width: 58rem; margin: 5rem auto 0; border-radius: var(--radius); background: var(--blue-dark); color: var(--white); padding: clamp(1.7rem, 4vw, 3rem); }
.appointment-panel h2, .appointment-panel h3, .appointment-panel a { color: var(--white); }
.appointment-panel h2 { margin-top: 0; }
.appointment-panel .button { border-color: var(--white); background: var(--white); color: var(--blue-dark); }
.appointment-panel .button-secondary { background: transparent; color: var(--white); }

/* Individually composed home page */
.home-main { padding-top: clamp(2.2rem, 4vw, 4rem); }
.home-main h1, .home-main h2 { color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.03em; }
.home-main h1 { max-width: 13ch; margin: 0 0 1.35rem; font-size: clamp(2.7rem, 5.2vw, 4.75rem); line-height: 1.03; }
.hero-title-accent { display: block; margin-top: .18em; font-size: .68em; line-height: 1.08; white-space: nowrap; }
.home-main h2 { margin: 0 0 1.25rem; font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.11; }
.home-main p { margin-top: 0; }
.home-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(28rem, 1.05fr); min-height: 36rem; align-items: stretch; border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 5.4rem) clamp(1.5rem, 5vw, 5rem) clamp(2rem, 5vw, 5.4rem) 0; }
.hero-intro { max-width: 40rem; margin-bottom: 1.8rem; color: #40515c; font-size: clamp(1.08rem, 1.6vw, 1.24rem); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.hero-note { margin: 1.3rem 0 0; color: var(--muted); font-size: .88rem; }
.hero-composition { position: relative; display: flex; min-height: 34rem; align-items: center; justify-content: center; overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); color: var(--ink); }
.hero-doctor-image { position: relative; width: 80%; height: 80%; border-radius: clamp(.7rem, 1.4vw, 1.1rem); object-fit: cover; object-position: 50% center; box-shadow: 0 1.2rem 3rem rgb(4 28 45 / 28%); filter: none; }
.section-narrow { max-width: 48rem; margin: clamp(5rem, 9vw, 9rem) auto; text-align: center; }
.section-narrow > p:last-child { color: #45555e; font-size: 1.14rem; }
.services-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2.5rem, 7vw, 7rem); margin: clamp(5rem, 10vw, 10rem) 0; padding: clamp(3rem, 7vw, 6rem) 0; border-block: 1px solid var(--line); }
.section-heading { align-self: start; }
.service-list { display: grid; }
.service-list a { display: grid; grid-template-columns: 2.5rem minmax(11rem, .8fr) 1.2fr; gap: 1rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.service-list a:first-child { border-top: 1px solid var(--line); }
.service-list a:hover strong { color: var(--blue); }
.service-list span { color: var(--blue); font-size: .75rem; }
.service-list strong { color: var(--blue-dark); font-size: 1.06rem; }
.service-list small { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.doctor-section { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 33rem; margin: clamp(5rem, 9vw, 9rem) 0; background: var(--mist); }
.doctor-copy { align-self: center; padding: clamp(2rem, 6vw, 5.5rem); }
.doctor-copy p:not(.eyebrow) { max-width: 38rem; }
.doctor-credentials { display: grid; align-content: center; margin: 0; padding: clamp(2rem, 5vw, 4.5rem); border-left: 1px solid var(--line); }
.doctor-credentials div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.doctor-credentials div:first-child { border-top: 1px solid var(--line); }
.doctor-credentials dt { color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.doctor-credentials dd { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.practice-flow { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); margin: clamp(6rem, 10vw, 10rem) 0; }
.flow-intro { align-self: center; }
.flow-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.flow-steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.55rem 0; border-bottom: 1px solid var(--line); }
.flow-steps li > span { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: .82rem; }
.flow-steps strong { color: var(--blue-dark); }
.flow-steps p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }
.practice-profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); margin: clamp(6rem, 10vw, 10rem) 0; padding: clamp(3rem, 6vw, 5rem); border-block: 1px solid var(--line); background: var(--white); }
.practice-profile-copy { columns: 2; column-gap: 2.5rem; }
.practice-profile-copy p { break-inside: avoid; }
.location-section { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; margin: clamp(6rem, 10vw, 10rem) 0; }
.location-section > div:first-child { max-width: 43rem; }
.contact-card { padding: clamp(1.8rem, 4vw, 3rem); border-left: 3px solid var(--blue); background: var(--mist); }
.contact-card > span { color: var(--muted); font-size: .86rem; }
.contact-card > a { display: block; margin: .4rem 0 .8rem; color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.35rem); text-decoration: none; }
.contact-card p { margin-bottom: 0; }
.final-appointment { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; padding: clamp(2.3rem, 6vw, 4.8rem); background: var(--blue-dark); color: var(--white); }
.final-appointment h2, .final-appointment .eyebrow { color: var(--white); }
.final-appointment h2 { max-width: 18ch; margin-bottom: 0; }
.final-appointment .button { flex: 0 0 auto; border-color: var(--white); background: var(--white); color: var(--blue-dark); }

.map-consent { max-width: 58rem; margin: 4rem auto 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: clamp(1.4rem, 4vw, 2.6rem); }
.map-consent h2 { margin-top: 0; color: var(--blue-dark); }
.map-target { margin-top: 1rem; }
.map-frame { width: 100%; min-height: 25rem; border: 0; border-radius: var(--radius); }
.legal-page .entry-content { max-width: var(--reading); margin-inline: auto; border: 1px solid var(--line); background: var(--white); padding: clamp(1.3rem, 4vw, 3rem); }
.legal-page .entry-content > * { max-width: none; }

.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; padding-block: 2.7rem 6rem; color: var(--muted); font-size: .93rem; }
.footer-brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); margin-bottom: .4rem; }
.footer-brand img { width: 2.3rem; height: 2.3rem; }
.footer-nav { display: flex; max-width: 31rem; flex-wrap: wrap; justify-content: flex-end; gap: .65rem 1rem; }
.footer-nav a { align-self: center; }
.mobile-actions { display: none; }

@media (max-width: 70rem) {
	.menu-toggle { display: inline-flex; }
	.primary-nav { position: absolute; top: calc(100% + 1px); right: 1rem; left: 1rem; display: none; max-height: calc(100vh - 8rem); overflow: auto; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: .75rem; box-shadow: 0 1rem 2.5rem rgb(20 48 67 / 11%); }
	.primary-nav.is-open { display: grid; }
	.primary-nav > a, .nav-group summary { padding: .8rem; }
	.nav-submenu { position: static; width: auto; margin-top: .25rem; box-shadow: none; }
	.header-cta { margin: .5rem 0 0; }
	.home-hero { grid-template-columns: .9fr 1.1fr; }
}

@media (max-width: 48rem) {
	body { font-size: 1rem; line-height: 1.66; }
	.notice-inner, .header-inner, .footer-inner, .site-main { width: min(calc(100% - 1.25rem), var(--content)); }
	.header-inner { min-height: 4.65rem; }
	.brand-mark { width: 2.35rem; height: 2.35rem; }
	.brand { font-size: .88rem; }
	.brand small { font-size: .65rem; }
	.entry-content > h1 { font-size: clamp(2.3rem, 11vw, 3.25rem); }
	.entry-content > h2 { margin-top: 3.8rem; }
	.page-visual { min-height: 20rem; margin-block: 2rem 4rem; }
	.page-visual img { min-height: 20rem; object-position: 58% center; }
	.page-index { grid-template-columns: 1fr; gap: .65rem; margin-block: 2rem 4rem; }
	.diagnostic-route, .test-overview, .symptom-band, .appointment-route, .contact-intro { grid-template-columns: 1fr; margin-block: 2rem 4rem; }
	.diagnostic-route div, .test-overview div, .symptom-band span, .appointment-route li, .contact-intro div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
	.diagnostic-route div:last-child, .test-overview div:last-child, .symptom-band span:last-child, .appointment-route li:last-child, .contact-intro div:last-child { border-bottom: 0; }
	.diagnostic-route span { margin-bottom: .6rem; }
	.symptom-band span { text-align: left; }
	.appointment-route li { min-height: 6rem; }
	.observation-panel { margin: 2rem 0 4rem; }
	.home-main { padding-top: 1rem; }
	.home-hero { display: flex; min-height: 0; flex-direction: column; }
	.hero-copy { padding: 2.6rem .3rem 2.25rem; }
	.home-main h1 { max-width: 14ch; font-size: clamp(2.65rem, 12vw, 3.65rem); }
	.hero-title-accent { font-size: .61em; }
	.hero-intro { font-size: 1.05rem; }
	.hero-actions { align-items: flex-start; }
	.hero-composition { min-height: 19rem; margin-inline: -.625rem; padding: 1.25rem; }
	.hero-doctor-image { object-position: 51% center; }
	.section-narrow { margin-block: 5.5rem; text-align: left; }
	.services-section, .doctor-section, .practice-flow, .location-section { grid-template-columns: 1fr; }
	.services-section { gap: 1.5rem; margin-block: 5.5rem; padding-block: 3.5rem; }
	.service-list a { grid-template-columns: 2rem 1fr; gap: .7rem; }
	.service-list small { grid-column: 2; }
	.doctor-section { margin-inline: -.625rem; }
	.doctor-copy { padding: 2.5rem 1.25rem 3rem; }
	.doctor-credentials { padding: 0 1.25rem 2.5rem; border-left: 0; }
	.practice-flow, .location-section { gap: 2.5rem; margin-block: 5.5rem; }
	.practice-profile { grid-template-columns: 1fr; gap: 1.5rem; margin-inline: -.625rem; padding: 3rem 1.25rem; }
	.practice-profile-copy { columns: 1; }
	.final-appointment { flex-direction: column; align-items: flex-start; margin-inline: -.625rem; padding: 2.4rem 1.25rem; }
	.footer-inner { grid-template-columns: 1fr; padding-bottom: 7rem; }
	.footer-nav { justify-content: flex-start; }
	.mobile-actions { position: fixed; z-index: 90; right: .55rem; bottom: .55rem; left: .55rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(255 255 255 / 97%); padding: .5rem; box-shadow: 0 .65rem 2rem rgb(20 48 67 / 16%); }
	.mobile-actions .button { width: 100%; min-height: 3rem; }
	.map-frame { min-height: 20rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
