/* ==========================================================================
   Tierarztpraxis Dr. Jochim Marold – Stylesheet
   Farben aus dem Logo: Braun (Pferdelinie) und Oliv-Gold (Schrift) auf Creme
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #fbf7ef;
  --sand: #f3ebdc;
  --papier: #fffdf9;
  --linie: #e4d7c1;
  --braun: #7a5124;
  --braun-tief: #5c3c19;
  --braun-dunkel: #3f2a14;
  --oliv: #806000;
  --text: #3b2d1d;
  --text-leise: #5f4e3a;
  --schatten: 0 1px 2px rgb(63 42 20 / 0.06), 0 8px 28px rgb(63 42 20 / 0.08);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --breite: 72rem;
  --rand: clamp(1rem, 4vw, 2rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--braun-dunkel);
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 0.9rem + 7vw, 4.1rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
}

h3 {
  font-size: 1.65rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--braun);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--braun-tief);
  text-decoration-thickness: 2px;
}

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--braun-dunkel);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.inhalt {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding-inline: var(--rand);
}

.dachzeile {
  margin: 0 0 0.9rem;
  color: var(--oliv);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Kopfzeile
   -------------------------------------------------------------------------- */

.kopf {
  background: var(--creme);
  border-bottom: 1px solid var(--linie);
}

.kopf-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-block: 0.75rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--oliv);
  text-decoration: none;
  line-height: 1.15;
}

.marke:hover {
  color: var(--oliv);
}

.marke img {
  width: 5.6rem;
  height: auto;
}

.marke-text {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.marke-text span + span {
  padding-left: 1.4em;
  font-weight: 600;
  font-size: 1.06rem;
}

.kopf-telefon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--braun);
  border-radius: 999px;
  color: var(--braun);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.kopf-telefon:hover {
  background: var(--braun);
  color: #fff;
}

.kopf-telefon svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.navigation {
  order: 3;
  width: 100%;
}

.navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0 -0.6rem;
  padding: 0;
  list-style: none;
}

.navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  color: var(--text);
  font-size: 0.97rem;
  text-decoration: none;
}

.navigation a:hover {
  color: var(--braun);
  text-decoration: underline;
}

@media (max-width: 30rem) {
  .navigation ul {
    margin: 0 -0.45rem;
  }
  .navigation a {
    padding: 0 0.45rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 22rem) {
  .kopf-innen {
    column-gap: 0.75rem;
  }
  .navigation ul {
    margin: 0 -0.3rem;
  }
  .navigation a {
    padding: 0 0.3rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 22rem) {
  .marke img {
    width: 3.6rem;
  }
}

@media (min-width: 22.01rem) and (max-width: 26rem) {
  .marke img {
    width: 4.4rem;
  }
}

@media (max-width: 26rem) {
  .marke-text {
    font-size: 0.86rem;
  }
  .marke-text span + span {
    font-size: 0.95rem;
  }
  .kopf-telefon .telefon-nummer {
    display: none;
  }
  .kopf-telefon {
    padding: 0.4rem 0.75rem;
  }
}

@media (min-width: 60rem) {
  .kopf {
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .kopf-innen {
    flex-wrap: nowrap;
  }
  .navigation {
    order: 0;
    width: auto;
    margin-left: auto;
  }
  .navigation ul {
    margin: 0;
  }
}

/* --------------------------------------------------------------------------
   Startbereich
   -------------------------------------------------------------------------- */

.start {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem);
}

.start-raster {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.start-text .einleitung {
  max-width: 34rem;
  font-size: 1.18rem;
  color: var(--text-leise);
}

.start h1 span {
  display: block;
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 1.6rem;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--braun);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.knopf svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.knopf-voll {
  background: var(--braun);
  color: #fff;
}

.knopf-voll:hover {
  background: var(--braun-tief);
  border-color: var(--braun-tief);
  color: #fff;
}

.knopf-rand {
  background: transparent;
  color: var(--braun);
}

.knopf-rand:hover {
  background: var(--sand);
  color: var(--braun-tief);
}

.start-adresse {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.97rem;
}

.start-bild {
  position: relative;
  margin: 0;
}

.start-bild::before {
  content: "";
  position: absolute;
  inset: 1rem -0.9rem -0.9rem 1rem;
  border: 1px solid var(--oliv);
  border-radius: 1.75rem;
  opacity: 0.55;
}

.start-bild picture,
.start-bild img {
  position: relative;
  border-radius: 1.75rem;
}

.start-bild img {
  box-shadow: var(--schatten);
}

@media (min-width: 56rem) {
  .start-raster {
    grid-template-columns: 1fr 1.08fr;
  }
}

/* --------------------------------------------------------------------------
   Abschnitte allgemein
   -------------------------------------------------------------------------- */

.abschnitt {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.abschnitt-sand {
  background: var(--sand);
}

.abschnitt-kopf {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.abschnitt-kopf p:last-child {
  margin-bottom: 0;
}

/* Praxis */

.praxis-raster {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.praxis-bild {
  justify-self: center;
  margin: 0;
  max-width: 26rem;
}

.praxis-bild img {
  border-radius: 999px 999px 1.5rem 1.5rem;
}

.gebiet-titel {
  margin: 2rem 0 0.9rem;
  font-size: 1.45rem;
}

.gebiet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.gebiet li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem 0.4rem 0.8rem;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 999px;
  color: var(--braun-dunkel);
  font-weight: 600;
  font-size: 0.95rem;
}

.gebiet li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--oliv);
  transform: rotate(45deg);
}

.gebiet-hinweis {
  color: var(--text-leise);
  font-size: 0.97rem;
}

.hinweis-box {
  margin-top: 2rem;
  padding: 1.3rem 1.5rem;
  background: var(--papier);
  border-left: 3px solid var(--oliv);
  border-radius: 0 1rem 1rem 0;
}

.hinweis-box h3 {
  margin-bottom: 0.35rem;
  font-size: 1.4rem;
}

.hinweis-box p {
  margin: 0;
}

@media (min-width: 56rem) {
  .praxis-raster {
    grid-template-columns: 1.35fr 1fr;
  }
  .praxis-bild {
    justify-self: end;
  }
}

/* Leistungen: Karten in Spalten, jede Karte bleibt zusammen */

.leistungen {
  columns: 3 17rem;
  column-gap: 1.25rem;
}

.leistung {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  padding: 1.5rem 1.5rem 1.2rem;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 1.25rem;
  box-shadow: var(--schatten);
}

.leistung h3 {
  margin-bottom: 0.7rem;
  font-size: 1.55rem;
}

.leistung ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.leistung li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  color: var(--text-leise);
  font-size: 0.98rem;
  line-height: 1.5;
}

.leistung li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--oliv);
  transform: rotate(45deg);
}

.hinweis {
  margin: 0.75rem 0 0;
  color: var(--text-leise);
  font-size: 0.97rem;
}

.kleintier-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.5rem 1.6rem;
  border: 1px dashed var(--braun);
  border-radius: 1.25rem;
}

.kleintier-zeichen {
  flex: none;
  width: 3rem;
  height: 3rem;
  color: var(--braun);
}

.kleintier-box h3 {
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
}

.kleintier-box p {
  margin: 0;
}

/* Bildleiste */

.bildleiste {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bildleiste img {
  width: 100%;
  border-radius: 1rem;
}

@media (min-width: 40rem) {
  .bildleiste {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Sprechzeiten */

.zeiten-raster {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.zeiten {
  width: 100%;
  max-width: 32rem;
  border-collapse: collapse;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 1.1rem;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.zeiten caption {
  text-align: left;
}

.zeiten th,
.zeiten td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--linie);
  text-align: left;
}

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

.zeiten th {
  font-weight: 600;
  color: var(--braun-dunkel);
}

.zeiten td {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 26rem) {
  .zeiten th,
  .zeiten td {
    padding-inline: 0.85rem;
  }
}

.zeiten .zu td {
  color: var(--text-leise);
}

.termin-box {
  padding: 1.75rem 1.6rem;
  border-left: 3px solid var(--oliv);
  background: var(--papier);
  border-radius: 0 1.1rem 1.1rem 0;
}

.termin-box p:last-child {
  margin-bottom: 0;
}

.termin-box a[href^="mailto"] {
  overflow-wrap: anywhere;
}

.zeiten-titel {
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}

.zeiten tr.heute th,
.zeiten tr.heute td {
  background: var(--sand);
}

.zeiten tr.heute th::after {
  content: "heute";
  margin-left: 0.55rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--braun);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 0.1em;
}

.zeiten-hinweis {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: var(--text-leise);
  font-size: 0.97rem;
}

/* Live-Status (wird von js/main.js gefüllt, ohne JavaScript ausgeblendet) */

.status {
  position: relative;
  margin: 0;
  padding-left: 1.3rem;
}

.status-punkt {
  position: absolute;
  left: 0.1rem;
  top: 0.48em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--status-farbe, var(--oliv));
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--status-farbe, var(--oliv)) 18%, transparent);
}

.status strong {
  color: var(--braun-dunkel);
}

.status-zusatz {
  color: var(--text-leise);
}

.status-offen {
  --status-farbe: #2e7d4f;
}

.status-zu {
  --status-farbe: #b3412e;
}

.status-notdienst,
.status-feiertag {
  --status-farbe: #b07a00;
}

.status-kurz {
  margin: -0.4rem 0 1.1rem;
}

.status-block {
  display: grid;
  gap: 0.6rem;
  max-width: 32rem;
  margin: 0 0 1.6rem;
  padding: 1rem 1.25rem;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 1.1rem;
}

.knoepfe-box {
  margin: 0 0 1.4rem;
}

.knoepfe-box .knopf {
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.97rem;
}

/* Hinweise für Kundinnen und Kunden */

.hinweise {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hinweis-karte {
  padding: 1.5rem 1.5rem 1.4rem;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 1.25rem;
}

.hinweis-karte svg {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.8rem;
  color: var(--braun);
}

.hinweis-karte h3 {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

.hinweis-karte p {
  margin: 0;
  color: var(--text-leise);
}

.hinweis-karte a[href^="mailto"] {
  overflow-wrap: anywhere;
}

.hinweis-karte .knopf-klein {
  margin-top: 1rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

.hinweis-karte .knopf-klein svg {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
}

.knopf-zusatz {
  font-weight: 400;
  color: var(--text-leise);
}

@media (min-width: 46rem) {
  .hinweise {
    grid-template-columns: 1fr 1fr;
  }
}

.notdienst {
  padding-top: 0.9rem;
  border-top: 1px solid var(--linie);
  color: var(--text-leise);
  font-size: 0.97rem;
}

.telefon-gross {
  display: inline-block;
  margin: 0.2rem 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 2.6rem);
  font-weight: 600;
  color: var(--braun);
  text-decoration: none;
  line-height: 1.1;
}

.telefon-gross:hover {
  text-decoration: underline;
}

@media (min-width: 56rem) {
  .zeiten-raster {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* Kontakt */

.kontakt-raster {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.kontakt-daten address {
  margin-bottom: 1.4rem;
  font-style: normal;
  font-size: 1.12rem;
  line-height: 1.6;
}

.kontakt-daten address strong {
  color: var(--braun-dunkel);
}

.kontakt-liste {
  margin: 0 0 1.8rem;
  padding: 0;
  list-style: none;
}

.kontakt-liste li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding-block: 0.45rem;
}

.kontakt-liste svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  color: var(--oliv);
  flex: none;
}

.kontakt-zusatz {
  display: block;
  color: var(--text-leise);
  font-size: 0.92rem;
}

/* Logo wie das Original: Pferdelinie, darunter die Schrift im Bauch des Pferdes */
.logo-gross {
  position: relative;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
  container-type: inline-size;
  color: var(--oliv);
}

.logo-gross img {
  width: 100%;
}

.logo-gross p {
  position: absolute;
  left: 23%;
  top: 59%;
  margin: 0;
  font-size: 4.3cqw;
  line-height: 1.8;
  white-space: nowrap;
}

.logo-gross p span {
  display: block;
}

.logo-gross p span + span {
  padding-left: 2.95em;
}

.kontakt-liste a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kontakt-hinweis {
  margin: 1.4rem 0 0;
  color: var(--text-leise);
  font-size: 0.95rem;
}

@media (min-width: 56rem) {
  .kontakt-raster {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */

.fuss {
  background: var(--braun-dunkel);
  color: #efe5d3;
  padding-block: 3rem 2rem;
  font-size: 0.97rem;
}

.fuss a {
  color: #fff;
}

.fuss a:hover {
  color: #fff;
}

.fuss :focus-visible {
  outline-color: #e9cf7a;
}

.fuss-raster {
  display: grid;
  gap: 2rem;
}

.fuss-marke img {
  width: 9rem;
  margin-bottom: 0.9rem;
}

.fuss-marke p,
.fuss address {
  margin: 0;
  font-style: normal;
}

.fuss address a {
  overflow-wrap: anywhere;
}

.fuss h2 {
  margin-bottom: 0.6rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e9cf7a;
}

.fuss ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
}

.fuss-unten {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(239 229 211 / 0.2);
  font-size: 0.9rem;
  color: #d9cbb3;
}

.fuss-unten p {
  margin: 0;
}

@media (min-width: 46rem) {
  .fuss-raster {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Rechtstexte und Fehlerseite
   -------------------------------------------------------------------------- */

.rechtstext {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.rechtstext h1 {
  font-size: clamp(2.2rem, 1rem + 5vw, 3.2rem);
}

.rechtstext h2,
.rechtstext h3 {
  hyphens: auto;
}

.rechtstext h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.rechtstext h3 {
  margin-top: 1.6rem;
  font-size: 1.35rem;
}

.rechtstext ul {
  padding-left: 1.2rem;
}

.rechtstext li {
  margin-bottom: 0.35rem;
}

.rechtstext address {
  font-style: normal;
  margin-bottom: 1em;
}

.angaben {
  margin: 0 0 1em;
}

.angaben dt {
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--braun-dunkel);
}

.angaben dt:first-child {
  margin-top: 0;
}

.angaben dd {
  margin: 0;
}

.stand {
  margin-top: 2.5rem;
  color: var(--text-leise);
  font-size: 0.95rem;
}

.fehlerseite {
  max-width: 44rem;
  padding-block: clamp(3rem, 9vw, 6rem);
  text-align: center;
}

.fehlerseite img {
  width: min(26rem, 90%);
  margin: 0 auto 2rem;
  transform: scaleX(-1);
}

.fehlerseite .knoepfe {
  justify-content: center;
}
