/* ============================================================
   Tierphysio Allgäu — Kathrin Kurz
   Premium & ruhig: dunkles Tannengrün, warmes Creme, Bronze-Akzent
   Schriften: Cormorant Garamond (Überschriften) + Mulish (Text)
   ============================================================ */

:root {
  --ink: oklch(0.26 0.025 165);          /* dunkles Tannengrün */
  --ink-soft: oklch(0.33 0.03 165);
  --cream: oklch(0.972 0.008 85);        /* warmes Weiß */
  --sand: oklch(0.935 0.014 85);         /* Sand */
  --line: oklch(0.86 0.015 95);
  --bronze: oklch(0.58 0.075 70);        /* Akzent Bronze */
  --sage: oklch(0.58 0.075 150);         /* Akzent Salbei */
  --text: oklch(0.30 0.02 160);
  --text-soft: oklch(0.45 0.02 150);
  --on-dark: oklch(0.96 0.01 90);
  --on-dark-soft: oklch(0.82 0.015 110);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Mulish", "Helvetica Neue", Helvetica, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px -24px oklch(0.26 0.025 165 / 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }

.eyebrow {
  font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--bronze); margin-bottom: 18px;
}
.dark .eyebrow { color: oklch(0.78 0.08 80); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.972 0.008 85 / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand .brand-name { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; white-space: nowrap; }
.brand .brand-sub { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bronze); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  text-decoration: none; color: var(--text); font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.02em; padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--bronze); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  padding: 13px 26px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: var(--ink-soft); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-primary { background: var(--on-dark); color: var(--ink); }
.dark .btn-primary:hover { background: oklch(1 0 0); }
.dark .btn-ghost { border-color: oklch(0.96 0.01 90 / 0.35); color: var(--on-dark); }
.dark .btn-ghost:hover { border-color: var(--on-dark); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.dark { background: var(--ink); color: var(--on-dark-soft); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }

.hero { position: relative; overflow: clip; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.85fr; align-items: center;
  gap: clamp(40px, 6vw, 90px); padding: clamp(64px, 9vh, 120px) 0;
}
.hero h1 { font-size: clamp(42px, 5.4vw, 72px); }
.hero .lede { font-size: clamp(17px, 1.5vw, 20px); max-width: 52ch; margin-top: 22px; }
.hero .lede em { font-family: var(--serif); font-style: italic; font-size: 1.18em; color: var(--on-dark); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.hero-figure { position: relative; }
.hero-figure::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid oklch(0.78 0.08 80 / 0.55); border-radius: var(--radius);
}
.hero-figure img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  object-position: 50% 0%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-figure figcaption {
  position: relative; margin-top: 14px; font-size: 12px; letter-spacing: 0.08em;
  color: var(--on-dark-soft); text-transform: uppercase;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 44px;
  padding-top: 28px; border-top: 1px solid oklch(0.96 0.01 90 / 0.18);
  font-size: 14px;
}
.hero-meta strong { color: var(--on-dark); font-weight: 700; display: block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 2px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vh, 130px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vh, 56px); }
.section-head h2 { font-size: clamp(32px, 3.6vw, 48px); }
.section-head p { margin-top: 16px; color: var(--text-soft); font-size: 17.5px; }
.dark .section-head p { color: var(--on-dark-soft); }

/* Philosophie */
.philo .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.philo-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.philo h2 { font-size: clamp(32px, 3.6vw, 46px); }
.philo .big-quote { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 25px); color: var(--ink); margin-top: 22px; }
.philo p + p { margin-top: 16px; }
.philo .body-copy { margin-top: 22px; color: var(--text-soft); }

/* Leistungen */
.services { background: var(--sand); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 28px;
}
.service-card h3 { font-size: 25px; margin-bottom: 6px; }
.service-card .card-sub { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); font-weight: 700; }
.service-card ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.service-card li { padding-left: 22px; position: relative; font-size: 15.5px; }
.service-card li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--sage); opacity: 0.55;
}
/* Foto-Strip Leistungen */
.photo-strip { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.mobile-note {
  margin-top: 26px; display: flex; gap: 14px; align-items: baseline;
  font-size: 15.5px; color: var(--text-soft);
}
.mobile-note strong { color: var(--ink); }

/* Indikationen */
.indi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.indi-card {
  border: 1px solid oklch(0.96 0.01 90 / 0.16); border-radius: var(--radius);
  padding: 34px 32px; background: oklch(0.30 0.027 165);
}
.indi-card h3 { font-size: 27px; display: flex; align-items: baseline; gap: 12px; }
.indi-card h3 span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: oklch(0.78 0.08 80); font-weight: 700; font-family: var(--sans); }
.indi-card ul { margin: 20px 0 0; padding: 0; list-style: none; columns: 1; }
.indi-card li { padding: 7px 0 7px 22px; position: relative; font-size: 15px; break-inside: avoid; }
.indi-card li::before {
  content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 8px;
  transform: rotate(45deg); background: oklch(0.78 0.08 80 / 0.7);
}
.vet-note {
  margin-top: 26px; padding: 20px 24px; border-radius: var(--radius);
  background: oklch(0.96 0.01 90 / 0.07); border: 1px solid oklch(0.96 0.01 90 / 0.2);
  font-size: 15px; color: var(--on-dark);
}

/* Preise */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: oklch(1 0 0 / 0.55);
  overflow: hidden; transition: box-shadow 0.25s, border-color 0.25s;
}
.price-card[open] { box-shadow: var(--shadow); border-color: var(--bronze); }
.price-card summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px;
  padding: 22px 26px; user-select: none;
}
.price-card summary::-webkit-details-marker { display: none; }
.price-card summary:hover { background: oklch(1 0 0 / 0.7); }
.price-name { flex: 1; }
.price-name .p-title { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.price-name .p-kind { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze); font-weight: 700; margin-top: 3px; }
.price-tag { font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.price-chev { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; flex: none; transition: transform 0.3s, border-color 0.3s; }
.price-chev::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translate(-50%, -65%) rotate(45deg); }
.price-card[open] .price-chev { transform: rotate(180deg); border-color: var(--bronze); }
.price-body { padding: 0 26px 24px; font-size: 15.5px; color: var(--text-soft); }
.price-body p + p { margin-top: 8px; }

.price-notes {
  margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.note-card { background: var(--sand); border-radius: var(--radius); padding: 26px 28px; font-size: 15px; color: var(--text-soft); }
.note-card h3 { font-size: 21px; margin-bottom: 10px; }
.note-card ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.small-print { margin-top: 26px; font-size: 13.5px; color: var(--text-soft); }

/* Kurse */
.course-row { display: flex; flex-wrap: wrap; gap: 12px; }
.course-chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px;
  font-size: 15px; font-weight: 600; color: var(--ink); background: oklch(1 0 0 / 0.5);
}

/* Über mich */
.about { background: var(--sand); }
.about .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about-figure { position: sticky; top: 110px; }
.about-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-figure figcaption { margin-top: 12px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.about h2 { font-size: clamp(32px, 3.6vw, 46px); }
.about .body-copy { margin-top: 22px; color: var(--text-soft); }
.about .body-copy p + p { margin-top: 14px; }
.about .motto {
  margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink);
  border-left: 2px solid var(--bronze); padding-left: 20px;
}
.team { margin-top: clamp(48px, 7vh, 72px); }
.team h3 { font-size: 30px; font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; }
.team > p { margin-top: 8px; color: var(--text-soft); }
.team-hint { font-size: 13.5px !important; color: var(--bronze) !important; font-weight: 700; letter-spacing: 0.06em; }

/* --- Flip-Karten --- */
.team-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { position: relative; aspect-ratio: 3 / 4.2; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.team-card-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: perspective(1400px);
  transition: transform 0.7s cubic-bezier(0.34, 1.3, 0.5, 1),
              left 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-card:hover .team-card-inner,
.team-card:focus-visible .team-card-inner,
.team-card.expanded .team-card-inner { transform: perspective(1400px) rotateY(180deg); }
.team-card.expanded .team-card-inner { box-shadow: 0 40px 120px -20px oklch(0.1 0.02 165 / 0.6); border-radius: var(--radius); }

/* Abdunkelung hinter der vergrößerten Karte */
.team-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: oklch(0.2 0.02 165 / 0.55);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.45s ease;
}
.team-backdrop.show { opacity: 1; pointer-events: auto; }

/* Größere Typografie, sobald die Karte vergrößert ist */
.team-card.expanded .team-back { padding: 40px 36px; }
.team-card.expanded .team-back .paw { font-size: 34px; margin-bottom: 14px; }
.team-card.expanded .team-back h4 { font-size: 30px; }
.team-card.expanded .team-back .team-meta { font-size: 13.5px; margin-top: 12px; }
.team-card.expanded .team-back .team-desc { font-size: 17.5px; line-height: 1.7; margin-top: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .team-card:hover:not(.expanded) { animation: card-wiggle 0.5s ease 1; }
  @keyframes card-wiggle {
    0% { transform: rotate(0deg) scale(1); }
    30% { transform: rotate(-1.6deg) scale(1.025); }
    60% { transform: rotate(1.2deg) scale(1.025); }
    100% { transform: rotate(0deg) scale(1); }
  }
}

.team-front, .team-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); overflow: hidden;
}
.team-front { box-shadow: var(--shadow); }
.team-front img { width: 100%; height: 100%; object-fit: cover; }
.team-front-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 16px;
  background: linear-gradient(to top, oklch(0.22 0.022 165 / 0.85), transparent);
}
.team-front-label h4 { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--on-dark); margin: 0; line-height: 1.1; }
.team-front-label .team-meta { margin: 4px 0 0; font-size: 12.5px; color: oklch(0.88 0.02 100); font-weight: 600; letter-spacing: 0.04em; }

.team-back {
  transform: rotateY(180deg);
  background: var(--ink); border: 1px solid oklch(0.96 0.01 90 / 0.15);
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 22px; text-align: center;
}
.team-back .paw { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.team-back h4 { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--on-dark); margin: 0; line-height: 1.15; }
.team-back .team-meta { margin: 8px 0 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: oklch(0.78 0.08 80); line-height: 1.7; }
.team-back .team-desc { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--on-dark-soft); text-wrap: pretty; }

/* Kontakt */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info h2 { font-size: clamp(32px, 3.6vw, 46px); }
.contact-info > p { margin-top: 16px; }
.contact-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; font-size: 16px; }
.contact-list a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid oklch(0.78 0.08 80 / 0.5); }
.contact-list a:hover { border-bottom-color: oklch(0.78 0.08 80); }
.contact-list .label { display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: oklch(0.78 0.08 80); font-weight: 700; margin-bottom: 2px; }
.hours-table { margin-top: 30px; border-top: 1px solid oklch(0.96 0.01 90 / 0.18); }
.hours-table .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid oklch(0.96 0.01 90 / 0.12); font-size: 15px; }
.hours-table .row span:last-child { color: var(--on-dark); font-weight: 600; }
.socials { display: flex; gap: 12px; margin-top: 28px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px; border: 1px solid oklch(0.96 0.01 90 / 0.3);
  color: var(--on-dark); text-decoration: none; font-size: 14px; font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
}
.socials a:hover { border-color: var(--on-dark); background: oklch(0.96 0.01 90 / 0.08); }

.contact-form {
  background: var(--cream); border-radius: var(--radius); padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow); color: var(--text);
}
.contact-form h3 { font-size: 27px; }
.contact-form .form-sub { margin-top: 8px; font-size: 15px; color: var(--text-soft); }
.form-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--text);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 15px;
  background: oklch(1 0 0 / 0.7); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px oklch(0.58 0.075 70 / 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot .required-hint { font-size: 13px; color: var(--text-soft); }
.form-status { grid-column: 1 / -1; font-size: 14.5px; color: var(--sage); font-weight: 600; display: none; }
.form-status.show { display: block; }

/* Footer */
.site-footer { background: oklch(0.21 0.022 165); color: var(--on-dark-soft); padding: 44px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid oklch(0.96 0.01 90 / 0.3); }
.site-footer a:hover { border-bottom-color: var(--on-dark); }
.footer-brand { font-family: var(--serif); font-size: 19px; color: var(--on-dark); }
.footer-credit { font-size: 12.5px; }

/* ---------- Scroll-Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: 0.1s; }
  .reveal-d2 { transition-delay: 0.2s; }
  .reveal-d3 { transition-delay: 0.3s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 18px 4vw 26px; gap: 4px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: 12px; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { display: none; }

  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; }
  .philo .wrap, .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .about-figure { position: static; max-width: 460px; }
  .service-grid { grid-template-columns: 1fr; }
  .indi-grid, .price-grid, .price-notes { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { aspect-ratio: 3 / 4; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { aspect-ratio: 4 / 4.6; max-width: 380px; width: 100%; margin-inline: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .price-card summary { padding: 18px 18px; gap: 12px; }
  .price-tag { font-size: 22px; }
}
