:root {
  --bg: #dcefdc;
  --bg-warm: #eaf6ea;
  --surface: #f7fbf6;
  --surface-soft: #d7ecd7;
  --surface-tint: #eef8ee;
  --ink: #06100b;
  --muted: #42564a;
  --line: #bfd8c0;
  --green: #3f7454;
  --green-dark: #1f4d36;
  --green-deep: #123326;
  --gold: #bfd8c0;
  --coral: #c4684d;
  --shadow: 0 22px 60px rgba(15, 46, 34, 0.14);
  --shadow-soft: 0 12px 34px rgba(15, 46, 34, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
  background:
    url("assets/tierlinien-hintergrund.png") center 160px / min(1100px, 94vw) auto repeat-y,
    radial-gradient(circle at 18% 0%, rgba(247, 251, 246, 0.62), transparent 28rem),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 46%, #e4f3e4 100%);
  background-blend-mode: multiply, normal, normal;
  background-attachment: fixed, scroll, scroll;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

body > header,
body > main,
body > footer,
body > aside {
  position: relative;
  z-index: 1;
}

@media (max-width: 820px) {
  body {
    background-position: center 220px, 18% 0%, center;
    background-size: 150vw auto, auto, auto;
    background-attachment: scroll, scroll, scroll;
  }
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 52px);
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 14px clamp(18px, 4vw, 68px);
  border: 0;
  border-bottom: 1px solid rgba(191, 216, 192, 0.42);
  border-radius: 0 0 28px 28px;
  background: rgba(18, 12, 8, 0.9);
  color: #fff;
  box-shadow: 0 8px 0 #bfd8c0, 0 18px 42px rgba(11, 7, 4, 0.24);
  backdrop-filter: blur(20px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-emblem {
  position: relative;
  display: block;
  flex: 0 0 72px;
  width: 72px;
  height: 52px;
  overflow: hidden;
}

.brand-emblem img {
  position: absolute;
  top: -2px;
  left: 0;
  width: auto;
  max-width: none;
  height: 56px;
  transform: translateX(-34px);
  filter: invert(88%) sepia(12%) saturate(520%) hue-rotate(72deg) brightness(96%) contrast(88%);
  opacity: 0.9;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  min-height: 48px;
  padding: 12px clamp(9px, 1vw, 15px);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.82rem, 0.92vw, 1rem);
  font-weight: 850;
  text-decoration: none;
  transition: background 180ms ease, background-position 220ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.main-nav .nav-donate {
  background: linear-gradient(135deg, #bfd8c0 0%, #88b294 48%, #3f7454 100%);
  color: #0d2b1e;
  box-shadow: 0 10px 26px rgba(63, 116, 84, 0.32);
}

.hero {
  position: relative;
  min-height: clamp(680px, calc(100svh - 78px), 940px);
  margin-top: 0;
  padding-top: 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  max-width: 100vw;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(1.07) contrast(1.02) saturate(1.04);
  z-index: -2;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  top: -22%;
  right: -8%;
  width: clamp(300px, 38vw, 680px);
  aspect-ratio: 1;
  border: clamp(26px, 4vw, 68px) solid rgba(191, 216, 192, 0.2);
  border-radius: 43% 57% 62% 38% / 56% 35% 65% 44%;
  transform: rotate(17deg);
}

.hero::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 48%, rgba(23, 13, 7, 0.76) 0 9%, rgba(23, 13, 7, 0.5) 31%, transparent 58%),
    linear-gradient(90deg, rgba(11, 7, 4, 0.7), rgba(11, 7, 4, 0.3) 44%, rgba(11, 7, 4, 0.02) 72%),
    linear-gradient(0deg, rgba(220, 239, 220, 0.9), transparent 17%);
}

.hero-overlay {
  position: relative;
  width: min(660px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 96px);
  padding: clamp(32px, 5vw, 64px);
  color: #fff;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: -14px 14% -14px -22px;
  z-index: -1;
  border: 1px solid rgba(191, 216, 192, 0.42);
  border-right: 0;
  border-radius: 56px 180px 180px 56px;
  background: linear-gradient(105deg, rgba(22, 13, 7, 0.48), rgba(22, 13, 7, 0.06));
  backdrop-filter: blur(3px);
}

.pinboard-section {
  position: relative;
  padding: clamp(72px, 8vw, 116px) max(18px, calc((100% - 1220px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 225, 170, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 64%, rgba(77, 40, 18, 0.13) 0 1px, transparent 2px),
    repeating-linear-gradient(28deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 8px),
    #a96538;
  background-size: 29px 31px, 23px 27px, auto, auto;
  color: #fff8ea;
  box-shadow: inset 0 18px 42px rgba(55, 25, 10, 0.22), inset 0 -14px 35px rgba(55, 25, 10, 0.16);
}

.pinboard-section::before,
.pinboard-section::after {
  content: "";
  position: absolute;
  width: clamp(180px, 22vw, 360px);
  aspect-ratio: 1;
  border: 2px solid rgba(191, 216, 192, 0.3);
  border-radius: 44% 56% 38% 62% / 61% 41% 59% 39%;
  pointer-events: none;
}

.pinboard-section::before {
  top: -120px;
  left: -90px;
  transform: rotate(24deg);
}

.pinboard-section::after {
  right: -120px;
  bottom: -150px;
  transform: rotate(-18deg) scale(1.25);
}

.pinboard-heading {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: clamp(48px, 7vw, 82px);
}

.pinboard-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.02;
}

.pinboard-heading p:not(.eyebrow) {
  max-width: 590px;
  color: rgba(255, 248, 234, 0.8);
}

.pinboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
  padding: 12px clamp(4px, 1vw, 16px) 28px;
}

.polaroid {
  --pin-color: #b92e2e;
  position: relative;
  margin: 0;
  padding: clamp(10px, 1.4vw, 15px) clamp(10px, 1.4vw, 15px) clamp(18px, 2.3vw, 30px);
  background: #fffdf8;
  color: #3b2b20;
  box-shadow: 0 18px 32px rgba(49, 24, 10, 0.3), 0 2px 3px rgba(49, 24, 10, 0.24);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.polaroid::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  z-index: 2;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 6%, var(--pin-color) 15% 58%, #4e2418 62% 100%);
  box-shadow: 0 6px 7px rgba(50, 23, 10, 0.38);
  transform: translateX(-50%);
}

.polaroid::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 2px;
  height: 16px;
  background: rgba(64, 42, 28, 0.42);
  transform: translateX(-50%) rotate(8deg);
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 63% center;
  filter: saturate(0.9) contrast(1.04);
}

.polaroid figcaption {
  min-height: 52px;
  padding-top: 16px;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(0.92rem, 1.4vw, 1.12rem);
  line-height: 1.25;
  text-align: center;
}

.polaroid:hover {
  z-index: 3;
  box-shadow: 0 26px 46px rgba(49, 24, 10, 0.4);
}

.polaroid.tilt-left { transform: rotate(-5deg); }
.polaroid.tilt-left:hover { transform: rotate(-2deg) translateY(-8px); }
.polaroid.tilt-right { margin-top: 34px; transform: rotate(4deg); }
.polaroid.tilt-right:hover { transform: rotate(1deg) translateY(-8px); }
.polaroid.straight { transform: rotate(-0.7deg); }
.polaroid.straight:hover { transform: rotate(0deg) translateY(-8px); }
.polaroid.tilt-soft { margin-top: 18px; transform: rotate(2.5deg); }
.polaroid.tilt-soft:hover { transform: rotate(0.5deg) translateY(-8px); }

.polaroid.pin-gold { --pin-color: #bfd8c0; }
.polaroid.pin-green { --pin-color: #356b4b; }
.polaroid.pin-blue { --pin-color: #3d6d8d; }
.polaroid.crop-cat img { object-position: 83% center; }
.polaroid.crop-rabbit img { object-position: 97% center; }
.polaroid.memorial-photo img { object-position: center 22%; }

/* Einzelne angepinnte Fotos, verteilt über die Startseite. */
.home-page .section,
.home-page .split-section,
.home-page .location-section,
.home-page .donation,
.home-page .social-section,
.home-page .info-section {
  position: relative;
  overflow: visible;
}

.page-polaroid {
  --pin-color: #b92e2e;
  position: absolute;
  z-index: 4;
  width: clamp(150px, 14vw, 210px);
  margin: 0;
  padding: 10px 10px 20px;
  background: #fffdf8;
  color: #3b2b20;
  box-shadow: 0 18px 32px rgba(38, 24, 15, 0.28), 0 2px 3px rgba(38, 24, 15, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.page-polaroid::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  z-index: 2;
  width: 19px;
  height: 19px;
  border: 3px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 6%, var(--pin-color) 15% 58%, #4e2418 62% 100%);
  box-shadow: 0 6px 7px rgba(50, 23, 10, 0.36);
  transform: translateX(-50%);
}

.page-polaroid::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: rgba(64, 42, 28, 0.4);
  transform: translateX(-50%) rotate(8deg);
}

.page-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 63% center;
  filter: saturate(0.9) contrast(1.04);
}

.page-polaroid figcaption {
  padding-top: 12px;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(0.8rem, 1.15vw, 1rem);
  line-height: 1.2;
  text-align: center;
}

.page-polaroid.hang-right {
  top: clamp(56px, 7vw, 100px);
  right: clamp(-170px, -9vw, -88px);
  transform: rotate(5deg);
}

.page-polaroid.hang-left {
  top: clamp(62px, 8vw, 112px);
  left: clamp(-220px, -13vw, -160px);
  transform: rotate(-5deg);
}

.home-page .section.soft > .page-polaroid.hang-right {
  right: max(24px, calc((100% - 1120px) / 2));
}

.page-polaroid:hover {
  z-index: 6;
  box-shadow: 0 26px 44px rgba(38, 24, 15, 0.36);
}

.page-polaroid.hang-right:hover {
  transform: rotate(1deg) translateY(-7px);
}

.page-polaroid.hang-left:hover {
  transform: rotate(-1deg) translateY(-7px);
}

.page-polaroid.pin-gold { --pin-color: #bfd8c0; }
.page-polaroid.pin-green { --pin-color: #356b4b; }
.page-polaroid.pin-blue { --pin-color: #3d6d8d; }
.page-polaroid.crop-dog img { object-position: 64% center; }
.page-polaroid.crop-cat img { object-position: 84% center; }
.page-polaroid.crop-rabbit img { object-position: 98% center; }
.page-polaroid.memorial-photo img { object-position: center 22%; }
.page-polaroid.photo-snappy img { object-position: center 48%; }
.page-polaroid.photo-estelle img { object-position: center 35%; }
.page-polaroid.photo-gerti img { object-position: center 55%; }
.page-polaroid.photo-joshi img { object-position: center 42%; }
.page-polaroid.photo-beleza img {
  object-position: 65% 48%;
  filter: brightness(1.16) saturate(0.9) contrast(1.04);
}
.page-polaroid.photo-sido img { object-position: center 44%; }

@media (max-width: 1250px) {
  .page-polaroid,
  .page-polaroid.hang-left,
  .page-polaroid.hang-right {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    width: min(230px, 76vw);
    margin: 10px auto 38px;
  }

  .home-page .section.soft > .page-polaroid.hang-right {
    right: auto;
  }
}

@media (min-width: 1251px) {
  .home-page .split-section {
    padding-left: clamp(86px, 7vw, 112px);
  }
}

.eyebrow {
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(191, 216, 192, 0.2);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.split-section h2,
.donation h2,
.contact h2,
.info-section h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(2.8rem, 6vw, 6.1rem);
  text-wrap: balance;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.15rem, 2vw, 1.38rem);
}

.hero-actions,
.contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, background-position 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(125deg, #123326 0%, #3f7454 50%, #bfd8c0 135%);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: 0 14px 30px rgba(31, 77, 54, 0.3);
}

.button.primary:hover,
.button.primary:focus-visible,
.main-nav .nav-donate:hover,
.main-nav .nav-donate:focus-visible {
  background-position: 100% 50%;
  box-shadow: 0 17px 34px rgba(31, 77, 54, 0.38);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(12px);
}

.button.quiet {
  border: 1px solid var(--line);
  background: rgba(247, 251, 246, 0.9);
  color: var(--green-dark);
}

.intro,
.section,
.split-section,
.donation,
.contact {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 24px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(219, 231, 223, 0.78);
  border-radius: 34px 8px 34px 8px;
  background: rgba(247, 251, 246, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro div {
  min-height: 138px;
  padding: 28px;
  background: rgba(247, 251, 246, 0.9);
}

.stat {
  display: block;
  color: var(--green-dark);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1120px, calc(100% - 36px));
  margin: 22px auto 0;
}

.quick-card {
  display: grid;
  gap: 5px;
  min-height: 122px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 246, 0.92);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(30, 42, 37, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-card strong {
  color: var(--green-dark);
  font-size: 1.22rem;
}

.quick-card span {
  color: var(--muted);
  font-size: 1.02rem;
}

.quick-card.emergency {
  border-color: rgba(216, 116, 89, 0.42);
  background: #f8e7df;
}

.quick-card.donate {
  border-color: rgba(191, 216, 192, 0.8);
  background: #e9f3e9;
}

.intro p,
.animal-card p,
.help-grid p,
.donation-options span,
.timeline span,
.contact p,
.section-heading p,
.split-section p,
.donation p,
.info-grid p {
  color: var(--muted);
}

.section,
.split-section,
.donation,
.contact {
  padding-block: clamp(72px, 8vw, 118px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.split-section h2,
.donation h2,
.contact h2,
.info-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.animal-grid,
.help-grid,
.donation-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.animal-card,
.help-grid article,
.donation-options article,
.info-grid article,
.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 246, 0.93);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 36px rgba(18, 51, 38, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-card:hover,
.quick-card:focus-visible,
.animal-card:hover,
.help-grid article:hover,
.donation-options article:hover,
.info-grid article:hover,
.profile-card:hover {
  transform: translateY(-3px);
  border-color: rgba(63, 116, 84, 0.32);
  box-shadow: var(--shadow-soft);
}

.animal-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 30px;
}

.card-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--surface-soft), #fff8e7);
  color: var(--green-dark);
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(31, 77, 54, 0.1);
}

.card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.animal-card h3,
.help-grid h3 {
  margin: 22px 0 8px;
  font-size: 1.55rem;
}

.animal-card a {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
  font-size: 1.08rem;
}

.animal-card a::after {
  content: " ->";
}

.section-link {
  margin: 26px 0 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 80px);
  align-items: center;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(247, 251, 246, 0.93);
  box-shadow: 0 12px 26px rgba(30, 42, 37, 0.07);
}

.soft {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100% - 1120px) / 2));
  background: linear-gradient(180deg, rgba(237, 245, 239, 0.82), rgba(248, 251, 247, 0.92));
}

.help-grid article {
  padding: 28px;
}

.help-grid a {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin-top: 10px;
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
}

.help-grid a::after {
  content: " ->";
}

.donation {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 1fr);
  gap: clamp(24px, 6vw, 70px);
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  padding: clamp(72px, 8vw, 118px) 0;
  align-items: stretch;
}

.location-main {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 246, 0.93);
  box-shadow: var(--shadow-soft);
}

.location-main h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}

.location-main address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 1.16rem;
}

.location-main address strong {
  color: var(--green-dark);
}

.location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.map-card {
  display: grid;
  min-height: 320px;
  align-content: end;
  gap: 10px;
  padding: 30px;
  border: 1px solid rgba(31, 77, 54, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 28, 19, 0.05) 20%, rgba(10, 28, 19, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 28, 19, 0.18), transparent 60%),
    url("assets/tierheim-hero.png") 24% center / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow);
}

.map-card strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5);
}

.map-card span {
  font-size: 1.08rem;
  font-weight: 750;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58);
}

.donation-options {
  grid-template-columns: 1fr;
}

.donation-options article {
  display: grid;
  gap: 5px;
  padding: 24px;
}

.donation-options .paypal-option {
  border-color: rgba(0, 112, 186, 0.24);
  background: linear-gradient(135deg, rgba(238, 248, 255, 0.96), rgba(247, 251, 246, 0.96));
}

.button.paypal {
  width: fit-content;
  margin-top: 12px;
  background: linear-gradient(135deg, #003087, #0070ba 58%, #009cde);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 112, 186, 0.24);
}

.button.paypal:hover,
.button.paypal:focus-visible {
  box-shadow: 0 16px 32px rgba(0, 112, 186, 0.34);
}

.donation-note {
  padding: 14px;
  border-radius: 8px;
  background: rgba(191, 216, 192, 0.3);
  color: var(--ink);
  font-size: 0.94rem;
}

.donation-link {
  width: fit-content;
}

.donation-options strong {
  color: var(--green-dark);
  font-size: 1.22rem;
}

.info-section {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  padding: 0 0 clamp(64px, 8vw, 106px);
}

.info-section h2 {
  margin-bottom: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-grid article {
  min-height: 180px;
  padding: 26px;
}

.info-grid h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 1.25rem;
}

.info-grid p {
  margin: 0 0 10px;
}

.contact {
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.contact div {
  max-width: 650px;
}

.contact .button.primary {
  background: linear-gradient(125deg, #123326 0%, #3f7454 50%, #bfd8c0 135%);
  color: #fff;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: clamp(42px, 7vw, 78px) clamp(18px, 4vw, 56px);
  border-top: 1px solid #bfd8c0;
  background: #d2ebd2;
  color: #06100b;
  text-align: center;
}

.site-footer::after {
  content: "PYTRX";
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.7fr) minmax(0, 1.35fr);
  gap: 0;
  width: min(1460px, 100%);
  align-items: start;
}

.footer-legal p {
  margin: 0;
  min-height: 100%;
  padding: 4px clamp(18px, 2.5vw, 38px);
  color: #06100b;
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  line-height: 1.75;
  text-align: left;
}

.footer-legal p + p {
  border-left: 1px solid rgba(31, 77, 54, 0.22);
}

.footer-legal p:nth-child(2) {
  text-align: center;
}

.page-hero,
.profile-grid,
.submit-help {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.page-hero {
  padding: clamp(78px, 10vw, 128px) 0 clamp(32px, 5vw, 60px);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: clamp(64px, 8vw, 104px);
}

.profile-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
}

.profile-card.wide {
  grid-column: span 3;
  grid-template-columns: 210px minmax(0, 1fr);
}

.profile-gallery {
  position: relative;
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  width: 100%;
  height: clamp(280px, 24vw, 330px);
  min-height: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.profile-gallery::-webkit-scrollbar {
  height: 10px;
}

.profile-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.35);
}

.profile-gallery::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(31, 77, 54, 0.45);
}

.profile-slide {
  display: grid;
  min-height: 0;
  place-items: center;
  scroll-snap-align: start;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 900;
  text-align: center;
}

.profile-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  scroll-snap-align: start;
}

.profile-card:not(.wide) {
  grid-template-rows: clamp(280px, 24vw, 330px) minmax(0, 1fr);
}

.profile-card.wide .profile-gallery {
  height: 100%;
  min-height: 340px;
}

.profile-gallery.carousel-ready {
  display: block;
  overflow: hidden;
  padding-bottom: 34px;
  background: #fffdf8;
  scrollbar-width: none;
}

.profile-gallery.carousel-ready::-webkit-scrollbar {
  display: none;
}

.profile-gallery.carousel-ready > .carousel-slide {
  position: absolute;
  inset: 0 0 34px;
  width: 100%;
  height: calc(100% - 34px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 500ms ease, transform 700ms ease;
}

.profile-gallery.carousel-ready > .carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.carousel-dots {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fffdf8;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bfd8c0;
  box-shadow: 0 0 0 1px rgba(31, 77, 54, 0.16);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  transform: scale(1.25);
  outline: 2px solid rgba(63, 116, 84, 0.35);
  outline-offset: 3px;
}

.carousel-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--green-dark);
}

@media (prefers-reduced-motion: reduce) {
  .profile-gallery.carousel-ready > .carousel-slide {
    transition: none;
  }
}

.profile-gallery.cat .profile-slide {
  background: linear-gradient(135deg, #1f4d36, #7b9b75);
}

.profile-gallery.dog .profile-slide {
  background: linear-gradient(135deg, #123326, #be8e49);
}

.profile-gallery.small .profile-slide {
  background: linear-gradient(135deg, #45665b, #d87459);
}

.profile-gallery.assist .profile-slide {
  background: linear-gradient(135deg, #123326, #6f7f83);
}

.profile-content {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.profile-status {
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-content h2 {
  margin: 0 0 14px;
  font-size: 1.95rem;
  line-height: 1.12;
}

.profile-content dl {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.profile-content dl div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.profile-content dt {
  color: var(--green-dark);
  font-weight: 850;
}

.profile-content dd {
  margin: 0;
  color: var(--muted);
}

.profile-content p:not(.profile-status) {
  margin: 0 0 22px;
  color: var(--muted);
}

.profile-button {
  width: fit-content;
  margin-top: auto;
  background: linear-gradient(125deg, #123326 0%, #3f7454 50%, #bfd8c0 135%);
  color: #fff;
}

.profile-story-button {
  width: 100%;
  min-height: 48px;
  margin: 0 0 12px;
  padding: 11px 16px;
  border: 1px solid rgba(63, 116, 84, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef8ee, #bfd8c0);
  color: var(--green-deep);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.profile-story-button:hover,
.profile-story-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 77, 54, 0.16);
}

.profile-gallery.opens-profile {
  cursor: pointer;
}

.profile-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px 8px 24px 8px;
  background: transparent;
  box-shadow: 0 30px 90px rgba(10, 30, 20, 0.35);
}

.profile-dialog::backdrop {
  background: rgba(8, 22, 15, 0.64);
  backdrop-filter: blur(7px);
}

.profile-dialog-card {
  position: relative;
  padding: clamp(28px, 6vw, 54px);
  background:
    linear-gradient(120deg, rgba(191, 216, 192, 0.35), transparent 36%),
    #fffdf8;
  color: var(--ink);
}

.profile-dialog-card h2 {
  margin: 0 0 28px;
  font-size: clamp(2.2rem, 6vw, 4.3rem);
  line-height: 1;
}

.profile-dialog-card h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 1.28rem;
}

.profile-story p {
  color: var(--muted);
}

.profile-chronicle {
  margin-top: 30px;
}

.profile-chronicle ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-chronicle li {
  display: grid;
  grid-template-columns: minmax(90px, 0.28fr) 1fr;
  gap: 16px;
  padding: 16px;
  border-left: 4px solid #bfd8c0;
  border-radius: 4px 10px 10px 4px;
  background: #eef8ee;
}

.profile-chronicle li span {
  color: var(--muted);
}

.profile-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

.submit-help {
  margin-bottom: clamp(64px, 8vw, 104px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(215, 236, 215, 0.92), rgba(247, 251, 246, 0.82));
}

.submit-help h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.submit-help p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.archive-section {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  padding-bottom: clamp(46px, 7vw, 86px);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.archive-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 26px 116px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 246, 0.93);
  box-shadow: var(--shadow-soft);
}

.archive-animal-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(63, 116, 84, 0.14);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(31, 77, 54, 0.1);
}

.archive-card strong {
  color: var(--green-dark);
  font-size: 1.45rem;
}

.archive-card span {
  color: var(--gold);
  font-weight: 850;
}

.archive-card p {
  margin: 0;
  color: var(--muted);
}

.social-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 70px);
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  padding: clamp(72px, 8vw, 118px) 0;
  align-items: start;
}

.social-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}

.social-section p:not(.eyebrow) {
  color: var(--muted);
}

.social-links {
  display: grid;
  gap: 16px;
}

.social-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 246, 0.93);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(63, 116, 84, 0.32);
  box-shadow: var(--shadow);
}

.social-card strong {
  color: var(--green-dark);
  font-size: 1.45rem;
}

.social-card span {
  color: var(--muted);
}

.social-card.facebook {
  border-left: 6px solid #4267b2;
}

.social-card.instagram {
  border-left: 6px solid #c13584;
}

.social-card.tiktok {
  border-left: 6px solid #25f4ee;
  background:
    linear-gradient(105deg, rgba(37, 244, 238, 0.08), rgba(254, 44, 85, 0.05) 45%, transparent 72%),
    rgba(247, 251, 246, 0.93);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 18px;
  align-items: center;
  justify-content: center;
}

.modal:target {
  display: flex;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 27, 0.58);
  backdrop-filter: blur(7px);
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: clamp(24px, 5vw, 38px);
  border-radius: 8px;
  background: rgba(247, 251, 246, 0.97);
  box-shadow: 0 28px 80px rgba(13, 26, 21, 0.3);
  backdrop-filter: blur(18px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.modal-panel h2 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
}

.modal-lead,
.modal-panel p:not(.eyebrow) {
  color: var(--muted);
}

.emergency-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}

.emergency-guide section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-tint);
}

.emergency-guide section:first-child {
  border-color: rgba(216, 116, 89, 0.38);
  background: #f8e7df;
}

.emergency-guide h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 1.2rem;
}

.emergency-guide ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.modal-numbers {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.modal-numbers a {
  display: grid;
  gap: 4px;
  padding: 20px;
  border-radius: 8px;
  background: var(--surface-soft);
  text-decoration: none;
}

.modal-numbers span {
  color: var(--muted);
  font-weight: 750;
}

.modal-numbers strong {
  color: var(--green-dark);
  font-size: 1.7rem;
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    top: 0;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    margin: 0;
    border-width: 0 0 1px;
    gap: 10px;
    padding: 10px 14px 12px;
    border-radius: 0 0 22px 22px;
    background: rgba(18, 12, 8, 0.87);
    box-shadow: 0 5px 0 rgba(191, 216, 192, 0.88), 0 14px 30px rgba(11, 7, 4, 0.16);
    backdrop-filter: blur(18px) saturate(1.1);
    will-change: transform;
    transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease, box-shadow 220ms ease;
  }

  .site-header.nav-hidden {
    opacity: 0.97;
    transform: translateY(calc(-100% - 18px));
  }

  .brand {
    width: 100%;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

  .main-nav a {
    display: grid;
    place-items: center;
    padding-inline: 8px;
    text-align: center;
  }

  .hero {
    min-height: 650px;
    margin-top: 0;
    padding-top: 0;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(13, 26, 21, 0.78), rgba(13, 26, 21, 0.38) 65%, rgba(220, 239, 220, 0.92));
  }

  .hero-overlay {
    margin: 0 auto;
    padding-top: 34px;
  }

  .intro,
  .quick-actions,
  .animal-grid,
  .help-grid,
  .split-section,
  .donation,
  .location-section,
  .social-section,
  .info-grid,
  .profile-grid,
  .archive-grid,
  .profile-card.wide {
    grid-template-columns: 1fr;
  }

  .pinboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 28px;
  }

  .profile-card.wide {
    grid-column: auto;
  }

  .intro {
    margin-top: 18px;
  }

  .timeline div {
    flex-direction: column;
    gap: 3px;
  }

  .emergency-guide {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-legal p,
  .footer-legal p:nth-child(2) {
    padding: 0;
    text-align: center;
  }

  .footer-legal p + p {
    padding-top: 20px;
    border-top: 1px solid rgba(31, 77, 54, 0.22);
    border-left: 0;
  }
}

@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-nav a {
    min-height: 43px;
    padding: 7px 5px;
    font-size: 0.76rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .main-nav .nav-donate {
    grid-column: 1 / -1;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 2.7rem);
  }

  .hero-overlay {
    padding-inline: 32px;
  }

  .hero p:not(.eyebrow) {
    font-size: 1.05rem;
  }

  .pinboard {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-inline: 28px;
  }

  .polaroid {
    width: min(310px, 100%);
    margin-inline: auto;
  }

  .polaroid.tilt-right,
  .polaroid.tilt-soft {
    margin-top: 0;
  }

  .hero-actions .button,
  .contact .button {
    width: 100%;
  }

  .intro div,
  .animal-card,
  .help-grid article,
  .donation-options article {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
