/* Caro's HausTierSitting – eine Datei, kein Framework. JavaScript nur für die Sliderpfeile (assets/js/band.js). */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

/* Jede Kombination aus Fläche und Text besteht WCAG AA (≥ 4,5 : 1). */
:root {
  --tuerkis: #0c9cae; /* Logo-Türkis, Text darauf: Nacht */
  --lila: #6e5aa8;    /* Logo-Lila, Text darauf: Weiß */
  --heu: #f6c445;     /* Text darauf: Nacht */
  --mohn: #c9402a;    /* Text darauf: Weiß */
  --nacht: #251b3d;
  --weiss: #fff;
  --fl: var(--tuerkis); /* Icon-Fläche, je Abschnitt umgestellt */
  --rand: clamp(1.25rem, 5vw, 4rem);
  --schild: clamp(11rem, 20vw, 19rem); /* Breite des Logo-Schilds oben */
  --ecke: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(1.125rem, 0.3vw + 1.05rem, 1.25rem);
  line-height: 1.55;
  color: var(--nacht);
  background: var(--weiss);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .kicker, .betrag, .gs-titel { font-family: "Bricolage", "Archivo", sans-serif; }
h1, h2, h3 { margin: 0; line-height: 1.02; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(72rem, 100% - 2 * var(--rand)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--weiss); padding: .5rem 1rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Duotone-Icons: Linie erbt currentColor, Fläche erbt fill */
.ic {
  width: 1.5em; height: 1.5em; flex: none;
  fill: var(--fl); stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; line-height: 1.1;
  border: 2px solid currentColor;
  transition: transform .15s ease;
}
.knopf:hover { transform: translateY(-2px); }
.knopf .ic { width: 1.25em; height: 1.25em; --fl: transparent; }
.knopf-haupt { background: var(--heu); border-color: var(--nacht); color: var(--nacht); }
.knopf-dunkel { background: var(--nacht); border-color: var(--nacht); color: var(--weiss); }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Kopf */
.kopf { position: absolute; inset: 0 0 auto; z-index: 3; padding-block: 1.1rem; }
.kopf .wrap { width: min(84rem, 100% - 2 * var(--rand)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* Logo als Holzschild-Ersatz: weißes Schild in Caros Originalfarben, hängt an zwei Schnüren an einem Nagel
   oben am Seitenrand. Beim Laden pendelt es einmal aus und hängt dann ruhig; beim Drüberfahren oder Antippen schaukelt es */
.logo {
  --schnur: 3.4rem; /* halber Abstand der beiden Ösen */
  --fall: calc(2.55rem + 3px); /* Nagel (.5rem) bis Öse (.45rem im Schild unter 3px Rand) */
  display: block; position: relative; align-self: flex-start;
  margin-top: -1.1rem; padding-top: 2.6rem; /* Platz für Nagel und Schnüre, beginnt am oberen Rand */
  transform-origin: 50% .5rem;
  animation: auspendeln 2.8s ease-out .2s both;
  -webkit-tap-highlight-color: transparent;
}
.logo:hover, .logo:active { animation: auspendeln 2.8s ease-out .2s both, anstossen 1.6s ease-out; } /* gleiche erste Animation: beim Loslassen pendelt es nicht neu aus */
.logo::before, .logo::after { /* die zwei Schnüre vom Nagel zu den Ösen */
  content: ""; position: absolute; left: calc(50% - 1px); top: .5rem;
  width: 2px; height: hypot(var(--schnur), var(--fall));
  background: var(--nacht); transform-origin: top center;
  rotate: atan2(var(--schnur), var(--fall));
}
.logo::after { rotate: atan2(calc(-1 * var(--schnur)), var(--fall)); }
.logo img {
  width: var(--schild); padding: .9rem 1rem .6rem;
  border: 3px solid var(--nacht); border-radius: 12px; box-shadow: 6px 6px 0 var(--heu);
  /* Nagel oben, zwei Ösen am Schild */
  background:
    radial-gradient(circle at calc(50% - var(--schnur)) .45rem, var(--nacht) 3px, transparent 3.5px),
    radial-gradient(circle at calc(50% + var(--schnur)) .45rem, var(--nacht) 3px, transparent 3.5px),
    var(--weiss);
}
.kopf .logo { background: radial-gradient(circle at 50% .5rem, var(--nacht) 5px, transparent 5.5px) no-repeat; }
@keyframes auspendeln { 0% { rotate: 10deg; } 18% { rotate: -7deg; } 36% { rotate: 4.5deg; } 54% { rotate: -2.5deg; } 72% { rotate: 1.2deg; } 88% { rotate: -.4deg; } 100% { rotate: 0deg; } }
@keyframes anstossen { 0% { rotate: 0deg; } 15% { rotate: 9deg; } 35% { rotate: -7deg; } 55% { rotate: 4deg; } 75% { rotate: -2deg; } 100% { rotate: 0deg; } }
.kopf nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.kopf nav a { text-decoration: none; font-weight: 700; }
.kopf nav a:hover { text-decoration: underline; }

/* Hero: Text links, Gruppenbild rechts; die Tiere stehen auf der Vertrauensleiste */
/* Verlauf wie im Studiohintergrund von hero.webp (gemessen): oben etwas dunkler, Wand #09a0ba, unten heller Boden */
.hero { background: linear-gradient(#0794ae, #09a0ba 40%, #09a0ba 75%, #22bad1); padding-top: max(clamp(7.5rem, 14vw, 11rem), calc(6.35rem + (var(--schild) - 2rem) * .394)); } /* mindestens Schildhöhe (Schnur, Logo 800:315, Rand, Schatten) plus Luft */
.hero > .wrap { display: grid; gap: 2rem; width: min(84rem, 100% - 2 * var(--rand)); }
.kicker { font-weight: 700; font-size: 1.05rem; margin-bottom: .8rem; }
.hero h1 { max-width: 13ch; margin-bottom: 1.2rem; }
.weiss-text { color: var(--weiss); } /* groß und fett: 3,3 : 1 auf Türkis reicht für großen Text (AA) */
.hero-text > p:not(.kicker) { max-width: 32rem; font-size: 1.1em; }
.hero-text .knoepfe { margin-top: 1.5rem; }
.hero .ic { --fl: var(--heu); }

/* Headerbild: obere Hälfte freigestellt (tools/hero_halb_frei.py), Pferdeohren und Köpfe bleiben voll deckend.
   Nur die untere Hälfte mit Studioboden läuft seitlich weich in die Fläche aus, unten steht es auf der Leiste. */
.hero-bild {
  --oben: linear-gradient(to bottom, #000 40%, transparent 55%);
  --seiten: linear-gradient(to right, transparent, #000 10% 90%, transparent);
  align-self: end; width: 100%;
  -webkit-mask-image: var(--oben), var(--seiten);
  -webkit-mask-composite: source-over;
  mask-image: var(--oben), var(--seiten);
  mask-composite: add;
}
.gruppe-zeile { font-size: .95rem; margin: 1.5rem 0 0; max-width: 30rem; }

/* Vertrauensleiste */
.vertrauen { background: var(--heu); --fl: var(--weiss); padding-block: 1.4rem; }
.vertrauen ul {
  list-style: none; padding: 0; margin-block: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 2rem;
}
.vertrauen li { display: flex; align-items: center; gap: .7rem; font-weight: 700; line-height: 1.2; }
.vertrauen .ic { width: 2rem; height: 2rem; }

/* Abschnitte: jede Fläche eine Farbe */
.abschnitt { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.einleitung { max-width: 40rem; font-size: 1.12em; }
.weiss { background: var(--weiss); --fl: var(--tuerkis); }
.lila { background: var(--lila); color: var(--weiss); --fl: var(--heu); }
.mohn { background: var(--mohn); color: var(--weiss); }
.nacht { background: var(--nacht); color: var(--weiss); }
.heu { background: var(--heu); --fl: var(--weiss); }
.zwei { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.foto { border-radius: var(--ecke); width: 100%; object-fit: cover; }
figure { margin: 0; }

/* Einzeltiere (KI, freigestellt) sitzen auf der Oberkante einer Fläche und ragen in die Fläche davor.
   Höhe bleibt kleiner als das Abschnitts-Padding, damit nichts Text verdeckt. */
.abschnitt:has(> .tier) { position: relative; }
main { overflow-x: clip; } /* weglaufende Tiere erzeugen keinen Quer-Scroll (nicht am body: würde ans Fenster weitergereicht) */
.tier {
  position: absolute; top: 0; right: max(var(--rand), (100% - 72rem) / 2);
  height: clamp(5.5rem, 10vw, 9rem); width: auto; translate: 0 -80%;
  touch-action: manipulation; /* Videos beim Berühren: assets/js/tiere.js */
}
.tier.links { right: auto; left: max(var(--rand), (100% - 72rem) / 2); }
/* Tiere mit Video: Standbild im Rahmen, das Video liegt deckungsgleich darüber.
   --x/--y = Abstand des Tiers vom Videorand in Tierbreiten/-höhen, --b = Videobreite in Tierbreiten
   (gibt tools/video_alpha.py aus). */
.tier > img { height: 100%; width: auto; max-width: none; }
.tier video {
  position: absolute; left: calc(-100% * var(--x)); top: calc(-100% * var(--y));
  width: calc(100% * var(--b)); height: auto; max-width: none; opacity: 0; pointer-events: none;
}
.tier.spielt video { opacity: 1; }
.tier.weg > img { opacity: 0; }
.tier[data-flug] > img { transition: opacity .8s; } /* Sittich blendet sich nach dem Wegfliegen wieder ein */
.tier.weg[data-flug] > img { transition: none; }
.tier-kaninchen { --x: 0.2108; --y: 0.0212; --b: 4.2941; }
.tier-katze { --x: 1.7531; --y: 0.0189; --b: 3.0453; height: clamp(7.5rem, 15vw, 13.5rem); translate: 0 -64%; } /* größer als die anderen Tiere */
.tier-meerschweinchen { --x: 0.0242; --y: 0.0387; --b: 3.0211; }
.tier-sittich { --x: 0.2235; --y: 3.2800; --b: 6.7412; }
.gs-karte { position: relative; }
.gs-karte .tier { right: 1.5rem; height: clamp(4rem, 7vw, 5.5rem); translate: 0 -86%; }
figcaption { font-size: .9rem; margin-top: .6rem; }

/* Leistungen */
.kacheln { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.kacheln .ic, .ablauf .ic { width: 3.2rem; height: 3.2rem; margin-bottom: 1rem; }
.kacheln h3 { margin-bottom: .4rem; }
.kacheln p { margin: 0; max-width: 34ch; }

/* Über mich + Schützlinge: waagerecht wischen */
.band-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 4rem 0 1.25rem; }
.band-titel { font-size: 1.6rem; }
.pfeile { display: flex; gap: .6rem; }
.pfeile[hidden] { display: none; }
.pfeile button {
  width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--heu); color: var(--nacht); display: grid; place-items: center;
}
.pfeile button:disabled { opacity: .35; cursor: default; }
.pfeile svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.band {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(12rem, 22vw, 16rem); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; padding: 0 0 1rem; margin: 0;
  scrollbar-width: none; /* Pfeile oder Wischen statt Scrollleiste */
}
.band::-webkit-scrollbar { display: none; }
/* Jedes Tier als Chat-Blase wie bei den Kundenstimmen: Foto und Name stehen gemeinsam in der Blase */
.band li {
  scroll-snap-align: start; position: relative; margin-bottom: .7rem;
  background: var(--weiss); color: var(--nacht); padding: .55rem .55rem .9rem;
  border-radius: 1.25rem 1.25rem 1.25rem .25rem;
}
.band li::after {
  content: ""; position: absolute; left: 0; bottom: -.7rem;
  border-left: .9rem solid var(--weiss); border-bottom: .7rem solid transparent;
}
.band li:nth-child(even) { background: var(--heu); }
.band li:nth-child(even)::after { border-left-color: var(--heu); }
.band img { aspect-ratio: 1; border-radius: .85rem; }
.band p { margin: .7rem .4rem 0; font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.band span { display: block; font-family: "Archivo", sans-serif; font-weight: 400; font-size: .9rem; }
/* Über mich */
.lila figure { max-width: 26rem; }
.lila a { font-weight: 700; }

/* Kundenstimmen */
.stimmen { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
/* Sprechblasen wie im Chat: weiße Blase, Zipfel unten links, Absender darunter */
.stimmen blockquote {
  position: relative; margin: 0 0 1.4rem; padding: 1.1rem 1.3rem;
  background: var(--weiss); color: var(--nacht);
  border-radius: 1.25rem 1.25rem 1.25rem .25rem;
  font-family: "Bricolage", sans-serif; font-size: 1.25rem; line-height: 1.3; font-weight: 600;
}
.stimmen blockquote::after {
  content: ""; position: absolute; left: 0; bottom: -.7rem;
  border-left: .9rem solid var(--weiss); border-bottom: .7rem solid transparent;
}
.stimmen li:nth-child(2) blockquote { background: var(--heu); }
.stimmen li:nth-child(2) blockquote::after { border-left-color: var(--heu); }
.stimmen p { margin: 0; padding-left: .4rem; font-size: .95rem; font-weight: 700; }

/* Ablauf: echte Reihenfolge, deshalb nummeriert */
.ablauf { list-style: none; counter-reset: s; padding: 0; margin: 3rem 0 0; display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.ablauf li { counter-increment: s; }
.ablauf h3::before { content: counter(s) ". "; }
.ablauf p { margin: .4rem 0 0; }

/* Preise */
/* Preise als Karten: das Hauptangebot ist doppelt breit */
.preise {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  --fl: var(--tuerkis);
}
.preise li { background: rgb(255 255 255 / .08); border-radius: var(--ecke); padding: 1.6rem; display: flex; flex-direction: column; }
.preise .ic { width: 2.6rem; height: 2.6rem; margin-bottom: 1rem; }
.preise h3 { font-size: 1.25rem; }
.preise p { margin: 0; font-size: .95rem; }
.preise .betrag { font-family: "Bricolage", sans-serif; font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; color: var(--heu); margin: .6rem 0 .8rem; white-space: nowrap; }
.preise .betrag small { font-size: .4em; font-weight: 600; }
.preise .haupt { box-shadow: inset 0 0 0 3px var(--heu); }
.preise .haupt .betrag { font-size: clamp(3.4rem, 8vw, 5.5rem); }
.preise .haupt h3 { font-size: 1.6rem; }
/* Breit: Hauptpreis über die ganze Breite, darunter die beiden Gassi-Karten nebeneinander */
@media (min-width: 52rem) { .preise { grid-template-columns: 1fr 1fr; } .preise .haupt { grid-column: 1 / -1; } }
.zonen-titel { margin: 4rem 0 1.5rem; font-size: 1.6rem; }
.zonen { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.zonen li { border-top: 6px solid var(--tuerkis); padding-top: 1rem; }
.zonen li:nth-child(2) { border-color: var(--heu); }
.zonen li:nth-child(3) { border-color: var(--mohn); }
.zonen b { display: block; font-family: "Bricolage", sans-serif; font-size: 2.4rem; line-height: 1.1; }
.zonen span { font-weight: 700; }
.zonen p { margin: .5rem 0 0; font-size: .95rem; }

/* Gutschein: nur Ansicht, kein Download. Caro schickt das PDF selbst. */
.gs-karte {
  background: var(--lila); color: var(--weiss); --fl: var(--heu);
  border-radius: var(--ecke); padding: clamp(1.25rem, 4vw, 2rem);
  aspect-ratio: 148 / 105; max-width: 30rem; width: 100%;
  display: flex; flex-direction: column; rotate: -2deg;
}
.gs-karte .ic { width: 2.6rem; height: 2.6rem; }
.gs-titel { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; line-height: 1; margin: .5rem 0 .2rem; }
.gs-fuer { font-size: .9rem; margin-bottom: auto; }
.gs-karte dl { margin: 1rem 0; display: grid; gap: .45rem; }
.gs-karte dl div { display: flex; gap: .6rem; align-items: baseline; }
.gs-karte dt { font-weight: 700; font-size: .85rem; width: 2.6rem; }
.gs-karte dd { margin: 0; flex: 1; border-bottom: 2px solid var(--heu); text-align: right; font-size: .85rem; min-height: 1.2em; }
.gs-fuss { font-size: .75rem; margin: 0; }

/* Kontakt */
.kontakt { background: var(--tuerkis); --fl: var(--heu); }
.kontakt h2 { font-size: clamp(3rem, 9vw, 6.5rem); }
.kontakt .knoepfe { margin-top: 2rem; }
/* Kontaktformular: weiße Felder, zwei Spalten ab Tablet */
.formular { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); max-width: 40rem; margin-top: 3rem; }
.formular h3, .formular .breit { grid-column: 1 / -1; }
.formular h3 { font-size: 1.6rem; }
.formular label { display: grid; gap: .35rem; font-weight: 700; }
.formular input, .formular textarea {
  font: inherit; font-weight: 400; color: var(--nacht); background: var(--weiss);
  border: 2px solid var(--nacht); border-radius: var(--ecke); padding: .7rem .9rem; width: 100%;
}
.formular textarea { resize: vertical; }
.formular button { font: inherit; font-weight: 700; cursor: pointer; justify-self: start; white-space: nowrap; }
.formular .hinweis { margin: 0; font-size: .95rem; }

/* Fuß */
.fuss { background: var(--nacht); color: var(--weiss); padding-block: 2.5rem; font-size: .95rem; --fl: transparent; }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.fuss-logo { width: 12rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.fuss nav a { display: inline-flex; align-items: center; gap: .4rem; }
.fuss .ic { width: 1.2em; height: 1.2em; }

/* Rechtstexte */
.recht { padding-block: 4rem 5rem; }
.recht .wrap { max-width: 46rem; }
.recht h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 2rem; }
.recht h2 { font-size: 1.5rem; margin: 2.5rem 0 .8rem; }
.recht h3 { margin: 1.5rem 0 .5rem; }
.seite-recht .kopf { background: var(--tuerkis); position: static; }

/* Klasse offen = vor dem Livegang von Caro bestätigen lassen (siehe LIESMICH). Sichtbar nur bei Platzhaltern. */
span.offen, a.offen { background: #fff200; color: #000; padding: 0 .3em; }
.offen-block { border-left: 6px solid var(--heu); padding-left: 1rem; }

@media (min-width: 60rem) {
  .hero > .wrap { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 2rem; }
  /* Bild steht unten auf der Leiste: hellen Studioboden über die ganze Breite fortsetzen (Höhe ≈ 13 % der Bildbreite) */
  .hero { --boden: min(6.2vw, 5.7rem); background: linear-gradient(to top, #2abfd5, #1cb3cb calc(var(--boden) * .55), #09a0ba var(--boden), #09a0ba 55%, #0794ae); }
  .hero-text { padding-bottom: 2rem; }
  .zwei { grid-template-columns: .85fr 1.15fr; }
}
@media (max-width: 40rem) {
  .kopf nav { display: none; }
  /* Handy: Bild zuerst, direkt unter dem Logo, etwas über die Ränder hinaus (main schneidet ab), unten weich ins Türkis */
  .logo img { width: 12rem; }
  .logo { --schnur: 2.4rem; margin-top: -2.2rem; } /* Nagel liegt über dem Bildschirmrand, die Schnüre kommen von oben */
  .hero { padding-top: 5rem; }
  .hero h1 { font-size: min(3rem, 12.8vw); } /* so groß, dass „Dein Tier bleibt“ noch in eine Zeile passt */
  .hero h1 .weiss-text { display: block; } /* Umbruch nach „zuhause.“ */
  .hero-bild {
    order: -1; width: 106vw; max-width: none; margin: 0 calc(50% - 53vw) -1.5rem;
    -webkit-mask-image: var(--oben), var(--seiten), linear-gradient(to bottom, #000 85%, transparent);
    -webkit-mask-composite: source-over, source-in;
    mask-image: var(--oben), var(--seiten), linear-gradient(to bottom, #000 85%, transparent);
    mask-composite: add, intersect;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo, .logo:hover, .logo:active { animation: none; }
  .knopf { transition: none; }
}
