:root {
  --bg: #f6f1e8;
  --card: #fffdf8;
  --text: #1c1712;
  --muted: #6b6258;
  --line: rgba(28, 23, 18, 0.1);
  --accent: #8a5a2b;
  --accent-ink: #fff;
  --max: 1080px;
}

body.site.theme-luna,
body.site.theme-sand {
  --bg: #faf4ea;
  --card: #fffaf1;
  --accent: #c4782a;
  --muted: #7a6248;
  --text: #2a1d12;
}
body.site.theme-nordpfote,
body.site.theme-moos {
  --bg: #eef6f0;
  --card: #f7fbf8;
  --accent: #2f6b4f;
  --muted: #4f6759;
  --text: #14241c;
}
body.site.theme-birkenhof {
  --bg: #f3f0e4;
  --card: #fbf8ee;
  --accent: #5b7a3a;
  --muted: #5e684c;
  --text: #1e2414;
}
body.site.theme-pfotenrettung,
body.site.theme-ziegel {
  --bg: #fbf3ee;
  --card: #fff8f4;
  --accent: #c45c38;
  --muted: #7a5344;
  --text: #2a1610;
}
body.site.theme-bewegdich,
body.site.theme-see {
  --bg: #eef6f6;
  --card: #f5fbfb;
  --accent: #2a7a78;
  --muted: #4a6a6a;
  --text: #102424;
}
body.site.theme-gassinord,
body.site.theme-abend {
  --bg: #eef2f7;
  --card: #f6f8fb;
  --accent: #3d5a80;
  --muted: #4d5d73;
  --text: #121820;
}
body.site.theme-hsv-beispiel {
  --bg: #f0f6ea;
  --card: #f7fbf2;
  --accent: #3d7a2f;
  --muted: #4f6846;
  --text: #142014;
}
body.site.theme-team-besuch,
body.site.theme-beere {
  --bg: #f4f0fa;
  --card: #faf7fd;
  --accent: #6b4c9a;
  --muted: #64567a;
  --text: #1c1428;
}

* { box-sizing: border-box; }
body.site {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
.site a { color: var(--accent); }
.site .skip {
  position: absolute;
  left: -999px;
}
.site .skip:focus {
  left: 12px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  z-index: 20;
}
.site .wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.site .top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body.site:has(.licht:target) header.top {
  display: none !important;
}
.site .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  gap: 16px;
}
.site .brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.site .brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}
.site .brand.has-logo::before {
  display: none;
}
.site .brand.has-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site .brand .logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.site nav {
  display: flex;
  gap: 14px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.site nav a:hover { color: var(--accent); }
.site .hero {
  position: relative;
  width: 100%;
  margin: 0;
  background: var(--bg);
}
.site .hero > img {
  width: 100%;
  height: min(82vh, 920px);
  object-fit: cover;
  object-position: center;
  display: block;
}
.site .hero-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.45), transparent 55%);
  padding: 28px 0 36px;
}
.site .hero-panel {
  background: color-mix(in srgb, var(--card) 94%, white);
  border-radius: 22px;
  padding: 26px 28px 24px;
  max-width: 580px;
  border-left: 7px solid var(--accent);
  box-shadow: 0 18px 40px rgba(20, 16, 10, 0.18);
}
.site main.wrap { padding: 28px 20px 72px; }
.site h1 {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 2.55rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.site h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.site h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  margin-top: 8px;
}
.site .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}
.site .lede {
  color: var(--muted);
  max-width: 46rem;
  margin: 0;
}
.site .cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 650;
}
.site section { margin-top: 52px; }
.site .photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.site .photos .photo-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
}
.site .photos .photo-link img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.site .licht {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.site .licht:target {
  display: flex;
  z-index: 99999;
  background: rgba(12, 10, 8, 0.92);
}
.site .licht-hinter {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.9);
  color: transparent;
  overflow: hidden;
}
.site .licht figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 96vw;
}
.site .licht figure img {
  max-width: 96vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
.site .licht figcaption {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.site .licht-nav {
  color: var(--accent-ink);
  background: var(--accent);
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 650;
}
.site .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.site .split.three { grid-template-columns: 1fr 1fr 1fr; }
.site .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 18px rgba(20, 16, 10, 0.04);
}
.site .card.dog img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 12px;
  margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
}
.site .card ul { margin: 0; padding-left: 18px; }
.site .dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
}
.site .dl div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.site .dl dt {
  font-size: 0.8rem;
  color: var(--muted);
}
.site .dl dd { margin: 4px 0 0; font-weight: 650; }
.site h3 { margin: 0 0 8px; font-size: 1.08rem; }
.site .banner {
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  border-radius: 12px;
  padding: 12px 16px;
  margin: 14px 0 0;
}
.site .notfall {
  border: 2px solid var(--accent);
}
.site .notfall-banner {
  margin: 0;
  border-radius: 0;
  background: #c1121f;
  color: #fff;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 20px;
  font-size: 0.98rem;
  line-height: 1.35;
}
.site .hero .notfall-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  box-shadow: 0 8px 18px rgba(80, 8, 8, 0.28);
}
.site .voice p:first-child { margin-top: 0; font-size: 1.05rem; }
.site .voice p:first-child::before {
  content: "“";
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 0;
  margin-right: 4px;
}
.site .faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.site .faq h3 { margin-bottom: 6px; }
.site .faq p { margin: 0; color: var(--muted); }
.site .note { color: var(--muted); }
.site .form { display: grid; gap: 14px; }
.site .form label { display: grid; gap: 6px; }
.site .form input[type="text"],
.site .form select,
.site .form textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  width: 100%;
  background: #fff;
}
.site .form .check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site .form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.site .banner.fehler {
  background: #fde8e8;
  color: #7f1d1d;
}
.site .form button {
  justify-self: start;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 650;
}
.site .foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .site .split.three { grid-template-columns: 1fr 1fr; }
  .site .photos { grid-template-columns: 1fr 1fr; }
  .site h1 { font-size: 2.1rem; }
}
@media (max-width: 720px) {
  .site h1 { font-size: 1.75rem; }
  .site .photos,
  .site .split,
  .site .split.three,
  .site .dl { grid-template-columns: 1fr; }
  .site .hero-panel { padding: 20px; }
}
.site .owner-bar {
  background: color-mix(in srgb, var(--accent) 16%, var(--card));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 18px 0 8px;
}
.site .nur-du {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 12px;
}
.site .owner-tools { margin: 8px 0 0; }
.site .aendern-link {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 650;
  font-size: 0.92rem;
}
.site .owner-tools:has(+ .aendern:target) { display: none; }
.site .aendern { display: none; }
.site .aendern:target {
  display: block;
  margin-top: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.site .owner-form,
.site .aendern .upload {
  display: grid;
  gap: 14px;
}
.site .owner-form .block,
.site .aendern .block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
  margin: 0;
}
.site .owner-form legend,
.site .aendern legend {
  color: var(--accent);
  padding: 0 6px;
  font-weight: 650;
}
.site .owner-form label,
.site .aendern label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site .owner-form input,
.site .owner-form textarea,
.site .owner-form select,
.site .aendern input[type="file"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
}
.site .owner-form .row,
.site .owner-form .add,
.site .owner-form .fact {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.site .owner-form .check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site .owner-form .check input { width: auto; min-height: 0; }
.site .owner-form .farben { border: 0; padding: 0; margin: 8px 0 0; }
.site .owner-form .farben-wahl { display: flex; flex-wrap: wrap; gap: 10px; }
.site .owner-form .farbe {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
}
.site .owner-form .farbe input { width: auto; min-height: 0; }
.site .swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
}
.site .swatch-sand { background: #c4782a; }
.site .swatch-moos { background: #2f6b4f; }
.site .swatch-see { background: #2a7a78; }
.site .swatch-abend { background: #3d5a80; }
.site .swatch-beere { background: #6b4c9a; }
.site .swatch-ziegel { background: #c45c38; }
.site .owner-form button,
.site .aendern button {
  justify-self: start;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 650;
}
.site .owner-form button.weg {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 500;
}
.site .owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 4px 0 0;
}
.site .owner-actions .schliessen {
  color: var(--muted);
}
.site .photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.site .photo-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: var(--bg);
}
.site .photo-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}
.site .photo-card form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.site .photo-card button,
.site .upload button {
  padding: 8px 12px;
  font-size: 0.85rem;
}
