/* Wuschel & Co. – Hundesalon
   Farben aus dem Logo: Limette der Pfote und Anthrazit des Schriftzugs. */

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --pfote: #cad246;
  --pfote-satt: #b9c22f;
  --pfote-hauch: #f2f5d9;
  --kohle: #45484c;
  --kohle-tief: #34363a;
  --moos: #56610f;
  --grau: #676a6e;
  --papier: #ffffff;
  --nebel: #f5f6f0;
  --linie: #dfe2d5;
  --breite: 74rem;
  --rand: clamp(1rem, 4vw, 2rem);
  --rund: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--kohle);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
}

main { display: block; overflow-x: clip; }

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

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

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

.sprungmarke {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--kohle); color: #fff; padding: 0.6rem 1rem; border-radius: 0.5rem;
}
.sprungmarke:focus { top: 1rem; }

.symbol { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Kopf ---------- */

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

.kopf-zeile {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1rem var(--rand) 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo { display: block; line-height: 0; flex: none; }
.logo img { width: clamp(9.5rem, 21vw, 15.5rem); height: auto; }

.anruf {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--pfote);
  color: var(--kohle);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.55em 1.15em;
  border-radius: 999px;
  white-space: nowrap;
}
.anruf:hover { background: var(--pfote-satt); }
.anruf-kurz { display: none; }

.menue-knopf {
  display: none;
  font: inherit;
  font-weight: 600;
  color: var(--kohle);
  background: none;
  border: 2px solid var(--kohle);
  border-radius: 999px;
  padding: 0.4em 1em;
  cursor: pointer;
}

.hauptmenue ul {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand) 0.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.65rem;
}
.hauptmenue a {
  display: block;
  padding: 0.4rem 0 0.35rem;
  color: var(--kohle);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.hauptmenue a:hover { border-bottom-color: var(--linie); }
.hauptmenue a[aria-current="page"] { border-bottom-color: var(--pfote); }

@media (max-width: 60rem) {
  .menue-knopf { display: inline-block; }
  .anruf-nummer { display: none; }
  .anruf-kurz { display: inline; }
  .kopf-zeile { padding-bottom: 1rem; }
  html.js .hauptmenue:not(.offen) { display: none; }
  .kopf-zeile { gap: 0.6rem; }
  .hauptmenue ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 1rem;
  }
  .hauptmenue li + li { border-top: 1px solid var(--linie); }
  .hauptmenue a { padding: 0.8rem 0; border-bottom: 0; font-size: 1.15rem; }
  .hauptmenue a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--pfote);
    padding-left: 0.9rem;
  }
}

@media (max-width: 25rem) {
  .anruf { padding: 0; width: 2.9rem; height: 2.9rem; justify-content: center; }
  .anruf .symbol { width: 1.25rem; height: 1.25rem; }
  .anruf-kurz { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .logo img { width: 9.25rem; }
}

/* ---------- Startseite ---------- */

.buehne {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--rand) clamp(3rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.buehne h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.45em;
  text-wrap: balance;
}

.buehne-intro {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.6;
  max-width: 34ch;
  margin: 0 0 1.25em;
}

.buehne-adresse { margin: 0; font-weight: 600; }
.buehne-adresse a { color: var(--kohle); }

.buehne-bild { position: relative; }

.pfote {
  position: absolute;
  width: 56%;
  right: -10%;
  top: -25%;
  fill: var(--pfote);
  transform: rotate(16deg);
  transform-origin: 50% 70%;
  z-index: 0;
}

.buehne-bild img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.75rem;
  border: 0.45rem solid var(--papier);
}

@media (prefers-reduced-motion: no-preference) {
  .pfote { animation: pfote-setzen 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both 150ms; }
  @keyframes pfote-setzen {
    from { opacity: 0; transform: rotate(-4deg) scale(0.82) translateY(1.5rem); }
    to { opacity: 1; transform: rotate(16deg) scale(1) translateY(0); }
  }
}

.termin { background: var(--pfote); }
.termin-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) var(--rand);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 3rem;
}
.termin-text { margin: 0; font-size: 1.2rem; max-width: 36ch; }
.termin-nummer {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--kohle);
  text-decoration: none;
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  white-space: nowrap;
}
.termin-nummer .symbol { width: 0.7em; height: 0.7em; }
.termin-nummer:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.termin-nummer:focus-visible { outline-color: var(--kohle); }

/* ---------- Unterseiten ---------- */

.seite {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(2.25rem, 6vw, 4rem) var(--rand) clamp(3.5rem, 8vw, 6rem);
}

.seitentitel {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.7em;
  max-width: 22ch;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

.einleitung { font-size: 1.3rem; max-width: 40ch; margin: -0.3em 0 1.5em; }

.inhalt > * { max-width: 42rem; }
.inhalt > :first-child { margin-top: 0; }
.inhalt p { margin: 0 0 1.1em; }
.inhalt h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  margin: 1.9em 0 0.55em;
  text-wrap: balance;
}
.inhalt h3 { font-size: 1.25rem; line-height: 1.3; margin: 1.6em 0 0.4em; }
.inhalt h4 { font-size: 1.1rem; margin: 1.4em 0 0.3em; }
.inhalt ul, .inhalt ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.inhalt li { margin-bottom: 0.45em; padding-left: 0.2em; }
.inhalt li > p { margin-bottom: 0.6em; }
.inhalt ul > li::marker { color: var(--pfote-satt); font-size: 1.3em; }
.inhalt blockquote {
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 4px solid var(--pfote);
}
.inhalt hr { border: 0; border-top: 1px solid var(--linie); margin: 2.5em 0; }
.inhalt table { border-collapse: collapse; margin: 0 0 1.5em; }
.inhalt td, .inhalt th { border-bottom: 1px solid var(--linie); padding: 0.45em 1em 0.45em 0; text-align: left; vertical-align: top; }

.inhalt img {
  display: block;
  width: auto;
  max-height: 80vh;
  border-radius: 1rem;
}
.inhalt a img { cursor: pointer; }
.inhalt img:not(a img) { cursor: zoom-in; }

/* Mehrere Bilder in einem Absatz = Galerie */
.inhalt > .galerie,
.inhalt > p:has(> img + img) {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 0.9rem;
}
@media (max-width: 40rem) {
  .inhalt > .galerie,
  .inhalt > p:has(> img + img) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
}
.inhalt .galerie img,
.inhalt p:has(> img + img) img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- Preisliste ---------- */

.preisliste {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 46rem);
  gap: 1.5rem 3rem;
  align-items: start;
}
.preisliste-kopf h2 { font-size: 1.85rem; line-height: 1.2; margin: 0 0 0.2em; }
.preisliste-stand { margin: 0 0 1.4em; color: var(--grau); }
.preisliste-bild { margin: 0; }
.preisliste-bild img {
  display: block;
  width: 100%;
  border: 1px solid var(--linie);
  border-radius: 1rem;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background: #fff;
  cursor: zoom-in;
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--kohle);
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  padding: 0.75em 1.3em;
  border-radius: 999px;
}
.knopf:hover { background: var(--kohle-tief); text-decoration: none; }
.knopf .symbol { width: 1.15em; height: 1.15em; }
.dateiinfo { display: inline-block; margin-top: 0.5em; font-size: 0.92rem; color: var(--grau); }

/* ---------- Downloads ---------- */

.dateiliste { list-style: none; padding: 0; margin: 0; max-width: 42rem; }
.dateiliste li { margin: 0 0 0.75rem; }
.dateiliste a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--linie);
  border-radius: 1rem;
  color: var(--kohle);
  text-decoration: none;
}
.dateiliste a:hover { border-color: var(--pfote-satt); background: var(--pfote-hauch); }
.dateiliste .symbol { width: 1.8rem; height: 1.8rem; fill: var(--moos); }
.datei-titel { font-weight: 600; }
.dateiliste .dateiinfo { margin: 0; }

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

.kontaktkarte {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1.25rem;
  max-width: 54rem;
}
.kontaktkarte > div {
  background: var(--nebel);
  border-radius: var(--rund);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.kontaktkarte h2 { font-size: 1.35rem; margin: 0 0 0.6em; }
.kontaktkarte p { margin: 0 0 0.8em; }
.kontaktkarte p:last-child { margin-bottom: 0; }
.kontakt-nummer {
  color: var(--kohle);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.kontakt-nummer:hover { text-decoration: underline; }

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

.fuss { background: var(--kohle); color: #f1f2ec; }
.fuss a { color: var(--pfote); }
.fuss-raster {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 3rem var(--rand) 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1.5rem 3rem;
}
.fuss p { margin: 0; }
.fuss strong { font-weight: 700; }
.fuss-telefon a { font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.fuss-telefon a:hover { text-decoration: underline; }
.fuss-menue ul { list-style: none; margin: 0; padding: 0; }
.fuss-menue li { margin-bottom: 0.3rem; }
.fuss :focus-visible { outline-color: var(--pfote); }
.fuss .fuss-copy {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand) 2rem;
  font-size: 0.9rem;
  color: #c8cac3;
}

/* ---------- Bild vergrößern ---------- */

.lupe {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 94vh;
  overflow: visible;
}
.lupe::backdrop { background: rgba(38, 40, 43, 0.88); }
.lupe img {
  display: block;
  max-width: 94vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  background: #fff;
}
.lupe form { position: absolute; top: -0.75rem; right: -0.75rem; margin: 0; }
.lupe-zu {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--kohle);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ---------- schmale Bildschirme ---------- */

@media (max-width: 52rem) {
  .buehne { grid-template-columns: 1fr; }
  .buehne-bild { order: -1; margin: 1.5rem 0.5rem 0 0; }
  .pfote { width: 46%; right: -7%; top: -24%; }
  .preisliste { grid-template-columns: 1fr; }
  .termin-nummer { white-space: normal; }
}

@media print {
  .hauptmenue, .menue-knopf, .anruf, .termin, .fuss-menue, .pfote, .lupe { display: none !important; }
  .fuss { background: none; color: #000; }
  body { font-size: 11pt; }
}
