/*
Theme Name: Bayad Praxis
Description: Individuelles Theme für die Zahnarztpraxis Bayad. Farbwelt abgeleitet aus den Praxisräumen: Creme, Sand, Gold und Marineblau.
Version: 1.0.0
Author: Bayad Praxis
Text Domain: bayad-praxis
*/

@font-face { font-family: "Jost"; src: url("assets/fonts/Jost.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
	/* Farbwelt aus den Praxisfotos */
	--cream: #F8F4EE;      /* Wände & Licht */
	--sand: #EDE3D8;       /* warme Wandflächen */
	--beige: #D8BFA4;      /* indirektes Licht */
	--gold: #B48A57;       /* goldener Zahn am Empfang */
	--gold-dark: #8F6A3E;
	--navy: #1B3456;       /* Behandlungsstühle */
	--blue: #2F5E9E;
	--ink: #2B2724;
	--muted: #6B625A;
	--white: #FFFFFF;
	--line: rgba(43, 39, 36, .12);

	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 22px;
	--shadow: 0 18px 50px -20px rgba(27, 52, 86, .28);
	--container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; color: var(--navy); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.container.narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.eyebrow {
	font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--gold-dark); margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow-light { color: var(--beige); }
.eyebrow-light::before { background: var(--beige); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .9em 1.6em; border-radius: 999px; font-weight: 500; font-size: 1rem;
	text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
	transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: .6em 1.2em; font-size: .95rem; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(27, 52, 86, .7); }
.btn-primary:hover { background: var(--blue); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(248, 244, 238, .88);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark {
	width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
	background: linear-gradient(145deg, #D9B57E, var(--gold) 55%, var(--gold-dark)); color: #fff;
	box-shadow: 0 6px 18px -6px rgba(180, 138, 87, .8);
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.brand-text small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.brand-light { color: #fff; }
.brand-light small { color: var(--beige); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px; background: var(--gold); transition: width .25s; }
.main-nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(70px, 8vw, 110px); background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow); }
.hero-media::before {
	content: ""; position: absolute; inset: -18px -18px 30px 30px; border: 1.5px solid var(--gold);
	border-radius: 210px 210px var(--radius) var(--radius); z-index: -1; opacity: .55;
}
.hero-badge {
	position: absolute; left: -28px; bottom: 36px; background: #fff; border-radius: 16px; padding: 14px 20px;
	display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); font-size: .9rem; color: var(--muted);
}
.hero-badge .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--sand); color: var(--gold-dark); }
.hero-badge strong { display: block; color: var(--navy); font-size: 1rem; }

/* Überblick */
.overview { margin-top: -54px; position: relative; z-index: 2; }
.overview .container { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px clamp(20px, 3vw, 40px); }
.overview-title { font-size: 1.6rem; margin-bottom: 1.2rem; }
.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ov-item { display: flex; gap: 14px; align-items: flex-start; }
.ov-item + .ov-item { border-left: 1px solid var(--line); padding-left: 24px; }
.ov-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); color: var(--gold-dark); display: grid; place-items: center; flex-shrink: 0; }
.ov-item h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .2em; }
.ov-item p, .ov-item a { margin: 0; font-size: .98rem; color: var(--navy); text-decoration: none; word-break: break-word; }
.ov-item a:hover { color: var(--gold-dark); }

/* Split-Layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media { position: relative; padding-bottom: 60px; padding-right: 60px; }
.split-media .tall { width: 82%; aspect-ratio: 3 / 4; object-fit: cover; }
.split-media .inset { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; object-fit: cover; border: 8px solid var(--cream); }
.split-text p { color: var(--muted); }
.split-text .btn { margin-top: .8rem; }

/* Galerie */
.gallery-section { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.section-head p { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px; gap: 16px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
	position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .9); color: var(--navy);
	font-size: .85rem; font-weight: 500; padding: 5px 14px; border-radius: 999px;
}
.g1 { grid-column: span 2; grid-row: span 2; }
.g4 { grid-column: span 1; }

/* Vorteile */
.features-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--beige); margin-bottom: 18px; }
.card-icon .icon { width: 24px; height: 24px; }
.features-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }

/* Leistungen */
.services { background: linear-gradient(180deg, var(--cream), var(--sand)); }
.split-services { align-items: start; }
.split-services .split-text { position: sticky; top: 120px; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.service-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; transition: background .2s; }
.service-list li:hover { background: var(--cream); }
.service-list h3 { margin: 0 0 .2em; font-size: 1.08rem; }
.service-list p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.sl-icon { color: var(--gold); padding-top: 3px; }
.sl-icon .icon { width: 22px; height: 22px; }

/* Kontakt */
.contact-box {
	display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
	background: var(--navy); color: #fff;
}
.contact-info { padding: clamp(32px, 5vw, 64px); position: relative; }
.contact-info h2 { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--beige); margin-top: 5px; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--beige); }
.contact-hours { background: #fff; color: var(--ink); padding: clamp(32px, 5vw, 64px); }
.contact-hours h3 { display: flex; gap: 10px; align-items: center; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
.contact-hours h3 .icon { color: var(--gold); }
.hours { margin: 1rem 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hours dt { font-weight: 500; color: var(--navy); }
.hours dd { margin: 0; color: var(--muted); text-align: right; }
.hours-note { font-size: .92rem; color: var(--muted); background: var(--cream); padding: 12px 16px; border-radius: 12px; border-left: 3px solid var(--gold); margin: 0; }

/* Footer */
.site-footer { background: #142740; color: rgba(255, 255, 255, .78); padding-top: 70px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.site-footer h3 { color: #fff; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--beige); }
.footer-claim { margin-top: 1.2rem; max-width: 30em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }

/* Unterseiten */
.page-content h1 { margin-bottom: 1rem; }
.entry h2 { font-size: 1.8rem; margin-top: 1.6em; }

/* Responsive */
@media (max-width: 1024px) {
	.overview-grid { grid-template-columns: 1fr 1fr; }
	.ov-item + .ov-item { border-left: 0; padding-left: 0; }
	.features-grid { grid-template-columns: 1fr; }
	.features-media img { min-height: 0; aspect-ratio: 16 / 9; }
	.gallery { grid-template-columns: repeat(2, 1fr); grid-template-rows: 300px repeat(2, 200px); }
	.g1 { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 880px) {
	.nav-toggle {
		display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px;
		border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0 12px;
	}
	.nav-toggle span:not(.screen-reader-text) { height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
		background: var(--cream); padding: 10px 24px 24px; border-bottom: 1px solid var(--line);
		display: none;
	}
	.nav-open .main-nav { display: flex; }
	.main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.main-nav .btn { margin-top: 16px; justify-content: center; }

	.hero-grid, .split, .contact-box { grid-template-columns: 1fr; }
	.hero-media { max-width: 520px; }
	.hero-badge { left: 12px; }
	.split-media { order: -1; max-width: 560px; }
	.split-services .split-text { position: static; }
}
@media (max-width: 600px) {
	.overview-grid, .feature-cards, .footer-grid { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
	.g1 { grid-column: auto; }
	.brand-text strong { font-size: 1.2rem; }
	.hero-media::before { display: none; }
	.btn-row .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
