/* =========================================================
   Alpakahof Arneth – Stylesheet
   Farben, Typografie und Layout-Regeln zentral als CSS-Variablen,
   damit spätere Anpassungen (z. B. durch Claude CoWork) einfach bleiben.
   ========================================================= */

:root {
  --color-cream: #F7F2E8;
  --color-cream-soft: #FBF8F2;
  --color-sage: #7D8F69;
  --color-sage-dark: #5C6B4B;
  --color-green-dark: #3D5037;
  --color-brown-dark: #4A3526;
  --color-sand: #D9C3A5;
  --color-terracotta: #B56E4A;
  --color-white: #FFFFFF;
  --color-line: rgba(74, 53, 38, 0.14);

  --font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(74, 53, 38, 0.10);
  --shadow-hover: 0 16px 40px rgba(74, 53, 38, 0.16);

  --container-width: 1180px;
  --space-section: clamp(3.5rem, 6vw, 6rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-brown-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-green-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: var(--space-section) 0; }
.section-narrow { max-width: 760px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-terracotta);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.15rem; color: var(--color-sage-dark); }

/* ---------- Fokus & Barrierefreiheit ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--color-green-dark);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top 0.2s ease;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-height: 48px;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-terracotta); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: #a35f3f; box-shadow: var(--shadow-hover); }
.btn-secondary { background: var(--color-green-dark); color: #fff; }
.btn-secondary:hover { background: var(--color-sage-dark); }
.btn-outline { background: transparent; border-color: var(--color-green-dark); color: var(--color-green-dark); }
.btn-outline:hover { background: var(--color-green-dark); color: #fff; }
.btn-outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--color-green-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-green-dark);
}
.brand-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-terracotta);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.main-nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.main-nav-list a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-brown-dark);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.main-nav-list a:hover,
.main-nav-list a[aria-current="page"] {
  color: var(--color-green-dark);
  border-bottom-color: var(--color-terracotta);
}

/* Mobiles Menü: <details> = funktioniert ganz ohne JavaScript.
   Nativ zeigt der Browser den Inhalt eines <details> nur bei gesetztem
   open-Attribut. Wir nutzen das für Mobilgeräte (zu-/aufklappbar) und
   heben es am Desktop gezielt wieder auf (Navigation immer sichtbar). */
.mobile-nav summary {
  display: none;
  list-style: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-white);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .icon-close { display: none; }
.mobile-nav[open] summary .icon-burger { display: none; }
.mobile-nav[open] summary .icon-close { display: block; }

@media (max-width: 880px) {
  .mobile-nav { position: relative; }
  .mobile-nav summary { display: flex; }
  .mobile-nav .main-nav-list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    flex-direction: column;
    align-items: stretch;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: 0.8rem;
    min-width: 240px;
    gap: 0.2rem;
  }
  .mobile-nav .main-nav-list a { display: block; padding: 0.7rem 0.6rem; }
  .header-cta-mobile { display: block; margin-top: 0.4rem; }
  .header-cta-desktop { display: none; }
}
@media (min-width: 881px) {
  /* Hebt die native "nur bei [open] sichtbar"-Regel des Browsers auf,
     damit die Navigation am Desktop immer angezeigt wird. */
  .mobile-nav > *:not(summary) { display: block !important; }
  .mobile-nav .main-nav-list { display: flex !important; }
  .header-cta-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: min(88vh, 720px);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61,80,55,0.55) 0%, rgba(61,80,55,0.72) 55%, rgba(74,53,38,0.85) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 4rem 0; }
.hero .eyebrow { color: var(--color-sand); }
.hero h1 { color: #fff; }
.hero .lead { color: #F4EEE1; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: #F4EEE1;
}
.hero-trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero-trust li::before { content: "✓"; color: var(--color-sand); font-weight: 700; }

.page-hero {
  background: linear-gradient(180deg, var(--color-green-dark), var(--color-sage-dark));
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #EFE8D8; max-width: 700px; }
.breadcrumb { font-size: 0.85rem; color: #DCE3D2; margin-bottom: 1rem; }
.breadcrumb a { color: #fff; text-decoration: underline; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.offer-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.offer-card img { aspect-ratio: 4/3; object-fit: cover; }
.offer-card-body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.offer-card-body p { flex: 1; color: var(--color-sage-dark); }

.info-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.info-tile {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}
.info-tile .info-icon { font-size: 1.6rem; margin-bottom: 0.5rem; display: block; }

/* ---------- Tiere ---------- */
.animal-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.animal-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.animal-card img { aspect-ratio: 3/4; object-fit: cover; width: 100%; background: var(--color-sand); }
.animal-card-body { padding: 1.4rem; }
.animal-card-body h3 { margin-bottom: 0.3rem; }
.animal-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  color: var(--color-green-dark);
  border: 1px solid var(--color-line);
}
.tag-wandert { background: var(--color-sage); color: #fff; border-color: transparent; }
.placeholder-note {
  font-size: 0.85rem;
  color: var(--color-terracotta);
  font-style: italic;
}

/* ---------- Ablauf / Steps ---------- */
.steps {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.step {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

/* ---------- Sektionen mit Hintergrund ---------- */
.section-alt { background: var(--color-cream-soft); }
.section-dark {
  background: var(--color-green-dark);
  color: #F4EEE1;
}
.section-dark h2, .section-dark h3 { color: #fff; }

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-item {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(30, 22, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius-md); }
.lightbox-caption { color: #fff; text-align: center; margin-top: 1rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}
.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%); }

/* ---------- FAQ (Details/Summary – ohne JS bedienbar) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  padding: 0.3rem 1.3rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 0;
  color: var(--color-green-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-terracotta);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1.1rem; color: var(--color-sage-dark); }

/* ---------- Formulare ---------- */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-row-full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-weight: 700; font-size: 0.92rem; color: var(--color-green-dark); }
.form-field .hint { font-size: 0.8rem; color: var(--color-sage-dark); font-weight: 400; }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  font: inherit;
  background: var(--color-cream-soft);
  color: var(--color-brown-dark);
  min-height: 48px;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { background: #fff; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #a3352b; }
.field-error { color: #a3352b; font-size: 0.85rem; font-weight: 600; }
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.form-consent input { margin-top: 0.3rem; width: auto; min-height: auto; }

.form-alert {
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.form-alert-error { background: #FBEAE8; color: #7A2A21; border: 1px solid #E9B7AF; }
.form-alert-success { background: #EAF1E4; color: var(--color-green-dark); border: 1px solid #BFD3AE; }

/* Honeypot – für Menschen unsichtbar, für Bots im Markup vorhanden */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px dashed var(--color-line);
}
.testimonial-card .stars { color: var(--color-terracotta); margin-bottom: 0.5rem; letter-spacing: 0.15em; }
.testimonial-card cite { display: block; margin-top: 0.8rem; font-style: normal; font-weight: 700; color: var(--color-green-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-brown-dark);
  color: #EDE3D6;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2.2rem;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #EDE3D6; text-decoration: none; }
.site-footer a:hover { color: var(--color-sand); text-decoration: underline; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #C9BCA8;
}
.footer-bottom nav ul { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.placeholder-banner {
  background: #FBF1DD;
  border: 1px solid var(--color-sand);
  color: var(--color-brown-dark);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
}
.placeholder-banner strong { color: var(--color-terracotta); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { margin-top: 2rem; }

@media (max-width: 480px) {
  .container { padding: 0 1.1rem; }
  section { padding: 2.6rem 0; }
}
