/* Zahnarztpraxis Rozek – statischer Prototyp (Vorlage für das WP-Theme)
   Markenfarbe #871713, Schrift Exo 2 (lokal eingebunden, kein Google-Fonts-Request). */

@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/exo-2-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/exo-2-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rot: #871713;
  --rot-dunkel: #6a100d;
  --rot-hell: #f7eceb;
  --text: #2f2f2f;
  --text-leise: #5f5f5f;
  --linie: #e4e0de;
  --flaeche: #f6f4f2;
  --dunkel: #2b2726;
  --weiss: #fff;
  --radius: 10px;
  --schatten: 0 1px 2px rgba(43, 39, 38, .06), 0 8px 24px rgba(43, 39, 38, .08);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
}

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

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; line-height: 1.2; color: var(--dunkel); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 300; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
address { font-style: normal; margin: 0 0 1em; }

a { color: var(--rot); text-underline-offset: .18em; }
a:hover { color: var(--rot-dunkel); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--rot); color: var(--weiss); border-radius: 6px; }
.skip-link:focus { top: 12px; color: var(--weiss); }

.eyebrow { margin: 0 0 .6rem; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rot); }
.eyebrow a { text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--rot); color: var(--weiss); }
.btn--primary:hover { background: var(--rot-dunkel); color: var(--weiss); }
.btn--outline { border-color: var(--rot); color: var(--rot); background: transparent; }
.btn--outline:hover { background: var(--rot); color: var(--weiss); }
.btn--light { background: var(--weiss); color: var(--rot); }
.btn--light:hover { background: var(--rot-hell); color: var(--rot-dunkel); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--dunkel); }
.brand img { width: 56px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.2rem; font-weight: 600; color: var(--rot); }
.brand__sub { font-size: .85rem; color: var(--text-leise); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav li a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: .95rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--dunkel);
}
.site-nav li a:hover { background: var(--rot-hell); color: var(--rot); }
.site-nav li a[aria-current="page"] { background: var(--rot); color: var(--weiss); }
.site-nav__tel { white-space: nowrap; padding: .65em 1.1em; }

.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 8px; background: var(--rot-hell); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; margin-inline: auto; background: var(--rot); border-radius: 2px; transition: transform .2s, background-color .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px; background: var(--weiss); border-bottom: 1px solid var(--linie); box-shadow: var(--schatten);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav li a { padding: 14px; font-size: 1.05rem; }
}

/* Hero */
.hero { position: relative; display: grid; min-height: min(78vh, 720px); background: var(--dunkel); }
.hero > picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: center 25%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 10, 9, .78) 0%, rgba(30, 10, 9, .25) 55%, rgba(30, 10, 9, 0) 100%); }
.hero__content { position: relative; z-index: 1; align-self: end; padding-block: clamp(32px, 7vw, 72px); }
.hero__panel { max-width: 620px; color: var(--weiss); }
.hero__panel h1 { color: var(--weiss); }
.hero__panel .eyebrow { color: #f3c9c6; }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: 1.4em; }

/* Hero mobil/Tablet: Foto ungeschnitten über die volle Breite, Text und Buttons darunter.
   Ein Verlauf blendet das Foto unten in die dunkle Textfläche über. */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; background: var(--hero-flaeche); --hero-flaeche: #2a1312; }
  .hero::after { content: none; }
  .hero > picture { position: relative; height: auto; }
  .hero > picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(42, 19, 18, 0) 58%, rgba(42, 19, 18, .55) 82%, var(--hero-flaeche) 100%); }
  .hero__img { position: static; height: auto; aspect-ratio: 3 / 2; object-position: center; }
  .hero__content { margin-top: -36px; padding-block: 0 clamp(32px, 8vw, 48px); }
  .hero__panel { max-width: none; }
  .hero__panel::before { content: ""; display: block; width: 48px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: var(--rot); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
  .hero .btn-row .btn { flex: 1 1 200px; max-width: 280px; }
}

/* Seitenkopf */
.page-head { padding-block: clamp(40px, 7vw, 80px) clamp(28px, 4vw, 48px); background: linear-gradient(180deg, var(--rot-hell), var(--weiss)); }
.page-head h1 { max-width: 22ch; }
.page-head__lead { max-width: 70ch; font-size: 1.15rem; color: var(--text-leise); }
.page-head .btn { margin-top: .5rem; }

.anchor-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.anchor-nav a { display: block; padding: .45em 1em; border: 1px solid var(--linie); border-radius: 999px; background: var(--weiss); font-size: .92rem; text-decoration: none; color: var(--text); }
.anchor-nav a:hover { border-color: var(--rot); color: var(--rot); }

/* Sektionen */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tint { background: var(--flaeche); }
.section--dark { background: var(--dunkel); color: #e9e4e2; }
.section--dark h2, .section--dark h3 { color: var(--weiss); }
.section--dark .eyebrow { color: #e9a9a5; }
.section-head { max-width: 60ch; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p:last-child { margin-bottom: 0; color: var(--text-leise); }

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 880px) {
  .split--aside { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; }
  .split--media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.prose > :last-child { margin-bottom: 0; }
.prose h2:not(:first-child) { margin-top: 1.6em; }
.prose h3 { margin-top: 1.6em; }
.signature { font-weight: 500; color: var(--rot); }
.note { font-size: .95rem; color: var(--text-leise); }

.media { width: 100%; border-radius: var(--radius); box-shadow: var(--schatten); object-fit: cover; }
.media--square { aspect-ratio: 1; }
.media-stack { display: grid; gap: 20px; }

/* Info-Karte, Öffnungszeiten */
.info-card { padding: clamp(20px, 3vw, 32px); background: var(--weiss); border: 1px solid var(--linie); border-top: 4px solid var(--rot); border-radius: var(--radius); box-shadow: var(--schatten); }
.info-card h2, .info-card h3 { font-size: 1.2rem; font-weight: 600; }
.info-card h3:not(:first-child) { margin-top: 1.4em; }
.info-card__note { margin: .8em 0 0; font-size: .95rem; color: var(--text-leise); }
.info-card > :last-child { margin-bottom: 0; }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: .5em 0; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; font-weight: 400; }
.hours th { padding-right: 1em; font-weight: 500; white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* Karten */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; height: 100%; padding: 24px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 14px; background: var(--rot-hell); color: var(--rot); transition: background-color .15s, color .15s; }
.card--link:hover .icon-badge { background: var(--rot); color: var(--weiss); }
.card h3 { color: var(--rot); }
.card p { color: var(--text-leise); font-size: .98rem; }
.card--link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { border-color: var(--rot); box-shadow: var(--schatten); transform: translateY(-2px); color: inherit; }
.card__more { margin-top: auto; font-weight: 600; font-size: .95rem; color: var(--rot); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.service { padding: 28px; background: var(--weiss); border: 1px solid var(--linie); border-top: 4px solid var(--rot); border-radius: var(--radius); }
.service h2 { font-size: 1.4rem; font-weight: 500; color: var(--rot); }
.service__lead { color: var(--text-leise); }

.check-list { margin: 0 0 1em; padding: 0; list-style: none; }
.check-list li { position: relative; padding: .35em 0 .35em 1.7em; }
.check-list li::before { content: ""; position: absolute; left: .15em; top: .82em; width: .7em; height: .38em; border-left: 2px solid var(--rot); border-bottom: 2px solid var(--rot); transform: rotate(-45deg); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.team-card { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; text-align: center; }
.team-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.team-card h3 { margin: 16px 12px 2px; font-size: 1.15rem; }
.team-card p { margin: 0 12px 18px; font-size: .95rem; color: var(--text-leise); }

/* Jobs */
.job-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.job-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3vw, 32px); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); }
.job-card p { flex: 1; }

/* CTA */
.cta { padding-block: clamp(36px, 6vw, 64px); background: var(--rot-hell); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; }

.contact-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Formulare */
.form__grid { display: grid; gap: 18px; margin-bottom: 18px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--wide { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: .75em .9em; border: 1px solid #b9b2af; border-radius: 8px; background: var(--weiss); font: inherit; color: var(--text);
}
.field input[type="file"] { width: 100%; font: inherit; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(135, 23, 19, .25); border-color: var(--rot); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { margin: 6px 0 0; font-size: .92rem; color: #b3261e; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin-bottom: 22px; font-size: .95rem; }
.field--check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--rot); }
.field--check label { margin: 0; font-weight: 400; }
.field--check .field__error { grid-column: 2; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 16px 20px; border-radius: 8px; border-left: 4px solid; }
.notice--success { background: #eaf5ec; border-color: #2e7d32; color: #1e4d21; }
.notice--error { background: #fdecea; border-color: #b3261e; color: #7a1a15; }

/* Rechtstexte */
.prose--legal { overflow-wrap: anywhere; }
.prose--legal h2 { font-size: 1.5rem; font-weight: 500; margin-top: 2em; }
.prose--legal h2:first-child { margin-top: 0; }
.prose--legal h3 { font-size: 1.15rem; }
.legal-list { padding-left: 0; list-style: none; }
.legal-list li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--dunkel); color: #d9d3d0; font-size: .98rem; }
.site-footer a { color: var(--weiss); }
.site-footer__grid { display: grid; gap: 32px; padding-block: clamp(40px, 6vw, 64px); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.3fr 1.3fr 1fr; } }
.site-footer__title { margin-bottom: .8em; font-size: 1.05rem; font-weight: 600; color: var(--weiss); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer nav li a { display: inline-block; padding: 4px 0; text-decoration: none; }
.site-footer nav li a:hover { text-decoration: underline; }
.hours--footer th, .hours--footer td { border-color: rgba(255, 255, 255, .14); padding: .35em 0; }
.hours--footer th { width: 3.2em; }
.hours--footer abbr { text-decoration: none; }
.site-footer__note { margin: .6em 0 0; font-size: .92rem; color: #b9b1ad; }
.site-footer__bar { background: var(--rot); color: var(--weiss); font-size: .92rem; }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 16px; }
.site-footer__bar p { margin: 0; }
.site-footer__bar ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }

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

@media print {
  .site-header, .site-footer, .hero__img, .btn, .nav-toggle, form { display: none !important; }
}
