/* Tierarztpraxis Messner – mobile first */

:root {
  --brand: #b81020;
  --brand-600: #960c1a;
  --brand-50: #fcf1f2;
  --brand-100: #f7dfe2;
  --ink: #1e1b1a;
  --muted: #5f5853;
  --line: #ece5df;
  --soft: #faf6f2;
  --dark: #211b19;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(30 20 15 / 0.05), 0 10px 30px rgb(30 20 15 / 0.07);
  --wrap: 1160px;
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: 0.6rem 1rem; border-radius: 8px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: var(--header-h);
}

.brand { display: block; padding: 6px 0; }
.brand img { height: 52px; width: auto; }

.header-call,
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 46px; height: 46px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}

.header-call { margin-left: auto; background: var(--brand); color: #fff; }
.header-call:hover { background: var(--brand-600); color: #fff; }
.header-call span { display: none; }

.nav-toggle { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 1.25rem 1rem; }
.site-nav a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.85rem 0.25rem; color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a .icon { color: var(--brand); }
.site-nav a[aria-current] { color: var(--brand); }

/* Mobile menu only collapses when JS is available */
.js .site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  display: none;
}
.js .site-nav.open { display: block; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; }
html:not(.js) .site-nav { flex-basis: 100%; }

@media (min-width: 1040px) {
  :root { --header-h: 84px; }
  .brand img { height: 64px; }
  .nav-toggle { display: none; }
  .js .site-nav, html:not(.js) .site-nav {
    position: static; display: block; flex-basis: auto;
    background: none; border: 0; box-shadow: none;
    margin-left: auto; order: 2;
  }
  .site-nav ul { display: flex; gap: 0.15rem; padding: 0; }
  .site-nav a { border: 0; padding: 0.5rem 0.8rem; border-radius: 999px; font-size: 0.95rem; }
  .site-nav a .icon { display: none; }
  .site-nav a:hover { background: var(--soft); color: var(--ink); }
  .site-nav a[aria-current] { background: var(--brand-50); color: var(--brand); }
  .header-call { order: 3; margin-left: 0.5rem; width: auto; padding: 0 1.15rem; font-size: 0.95rem; }
  .header-call span { display: inline; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 50px; padding: 0.75rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-600); }
.btn-ghost { border-color: rgb(255 255 255 / 0.75); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-50); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Hero ---------- */

/* Phone: photo on top, fading into the dark panel that carries the text.
   Desktop: text on the left, photo on the right fading into the dark panel. */
.hero {
  position: relative; isolation: isolate; color: #fff;
  background: #1f1714;
  padding: 0 0 3.25rem;
}
.hero-bg {
  position: relative; z-index: -2; display: block;
  width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: 50% 70%;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hero .wrap { position: relative; margin-top: -3rem; }
.hero h1, .hero .lead { text-shadow: 0 1px 12px rgb(0 0 0 / 0.35); }
.hero .eyebrow { color: #fff; opacity: 0.9; }
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: 1.2rem; max-width: 40ch; color: #fff; font-weight: 500; margin-bottom: 1.75rem; }

@media (min-width: 600px) and (max-width: 899px) {
  .hero-bg { aspect-ratio: 16 / 9; }
}

@media (min-width: 900px) {
  .hero {
    display: flex; align-items: center;
    min-height: min(82svh, 720px);
    padding: 5rem 0;
  }
  .hero-bg {
    position: absolute; top: 0; right: 0; bottom: 0; left: auto;
    width: 64%; height: 100%; aspect-ratio: auto;
    object-position: 58% 70%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%);
    mask-image: linear-gradient(to right, transparent 0%, #000 32%);
  }
  .hero .wrap { margin-top: 0; }
  .hero .wrap > * { max-width: 34rem; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 0.9rem;
}
.eyebrow .icon { width: 1.15rem; height: 1.15rem; }

.lead { font-size: 1.125rem; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .section { padding: 6.5rem 0; } }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }

.badge-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; flex: none;
  margin-bottom: 1rem;
}
.badge-icon .icon { width: 26px; height: 26px; }

/* Quick info under the hero */
.quick { position: relative; z-index: 2; margin-top: -1.5rem; }
.quick .card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.35rem; }
.quick .badge-icon { margin: 0; width: 48px; height: 48px; border-radius: 14px; }
.quick h3 { font-size: 1.05rem; margin-bottom: 0.15em; }
.quick p { color: var(--muted); font-size: 0.98rem; }
@media (min-width: 900px) { .quick { margin-top: -3.5rem; } }

/* Split layout (text + image) */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; }
  .split.reverse .split-media { order: -1; }
}

.features { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1.1rem; }
.features li { display: flex; gap: 1rem; align-items: flex-start; }
.features .badge-icon { margin: 0; width: 46px; height: 46px; border-radius: 14px; }
.features .badge-icon .icon { width: 22px; height: 22px; }
.features strong { display: block; line-height: 1.35; }
.features span { color: var(--muted); font-size: 0.98rem; }

/* ---------- Öffnungszeiten ---------- */

.photo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.photo-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-card .body { padding: 0 1.6rem 1.6rem; position: relative; }
.photo-card .badge-icon {
  margin-top: -27px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
}

.hours { list-style: none; padding: 0; margin: 1rem 0 0; }
.hours li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.75rem 0; border-top: 1px solid var(--line);
}
.hours .icon { color: var(--brand); margin-top: 0.2em; }
.hours strong { display: block; line-height: 1.35; }
.hours span { color: var(--muted); font-size: 0.97rem; }

/* ---------- Leistungen ---------- */

.service { padding: 0; overflow: hidden; }
.service summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 1rem; padding: 1.35rem 1.5rem;
}
.service summary::-webkit-details-marker { display: none; }
.service summary .badge-icon { margin: 0; }
.service summary h3 { margin: 0; font-size: 1.25rem; }
.service summary small { display: block; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.service summary .chev { margin-left: auto; color: var(--muted); transition: transform 0.2s; }
.service[open] summary .chev { transform: rotate(180deg); }
.service .service-body { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--line); }

.checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.1rem; }
.checklist li { display: flex; gap: 0.6rem; padding: 0.3rem 0; line-height: 1.45; }
.checklist .icon { color: var(--brand); width: 1.1em; height: 1.1em; margin-top: 0.15em; }

.highlight {
  display: flex; flex-direction: column; gap: 0.25rem;
  background: var(--dark); color: #eee6e2; border: 0;
}
.highlight h3 { color: #fff; }
.highlight .badge-icon { background: rgb(255 255 255 / 0.08); color: #ff8a95; }
.highlight .tag {
  align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--brand); color: #fff; padding: 0.25rem 0.65rem; border-radius: 999px; margin-bottom: 0.75rem;
}

.subhead { margin: 3.5rem 0 1.25rem; font-size: 1.4rem; }

/* ---------- Praxis / Anfahrt ---------- */

.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.facts li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 0.95rem; font-weight: 600; font-size: 0.95rem;
}
.facts .icon { color: var(--brand); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; min-height: 2rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.95rem;
  display: grid; place-items: center;
}


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

.team-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.person { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; }
.avatar {
  width: 56px; height: 56px; border-radius: 999px; flex: none;
  background: var(--brand-50); color: var(--brand); border: 2px solid var(--brand-100);
  display: grid; place-items: center; font-weight: 800; letter-spacing: 0.02em;
}
.person strong { display: block; line-height: 1.3; }
.person span { color: var(--muted); font-size: 0.93rem; }

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

.contact-card { display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: var(--ink); transition: border-color 0.2s, transform 0.2s; }
.contact-card .badge-icon { margin: 0; }
.contact-card:hover { border-color: var(--brand-100); transform: translateY(-2px); color: var(--ink); }
.contact-card strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-card span { font-size: 1.1rem; font-weight: 700; line-height: 1.4; word-break: break-word; }

.cta {
  margin-top: 2.5rem;
  background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: 2rem 1.6rem; display: grid; gap: 1.25rem;
  background-image: radial-gradient(circle at 100% 0%, rgb(255 255 255 / 0.14), transparent 55%);
}
.cta h3 { font-size: 1.5rem; margin: 0; }
.cta p { margin: 0.35rem 0 0; opacity: 0.9; }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; align-items: center; padding: 2.75rem 3rem; } }

/* ---------- Unterseite (Impressum) ---------- */

.page-hero { background: var(--soft); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0; }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; }
.prose p { color: #3b3532; }

.facts-table { display: grid; gap: 0.2rem 1.5rem; margin: 0 0 1rem; }
.facts-table dt { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-top: 0.75rem; }
.facts-table dd { margin: 0; font-weight: 600; }
@media (min-width: 700px) {
  .facts-table { grid-template-columns: max-content 1fr; }
  .facts-table dt { margin-top: 0; padding-top: 0.15rem; }
}

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

.site-footer { background: var(--dark); color: #cfc6c1; padding: 3.5rem 0 1.5rem; font-size: 0.98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb3ba; }
.site-footer h2 { color: #fff; font-size: 1.05rem; letter-spacing: 0; margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }

.footer-brand { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 0.4rem; letter-spacing: -0.01em; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-list .icon { color: #ff8a95; margin-top: 0.2em; }

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.12);
  margin-top: 2.75rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  font-size: 0.9rem; color: #a99f9a;
}
.footer-bottom nav { display: flex; gap: 1.25rem; }

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

/* ---------- Ergänzungen ---------- */

.services { align-items: start; }
.route { margin-top: 1.75rem; }
.anfahrt { margin-top: 4rem; }
.anfahrt .subhead { margin-top: 0; display: flex; align-items: center; gap: 0.5rem; }
.anfahrt .subhead .icon { color: var(--brand); }
@media (min-width: 900px) {
  .anfahrt { margin-top: 6rem; }
}
.team-grid { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.team-grid:last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }

/* Hausapotheke: Farbfläche statt Foto */
.photo-card .visual {
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  color: #fff;
  background: radial-gradient(circle at 25% 15%, #d63445 0%, var(--brand) 45%, var(--brand-600) 100%);
}
.photo-card .visual .icon { width: 56px; height: 56px; stroke-width: 1.5; opacity: 0.95; margin-bottom: 0.25rem; }
.photo-card .visual span { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1; }
.photo-card .visual small { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

/* Praxis: Tagesablauf */
.day-card { padding: 1.75rem 1.6rem; }
@media (min-width: 900px) { .day-card { padding: 2.25rem 2.25rem; } }
.timeline { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.6rem 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 0.3rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 5px var(--brand-50);
}
.timeline li::after {
  content: ""; position: absolute; left: 9.5px; top: 1.35rem; bottom: 0.15rem;
  width: 2px; background: var(--brand-100);
}
.timeline li:last-child::after { display: none; }
.timeline .time {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand); line-height: 1.6;
}
.timeline strong { display: block; line-height: 1.35; margin: 0.1rem 0 0.15rem; }
.timeline li > span:last-child { color: var(--muted); font-size: 0.97rem; }

/* Leistungen-Intro, Praxis-Ablauf, Kontakt mit Foto */
.intro { margin-bottom: 3rem; }
.intro .facts li { background: var(--soft); }
.day-card { margin-top: 3rem; }
.contact-stack { gap: 0.9rem; }
.split-media img.tall { object-position: 50% 60%; }

@media (min-width: 900px) {
  .intro { margin-bottom: 4rem; }
  .split-media img.tall { aspect-ratio: 4 / 5; }

  .day-card .timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 1rem; }
  .day-card .timeline li { padding: 2.25rem 0 0; }
  .day-card .timeline li::before { left: 0; top: 0; }
  .day-card .timeline li::after { left: 24px; right: -2rem; top: 5.5px; bottom: auto; width: auto; height: 2px; }
}

/* Google Maps mit 2-Klick-Lösung */
.map-consent {
  position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  height: 400px;
  background-color: #f1eee8;
  background-image:
    linear-gradient(rgb(60 40 30 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(60 40 30 / 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1.5rem; text-align: center;
}
.map-placeholder .badge-icon { margin: 0 0 0.25rem; background: #fff; box-shadow: var(--shadow); }
.map-title { font-weight: 700; font-size: 1.1rem; margin: 0; }
.map-note { font-size: 0.88rem; color: var(--muted); max-width: 42ch; margin: 0 0 0.5rem; line-height: 1.5; }
.map-remember { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); cursor: pointer; margin-top: 0.35rem; }
.map-remember input { accent-color: var(--brand); width: 1.05rem; height: 1.05rem; margin: 0; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-revoke { margin: 0.6rem 0 0; }
.map-revoke button { background: none; border: 0; padding: 0; font: inherit; font-size: 0.85rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.map-revoke button:disabled { text-decoration: none; cursor: default; }
@media (min-width: 900px) { .map-consent { height: 440px; } }
.split > * { min-width: 0; }
