/* ============================================================
   Mobile Hundeschule Untermain – Redesign 2026
   Ruhig & lebendig: eine Akzentfarbe (Wiesengrün), viel Luft,
   Bewegung nur zweckgebunden (Hover, ein Hero-Einstieg).
   ============================================================ */

:root {
  --gruen:        #2e7d46;
  --gruen-tief:   #23613a;
  --gruen-dunkel: #16301f;
  --tint:         #edf3ea;
  --papier:       #f8f7f2;
  --karte:        #ffffff;
  --tinte:        #1f271f;
  --text:         #3a423a;
  --sanft:        #677064;
  --linie:        #e4e3d8;
  --radius:       16px;
  --schatten:     0 1px 2px rgba(22, 42, 26, .05), 0 8px 24px -18px rgba(22, 42, 26, .25);
  --schatten-hoch:0 2px 4px rgba(22, 42, 26, .06), 0 18px 40px -20px rgba(22, 42, 26, .35);
  --pfote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%232e7d46'%3E%3Cellipse cx='14.5' cy='27' rx='6.4' ry='8.6' transform='rotate(-24 14.5 27)'/%3E%3Cellipse cx='25.5' cy='17.5' rx='6.6' ry='9' transform='rotate(-8 25.5 17.5)'/%3E%3Cellipse cx='38.5' cy='17.5' rx='6.6' ry='9' transform='rotate(8 38.5 17.5)'/%3E%3Cellipse cx='49.5' cy='27' rx='6.4' ry='8.6' transform='rotate(24 49.5 27)'/%3E%3Cpath d='M32 30c8.5 0 15.5 6.2 15.5 13.2 0 6.1-5 9.3-9.4 8.1-2.7-.7-4.3-1.6-6.1-1.6s-3.4.9-6.1 1.6c-4.4 1.2-9.4-2-9.4-8.1C16.5 36.2 23.5 30 32 30z'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  color: var(--tinte);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 3.2vw + .4rem, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2vw + .3rem, 1.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1.1em; }

a { color: var(--gruen); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gruen-tief); }

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

.shell { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

.springe-zum-inhalt {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--gruen-dunkel); color: #fff; padding: .6em 1em; border-radius: 8px;
}
.springe-zum-inhalt:focus { left: 8px; }

.kicker {
  display: block;
  color: var(--gruen);
  font-size: .82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: .8em;
}

.vorspann { font-size: 1.18rem; color: var(--sanft); max-width: 46em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--gruen); color: #fff;
  font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: .78em 1.5em; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--gruen-tief); color: #fff; transform: translateY(-1px); box-shadow: var(--schatten); }
.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

.btn-rand { background: transparent; color: var(--gruen-tief); border-color: var(--gruen); }
.btn-rand:hover { background: var(--tint); color: var(--gruen-tief); }

.btn-hell { background: #fff; color: var(--gruen-dunkel); }
.btn-hell:hover { background: var(--tint); color: var(--gruen-dunkel); }

.btn-rand-hell { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-rand-hell:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Kopf / Navigation ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}

.kopf-innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}

.marke {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--tinte);
}
.marke-pfote { width: 40px; height: 40px; fill: var(--gruen); flex: none; }
.marke-text {
  font-weight: 800; font-size: 1.06rem; line-height: 1.15; letter-spacing: -.01em;
}
.marke-text small {
  display: block; font-weight: 650; font-size: .78rem;
  color: var(--gruen); text-transform: uppercase; letter-spacing: .18em;
}

.hauptnav { display: flex; align-items: center; gap: 1.1rem; }
.hauptnav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.hauptnav ul a {
  display: block; padding: .45em .8em; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .98rem;
  transition: background-color .15s ease, color .15s ease;
}
.hauptnav ul a:hover { background: var(--tint); color: var(--gruen-dunkel); }
.hauptnav ul a[aria-current="page"] { background: var(--tint); color: var(--gruen-tief); font-weight: 700; }

.btn-kopf { font-size: .93rem; padding: .6em 1.2em; }

.nav-knopf {
  display: none; align-items: center; gap: .45em;
  background: none; border: 1.5px solid var(--linie); border-radius: 999px;
  padding: .5em 1em; font: inherit; font-weight: 650; color: var(--tinte); cursor: pointer;
}
.nav-knopf svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.nav-knopf .icon-zu { display: none; }
.nav-knopf[aria-expanded="true"] .icon-menu { display: none; }
.nav-knopf[aria-expanded="true"] .icon-zu { display: block; }

@media (max-width: 940px) {
  .nav-knopf { display: inline-flex; }
  .hauptnav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--linie);
    padding: 1rem 22px 1.3rem;
    flex-direction: column; align-items: stretch; gap: .8rem;
    box-shadow: var(--schatten-hoch);
  }
  .hauptnav.offen { display: flex; }
  .hauptnav ul { flex-direction: column; gap: .15rem; }
  .hauptnav ul a { padding: .7em 1em; font-size: 1.05rem; }
  .btn-kopf { justify-content: center; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  min-height: clamp(430px, 68vh, 640px);
  display: flex; align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero img.hero-bild {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(15, 28, 18, .78) 0%, rgba(15, 28, 18, .30) 45%, rgba(15, 28, 18, .12) 100%);
}
.hero-inhalt { padding: 4.5rem 0 3.2rem; max-width: 42em; }
.hero-inhalt .kicker { color: #cde5cf; }
.hero-inhalt h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.3vw + .6rem, 3.5rem);
  text-shadow: 0 2px 18px rgba(10, 20, 12, .45);
}
.hero-inhalt p {
  color: #eef3ec; font-size: clamp(1.05rem, 1.3vw + .5rem, 1.3rem);
  text-shadow: 0 1px 12px rgba(10, 20, 12, .5);
  margin-bottom: 1.6em;
}
.hero-aktionen { display: flex; flex-wrap: wrap; gap: .8rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-inhalt { animation: hero-auf .65s ease-out both; }
  @keyframes hero-auf {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.seitenkopf {
  position: relative;
  background: var(--tint);
  border-bottom: 1px solid var(--linie);
  padding: 3.2rem 0 2.6rem;
  overflow: hidden;
}
.seitenkopf::after {
  content: ""; position: absolute; right: -40px; top: -30px;
  width: 260px; height: 260px;
  background: var(--pfote) no-repeat center / contain;
  opacity: .07; transform: rotate(14deg);
  pointer-events: none;
}
.seitenkopf h1 { margin-bottom: .25em; }
.seitenkopf .vorspann { margin: 0; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 4rem 0; }
.abschnitt-tint { background: var(--tint); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.abschnitt-kopf { max-width: 46em; margin-bottom: 2.2rem; }
.abschnitt-kopf.mittig { margin-inline: auto; text-align: center; }

/* Karten */
.karten {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: var(--schatten);
  transition: transform .18s ease, box-shadow .18s ease;
}
.karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-hoch); }
.karte h3 { margin-bottom: .4em; }
.karte p:last-child { margin-bottom: 0; }

.karten-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--tint); color: var(--gruen);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem;
}
.karten-icon svg { width: 24px; height: 24px; fill: currentColor; }

/* Problem-Zitate („Kennen Sie das auch?“) */
.problem-liste { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.problem {
  background: var(--karte); border: 1px solid var(--linie); border-left: 4px solid var(--gruen);
  border-radius: 12px; padding: 1rem 1.2rem;
  font-size: 1.05rem; color: var(--tinte); font-weight: 550;
  margin: 0;
}
.problem span { display: block; font-size: .85rem; font-weight: 550; color: var(--sanft); margin-top: .25em; }

/* Häkchen- und Pfotenlisten */
.check-liste, .pfoten-liste { list-style: none; margin: 0 0 1.2em; padding: 0; }
.check-liste li, .pfoten-liste li { position: relative; padding-left: 2.1em; margin-bottom: .65em; }
.check-liste li::before {
  content: ""; position: absolute; left: 0; top: .22em;
  width: 1.35em; height: 1.35em; border-radius: 50%;
  background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9.6 16.2 5.4 12l-1.4 1.4 5.6 5.6 12-12L20.2 5.6z'/%3E%3C/svg%3E") no-repeat center / 62%;
}
.pfoten-liste li::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 1.4em; height: 1.4em;
  background: var(--pfote) no-repeat center / contain;
}

/* Text/Bild-Reihen */
.split {
  display: grid; gap: 2.4rem; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.split figure { margin: 0; }
.split img { border-radius: var(--radius); box-shadow: var(--schatten-hoch); width: 100%; object-fit: cover; }
.split figcaption { font-size: .85rem; color: var(--sanft); margin-top: .6em; }

/* Statement-Band */
.statement {
  background: var(--gruen-dunkel);
  color: #fff;
  padding: 3.4rem 0;
  text-align: center;
}
.statement h2, .statement p strong { color: #fff; }
.statement h2 { font-size: clamp(1.6rem, 2.6vw + .4rem, 2.3rem); margin-bottom: .3em; }
.statement p { color: #d8e4d8; max-width: 52em; margin: 0 auto; }

/* Zitate / Gästebuch-Stimmen */
.zitate { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.zitat {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.3rem; box-shadow: var(--schatten);
  display: flex; flex-direction: column; margin: 0;
}
.zitat::before {
  content: "\201E";
  font-size: 3rem; line-height: .6; color: var(--gruen);
  font-family: Georgia, serif;
  margin-bottom: .4rem;
}
.zitat blockquote { margin: 0 0 1rem; flex: 1; }
.zitat figcaption { font-weight: 700; color: var(--tinte); font-size: .95rem; }
.zitat figcaption span { display: block; font-weight: 500; color: var(--sanft); font-size: .85rem; }

/* Info-Box (Hinweise) */
.info-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--schatten);
}
.info-box svg { width: 26px; height: 26px; fill: var(--gruen); flex: none; margin-top: .15em; }
.info-box p:last-child { margin-bottom: 0; }

/* News-Einträge */
.news-liste { display: grid; gap: 1.2rem; max-width: 760px; }
.news-eintrag {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--schatten);
}
.news-eintrag h2 { font-size: 1.25rem; margin-bottom: .3em; }
.news-datum {
  display: inline-block; background: var(--tint); color: var(--gruen-tief);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: .25em .9em; margin-bottom: .8rem;
}
.news-eintrag p:last-child { margin-bottom: 0; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--gruen-tief), var(--gruen-dunkel));
  color: #fff; padding: 3.2rem 0;
}
.cta-innen {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem;
}
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #d8e4d8; margin: 0; max-width: 34em; }
.cta-aktionen { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Partnerlinks (verkaufte Textlinks) ---------- */
.partnerlinks {
  background: var(--papier);
  border-top: 1px solid var(--linie);
  padding: 1.1rem 0;
  font-size: .85rem; color: var(--sanft); line-height: 1.9;
}
.partnerlinks a { color: var(--sanft); }
.partnerlinks a:hover { color: var(--gruen-tief); }

/* ---------- Footer ---------- */
.fuss {
  background: var(--gruen-dunkel); color: #c9d5c9;
  padding: 3.4rem 0 1.6rem; font-size: .95rem;
}
.fuss a { color: #e8efe8; }
.fuss a:hover { color: #fff; }
.fuss-spalten {
  display: grid; gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-bottom: 2.2rem;
}
.fuss-logo { font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: .1em; }
.fuss-logo span { color: #9fc7a5; }
.fuss-claim { color: #9fc7a5; font-style: italic; margin-bottom: 1em; }
.fuss-titel {
  color: #fff; font-size: .85rem; font-weight: 750;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1em;
}
.fuss address { font-style: normal; }
.fuss-nav { list-style: none; margin: 0; padding: 0; columns: 2; }
.fuss-nav li { margin-bottom: .5em; }
.fuss-nav a { text-decoration: none; }
.fuss-nav a:hover { text-decoration: underline; }
.fuss-zeile {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between;
  font-size: .85rem; color: #9aa89a;
}
.fuss-zeile p { margin: 0; }
.fuss-zeile ul { list-style: none; display: flex; gap: 1.2em; margin: 0; padding: 0; }

/* ---------- Gästebuch ---------- */
.gb-liste { display: grid; gap: 1.2rem; max-width: 760px; }
.gb-eintrag {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--schatten);
}
.gb-kopfzeile { display: flex; align-items: center; gap: .9rem; margin-bottom: .7rem; }
.gb-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--tint); color: var(--gruen-tief);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem;
}
.gb-name { font-weight: 700; color: var(--tinte); }
.gb-meta { font-size: .85rem; color: var(--sanft); }
.gb-text { margin: 0; white-space: pre-line; }

.gb-formular {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.8rem 1.7rem; box-shadow: var(--schatten); max-width: 760px;
}
.gb-formular .felder { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.gb-formular .feld-voll { grid-column: 1 / -1; }
.gb-formular label { display: block; font-weight: 650; font-size: .92rem; color: var(--tinte); margin-bottom: .35em; }
.gb-formular input[type="text"], .gb-formular textarea {
  width: 100%; font: inherit; color: var(--tinte);
  border: 1.5px solid var(--linie); border-radius: 10px;
  padding: .65em .9em; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gb-formular input:focus, .gb-formular textarea:focus {
  outline: none; border-color: var(--gruen);
  box-shadow: 0 0 0 3px rgba(46, 125, 70, .15);
}
.gb-formular textarea { min-height: 130px; resize: vertical; }
.gb-formular .hinweis { font-size: .85rem; color: var(--sanft); }
.gb-formular button { cursor: pointer; border: 2px solid transparent; font: inherit; }
.gb-honig { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.meldung {
  border-radius: 12px; padding: 1rem 1.3rem; margin-bottom: 1.5rem;
  font-weight: 550; max-width: 760px;
}
.meldung-ok { background: var(--tint); border: 1px solid var(--gruen); color: var(--gruen-dunkel); }
.meldung-fehler { background: #faf0ee; border: 1px solid #c2664f; color: #7a3a28; }

@media (max-width: 640px) {
  .gb-formular .felder { grid-template-columns: 1fr; }
}

/* ---------- Fließtext-Seiten (AGB, Datenschutz, Impressum) ---------- */
.textseite { max-width: 800px; }
.textseite h2 { margin-top: 2em; font-size: 1.3rem; }
.textseite h2:first-child { margin-top: 0; }
.textseite h3 { margin-top: 1.6em; }

/* ---------- Sonstiges ---------- */
.mittig { text-align: center; }
.abstand-oben { margin-top: 2.4rem; }

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