/* ═══════════════════════════════════════════════════════════
   HNO-Praxis Essen-Stoppenberg  ·  DE / EN / AR
   ═══════════════════════════════════════════════════════════ */

:root {
	/* Grundton — ruhig, damit das farbige Logo wirken kann */
	--ink:     #0e1a17;
	--ink-2:   #3d4d49;
	--ink-3:   #6b7a76;
	--gruen:   #1e5049;
	--gruen-2: #2a6a60;
	--gold:    #cbaf97;
	--gold-2:  #b8977b;
	--sand:    #f7f5f2;
	--sand-2:  #efebe5;
	--linie:   #e4e0d9;
	--linie-2: #d3cec4;

	/* Aus dem Praxislogo entnommen */
	--logo-blau:    #14a2c8;
	--logo-gelb:    #fbd06a;
	--logo-orange:  #e8542c;

	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--sans-ar: "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;

	--s1:.25rem; --s2:.5rem;  --s3:.75rem; --s4:1rem;
	--s5:1.5rem; --s6:2rem;   --s7:3rem;   --s8:4rem;
	--s9:6rem;   --s10:8rem;

	--breit: 1240px;
	--schmal: 760px;
	--rand: clamp(1.25rem, 5vw, 3.5rem);
	--r: 6px;
	--r-gross: 14px;

	--ease: cubic-bezier(.22,.61,.36,1);
	--ease-out: cubic-bezier(.16,1,.3,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
	margin: 0;
	font-family: var(--sans);
	font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Arabisch: mehr Zeilenhöhe — sonst werden Punkte und Unterlängen beschnitten */
html[dir="rtl"] body { font-family: var(--sans-ar); line-height: 1.85; }
html[dir="rtl"] .display { letter-spacing: 0; line-height: 1.45; }
html[dir="rtl"] .h2 { letter-spacing: 0; line-height: 1.4; }
html[dir="rtl"] .h3 { letter-spacing: 0; line-height: 1.45; }
html[dir="rtl"] .augen { letter-spacing: .04em; }

/* Zeilen-Reveal funktioniert bei arabischer Schrift nicht (overflow beschneidet).
   Stattdessen einfaches Einblenden. */
html[dir="rtl"] .zeile { overflow: visible; }
html[dir="rtl"] .zeile > span {
	transform: none; opacity: 0;
	transition: opacity .9s var(--ease-out);
}
html[dir="rtl"] .geladen .zeile > span { opacity: 1; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--breit); margin-inline: auto; padding-inline: var(--rand); }
.schmal { max-width: var(--schmal); }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip {
	position: absolute; inset-inline-start: var(--s4); top: -100%;
	background: var(--gruen); color: #fff; padding: var(--s3) var(--s5);
	border-radius: var(--r); z-index: 200; transition: top .18s var(--ease);
}
.skip:focus { top: var(--s4); }

/* ── Typografie ────────────────────────────────────────── */

h1,h2,h3,h4 { font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.022em; }

.display { font-size: clamp(2.3rem, 1.1rem + 5.2vw, 4.75rem); letter-spacing: -.035em; line-height: 1.04; }
.h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.75rem); letter-spacing: -.028em; }
.h3 { font-size: clamp(1.1rem, 1.03rem + .45vw, 1.35rem); letter-spacing: -.016em; }

.augen {
	font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--gruen); margin: 0 0 var(--s5);
	display: flex; align-items: center; gap: var(--s3);
}
.augen::before { content:""; width: 28px; height: 1px; background: var(--gold-2); flex: none; }

/* Dreifarbiger Akzent aus dem Praxislogo — Ohr / Nase / Hals.
   Bewusst sparsam: das Logo bleibt das einzige laute Element. */
.logo-akzent {
	display: flex; width: 96px; height: 3px; border-radius: 3px; overflow: hidden;
	margin-bottom: var(--s6);
}
.logo-akzent i { flex: 1; }
.logo-akzent i:nth-child(1) { background: var(--logo-blau); }
.logo-akzent i:nth-child(2) { background: var(--logo-gelb); }
.logo-akzent i:nth-child(3) { background: var(--logo-orange); }

/* Leistungsnummern greifen die Logofarben auf, in gedämpfter Form */
.leistung:nth-child(3n+1) .leistung-nr { color: #0d7b98; }
.leistung:nth-child(3n+2) .leistung-nr { color: #a87b1e; }
.leistung:nth-child(3n+3) .leistung-nr { color: #c2431f; }

.fliess { font-size: clamp(1.05rem,1rem + .35vw,1.2rem); line-height: 1.62; color: var(--ink-2); }
.leise { color: var(--ink-3); }

a { color: var(--gruen); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gruen-2); }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; border-radius: 2px; }

/* ── Kopfzeile ─────────────────────────────────────────── */

.kopf {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.8);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid transparent;
	transition: border-color .35s var(--ease), background .35s var(--ease);
}
.kopf[data-gescrollt="true"] { border-bottom-color: var(--linie); background: rgba(255,255,255,.92); }

.kopf-in { display: flex; align-items: center; gap: var(--s5); min-height: 4.5rem; }

.marke { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); flex: none; min-width: 0; }
.marke img { width: 46px; height: auto; flex: none; }
.marke-txt b { display: block; font-size: .95rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.marke-txt span { display: block; font-size: .72rem; color: var(--ink-3); line-height: 1.3; }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: var(--s6); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .9rem; padding: var(--s2) 0; position: relative; }
.nav a::after {
	content:""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
	background: var(--gruen); transform: scaleX(0); transform-origin: inline-start;
	transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* Sprachumschalter */
.sprachen { display: flex; gap: 1px; background: var(--linie); border-radius: 100px; padding: 2px; flex: none; }
.sprachen a {
	font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
	padding: .3rem .6rem; border-radius: 100px; text-decoration: none;
	color: var(--ink-3); background: #fff; transition: all .2s var(--ease);
}
.sprachen a:hover { color: var(--gruen); }
.sprachen a[aria-current="true"] { background: var(--gruen); color: #fff; }

.tel {
	display: inline-flex; align-items: center; gap: var(--s2);
	background: var(--gruen); color: #fff; text-decoration: none;
	padding: .6rem 1.15rem; border-radius: 100px;
	font-size: .875rem; font-weight: 600; white-space: nowrap; flex: none;
	transition: background .2s var(--ease), transform .2s var(--ease);
}
.tel:hover { background: var(--gruen-2); color: #fff; transform: translateY(-1px); }
.tel svg { width: 15px; height: 15px; flex: none; }

@media (max-width: 1020px) { .nav { display: none; } .sprachen { margin-inline-start: auto; } }
@media (max-width: 640px) {
	.kopf-in { gap: var(--s3); min-height: 4rem; }
	.marke img { width: 38px; }
	.marke-txt span { display: none; }
	.marke-txt b { font-size: .82rem; }
	.tel { padding: .5rem .8rem; font-size: .8rem; }
	.sprachen a { padding: .28rem .45rem; font-size: .7rem; }
}
@media (max-width: 430px) { .marke-txt { display: none; } }

/* ── Hero ──────────────────────────────────────────────── */

.hero { padding: clamp(3rem,7vw,6.5rem) 0 clamp(2.5rem,5vw,4rem); }
.hero .display { max-width: 16ch; margin-bottom: var(--s5); }
.hero .fliess { max-width: 54ch; margin: 0 0 var(--s7); }

.knopf-reihe { display: flex; flex-wrap: wrap; gap: var(--s3); }

.knopf {
	display: inline-flex; align-items: center; gap: var(--s2);
	padding: .9rem 1.7rem; border-radius: 100px;
	font-size: .95rem; font-weight: 600; text-decoration: none;
	transition: all .22s var(--ease);
}
.knopf-voll { background: var(--gruen); color: #fff; }
.knopf-voll:hover { background: var(--gruen-2); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,80,73,.18); }
.knopf-leer { color: var(--gruen); border: 1px solid var(--linie-2); background: #fff; }
.knopf-leer:hover { border-color: var(--gruen); background: var(--sand); }
.knopf svg { width: 16px; height: 16px; flex: none; }

.hero-meta {
	display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6);
	padding-top: var(--s5); margin-top: var(--s7);
	border-top: 1px solid var(--linie); font-size: .875rem; color: var(--ink-3);
}
.hero-meta b { color: var(--ink); font-weight: 600; }

/* ── Bilder ────────────────────────────────────────────── */

.bild { position: relative; overflow: hidden; border-radius: var(--r-gross); background: var(--sand-2); }
.bild img { width: 100%; height: 100%; object-fit: cover; }

/* Bild-Einblendung: leichter Zoom heraus */
.bild[data-reveal] img { transform: scale(1.07); transition: transform 1.3s var(--ease-out); }
.bild[data-reveal].sichtbar img { transform: scale(1); }

.bild-breit { aspect-ratio: 16/9; }
.bild-hoch  { aspect-ratio: 3/4; }
.bild-quad  { aspect-ratio: 4/3; }

@media (max-width: 700px) { .bild-breit { aspect-ratio: 4/3; } }

.bild-unterschrift { margin-top: var(--s3); font-size: .8125rem; color: var(--ink-3); }

/* ── Abschnitte ────────────────────────────────────────── */

section { padding: clamp(3.5rem,8vw,7rem) 0; }
.sand { background: var(--sand); }
.dunkel { background: var(--gruen); color: #eef3f1; }
.dunkel .h2, .dunkel h3 { color: #fff; }
.dunkel .fliess, .dunkel p { color: #cbdcd7; }
.dunkel .augen { color: var(--gold); }
.dunkel .augen::before { background: var(--gold); }
.dunkel a { color: #fff; }

.kopf-block { max-width: 46ch; margin-bottom: clamp(2.5rem,5vw,4rem); }
.kopf-block .h2 + .fliess { margin-top: var(--s4); }

/* ── Leistungen ────────────────────────────────────────── */

.leistungen { border-top: 1px solid var(--linie); }

.leistung {
	display: grid;
	grid-template-columns: 3.5rem minmax(0,22ch) minmax(0,1fr);
	gap: var(--s5);
	padding: clamp(1.6rem,3.4vw,2.6rem) 0;
	border-bottom: 1px solid var(--linie);
	align-items: start;
	transition: background .3s var(--ease);
}
.leistung:hover { background: rgba(255,255,255,.6); }
.leistung-nr { font-variant-numeric: tabular-nums; font-size: .8125rem; font-weight: 600; color: var(--gold-2); letter-spacing: .08em; padding-top: .35em; }
.leistung h3 { color: var(--ink); }
.leistung p { margin: 0; color: var(--ink-2); font-size: .975rem; line-height: 1.6; }

@media (max-width: 780px) {
	.leistung { grid-template-columns: 2.5rem 1fr; gap: var(--s3) var(--s4); }
	.leistung p { grid-column: 2; margin-top: var(--s2); }
}

/* ── Sprechzeiten ──────────────────────────────────────── */

.zeit-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: clamp(2rem,5vw,4rem); align-items: start; }
.zeiten { width: 100%; border-collapse: collapse; }
.zeiten caption { text-align: start; font-size: .8125rem; color: var(--ink-3); padding-bottom: var(--s3); }
.zeiten th, .zeiten td { padding: .95rem 0; border-bottom: 1px solid var(--linie); text-align: start; }
.zeiten thead th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding-bottom: var(--s3); }
.zeiten tbody th { font-weight: 500; color: var(--ink); width: 32%; }
.zeiten td { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .95rem; white-space: nowrap; }
.zeiten td.zu { color: var(--ink-3); }
.zeiten tr[data-heute="true"] th, .zeiten tr[data-heute="true"] td { color: var(--gruen); font-weight: 600; }

.notfall { background: #fff; border: 1px solid var(--linie); border-inline-start: 3px solid var(--gold); padding: var(--s5) var(--s6); border-radius: 0 var(--r) var(--r) 0; }
.notfall h3 { font-size: 1rem; margin-bottom: var(--s3); }
.notfall p { margin: 0 0 var(--s3); font-size: .94rem; color: var(--ink-2); }
.notfall p:last-child { margin-bottom: 0; }
.notfall .nr { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

/* ── Split ─────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,330px),1fr)); gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split-text > * + * { margin-top: var(--s4); }

.fakten { list-style: none; padding: 0; margin: 0; }
.fakten li { padding: var(--s4) 0; border-bottom: 1px solid var(--linie); }
.fakten li:first-child { padding-top: 0; }
.fakten b { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: var(--s1); }
.dunkel .fakten li { border-color: rgba(255,255,255,.14); }
.dunkel .fakten b { color: var(--gold); }

/* ── Bildergalerie ─────────────────────────────────────── */

.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,260px),1fr)); gap: var(--s4); }

/* ── Fußzeile ──────────────────────────────────────────── */

.fuss { background: var(--ink); color: #9fb0ab; padding: clamp(3rem,6vw,4.5rem) 0 var(--s6); font-size: .9rem; }
.fuss a { color: #dce6e3; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,200px),1fr)); gap: var(--s6); padding-bottom: var(--s7); }
.fuss h4 { color: #fff; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s4); font-weight: 600; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { padding: var(--s1) 0; }
.fuss-logo { width: 54px; margin-bottom: var(--s4); opacity: .95; }
.fuss-unten { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between; font-size: .82rem; color: #7b8c88; }

/* ── Rechtstexte ───────────────────────────────────────── */

.recht { padding: clamp(3rem,6vw,5rem) 0 clamp(4rem,8vw,6rem); }
.recht h1 { font-size: clamp(1.9rem,1.4rem+2vw,2.6rem); margin-bottom: var(--s6); letter-spacing: -.028em; }
.recht h2 { font-size: 1.15rem; margin: var(--s7) 0 var(--s3); }
.recht h3 { font-size: 1rem; margin: var(--s5) 0 var(--s2); }
.recht p, .recht li { color: var(--ink-2); font-size: .975rem; }
.recht dl { margin: 0 0 var(--s5); }
.recht dt { font-weight: 600; color: var(--ink); margin-top: var(--s4); font-size: .95rem; }
.recht dd { margin: var(--s1) 0 0; color: var(--ink-2); font-size: .975rem; }
.recht ul { padding-inline-start: 1.2em; }

.entwurf { background:#fff9e6; border:1px solid #e8cf7a; border-inline-start:3px solid #d4a017; padding: var(--s5) var(--s6); border-radius: 0 var(--r) var(--r) 0; margin-bottom: var(--s7); font-size:.94rem; color:#6b5200; }
.todo { background:#fff3cd; border:1px solid #e0b400; border-radius:3px; padding:.1em .45em; font-weight:600; color:#7a5c00; font-size:.95em; }

/* ── Animationen ───────────────────────────────────────── */

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].sichtbar { opacity: 1; transform: none; }

/* Gestaffelt */
[data-reveal][data-verzoegerung="1"] { transition-delay: .07s; }
[data-reveal][data-verzoegerung="2"] { transition-delay: .14s; }
[data-reveal][data-verzoegerung="3"] { transition-delay: .21s; }
[data-reveal][data-verzoegerung="4"] { transition-delay: .28s; }

/* Zeilenweises Einblenden der Überschrift */
.zeile { display: block; overflow: hidden; }
.zeile > span {
	display: block; transform: translateY(105%);
	transition: transform .95s var(--ease-out);
}
.geladen .zeile > span { transform: none; }
.zeile:nth-child(2) > span { transition-delay: .09s; }
.zeile:nth-child(3) > span { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration:.01ms !important; animation-iteration-count:1 !important;
		transition-duration:.01ms !important; scroll-behavior:auto !important;
	}
	[data-reveal] { opacity: 1; transform: none; }
	.zeile > span { transform: none; }
	.bild[data-reveal] img { transform: none; }
}

@media print {
	.kopf, .fuss, .knopf-reihe, .skip, .bild { display: none; }
	body { color: #000; font-size: 11pt; }
	section { padding: 1rem 0; page-break-inside: avoid; }
}

/* ── Ablauf: nummerierte Schritte ───────────────────────── */

.schritte { display: grid; gap: 0; border-top: 1px solid var(--linie); }

.schritt {
	display: grid; grid-template-columns: 3rem 1fr; gap: var(--s5);
	padding: clamp(1.4rem, 3vw, 2.2rem) 0;
	border-bottom: 1px solid var(--linie);
	align-items: start;
}
.schritt-nr {
	display: grid; place-items: center;
	width: 2.1rem; height: 2.1rem; border-radius: 50%;
	background: var(--gruen); color: #fff;
	font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.schritt h3 { margin: 0 0 var(--s2); color: var(--ink); }
.schritt p { margin: 0; color: var(--ink-2); font-size: .975rem; }

@media (max-width: 640px) { .schritt { grid-template-columns: 2.4rem 1fr; gap: var(--s4); } }

/* ── FAQ ────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--linie); max-width: 74ch; }

.faq details { border-bottom: 1px solid var(--linie); }

.faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
	padding: clamp(1.1rem, 2.4vw, 1.5rem) 0;
	cursor: pointer; list-style: none;
	font-size: 1.03rem; font-weight: 600; letter-spacing: -.014em;
	color: var(--ink); transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gruen); }

.faq summary::after {
	content: ""; flex: none; width: 11px; height: 11px;
	border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
	transform: rotate(45deg) translate(-2px,-2px);
	transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px,-2px); }
.faq details[open] summary { color: var(--gruen); }

.faq details p {
	margin: 0; padding: 0 0 var(--s5);
	color: var(--ink-2); font-size: .975rem; max-width: 68ch;
	animation: faq-auf .35s var(--ease-out);
}
@keyframes faq-auf { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

html[dir="rtl"] .faq summary::after { transform: rotate(135deg) translate(-2px,-2px); }
html[dir="rtl"] .faq details[open] summary::after { transform: rotate(-45deg) translate(-2px,-2px); }

@media (prefers-reduced-motion: reduce) { .faq details p { animation: none; } }
