/* ==========================================================================
   Hausarztpraxis Perl (rwoll) – Haupt-Stylesheet
   Mobile-First, eine Datei, ein Request. Keine externen Ressourcen.
   ========================================================================== */

/* Self-hosted Variable Font (Inter) – KEINE Google-Fonts-Anfrage */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-var-latin.woff2') format('woff2-variations');
}

/* --------------------------------------------------------------------------
   1. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
	--font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

	--rw-brand: #0d7a78;
	--rw-brand-dark: #0a5f5e;
	--rw-brand-deep: #064a49;
	--rw-accent: #e6f4f2;

	--rw-bg: #ffffff;
	--rw-bg-soft: #f4f8f8;
	--rw-ink: #1d2b32;
	--rw-muted: #5a6a73;
	--rw-line: #e1e9eb;

	--rw-danger: #b9362a;
	--rw-danger-dark: #96281e;
	--rw-bereitschaft: #1d3f8f;
	--rw-bereitschaft-dark: #16306e;

	--rw-warn-bg: #fff6e0;
	--rw-warn-line: #efd38a;
	--rw-warn-ink: #6b4d05;

	--rw-radius: 14px;
	--rw-shadow: 0 10px 30px rgba(13, 60, 58, 0.10);
	--rw-header-h: 64px;
}

/* --------------------------------------------------------------------------
   2. Reset & Grundlagen
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--rw-ink);
	background: var(--rw-bg);
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--rw-brand-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--rw-brand);
}

h1, h2, h3, h4, p, figure {
	margin: 0 0 1rem;
}

h1, h2, h3, h4 {
	line-height: 1.2;
	color: var(--rw-ink);
	font-weight: 700;
	text-wrap: balance;
}

ul, ol {
	margin: 0 0 1rem;
	padding-left: 1.2rem;
}

address {
	font-style: normal;
}

table {
	border-collapse: collapse;
	width: 100%;
}

button {
	font-family: inherit;
	cursor: pointer;
}

/* Utilities */
.container {
	width: 100%;
	max-width: 1140px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 100;
	background: var(--rw-brand);
	color: #fff;
	padding: 0.75rem 1rem;
	border-radius: 0 0 8px 0;
}

.skip-link:focus {
	left: 0;
}

/* Buttons */
.rw-btn {
	display: inline-block;
	padding: 0.8rem 1.5rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.15s ease;
	border: 0;
}

.rw-btn--primary {
	background: var(--rw-brand);
	color: #fff;
}

.rw-btn--primary:hover {
	background: var(--rw-brand-dark);
	color: #fff;
}

.rw-btn--ghost {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(2px);
}

.rw-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.28);
	color: #fff;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--rw-line);
	transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
	box-shadow: var(--rw-shadow);
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--rw-header-h);
}

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: var(--rw-ink);
	margin-right: auto;
}

.site-header__logo {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: contain;
}

.site-header__name {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.15;
}

.site-header__toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 8px;
	background: var(--rw-bg-soft);
	border: 1px solid var(--rw-line);
	border-radius: 10px;
}

.site-header__toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--rw-ink);
	border-radius: 2px;
}

.site-nav {
	position: fixed;
	inset: var(--rw-header-h) 0 auto 0;
	background: #fff;
	border-bottom: 1px solid var(--rw-line);
	box-shadow: var(--rw-shadow);
	padding: 0.5rem 1.25rem 1rem;
	display: none;
}

.site-nav.is-open {
	display: block;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list li + li {
	border-top: 1px solid var(--rw-line);
}

.site-nav__list a {
	display: block;
	padding: 0.85rem 0.25rem;
	color: var(--rw-ink);
	text-decoration: none;
	font-weight: 600;
}

.site-nav__list a:hover {
	color: var(--rw-brand-dark);
}

.site-header__emergency {
	display: none;
	align-items: center;
	gap: 0.5rem;
	background: var(--rw-danger);
	color: #fff;
	border-radius: 999px;
	padding: 0.55rem 1.1rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__emergency svg {
	width: 18px;
	height: 18px;
}

.site-header__emergency:hover {
	background: var(--rw-danger-dark);
	color: #fff;
}

/* --------------------------------------------------------------------------
   4. Hero (Startseite)
   -------------------------------------------------------------------------- */
.rw-hero {
	position: relative;
	min-height: clamp(420px, 78vh, 760px);
	display: flex;
	align-items: flex-end;
	color: #fff;
	overflow: hidden;
}

.rw-hero__media {
	position: absolute;
	inset: 0;
}

.rw-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.rw-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(6, 40, 39, 0.35) 0%, rgba(6, 40, 39, 0.55) 45%, rgba(6, 40, 39, 0.88) 100%);
}

.rw-hero__inner {
	position: relative;
	padding-block: clamp(3rem, 8vh, 5.5rem);
}

.rw-hero__kicker {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 700;
	color: #d7f2ef;
	margin-bottom: 0.75rem;
}

.rw-hero__title {
	color: #fff;
	font-size: clamp(1.9rem, 5vw, 3.2rem);
	margin-bottom: 1rem;
	max-width: 16ch;
}

.rw-hero__intro {
	max-width: 46rem;
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 1.75rem;
}

.rw-hero__intro p {
	margin-bottom: 0.75rem;
}

.rw-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   5. Aktuelles (Urlaubs-Alert)
   -------------------------------------------------------------------------- */
.rw-alert {
	background: var(--rw-warn-bg);
	border-bottom: 1px solid var(--rw-warn-line);
	color: var(--rw-warn-ink);
}

.rw-alert__inner {
	display: flex;
	gap: 1rem;
	padding-block: 1.25rem;
}

.rw-alert__icon {
	flex: 0 0 auto;
	color: var(--rw-warn-ink);
	opacity: 0.9;
}

.rw-alert__icon svg {
	width: 32px;
	height: 32px;
}

.rw-alert__title {
	font-size: 1.05rem;
	color: var(--rw-warn-ink);
	margin-bottom: 0.35rem;
}

.rw-alert__period {
	font-size: 1.05rem;
	margin-bottom: 0.4rem;
}

.rw-alert__text,
.rw-alert__weekend,
.rw-alert__list-label {
	margin-bottom: 0.4rem;
	font-size: 0.97rem;
}

.rw-alert__list {
	margin: 0 0 0.4rem;
	padding-left: 1.2rem;
	font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   6. Notfälle
   -------------------------------------------------------------------------- */
.rw-emergency {
	background: var(--rw-bg-soft);
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.rw-section-head {
	margin-bottom: 2rem;
	max-width: 46rem;
}

.rw-section-head--center {
	margin-inline: auto;
	text-align: center;
}

.rw-section-head__kicker {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--rw-brand);
	margin-bottom: 0.5rem;
}

.rw-section-head__title {
	font-size: clamp(1.6rem, 3.6vw, 2.4rem);
	margin-bottom: 0.75rem;
}

.rw-section-head__sub {
	color: var(--rw-muted);
	font-size: 1.05rem;
}

.rw-emergency__grid {
	display: grid;
	gap: 1.25rem;
}

.rw-emergency__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 1.5rem;
	border-radius: var(--rw-radius);
	color: #fff;
	text-decoration: none;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.rw-emergency__card:hover {
	color: #fff;
	transform: translateY(-3px);
	filter: brightness(1.06);
}

.rw-emergency__card--notruf {
	background: var(--rw-danger);
}

.rw-emergency__card--bereitschaft {
	background: var(--rw-bereitschaft);
}

.rw-emergency__icon {
	width: 100%;
	margin-bottom: 0.5rem;
}

.rw-emergency__icon svg {
	width: 30px;
	height: 30px;
}

.rw-emergency__number {
	font-size: clamp(2.2rem, 6vw, 3.2rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.rw-emergency__label {
	font-weight: 700;
	font-size: 1.05rem;
}

.rw-emergency__hint {
	opacity: 0.85;
	font-size: 0.92rem;
}

.rw-emergency__action {
	margin-top: 0.75rem;
	padding: 0.5rem 1.25rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	font-weight: 600;
	font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   7. Leistungen (Grid)
   -------------------------------------------------------------------------- */
.rw-services {
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.rw-services__grid {
	display: grid;
	gap: 1.25rem;
}

.rw-service {
	background: #fff;
	border: 1px solid var(--rw-line);
	border-radius: var(--rw-radius);
	padding: 1.5rem;
	box-shadow: 0 4px 18px rgba(13, 60, 58, 0.05);
	display: flex;
	flex-direction: column;
}

.rw-service__icon {
	width: 58px;
	height: 58px;
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: var(--rw-accent);
	color: var(--rw-brand-dark);
	margin-bottom: 1rem;
}

.rw-service__icon svg {
	width: 28px;
	height: 28px;
}

.rw-service__title {
	font-size: 1.2rem;
	margin-bottom: 0.6rem;
}

.rw-service__list {
	margin: 0;
	padding-left: 1.1rem;
	color: var(--rw-muted);
	font-size: 0.95rem;
}

.rw-service__list li {
	margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   8b. Einblicke (Galerie)
   -------------------------------------------------------------------------- */
.rw-gallery {
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.rw-gallery__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, 1fr);
}

.rw-gallery__item {
	margin: 0;
	overflow: hidden;
	border-radius: var(--rw-radius);
	box-shadow: var(--rw-shadow);
	background: var(--rw-bg-soft);
}

.rw-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	display: block;
	transition: transform 0.35s ease;
}

.rw-gallery__item:hover img {
	transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   8. Praxisteam
   -------------------------------------------------------------------------- */
.rw-team {
	background: var(--rw-bg-soft);
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.rw-team__grid {
	display: grid;
	gap: 1.25rem;
}

.rw-member {
	background: #fff;
	border: 1px solid var(--rw-line);
	border-radius: var(--rw-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-align: center;
	box-shadow: 0 4px 18px rgba(13, 60, 58, 0.05);
}

.rw-member__photo {
	position: relative;
	aspect-ratio: 4 / 4.4;
	margin: 0;
	overflow: hidden;
	background: var(--rw-bg-soft);
}

.rw-member__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rw-member__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--rw-brand);
	background: linear-gradient(180deg, var(--rw-accent), #fff);
}

.rw-member__placeholder svg {
	width: 56px;
	height: 56px;
}

.rw-member__name {
	margin: 1.1rem 1rem 0.2rem;
	font-size: 1.15rem;
}

.rw-member__role {
	color: var(--rw-brand-dark);
	font-weight: 600;
	font-size: 0.92rem;
	margin-bottom: 0.6rem;
	padding-inline: 1rem;
}

.rw-member__bio {
	color: var(--rw-muted);
	font-size: 0.93rem;
	margin: 0;
	padding: 0 1rem 1.4rem;
}

/* --------------------------------------------------------------------------
   9. Sprechzeiten
   -------------------------------------------------------------------------- */
.rw-hours {
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.rw-hours__table-wrap {
	max-width: 640px;
	margin-inline: auto;
	background: #fff;
	border: 1px solid var(--rw-line);
	border-radius: var(--rw-radius);
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(13, 60, 58, 0.05);
}

.rw-hours__table th,
.rw-hours__table td {
	padding: 0.9rem 1.1rem;
	text-align: left;
	border-bottom: 1px solid var(--rw-line);
	font-size: 0.97rem;
}

.rw-hours__table tr:last-child th,
.rw-hours__table tr:last-child td {
	border-bottom: 0;
}

.rw-hours__table th {
	width: 42%;
	font-weight: 700;
	color: var(--rw-brand-deep);
}

.rw-hours__table td {
	color: var(--rw-ink);
}

.rw-hours__akut {
	margin: 1.5rem auto 0;
	max-width: 640px;
	text-align: center;
	background: var(--rw-accent);
	color: var(--rw-brand-deep);
	border: 1px solid #cfeae6;
	border-radius: var(--rw-radius);
	padding: 0.9rem 1.2rem;
	font-weight: 600;
	font-size: 0.98rem;
}

.rw-hours__note {
	margin: 0.9rem auto 0;
	max-width: 640px;
	text-align: center;
	color: var(--rw-muted);
	font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   10. Kontakt & Zwei-Klick-Karte
   -------------------------------------------------------------------------- */
.rw-contact {
	background: var(--rw-bg-soft);
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.rw-contact__grid {
	display: grid;
	gap: 1.5rem;
}

.rw-contact__info {
	background: #fff;
	border: 1px solid var(--rw-line);
	border-radius: var(--rw-radius);
	padding: 1.5rem;
	box-shadow: 0 4px 18px rgba(13, 60, 58, 0.05);
}

.rw-contact__address {
	margin-bottom: 1rem;
	font-size: 1.05rem;
	line-height: 1.55;
}

.rw-contact__list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.rw-contact__list li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.55rem;
	font-size: 0.97rem;
}

.rw-contact__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 10px;
	background: var(--rw-accent);
	color: var(--rw-brand-dark);
}

.rw-contact__icon svg {
	width: 17px;
	height: 17px;
}

.rw-contact__parking {
	color: var(--rw-muted);
	font-size: 0.93rem;
	margin-bottom: 1.1rem;
}

.rw-contact__directions {
	width: 100%;
	text-align: center;
}

.rw-contact__map {
	background: #fff;
	border: 1px solid var(--rw-line);
	border-radius: var(--rw-radius);
	overflow: hidden;
	min-height: 320px;
	box-shadow: 0 4px 18px rgba(13, 60, 58, 0.05);
}

.rw-map,
.rw-map__placeholder,
.rw-map__frame,
.rw-map__frame iframe {
	width: 100%;
	height: 100%;
	min-height: 320px;
}

.rw-map__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.6rem;
	padding: 1.5rem;
	background:
		radial-gradient(circle at 50% 20%, rgba(13, 122, 120, 0.08), transparent 60%),
		var(--rw-bg-soft);
}

.rw-map__icon {
	color: var(--rw-brand);
}

.rw-map__icon svg {
	width: 40px;
	height: 40px;
}

.rw-map__head {
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 0.2rem;
}

.rw-map__privacy {
	max-width: 34rem;
	color: var(--rw-muted);
	font-size: 0.9rem;
	margin-bottom: 0.6rem;
}

.rw-map__frame {
	background: #e8eef0;
	display: block;
}

.rw-map__frame iframe {
	border: 0;
	display: block;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--rw-brand-deep);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
}

.site-footer__inner {
	display: grid;
	gap: 1.75rem;
	padding-block: 2.5rem;
}

.site-footer__title {
	color: #fff;
	font-weight: 700;
	margin-bottom: 0.6rem;
}

.site-footer__address {
	margin-bottom: 0;
	line-height: 1.5;
}

.site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__list li {
	margin-bottom: 0.4rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-block: 1rem;
	font-size: 0.85rem;
	opacity: 0.8;
}

.site-footer__bottom p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   12. Seiten (Rechtliches, Blog, 404)
   -------------------------------------------------------------------------- */
.page-section {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.page-head__title {
	font-size: clamp(1.6rem, 3.6vw, 2.3rem);
	margin-bottom: 1.25rem;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6rem;
}

.legal .entry-content {
	max-width: 46rem;
}

.entry-card {
	padding: 1rem 0;
	border-bottom: 1px solid var(--rw-line);
}

.notfound {
	text-align: center;
	padding-block: 5rem;
}

/* --------------------------------------------------------------------------
   13. Breakpoints (Desktop-Upgrades)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
	.site-header__emergency {
		display: inline-flex;
	}

	.rw-emergency__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.rw-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.rw-team__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.rw-gallery__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.rw-contact__grid {
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
	}

	.site-footer__inner {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 900px) {
	.site-header__toggle {
		display: none;
	}

	.site-nav {
		position: static;
		inset: auto;
		display: block;
		background: none;
		border: 0;
		box-shadow: none;
		padding: 0;
	}

	.site-nav__list {
		display: flex;
		align-items: center;
		gap: 1.5rem;
	}

	.site-nav__list li + li {
		border-top: 0;
	}

	.site-nav__list a {
		padding: 0;
		font-size: 0.96rem;
	}

	.rw-services__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.rw-gallery__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
		animation: none !important;
	}
}
