/* ==========================================================================
   KJP-Praxis Hürth – Stylesheet
   ========================================================================== */

:root {
	--gruen: #005851;
	--gelb: #fbce42;
	--gelb-hell: #fedc62;
	--gold: #e5ae2f;
	--text: #005851;
	--ueberschrift: #222;
	--schwarz: #0a0a0a;
	--linie: #f2f2f2;
	--hellgrau: #efefef;
	--footer: #f7f7f7;
	--feld: #f8f8f8;
	--header-hoehe: 118px;
	--schrift: Helvetica, Arial, sans-serif;
}

/* ---------- Basis ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--header-hoehe);
}

body {
	margin: 0;
	padding-top: var(--header-hoehe);
	background: #fff;
	color: var(--text);
	font: 16px/1.65 var(--schrift);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: #000;
	text-decoration: none;
	transition: color .2s, opacity .2s;
}

a:hover {
	text-decoration: underline;
}

p {
	margin: .85em 0;
}

ul {
	margin: 0 0 20px;
	padding-left: 23px;
}

li {
	padding: 3px 0;
}

strong,
b {
	color: #000;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--ueberschrift);
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.1;
}

h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
h4 { font-size: 18px; }

:focus-visible {
	outline: 2px solid var(--gelb);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 10px 16px;
	background: #fff;
	color: #000;
}

.skip-link:focus {
	top: 10px;
}

/* ---------- Layout ---------- */

.container {
	width: 90%;
	max-width: 1310px;
	margin: 0 auto;
	padding: 0 50px;
}

.section {
	position: relative;
	padding: 50px 0;
}

.section--weiss { background: #fff; }
.section--gelb { background: var(--gelb-hell); }
.section--grau { background: var(--hellgrau); }

/* Spalten-Raster: 6 % Abstand wie im Original */
.spalten {
	display: flex;
	flex-wrap: wrap;
	column-gap: 6%;
	row-gap: 50px;
	align-items: flex-start;
}

.spalte-1-2 { flex: 0 0 47%; }
.spalte-1-3 { flex: 0 0 29.33%; }
.spalte-2-3 { flex: 0 0 64.67%; }
.spalte-1-4 { flex: 0 0 20.5%; }

/* Wellen-Trenner am unteren Rand (Farbe = nächste Section) */
.welle {
	position: absolute;
	left: 0;
	bottom: -2px;
	z-index: 2;
	width: 100%;
	height: 50px;
	pointer-events: none;
	background: currentColor;
	-webkit-mask: url("../img/welle.svg") center / 100% 100% no-repeat;
	mask: url("../img/welle.svg") center / 100% 100% no-repeat;
	transform: rotate(180deg);
}

.welle--weiss { color: #fff; }

/* ---------- Header ---------- */

.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--gruen);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-hoehe);
}

.header__logo {
	display: block;
	width: 270px;
}

.nav__liste {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__liste li {
	padding: 0;
}

.nav__liste a {
	display: block;
	padding: 0 13px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	transition: opacity .4s ease-in-out;
}

.nav__liste a:hover {
	text-decoration: none;
	opacity: .8;
}

.nav__liste li + li a {
	border-left: 1px solid var(--linie);
}

.burger {
	display: none;
}

/* ---------- Überschriften-Bausteine ---------- */

.seitentitel {
	position: relative;
	padding: 50px 0;
	background: var(--gelb);
	text-align: center;
}

.seitentitel h1 {
	padding-bottom: 20px;
	color: var(--gruen);
	font-weight: 300;
}

.seitentitel--bild {
	background: #efefef url("../img/hintergrund-startseite.jpg") center top / cover no-repeat;
}

.seitentitel--bild::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--gruen);
	opacity: .5;
}

.seitentitel--bild > .container {
	position: relative;
	z-index: 1;
}

.seitentitel--bild h1 {
	color: var(--gelb);
}

.titel-gross {
	font-size: 25px;
	font-weight: 300;
	padding-bottom: 10px;
}

.titel-leicht {
	font-size: 28px;
	font-weight: 300;
	padding-bottom: 10px;
}

.titel-fett {
	font-size: 28px;
	font-weight: 600;
	padding-bottom: 10px;
}

/* Überschrift mit feiner Linie rechts daneben */
.titel-linie {
	display: flex;
	align-items: center;
	gap: 15px;
}

.titel-linie::after {
	content: "";
	flex: 1;
	border-top: 1px solid rgba(0, 88, 81, .15);
}

.trenner {
	width: 25%;
	height: 0;
	margin: 25px 0 20px;
	border: 0;
	border-top: 2px solid var(--gelb);
}

/* ---------- Buttons ---------- */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 15px 30px 13px;
	border-radius: 3px;
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity .4s ease-in-out;
}

.button:hover {
	text-decoration: none;
	opacity: .7;
}

.button svg {
	flex: none;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.button--gelb {
	background: radial-gradient(var(--gelb-hell), var(--gelb));
	color: #000;
}

.button--gruen {
	background: var(--gruen);
	color: #fff;
}

.button--grau {
	background: var(--feld);
	color: var(--gruen);
	border-bottom: 1px solid #e1e1e1;
}

.button--grau:hover {
	opacity: 1;
	background: #e1e1e1;
}

.button--gross {
	display: flex;
	width: 100%;
	padding: 20px;
	font-size: 24px;
}

.button--mittel {
	padding: 25px 50px 23px;
	font-size: 15px;
}

/* ---------- Startseite ---------- */

.aerztin {
	text-align: center;
}

.aerztin img {
	width: 100%;
	border-radius: 3px;
}

.aerztin__name {
	margin-top: 15px;
	color: var(--ueberschrift);
	font-size: 18px;
	font-weight: 300;
	letter-spacing: 0;
}

.aerztin__titel {
	margin: 4.5px 0 10px;
	font-size: 15px;
	line-height: 1.3;
}

/* ---------- Team ---------- */

.person {
	text-align: center;
}

.person img {
	width: 100%;
	border-radius: 3px;
}

.person h2 {
	margin-top: 15px;
	color: #000;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
}

.person p {
	margin: 4.5px 0 0;
	font-size: 15px;
	line-height: 1.3;
}

/* ---------- FAQ ---------- */

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

.faq__eintrag:last-child {
	border-bottom: 1px solid var(--linie);
}

.faq__frage {
	position: relative;
	display: block;
	padding: 35px 55px 30px 35px;
	color: var(--schwarz);
	font-size: 17px;
	line-height: 1.65;
	cursor: pointer;
	list-style: none;
}

.faq__frage::-webkit-details-marker {
	display: none;
}

/* Kreis mit Plus, wird beim Öffnen zum Minus */
.faq__icon {
	position: absolute;
	top: 50%;
	right: 20px;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border: 2px solid var(--gelb);
	border-radius: 50%;
	opacity: .4;
	transition: opacity .3s;
}

.faq__frage:hover .faq__icon,
.faq__eintrag[open] .faq__icon {
	opacity: 1;
}

.faq__icon::before,
.faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--gelb);
	transition: transform .3s;
}

.faq__icon::before {
	width: 11px;
	height: 2px;
	margin: -1px 0 0 -5.5px;
}

.faq__icon::after {
	width: 2px;
	height: 11px;
	margin: -5.5px 0 0 -1px;
}

.faq__eintrag[open] .faq__icon::after {
	transform: scaleY(0);
}

.faq__antwort {
	padding: 20px 35px 30px;
	border-top: 1px solid var(--linie);
	background: var(--feld);
	color: var(--schwarz);
	font-size: 15px;
	line-height: 1.4;
}

.faq__antwort > :first-child {
	margin-top: 0;
}

.faq__antwort h3 {
	margin: 20px 0 8px;
}

/* ---------- Kontakt ---------- */

.formular p {
	margin: 0 0 20px;
}

.formular label {
	display: block;
	margin-bottom: 7px;
	font-size: 14.72px;
	font-weight: 700;
}

.formular input[type="text"],
.formular input[type="email"],
.formular input[type="tel"],
.formular textarea {
	display: block;
	width: 100%;
	padding: 13px;
	border: 1px solid var(--linie);
	border-radius: 2px;
	background: var(--feld);
	color: #919191;
	font: 16px var(--schrift);
}

.formular textarea {
	height: 196px;
	line-height: 1.5;
	resize: vertical;
}

.formular input:focus,
.formular textarea:focus {
	outline: none;
	border-color: var(--gruen);
	color: #444;
}

.formular .feld--fehler input,
.formular .feld--fehler textarea {
	border-color: #e02b2b;
}

.formular .checkbox label {
	display: inline;
	font-size: 14px;
}

.formular .checkbox input {
	margin: 0 6px 0 0;
}

.formular .feld--fehler.checkbox label {
	color: #e02b2b;
}

.formular .honig {
	position: absolute;
	left: -9999px;
}

.formular button {
	padding: 16px 20px;
	border: 1px solid #000;
	border-radius: 2px;
	background: #000;
	color: #fff;
	font: 14.72px Arial, sans-serif;
	cursor: pointer;
	transition: opacity .2s;
}

.formular button:hover {
	opacity: .8;
}

.formular button[disabled] {
	opacity: .5;
	cursor: wait;
}

.formular__meldung {
	color: var(--ueberschrift);
	font-size: 18px;
	font-weight: 600;
}

.formular__meldung--fehler {
	color: #e02b2b;
}

.kontakt-info .titel-fett:not(:first-child) {
	margin-top: 50px;
}

.kontakt-info .titel-fett + .button {
	margin-top: 10px;
}

.dokumente {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1.45;
}

.dokumente li {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0;
}

.dokumente svg {
	flex: none;
	width: 23px;
	height: 16px;
	fill: var(--gruen);
}

/* ---------- Footer ---------- */

.footer {
	padding: 45px 0 70px;
	border-top: 1px solid #fff;
	background: var(--footer);
}

.footer a {
	color: var(--gruen);
}

.footer__logo {
	width: 245px;
	margin-top: 14px;
}

.footer h2 {
	margin: 15px 0 8px;
	color: var(--gold);
	font-size: 17.6px;
	font-weight: 600;
}

.footer p {
	margin: 0;
}

.footer strong {
	color: var(--gruen);
}

.socket {
	padding: 15px 0;
	background: var(--gruen);
	color: #fff;
	font-size: 11px;
	line-height: 2.4;
}

.socket a {
	color: #fff;
}

.nach-oben {
	position: fixed;
	right: 50px;
	bottom: 50px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: 1px solid #fff;
	border-radius: 2px;
	background: var(--gruen);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}

.nach-oben.ist-sichtbar {
	opacity: .5;
	visibility: visible;
}

.nach-oben:hover {
	opacity: 1;
}

.nach-oben svg {
	width: 19px;
	height: 32px;
	fill: #fff;
}

/* ---------- Textseiten (Impressum, Datenschutz …) ---------- */

.textseite h1 {
	margin-bottom: 10px;
	font-size: 28px;
}

.textseite h2 {
	margin: 27px 0 8px;
	font-size: 18px;
}

.textseite h1 + h2 {
	margin-top: 0;
}

.textseite-links a {
	text-decoration: underline;
}

/* ---------- Einblend-Animation ---------- */

.js [data-einblenden] {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .8s ease, transform .8s ease;
}

.js [data-einblenden].ist-sichtbar {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.js [data-einblenden] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 989px) {
	.container {
		padding: 0 30px;
	}

	.nav__liste a {
		padding: 0 8px;
		font-size: 13px;
	}

	.header__logo {
		width: 200px;
	}
}

/* ==========================================================================
   Smartphone
   ========================================================================== */

@media (max-width: 767px) {
	:root {
		--header-hoehe: 80px;
	}

	body {
		padding-top: 0;
	}

	html {
		scroll-padding-top: 0;
	}

	.container {
		width: 85%;
		padding: 0;
	}

	.header {
		position: relative;
	}

	.header__inner {
		height: 80px;
	}

	.header__logo {
		width: 183px;
	}

	.burger {
		position: relative;
		z-index: 120;
		display: block;
		width: 35px;
		height: 48px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}

	.burger span,
	.burger span::before,
	.burger span::after {
		position: absolute;
		left: 0;
		width: 35px;
		height: 3px;
		border-radius: 3px;
		background: #fff;
		transition: transform .3s, top .3s;
	}

	.burger span {
		top: 50%;
		margin-top: -2px;
	}

	.burger span::before,
	.burger span::after {
		content: "";
	}

	.burger span::before { top: -10px; }
	.burger span::after { top: 10px; }

	.menue-offen .burger span { background: transparent; }
	.menue-offen .burger span::before { top: 0; transform: rotate(45deg); }
	.menue-offen .burger span::after { top: 0; transform: rotate(-45deg); }

	.nav {
		position: fixed;
		inset: 0;
		z-index: 110;
		visibility: hidden;
	}

	.nav::before {
		content: "";
		position: absolute;
		inset: 0;
		background: #000;
		opacity: 0;
		transition: opacity .4s;
	}

	.nav__liste {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		flex-direction: column;
		justify-content: center;
		width: calc(100% - 40px);
		max-width: 350px;
		padding: 80px 0;
		background: var(--gruen);
		transform: translateX(100%);
		transition: transform .4s ease;
		overflow-y: auto;
	}

	.nav__liste a {
		padding: 15px 50px;
		font-size: 20px;
		font-weight: 300;
		line-height: 26px;
		letter-spacing: 2px;
		text-transform: uppercase;
	}

	.nav__liste li + li a {
		border-left: 0;
	}

	.menue-offen .nav {
		visibility: visible;
	}

	.menue-offen .nav::before {
		opacity: .3;
	}

	.menue-offen .nav__liste {
		transform: none;
	}

	.menue-offen {
		overflow: hidden;
	}

	.spalten {
		flex-direction: column;
		gap: 30px;
	}

	.spalten > * {
		flex: none;
		width: 100%;
	}

	.footer {
		padding: 30px 0 50px;
	}

	.footer .spalten {
		gap: 40px;
	}

	.nach-oben {
		right: 20px;
		bottom: 20px;
	}

	.faq__frage {
		padding: 25px 60px 22px 20px;
	}

	.faq__antwort {
		padding: 20px;
	}
}
