/* =============================================================================
   VETERINARIUM – STYLES
   Modern, Apple-inspired: viel Weißraum, große Typografie, sanfte Tiefe.
   Markenfarben unten in :root – hier zentral änderbar.
   ============================================================================= */

:root {
  --red:        #d11f27;   /* Markenrot */
  --red-dark:   #a8161d;
  --ink:        #111114;   /* fast schwarz */
  --ink-soft:   #3a3a40;
  --muted:      #6b6b73;
  --line:       #ececef;
  --bg:         #ffffff;
  --bg-alt:     #f6f6f8;
  --white:      #ffffff;
  --radius:     20px;
  --radius-sm:  12px;
  --shadow:     0 10px 40px rgba(17,17,20,.08);
  --shadow-lg:  0 24px 70px rgba(17,17,20,.14);
  --maxw:       1160px;
  --header-h:   82px;
  --ease:       cubic-bezier(.16,1,.3,1);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typografie ---------- */
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(209,31,39,.32); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.24); }
.btn--emergency { background: #fff; color: var(--red); font-weight: 700; box-shadow: var(--shadow); }
.btn--emergency::before { content: "📞"; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink); color: #fff; font-size: .85rem; line-height: 1.7;
  display: flex; align-items: center; justify-content: center; gap: .3rem 1.5rem;
  padding: .65rem 24px; flex-wrap: wrap;
}
.topbar__status { opacity: .85; }
.topbar__status::before { content: "●"; color: var(--red); margin-right: .5rem; font-size: .7em; vertical-align: middle; }
.topbar__phone { font-weight: 600; }
.topbar__phone:hover { color: #ffd2d4; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 2px 20px rgba(0,0,0,.04); }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__icon { height: 56px; width: auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name strong { font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.brand__name small { font-size: .72rem; color: var(--muted); letter-spacing: .015em; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav__cta { background: var(--ink); color: #fff !important; padding: .55rem 1.2rem; border-radius: 999px; }
.nav__cta:hover { background: var(--red); }
.lang-select {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: .4rem 1.9rem .4rem .9rem; transition: border-color .2s, background .2s;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23111114' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center;
}
.lang-select:hover { border-color: var(--ink); }
.lang-select:focus { outline: none; border-color: var(--red); }
.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
/* Robust gegen kurze Viewports (In-App-Browser) und alte Safari-Flexbox-Bugs:
   Padding stellt sicher, dass der Inhalt IMMER vollständig sichtbar ist,
   auch wenn min-height/Zentrierung auf dem Gerät fehlschlägt. */
.hero { position: relative; box-sizing: border-box; min-height: 94vh; display: flex; align-items: center;
        color: #fff; overflow: hidden; padding: 48px 0 88px; }
@supports (min-height: 100svh) {
  /* svh = sichtbare Höhe OHNE Browser-Leisten → kein Springen beim Scrollen (iOS 15.4+) */
  .hero { min-height: 100svh; }
}
.hero__bg {
  /* Fast maximal rausgezoomt (108%) mit gerade genug Reserve für einen
     spürbaren Parallax-Effekt (±28px, siehe app.js). Noch weniger Überzeichnung
     würde die Scroll-Bewegung praktisch unsichtbar machen. */
  position: absolute; left: 0; right: 0; top: -4%; height: 108%;
  background: url("assets/building-evening.jpg") center 62% / cover no-repeat;
  will-change: transform; transform: translate3d(0,0,0);
  /* Parallax per transform (funktioniert auch flüssig auf iOS/Handy) */
}
.hero__overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background:
  linear-gradient(100deg, rgba(8,8,12,.66) 0%, rgba(8,8,12,.4) 50%, rgba(8,8,12,.26) 100%),
  linear-gradient(0deg, rgba(8,8,12,.35) 0%, rgba(8,8,12,0) 42%); }
.hero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }
.hero__opening {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700;
  font-size: .95rem; /* Fallback für altes iOS ohne clamp() */
  font-size: clamp(.85rem, 1.4vw, 1rem); letter-spacing: .02em;
  padding: .6rem 1.3rem; border-radius: 999px; margin-bottom: 1.6rem;
  box-shadow: 0 10px 30px rgba(209,31,39,.45);
}
.hero__brand { font-size: 2.6rem; font-size: clamp(2.1rem, 10.5vw, 7rem); font-weight: 800; letter-spacing: .01em; line-height: .92; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 6px 34px rgba(0,0,0,.6); }
.hero__brandsub { font-size: 1.15rem; font-size: clamp(1.05rem, 2.3vw, 1.7rem); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: .7rem; opacity: .95; }
.hero__tagline { font-size: 1.1rem; font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-weight: 600; margin-top: 1.6rem; }
.hero__subtitle { font-size: 1.05rem; font-size: clamp(1rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.85); max-width: 52ch; margin: .8rem 0 2.2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scrollhint { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; transform: translateX(-50%); z-index: 3; }
.hero__scrollhint::before { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.7s infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 35%{opacity:1} 100%{opacity:0;transform:translate(-50%,15px)} }

/* ---------- Highlights ---------- */
.highlights { margin-top: -64px; position: relative; z-index: 5; }
.highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.highlights__grid .card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s;
  /* Lange Wörter (z. B. „Versorgungszentrum") dürfen das Raster auf schmalen
     Displays nicht sprengen — sonst ragt die rechte Karte aus dem Bildschirm. */
  min-width: 0;
}
.card h3 { overflow-wrap: break-word; hyphens: auto; }
.highlights__grid .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__icon { font-size: 1.7rem; }
.card h3 { margin: .7rem 0 .35rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 130px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 60ch; margin-bottom: 3rem; }
.section__head p { color: var(--muted); font-size: 1.15rem; margin-top: .8rem; }

/* ---------- Leistungen ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service__icon { font-size: 2rem; }
.service h3 { margin: .9rem 0 .5rem; }
.service p { color: var(--muted); }

/* ---------- Über uns ---------- */
.about__top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.about__text p { margin-top: 1rem; color: var(--ink-soft); }
.about__text .lead { color: var(--ink); margin-bottom: .5rem; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.team__title { margin-bottom: 1.8rem; }
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.member__name { font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.member__role { color: var(--red); font-weight: 600; font-size: .9rem; margin: .3rem 0 .9rem; text-transform: uppercase; letter-spacing: .04em; }
.member__bio { color: var(--muted); font-size: .96rem; }

/* ---------- Notfall ---------- */
.emergency { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; padding: clamp(48px, 6vw, 80px) 0; }
.emergency__inner { display: flex; align-items: flex-start; gap: 22px; flex-wrap: nowrap; }
.emergency__icon { font-size: 2.4rem; line-height: 1.1; flex-shrink: 0; }
.emergency h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.emergency p { max-width: 70ch; margin-top: .7rem; color: rgba(255,255,255,.95); }
.emergency__note { font-size: .9rem; opacity: .8; margin-top: 1rem !important; }

/* ---------- Booking ---------- */
.booking__inner { max-width: 760px; margin: 0 auto; }
.booking__plugin {
  background: var(--bg-alt); border: 2px dashed #d7d7dd; border-radius: var(--radius);
  padding: 1.4rem 1.6rem; text-align: center; color: var(--muted); font-size: .97rem; margin-bottom: 1.8rem;
}
.booking__form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking__form input, .booking__form textarea {
  font: inherit; padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.booking__form input:focus, .booking__form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(209,31,39,.12);
}
.booking__form .btn { align-self: flex-start; }
.form__feedback { font-size: .95rem; font-weight: 500; min-height: 1.2em; }
.form__feedback.ok { color: #1a8a3b; }
.form__feedback.err { color: var(--red); }

/* ---------- Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact__list { list-style: none; margin: 1.6rem 0; display: flex; flex-direction: column; gap: 1.1rem; }
.contact__list li { display: flex; flex-direction: column; }
.contact__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .2rem; }
.contact__list a:hover { color: var(--red); }
.contact__soon { color: var(--muted); cursor: default; }
.contact__soon:hover { color: var(--muted); }
.contact__maps { color: var(--red); font-weight: 600; }
.contact__maps::after { content: " →"; }
.contact__hoursTitle { margin-bottom: 1.2rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--ink-soft); }

/* ---------- Tiere / Species (vollständiges Bild, kein Beschnitt) ---------- */
.species { position: relative; overflow: hidden; background: #0a0a0e; }
.species__img { display: block; width: 100%; height: auto; }
.species__overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(0deg, rgba(8,8,12,.82) 0%, rgba(8,8,12,.15) 42%, rgba(8,8,12,0) 68%); }
.species__text { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; padding-bottom: 3rem; }
.species__text h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
.species__text p { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.92); margin-top: .5rem; max-width: 46ch; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 0 0; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__badge { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.footer__badge img { height: 46px; width: auto; display: block; }
.footer__brand strong { color: #fff; letter-spacing: .05em; display: block; }
.footer__holding { display: block; font-size: .82rem; opacity: .7; margin-top: .55rem; }
.footer__legal { text-align: right; }
.footer__legal p { margin-top: .3rem; }
.footer__links a { color: rgba(255,255,255,.88); font-weight: 500; }
.footer__links a:hover { color: #fff; }
.footer__links span { margin: 0 .45rem; opacity: .45; }
.footer__bottom { margin-top: 36px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); text-align: left; font-size: .85rem; color: rgba(255,255,255,.65); max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.footer__bottom span { display: block; }
.footer__credit { opacity: .7; font-size: .82rem; margin-top: .4rem; text-align: left; }

/* ---------- Hinweis-Banner (z. B. „noch keine Leistungen") ---------- */
.notice-banner {
  background: #fff5f5; border: 1px solid #f1c7c9; color: #8a1419;
  border-radius: var(--radius-sm); padding: .9rem 1.2rem; font-weight: 600;
  margin: -1.6rem 0 2.4rem; font-size: .98rem;
}
.notice-banner::before { content: "ⓘ "; }

/* ---------- Karriere ---------- */
/* Karriere-Buttons: immer 2 Spalten (2×2), Breite so begrenzt, dass sie NIE
   das Logo-Wasserzeichen rechts überlappen – in allen Sprachen gleich. */
#careers .section__head { max-width: min(640px, 66%); }
.careers__jobs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  margin-top: .8rem; max-width: min(640px, 66%);
}
.job-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.3rem; font-weight: 600; color: var(--ink); font-size: .97rem; line-height: 1.25;
  min-height: 3.4rem; text-align: left;
  transition: border-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s;
}
a.job-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.job-btn__arrow { flex-shrink: 0; transition: transform .2s; }
a.job-btn:hover .job-btn__arrow { transform: translateX(4px); }
/* Stellenanzeigen ohne Link (Links folgen): nicht anklickbar, dezent gedämpft */
.job-btn--soon { cursor: default; opacity: .55; }
.careers__note { color: var(--muted); font-size: .92rem; margin-top: 1.5rem; max-width: min(640px, 66%); }

/* ---------- Logo-Wasserzeichen (dezent hinter Text auf hellen Flächen) ---------- */
#careers { position: relative; overflow: hidden; }
.careers__inner { position: relative; z-index: 1; }
.section__watermark {
  position: absolute; right: 6%; top: clamp(70px, 9vw, 130px); transform: none;
  width: 230px; max-width: 26%; opacity: .5; pointer-events: none; z-index: 0; user-select: none;
}

/* ---------- Publikation (Team) ---------- */
.member__langs { margin-top: .9rem; font-size: .9rem; color: var(--ink-soft); }
.member__langs strong { color: var(--ink); font-weight: 600; }
.member__pub { display: inline-block; margin-top: 1rem; font-size: .86rem; font-weight: 600; color: var(--red); line-height: 1.45; }
.member__pub:hover { text-decoration: underline; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Mobile-Menü offen ----------
   (keine Scroll-Sperre: Scrollen soll das Menü schließen) */

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__top { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
}
/* Navigation klappt früh ins Hamburger-Menü, damit sie NIE die Wortmarke überlappt
   (gilt für Tablet/iPad & verkleinerte Fenster, in allen Sprachen) */
@media (max-width: 1024px) {
  .menu-btn { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 1.2rem 24px 1.8rem; gap: 1.1rem; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.05rem; }
  .nav__cta, .lang-select { text-align: center; }
  .lang-select { width: 100%; }
}
@media (max-width: 720px) {
  /* Topbar: kleiner, darf umbrechen, nichts abgeschnitten (Punkt 9) */
  .topbar { font-size: .72rem; gap: .4rem 1rem; padding: .45rem 14px; line-height: 1.5; }
  /* Logo + Slogan bleiben sichtbar, Icon nicht abgeschnitten (Punkte 1 & 8) */
  .header { padding: 0 16px; }
  .brand { gap: .5rem; max-width: 72%; }
  .brand__icon { height: 44px; }
  .brand__name strong { font-size: 1rem; }
  .brand__name small { display: block; font-size: .6rem; }
  .highlights { margin-top: -40px; }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .highlights__grid .card { padding: 1.1rem; }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: .85rem; }
  /* Handy: Bildausschnitt weiter links gefasst, damit der Fassaden-Schriftzug
     (Logo am Gebäude) auch auf schmalen Displays sichtbar bleibt */
  .hero__bg { background-position: 24% 66%; }
  /* Tierfoto-Band: Schrift liegt AUF dem Bild, aber kompakt genug, dass sie
     auf dem flachen Handy-Bild im unteren Drittel bleibt (Pfoten-/Bodenhöhe,
     nie auf Augenhöhe der Tiere). Kein Balken — Bandhöhe = Bildhöhe. */
  .species__text { padding-bottom: .9rem; }
  .species__text h2 { font-size: 1.12rem; }
  .species__text p { font-size: .8rem; margin-top: .25rem; }
  .hero__brand { letter-spacing: 0; }
  .hero__brandsub { letter-spacing: .08em; }
  .emergency__inner { flex-wrap: wrap; }
  /* Leistungs-Kacheln 2-spaltig & kompakter (Punkt 4) */
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service { padding: 1.15rem; }
  .service__icon { font-size: 1.6rem; }
  .service h3 { font-size: 1rem; margin: .6rem 0 .35rem; }
  .service p { font-size: .85rem; }
  .team__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  /* Karriere-Buttons auf dem Handy untereinander (volle Breite) */
  #careers .section__head, .careers__note { max-width: none; }
  .careers__jobs { grid-template-columns: 1fr; max-width: none; }
  .job-btn { justify-content: space-between; }
  /* Wasserzeichen bleibt auf dem Handy sichtbar (dezent hinter den Buttons) */
  .section__watermark { display: block; width: 150px; max-width: 42%; opacity: .28; right: 4%; }
  .footer__inner, .footer__legal { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, .hero__bg { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
