/* ==========================================================================
   Anitas Nähkästchen – Website
   ========================================================================== */

:root {
  --terracotta: #6e9a4f;
  --terracotta-dark: #4f7536;
  --sage: #7c8a5e;
  --sage-dark: #636f49;
  --brand-green: #6e9a4f;
  --brand-green-dark: #4f7536;
  --gold: #d9a441;
  --cream: #faf3e8;
  --cream-soft: #f3e9da;
  --paper: #fffdf9;
  --brown: #3a2e25;
  --brown-soft: #6b5c4f;
  --shadow: 0 12px 30px rgba(58, 46, 37, 0.12);
  --radius: 18px;
  --max-width: 1180px;
  font-size: 17px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--brown);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Georgia", serif;
  color: var(--terracotta-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
}

h2.center { text-align: center; }

h3 { font-size: 1.25rem; color: var(--sage-dark); }

p { margin: 0 0 1em; }

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-dark); }

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

.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: var(--sage-dark);
  margin-bottom: 4px;
}

.lead {
  font-size: 1.1rem;
  color: var(--brown-soft);
  max-width: 720px;
}

.center-text { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(110, 154, 79, 0.4);
}
.btn-primary:hover { background: var(--brand-green-dark); color:#fff; transform: translateY(-2px); }
.btn-sage {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 138, 94, 0.35);
}
.btn-sage:hover { background: var(--sage-dark); color: #fff; transform: translateY(-2px); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(250, 243, 232, 0);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header.scrolled {
  background: rgba(250, 243, 232, 0.96);
  box-shadow: 0 4px 18px rgba(58,46,37,0.08);
  padding: 8px 28px;
  backdrop-filter: blur(6px);
}
.site-header .brand { display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.site-header.scrolled .brand { opacity: 1; pointer-events: auto; }
.site-header .brand img { height: 52px; transition: height 0.25s ease; }
.site-header.scrolled .brand img { height: 40px; }

.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a {
  color: var(--brown);
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.85;
}
.site-header nav a:hover { opacity: 1; color: var(--terracotta); }
.site-header .phone-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 800;
  opacity: 1 !important;
}
.site-header .phone-pill:hover { background: var(--terracotta-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--brown); border-radius: 2px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: var(--paper);
  padding-bottom: 46px;
}
.hero-brand {
  text-align: center;
  padding: 96px 20px 16px;
}
.hero-logo { width: min(260px, 62vw); }

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(58,46,37,0.05);
}
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 34px 20px 0;
  max-width: 760px;
  margin: 0 auto;
}
.hero-tagline {
  font-family: "Caveat", cursive;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  margin: 0 0 28px;
  color: var(--brand-green-dark);
  font-weight: 700;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  background: transparent;
  color: var(--brand-green-dark);
  border-color: var(--brand-green);
}
.btn-outline:hover { background: var(--brand-green); color:#fff; border-color: var(--brand-green); }
.hero-since {
  margin: 24px 0 0;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--sage-dark);
}
.scroll-hint {
  position: relative;
  display: block;
  margin: 22px auto 0;
  width: fit-content;
  color: var(--brand-green);
  font-size: 1.6rem;
  animation: bob 2s infinite ease-in-out;
  opacity: 0.7;
}
@keyframes bob { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(0,8px);} }

@media (max-width: 620px) {
  .hero-media { aspect-ratio: 4 / 5; }
}

/* ---------------- Welcome ---------------- */
.welcome { background: var(--paper); text-align: center; }
.welcome .container { max-width: 800px; }
.welcome-icon { width: 92px; margin: 0 auto 18px; display: block; }
.tags { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top: 26px; }
.tags span {
  background: var(--cream-soft);
  color: var(--sage-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------------- Story ---------------- */
.story { background: var(--cream); }
.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.story-text blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--sage);
  background: var(--paper);
  border-radius: 0 12px 12px 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--brown);
  box-shadow: var(--shadow);
}
.story-text blockquote cite {
  display: block;
  margin-top: 8px;
  font-family: "Nunito Sans", sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--sage-dark);
}
.story-media {
  position: relative;
}
.story-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.story-media .caption {
  position: absolute;
  bottom: -18px; left: 20px; right: 20px;
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  color: var(--brown-soft);
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}
.fact {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.fact strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: var(--terracotta);
}
.fact span { color: var(--brown-soft); font-size: 0.92rem; }

/* ---------------- Gallery / Carousel ---------------- */
.gallery-section { background: var(--paper); }
.gallery-intro { max-width: 720px; margin: 0 auto 46px; text-align:center; }

.carousel {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 8px auto 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--brown);
  cursor: zoom-in;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 32px 26px;
  background: linear-gradient(180deg, rgba(58,46,37,0) 0%, rgba(58,46,37,0.65) 100%);
}
.carousel-caption-title {
  color: #fff;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.carousel-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
  transition: background 0.2s ease;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.35); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-dots {
  position: absolute;
  z-index: 3;
  bottom: 16px; left: 0; right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dots button.is-active { background: #fff; transform: scale(1.3); }

@media (max-width: 760px) {
  .carousel { aspect-ratio: 4 / 5; max-width: 100%; border-radius: calc(var(--radius) * 0.7); }
  .carousel-caption { padding: 40px 18px 20px; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 1.2rem; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,15,10,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox .lb-caption { position:absolute; bottom: 26px; left:0; right:0; text-align:center; color:#f3e9da; font-weight:700; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items:center; justify-content:center;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: rgba(255,255,255,0.28); }
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------------- Dealer strip ---------------- */
.dealer-strip {
  background: var(--cream-soft);
  border-top: 1px solid rgba(58,46,37,0.06);
  border-bottom: 1px solid rgba(58,46,37,0.06);
  padding: 40px 0;
  text-align: center;
}
.dealer-inner { max-width: 640px; margin: 0 auto; }
.dealer-label {
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--sage-dark);
}
.dealer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.dealer-logo-img { height: 46px; width: auto; }
.dealer-badge {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brown);
  font-size: 1.05rem;
}
.dealer-badge-script {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--terracotta-dark);
}
.dealer-note { margin: 0; color: var(--brown-soft); font-size: 0.92rem; }

/* ---------------- Press ---------------- */
.press { background: var(--cream-soft); }
.press-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}
.press-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.press-meta {
  font-weight: 800;
  color: var(--sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  margin-bottom: 18px;
}
.press-text blockquote {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--terracotta-dark);
  margin: 0 0 22px;
  padding-left: 20px;
  border-left: 4px solid var(--terracotta);
}
.press-source {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--brown-soft);
}

/* ---------------- Community ---------------- */
.community { background: var(--paper); }
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.community-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  text-align: left;
  display:flex; flex-direction:column; gap: 12px;
}
.community-card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  font-size: 1.4rem;
  color: #fff;
}
.ico.fb { background: #3b5998; }
.ico.ig { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4); }
.ico.sk { background: var(--sage); }
.ico.wa { background: #25d366; }
.community-card h3 { margin: 0; }
.community-card p { color: var(--brown-soft); flex-grow: 1; font-size: 0.96rem; }
.community-card a.btn { align-self: flex-start; }

/* ---------------- Contact ---------------- */
.contact { background: var(--brown); color: #f3e9da; }
.contact h2, .contact h3 { color: #f6ead8; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: stretch;
}
.contact-info a { color: #f6ead8; text-decoration: underline; }
.info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.info-row .ico2 {
  width: 40px; height:40px; flex: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display:flex; align-items:center; justify-content:center;
  color: var(--gold);
  font-size: 1.15rem;
}
.hours-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours-table td { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.95rem; }
.hours-table td:first-child { font-weight: 800; color: #f6ead8; width: 40%; }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display:block; }

/* ---------------- Footer ---------------- */
footer.site-footer {
  background: #2c2119;
  color: #cdbfae;
  padding: 40px 0 26px;
  text-align: center;
  font-size: 0.88rem;
}
footer.site-footer img { height: 34px; opacity: 0.9; margin-bottom: 14px; }
footer.site-footer .foot-links { display:flex; gap: 22px; justify-content:center; flex-wrap:wrap; margin: 14px 0; }
footer.site-footer a { color: #e7d9c6; }
footer.site-footer a:hover { color: var(--gold); }

/* ---------------- Motion & flourishes ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in-view { transition-delay: calc(var(--stagger, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.stitch-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 34px 0;
  color: var(--brand-green);
}
.stitch-divider .line {
  flex: 1;
  max-width: 260px;
  height: 0;
  border-top: 3px dashed var(--brand-green);
  opacity: 0.55;
}
.stitch-divider .heart {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 3px rgba(78,117,54,0.25));
}
.stitch-divider.on-dark { color: #e9dcc4; }
.stitch-divider.on-dark .line { border-color: #e9dcc4; }

.eyebrow::before {
  content: "✂ ";
  opacity: 0.75;
}

.community-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.community-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 34px rgba(58,46,37,0.16);
}
.community-card .ico {
  transition: transform 0.3s ease;
}
.community-card:hover .ico { transform: rotate(-8deg) scale(1.08); }

.fact {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fact:hover { transform: translateY(-4px); box-shadow: 0 18px 30px rgba(58,46,37,0.15); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .story-grid, .press-grid, .contact-grid { grid-template-columns: 1fr; }
  .story-media { order: -1; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .community-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header nav { position: fixed; top: 0; right: 0; height: 100vh; width: 78vw; max-width: 320px;
    background: var(--paper); flex-direction: column; align-items: flex-start; padding: 100px 28px 28px;
    transform: translateX(100%); transition: transform 0.3s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.15); }
  .site-header nav.open { transform: translateX(0); }
  .site-header nav a { color: var(--brown) !important; font-size: 1.1rem; opacity:1; }
  .nav-toggle { display: flex; z-index: 110; }
  .section { padding: 60px 0; }
  .facts { grid-template-columns: 1fr; }
  .lightbox .lb-prev, .lightbox .lb-next { width: 40px; height: 40px; }
}
