/* =============================================================================
   Fellnasenservice Jana Pohl – Stylesheet
   Mobile-First, CSS-Variablen für einfache Farbanpassung.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   LOKALE SCHRIFT (DSGVO: NICHT von Google-Servern laden!)
   So bindest du eine eigene Schrift ein:
   1) WOFF2-Datei(en) nach assets/fonts/ legen (z. B. Nunito-Regular.woff2).
   2) Die @font-face-Blöcke unten aktivieren (Kommentar entfernen) und Dateinamen prüfen.
   Solange keine Datei vorhanden ist, greift der System-Font-Fallback (siehe --font-base).
   --------------------------------------------------------------------------- */
/*
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/Nunito-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/Nunito-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
*/

/* ---------------------------------------------------------------------------
   FARBPALETTE & DESIGN-TOKENS  – hier zentral anpassbar
   --------------------------------------------------------------------------- */
:root {
  /* Farbschema: Senfgelb · Grün · Orange · Braun (+ dezenter Leoprint-Akzent) */
  --color-bg:        #fbf5e9;   /* warmer Cremeton */
  --color-surface:   #fffdf7;   /* Karten/Flächen */
  --color-tint:      #f4e8cf;   /* sanfte Abschnittsfläche (senfcreme) */
  --color-highlight: #dbe7c9;   /* Grünton (Tier des Monats) – hebt sich klar ab */

  --color-text:      #33291d;   /* tiefes Braun, gut lesbar */
  --color-text-soft: #6e6044;   /* sekundärer Text (warmes Braun) */

  /* Orange = Haupt-Akzent (Buttons, Call-to-Action) */
  --color-accent:        #d9722e;
  --color-accent-dark:   #b95a1c;  /* Hover-Flächen */
  --color-accent-soft:   #f3d4b4;  /* helle Akzentfläche */
  /* Dunklere Variante NUR für Text auf hellem Grund – erfüllt WCAG AA (>4,5:1).
     Das helle Orange ist als Textfarbe zu kontrastarm. */
  --color-accent-text:   #9c4a12;

  /* Senfgelb (Flächen, z. B. Preis-Kopfzeile) */
  --color-mustard:       #d8a521;
  --color-mustard-soft:  #f0d488;

  /* Grün = zweiter Akzent */
  --color-secondary:      #6c8a43;
  --color-secondary-dark: #546c32;

  /* Braun (Footer, Rahmen, Tiefe) */
  --color-brown:     #6b4a2e;

  --color-border:    #e7d8bd;
  --color-focus:     #1d6b8c;   /* deutlich sichtbarer Fokusring */

  /* Schrift: "Nunito" zuerst (falls eingebunden), sonst System-Fonts */
  --font-base: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px rgba(90, 60, 40, 0.10);
  --shadow-sm: 0 4px 14px rgba(90, 60, 40, 0.08);

  --maxw: 1120px;
  --space: clamp(3rem, 7vw, 6rem);  /* vertikaler Abschnittsabstand */
}

/* ---------------------------------------------------------------------------
   RESET / BASIS
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-text); }

h1, h2, h3 { line-height: 1.2; color: var(--color-text); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 .75rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
p  { margin: 0 0 1rem; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* Sichtbarer Fokus für Tastaturnutzer */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Nur für Screenreader */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip-Link */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--color-accent); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius-sm); z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------------- */
.btn {
  display: inline-block; cursor: pointer; border: 0;
  font: inherit; font-weight: 700; text-decoration: none;
  padding: .85rem 1.6rem; border-radius: 999px;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
/* Dunkelbrauner Text auf Orange = barrierearm (Weiß auf Orange erfüllt WCAG AA nicht) */
.btn-primary { background: var(--color-accent); color: #2a2014; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--color-accent-text); border: 2px solid var(--color-accent-soft); }
.btn-ghost:hover { background: var(--color-accent-soft); transform: translateY(-2px); }

/* ---------------------------------------------------------------------------
   HEADER / NAV
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 245, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
/* Leoprint-Band ganz oben (Marken-Akzent, echtes Fell-Foto). Als normaler
   Block-Streifen, damit er die Navigation nicht überlappt. */
.site-header::before {
  content: ""; display: block; height: 24px;
  background-color: var(--color-mustard); /* Fallback, solange das Bild lädt */
  background-image: url("../assets/img/leoprint.webp");
  background-repeat: repeat-x;
  background-size: 220px auto;
  background-position: center;
  border-bottom: 1px solid rgba(58, 36, 16, 0.25);
}
.header-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--color-text); font-weight: 700; }
.brand-logo { height: 48px; width: auto; border-radius: 8px; }
.brand-logo--fallback { height: 40px; width: 40px; border-radius: 50%; } /* Pfoten-Symbol, falls Logo fehlt */
.brand-text { font-size: 1.1rem; }

.primary-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; align-items: center; }
.primary-nav a { text-decoration: none; color: var(--color-text); font-weight: 600; }
.primary-nav a:hover { color: var(--color-accent-text); }
.nav-cta { background: var(--color-accent); color: #2a2014 !important; padding: .5rem 1.1rem; border-radius: 999px; }
.nav-cta:hover { background: var(--color-accent-dark); color: #fff !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle-bar { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--color-text); border-radius: 3px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    box-shadow: var(--shadow-sm);
  }
  .primary-nav.open { max-height: 26rem; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .primary-nav li { border-bottom: 1px solid var(--color-border); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding: .9rem .2rem; }
  .nav-cta { text-align: center; margin-top: .6rem; }
}

/* ---------------------------------------------------------------------------
   SECTIONS allgemein
   --------------------------------------------------------------------------- */
.section { padding-block: var(--space); }
.section-tint { background: var(--color-tint); }
.section-highlight { background: var(--color-highlight); }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-lead { color: var(--color-text-soft); font-size: 1.08rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--color-accent-text); margin: 0 0 .4rem; }
.note-small { font-size: .9rem; color: var(--color-text-soft); margin-top: 1rem; }

/* ---------------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); background:
   radial-gradient(1200px 500px at 80% -10%, var(--color-accent-soft) 0%, transparent 60%), var(--color-bg); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; color: var(--color-secondary-dark); }
.hero-slogan { font-size: 1.15rem; color: var(--color-text-soft); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
/* Vorteils-Leiste unter den Hero-Buttons */
.hero-usps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 0; margin: 1.4rem 0 0; }
.hero-usps li {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 999px; padding: .4rem .9rem;
  font-size: .9rem; font-weight: 600; color: var(--color-text-soft);
  box-shadow: var(--shadow-sm);
}
/* Hochformat-Foto sanft beschneiden, damit der Hero nicht zu hoch wird;
   object-position hält Katzenkopf + Fellberg im Bild */
.hero-image img {
  border-radius: var(--radius); box-shadow: var(--shadow); width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-slogan { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-usps { justify-content: center; }
  .hero-image { order: -1; }
}

/* ---------------------------------------------------------------------------
   ÜBER JANA
   --------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-points { list-style: none; padding: 0; margin: 1rem 0 0; }
.about-points li { padding: .35rem 0; color: var(--color-text-soft); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   KARTEN (Leistungen)
   --------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon { font-size: 2.4rem; line-height: 1; margin-bottom: .6rem; }
.card-list { list-style: none; padding: 0; margin: .75rem 0 0; }
.card-list li { padding: .25rem 0; padding-left: 1.4rem; position: relative; color: var(--color-text-soft); }
.card-list li::before { content: "🐾"; position: absolute; left: 0; font-size: .85rem; }

/* Foto in einer Leistungs-Karte (z. B. Mobile Tierbetreuung) */
.card-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 42%;
  border-radius: var(--radius-sm); margin-top: .9rem; box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------------------
   TIER DES MONATS
   --------------------------------------------------------------------------- */
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tier-image { position: relative; }
.tier-image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
/* „Tier des Monats“-Badge mit Leoprint (echtes Fell-Foto, zweiter Leo-Akzent) */
.ribbon {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background-color: #3a2410; /* Fallback, solange das Bild lädt */
  /* Dunkle Lasur ueber dem Leoprint: weisse Schrift erreicht so >5:1 Kontrast
     (ohne Lasur nur 1,15:1 auf den hellen Fellstellen). */
  background-image: linear-gradient(rgba(58, 36, 16, 0.65), rgba(58, 36, 16, 0.65)),
                    url("../assets/img/leoprint.webp");
  background-size: auto, 200px auto;
  background-position: center, center;
  color: #fff; font-weight: 800;
  padding: .55rem 1.1rem; border-radius: 999px; font-size: .92rem;
  box-shadow: var(--shadow-sm); border: 2px solid #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
}
@media (max-width: 820px) { .tier-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   TERMINVEREINBARUNG & KLICK-ZUM-LADEN-BOXEN
   --------------------------------------------------------------------------- */
.consent-box, .booking-fallback {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow-sm);
  max-width: 760px; margin-inline: auto;
}
.consent-box h3 { margin-top: 0; }
.consent-note { font-size: .9rem; color: var(--color-text-soft); max-width: 52ch; margin: .75rem auto 1.25rem; }
.consent-note a { color: var(--color-accent-text); }
.cal-embed-frame { width: 100%; min-height: 640px; border: 0; border-radius: var(--radius); background: var(--color-surface); }
.booking-fallback .contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1rem; }

/* ---------------------------------------------------------------------------
   GALERIE-GRID + LIGHTBOX
   --------------------------------------------------------------------------- */
.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(30, 22, 18, .92); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 1.8rem; line-height: 1; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox-prev { left: .4rem; } .lightbox-next { right: .4rem; } }

/* ---------------------------------------------------------------------------
   KONTAKT & KARTE
   --------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.contact-info h3 { margin-top: 1.4rem; }
.contact-info h3:first-child { margin-top: 0; }
.location-perks { color: var(--color-secondary-dark); font-weight: 600; line-height: 1.9; }
.hours { border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .25rem 1.5rem .25rem 0; color: var(--color-text-soft); }
.hours th { font-weight: 600; color: var(--color-text); }
.hours-note { font-size: .9rem; font-style: italic; }
.contact-map #osm-map, #osm-map iframe { width: 100%; min-height: 360px; border: 0; border-radius: var(--radius); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------------- */
.site-footer { background: var(--color-text); color: #f3ece4; padding-block: 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.footer-logo { height: 90px; width: auto; margin: 0 0 .5rem; display: block; }
.footer-brand { font-weight: 700; font-size: 1.15rem; margin: 0; }
.footer-claim { margin: .2rem 0 0; color: #c9bcb0; }
.footer-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.footer-nav a { color: #f3ece4; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; margin: 0; font-size: .9rem; color: #c9bcb0; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; text-align: left; } }

/* ---------------------------------------------------------------------------
   REVEAL-ANIMATION (dezent, respektiert prefers-reduced-motion)
   --------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Rechtsseiten (Impressum/Datenschutz) – Lesbreite */
.legal { padding-block: var(--space); }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { margin-top: 2.2rem; }
.legal a { color: var(--color-accent-text); }
.back-link { display: inline-block; margin-bottom: 1.5rem; }
