/* ==========================================================================
   Kleintierpraxis – Stylesheet
   Farben: Praxis-Rot, Sand, Weiß. Alle Text-Kontraste erfüllen WCAG 2.1 AA.
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/figtree-latin-800-normal.woff2") format("woff2"); }

/* ---------- Farben & Maße ---------- */
:root {
  --rot: #B3261E;          /* an Logo-Rot anpassen; Kontrast auf Weiß ≥ 4.5:1 halten */
  --rot-dunkel: #8E1B15;
  --rot-hell: #FBE9E7;
  --rot-linie: #F0C7C2;
  --sand: #F6F0E6;
  --sand-tief: #E8DCC8;
  --sand-linie: #ECE3D5;
  --weiss: #FFFFFF;
  --text: #2A2421;
  --text-2: #4A403A;
  --text-3: #5C524A;
  --rahmen: #8A7E73;       /* Formularfelder: ≥ 3:1 */
  --gruen: #2E7D4F;
  --fokus: #1F5FAD;
  --radius: 18px;
  --radius-lg: 24px;
  --schatten: 0 18px 44px rgba(42, 36, 33, .14);
  --font-text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--weiss); color: var(--text); font-family: var(--font-text); font-size: 1.125rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--rot); text-underline-offset: .18em; }
a:hover { color: var(--rot-dunkel); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }
address { font-style: normal; }
table { border-collapse: collapse; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-3); }
.small { font-size: 1rem; }
.req { color: var(--rot); }

.container { width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--weiss); color: var(--text); padding: 10px 18px; border-radius: 8px; font-weight: 700; box-shadow: var(--schatten); }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.1rem; }
.btn--primary { background: var(--rot); color: var(--weiss); }
.btn--primary:hover { background: var(--rot-dunkel); color: var(--weiss); }
.btn--outline { background: var(--weiss); color: var(--text); border-color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--weiss); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.kicker { font-family: var(--font-head); font-weight: 700; color: var(--rot); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; margin-bottom: .6em; }
.tag { display: inline-block; background: var(--text); color: var(--weiss); font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

/* ---------- Servicezeile ---------- */
.servicebar { background: var(--text); color: var(--weiss); font-size: .95rem; }
.servicebar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.servicebar p { margin: 0; }
.servicebar a { color: var(--weiss); }
.servicebar__links { list-style: none; margin: 0; padding: 0; display: none; gap: 20px; }
@media (min-width: 760px) { .servicebar__links { display: flex; } }

/* ---------- Hinweisleiste ---------- */
.notice { background: var(--rot-hell); border-bottom: 1px solid var(--rot-linie); }
.notice--info { background: #EEF3FA; border-color: #C9D7EC; }
.notice--notdienst { background: var(--sand); border-color: var(--sand-tief); }
.notice__inner { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.notice__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--rot); color: var(--weiss); display: grid; place-items: center; }
.notice--info .notice__icon { background: var(--fokus); }
.notice--notdienst .notice__icon { background: var(--text); }
.notice__body { flex: 1; min-width: 0; }
.notice__title { font-weight: 700; color: var(--rot-dunkel); margin: 0; }
.notice--info .notice__title { color: #1F4E8A; }
.notice--notdienst .notice__title { color: var(--text); }
.notice__text { font-size: 1rem; color: #3D3430; }
.notice__text p { margin: 0; }
.notice__close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #E3B4AE; background: var(--weiss); border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--text); }

/* ---------- Kopfbereich ---------- */
.site-header { background: var(--weiss); border-bottom: 1px solid var(--sand-linie); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.brand__logo { height: 64px; width: auto; }
.brand__text { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.main-nav a:hover { background: var(--sand); color: var(--rot-dunkel); }
.nav-toggle { display: none; }
.btn--call { min-height: 46px; }

@media (max-width: 1023px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--text);
    border-radius: 999px; background: var(--weiss); color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1rem; cursor: pointer; }
  .main-nav { order: 4; width: 100%; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 0; }
  .main-nav a { padding: 12px; border-bottom: 1px solid var(--sand-linie); border-radius: 0; }
  .btn--call { order: 3; width: 100%; }
  .brand__logo { height: 52px; }
}
@media (min-width: 640px) and (max-width: 1023px) { .btn--call { width: auto; order: 2; } }

/* ---------- Hero ---------- */
.hero { background: var(--weiss); }
.hero__stage { position: relative; background: var(--sand-tief); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__inner { position: relative; display: flex; align-items: center; padding-top: 32px; padding-bottom: 88px; min-height: 0; }
.hero__card { background: var(--weiss); border-radius: var(--radius-lg); padding: 28px 24px; max-width: 620px; box-shadow: var(--schatten); }
.hero__card h1 { margin-bottom: .4em; }
.hero__text { font-size: 1.2rem; color: var(--text-2); }
@media (min-width: 900px) {
  .hero__stage--image .hero__inner, .hero__inner { min-height: 600px; padding-top: 48px; padding-bottom: 104px; }
  .hero__card { padding: 44px 48px; }
}
.quickinfo { list-style: none; margin: -56px 0 0; padding: 0; position: relative; background: var(--text); color: var(--weiss);
  border-radius: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); overflow: hidden; }
.quickinfo__item { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-top: 1px solid #4A403A; }
.quickinfo__item:first-child { border-top: 0; }
@media (min-width: 800px) { .quickinfo__item { border-top: 0; border-left: 1px solid #4A403A; } .quickinfo__item:first-child { border-left: 0; } }
.quickinfo__icon { color: var(--rot-linie); flex-shrink: 0; }
.quickinfo__title { font-weight: 700; margin: 0; }
.quickinfo__text { margin: 0; font-size: 1rem; color: var(--sand-tief); }
.quickinfo a { color: var(--weiss); }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: #C9BBA6; flex-shrink: 0; }
.status-dot--open { background: #5BC28A; }

/* ---------- Abschnitte ---------- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section--sand { background: var(--sand); }
.section--white { background: var(--weiss); }
.section--tight-bottom { padding-bottom: 8px; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { color: var(--text-2); }

.card { background: var(--weiss); border-radius: var(--radius); padding: 28px; }
.card--sand { background: var(--sand); }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card__head h3 { margin: 0; font-size: 1.6rem; font-weight: 800; }
.icon--red { color: var(--rot); }

/* ---------- Aktuelles ---------- */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 24px; }
.post { background: var(--sand); border-radius: 20px; padding: 22px; display: flex; flex-wrap: wrap; gap: 22px; }
.post__flyer { flex: 0 0 170px; align-self: flex-start; border-radius: 10px; overflow: hidden; border: 1px solid var(--sand-tief); background: var(--weiss); }
.post__flyer img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; }
.post__flyer:hover { outline: 3px solid var(--rot-linie); }
.post__body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.post__body h3 { margin: 4px 0 0; font-size: 1.45rem; font-weight: 800; }
.post__when { margin: 0; font-weight: 700; color: var(--rot-dunkel); font-size: 1rem; }
.post__text { font-size: 1rem; color: #3D3430; }
.post__text p { margin-bottom: .6em; }
.post__link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; margin-top: auto; }
.post__meta { font-weight: 400; color: var(--text-3); }

/* ---------- Öffnungszeiten ---------- */
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split__main { flex: 1 1 520px; min-width: 0; }
.split__side { flex: 1 1 340px; min-width: 0; }
.hours { width: 100%; font-size: 1.1rem; }
.hours caption { text-align: left; color: var(--text-3); font-size: 1rem; padding-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 13px 8px; vertical-align: top; }
.hours thead th { border-bottom: 2px solid var(--text); font-size: 1rem; }
.hours tbody tr { border-bottom: 1px solid var(--sand-linie); }
.hours tbody th { font-weight: 700; width: 38%; }
.hours tr.is-today { background: var(--sand); }
.today-badge { display: inline-block; margin-left: 6px; font-size: .78rem; font-weight: 700; background: var(--rot); color: var(--weiss); padding: 1px 8px; border-radius: 999px; vertical-align: 2px; }
.dates { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dates li { background: var(--weiss); border-radius: 12px; padding: 14px 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.dates small { flex-basis: 100%; color: var(--text-3); font-size: .95rem; }

/* ---------- Über uns ---------- */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about__text { flex: 1 1 460px; min-width: 0; }
.about__img { flex: 1 1 400px; min-width: 0; border-radius: var(--radius-lg); object-fit: cover; max-height: 460px; }
.prose { color: #3D3430; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }

/* ---------- Leistungen ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.service { border: 1px solid var(--sand-linie); border-radius: var(--radius); padding: 26px; background: var(--weiss); }
.service h3 { margin: 14px 0 8px; }
.service__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sand); color: var(--rot); display: grid; place-items: center; }
.service__text { font-size: 1rem; color: var(--text-2); }

/* ---------- Team ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.member__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; background: var(--sand-tief); }
.member__photo--empty { display: grid; place-items: center; color: #B9A88E; }
.member h3 { margin: 0; }
.member__role { color: var(--text-2); font-size: 1rem; margin: 2px 0 8px; }
.member__text { font-size: 1rem; color: var(--text-2); }

/* ---------- Anfahrt ---------- */
.directions { display: flex; flex-wrap: wrap; gap: 40px; }
.directions__text { flex: 1 1 340px; min-width: 0; }
.directions__address { font-size: 1.25rem; margin-bottom: 20px; }
.facts { margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--text-2); }
.map { flex: 2 1 520px; min-width: 0; min-height: 420px; border-radius: 20px; overflow: hidden; background: var(--sand); border: 1px solid var(--sand-linie); display: flex; }
.map__consent { margin: auto; padding: 32px; max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.map__consent p { margin: 0; font-size: 1rem; color: var(--text-2); }
.map__title { font-weight: 700; font-size: 1.25rem !important; color: var(--text) !important; }
.map iframe { width: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Kontakt & Formular ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact__info { flex: 1 1 320px; min-width: 0; }
.contact__lines { font-size: 1.25rem; }
.callout { background: var(--weiss); border-radius: 14px; padding: 16px 20px; font-size: 1rem; }
.callout strong { color: var(--rot-dunkel); }
.form { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full, .form__message, .form__footer { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 1rem; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--rahmen); border-radius: 10px; font: inherit; color: var(--text); background: var(--weiss); }
.field textarea { resize: vertical; min-height: 140px; }
.field--error input, .field--error textarea, .field--error select { border: 2px solid var(--rot); }
.field__error { color: var(--rot-dunkel); font-size: .95rem; margin: 0; font-weight: 700; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.field--check input { width: 24px; height: 24px; margin: 3px 0 0; accent-color: var(--rot); flex-shrink: 0; }
.field--check label { flex: 1 1 200px; font-weight: 400; color: #3D3430; }
.field--check .field__error { flex-basis: 100%; }
.form__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.form__footer p { margin: 0; color: var(--text-3); }
.form__message { border-radius: 12px; padding: 14px 18px; font-weight: 700; }
.form__message ul { margin: 6px 0 0; padding-left: 1.2em; font-weight: 400; }
.form__message--ok { background: #E3F2E8; color: #1E5E38; }
.form__message--error { background: var(--rot-hell); color: var(--rot-dunkel); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--text); color: var(--sand); padding: 56px 0 28px; font-size: 1rem; }
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--weiss); }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; margin-bottom: 36px; }
.site-footer__col { flex: 1 1 240px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li a { display: inline-block; padding: 6px 0; }
.site-footer__logo { height: 56px; width: auto; margin-bottom: 14px; }
.site-footer__name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--weiss); }
.site-footer__meta { color: #D9CDBB; }
.site-footer__bottom { border-top: 1px solid #4A403A; padding-top: 20px; font-size: .9rem; color: #BFB3A3; margin: 0; }

/* ---------- Textseiten ---------- */
.breadcrumb { font-size: 1rem; color: var(--text-3); margin-bottom: 18px; }
.page-title { margin-bottom: 28px; }

/* ---------- Druck ---------- */
@media print {
  .servicebar, .site-header .main-nav, .nav-toggle, .btn--call, .map, .form, .notice__close, .skip-link { display: none !important; }
  .hero__stage { background: none; } .hero__img { display: none; } .hero__card { box-shadow: none; padding: 0; }
  .quickinfo { background: none; color: var(--text); margin: 0; } .quickinfo__text, .quickinfo a { color: var(--text); }
  .section { padding: 24px 0; } a { color: var(--text); }
}
