/* =====================================================================
   Kleintierzentrum Nordheide — Design System
   Ruhig, vertrauenswürdig, medizinisch-klar
   Display: Lora · Body: Inter
   ===================================================================== */

:root {
  --forest-900: #163832;
  --forest-800: #1f4a41;
  --forest-700: #2a5f52;
  --forest-600: #35766a;

  --clay: #c98455;
  --clay-bright: #dda171;
  --clay-deep: #a3653c;

  --paper: #faf7f1;
  --white: #ffffff;
  --ink: #202b28;
  --slate: #5c6b66;
  --line: rgba(22, 56, 50, 0.12);
  --line-strong: rgba(22, 56, 50, 0.22);

  --on-forest: #eaf1ee;
  --on-forest-dim: #a9c2ba;

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(22, 56, 50, 0.06), 0 6px 16px -8px rgba(22, 56, 50, 0.14);
  --shadow-md: 0 2px 4px rgba(22, 56, 50, 0.05), 0 14px 28px -14px rgba(22, 56, 50, 0.28), 0 34px 60px -30px rgba(22, 56, 50, 0.3);
  --shadow-lg: 0 4px 8px rgba(22, 56, 50, 0.06), 0 24px 50px -20px rgba(22, 56, 50, 0.38);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 116px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--forest-900); }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn--primary { background: var(--clay); color: var(--white); box-shadow: 0 10px 26px -12px rgba(201, 132, 85, 0.7); }
.btn--primary:hover { background: var(--clay-deep); }
.btn--ghost { border-color: rgba(234, 241, 238, 0.5); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--ink { border-color: var(--line-strong); color: var(--forest-900); }
.btn--ink:hover { border-color: var(--forest-900); background: var(--forest-900); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; transition: height 0.4s var(--ease); }
.site-header.is-solid,
.site-header.is-scrolled {
  background: rgba(22, 56, 50, 0.94);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 1px 0 rgba(201, 132, 85, 0.18), 0 16px 40px -24px rgba(10, 24, 21, 0.6);
}
.site-header.is-scrolled { height: 64px; }
.site-header.is-scrolled .wrap { height: 64px; }

/* ---------- Info-Bar (Öffnungszeiten / Telefon) ---------- */
.info-bar {
  height: 40px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--clay-deep), var(--clay));
  flex-shrink: 0;
  transition: height 0.35s var(--ease), opacity 0.35s var(--ease);
}
.info-bar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
}
.info-bar__hours { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-bar__call { flex-shrink: 0; white-space: nowrap; display: flex; align-items: center; gap: 0.5rem; }
.info-bar a {
  color: var(--white);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease);
}
.info-bar a:hover { background: rgba(255, 255, 255, 0.36); }
.site-header.is-scrolled .info-bar { height: 0; opacity: 0; }

@media (max-width: 760px) {
  .info-bar__hours { display: none; }
  .info-bar__inner { justify-content: center; }
}
@media (max-width: 400px) {
  .info-bar__inner { font-size: 0.7rem; gap: 0.5rem; }
  .info-bar a { padding: 0.15rem 0.5rem; }
}

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--white); flex-shrink: 0; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.05; letter-spacing: -0.01em; white-space: nowrap; }
.brand__sub { display: block; font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay-bright); margin-top: 3px; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a {
  position: relative;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-forest-dim);
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav__cta { margin-left: 0.6rem; }

.burger {
  display: none;
  width: 40px; height: 40px;
  border: none; background: none;
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: ''; position: absolute; left: 9px; right: 9px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger::before { top: 13px; }
.burger span { top: 19px; }
.burger::after { top: 25px; }

.nav-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); height: 100vh;
  background: var(--forest-900); z-index: 200; padding: 5.5rem 1.6rem 2rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer a { padding: 0.8rem 0.4rem; font-size: 1.02rem; color: var(--on-forest); border-bottom: 1px solid rgba(234,241,238,0.08); }
.nav-scrim {
  position: fixed; inset: 0; background: rgba(10,20,18,0.5); z-index: 150; opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.nav-scrim.is-visible { opacity: 1; visibility: visible; }

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest-900); color: var(--on-forest); }
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--white); }
.section--hero { padding-top: calc(var(--header-h) + 4.5rem); padding-bottom: 5rem; }

.head { max-width: 640px; margin-bottom: 2.6rem; }
.head p { color: var(--slate); font-size: 1.08rem; margin-top: 0.8rem; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--ink); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__kicker { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-deep); font-weight: 700; margin-bottom: 0.5rem; }
.card h3 { font-size: 1.22rem; margin-bottom: 0.6rem; }
.card p { color: var(--slate); font-size: 0.98rem; margin: 0; }
.card__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-weight: 600; color: var(--forest-700); font-size: 0.94rem; }
.card__link .arw { transition: transform 0.25s var(--ease); }
.card:hover .card__link .arw { transform: translateX(4px); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.6rem; }
.team-card { text-align: center; }
.team-card__photo {
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 1rem;
  box-shadow: var(--shadow-sm); border: 3px solid var(--white); outline: 1px solid var(--line);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--forest-900); }
.team-card__role { font-size: 0.86rem; color: var(--clay-deep); font-weight: 600; margin-top: 0.15rem; }
.team-card__info { text-align: left; font-size: 0.92rem; color: var(--slate); margin-top: 0.9rem; }
.team-card__info ul { padding-left: 1.1rem; margin: 0; }
.team-card__info li { margin-bottom: 0.4rem; }

/* ---------- Gallery / Lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery button { display: block; border: 0; padding: 0; margin: 0; background: none; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; background: rgba(10, 20, 18, 0.92); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__cap { color: var(--on-forest-dim); text-align: center; margin-top: 1rem; font-size: 0.9rem; }
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.6rem; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white); font-size: 1.4rem; border: none;
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }

/* ---------- Kontakt / Formular ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.info-list .k { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.info-list .v { font-size: 1rem; color: var(--ink); }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--forest-900); }
.field input, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(201, 132, 85, 0.18);
}

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: var(--on-forest-dim); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.footer-brand .brand__name { color: var(--white); }
.footer-coords { font-size: 0.86rem; color: var(--on-forest-dim); margin-top: 0.6rem; }
.site-footer h4 { color: var(--white); font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.94rem; }
.footer-links a:hover { color: var(--white); }
.footer-bar {
  display: flex; justify-content: space-between; padding-top: 2rem; border-top: 1px solid rgba(234,241,238,0.1);
  font-size: 0.84rem; color: var(--on-forest-dim); flex-wrap: wrap; gap: 0.6rem;
}

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
