/* =========================================================
   Forest Stories — Studio Website
   Global stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --color-ink: #1F2A2E;
  --color-slate: #2F4858;
  --color-sand: #E9DFCB;
  --color-sand-soft: #F5EFE2;
  --color-berry: #AB294A;
  --color-berry-deep: #861F3A;
  --color-cream: #FAF7F1;
  --color-text: #2A2A2A;
  --color-muted: #6B6B6B;
  --color-line: #E4DED0;
  --color-white: #FFFFFF;

  --font-head: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1200px;
  --radius: 6px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(31, 42, 46, 0.08);
  --shadow-md: 0 10px 30px rgba(31, 42, 46, 0.12);
  --shadow-lg: 0 24px 60px rgba(31, 42, 46, 0.16);

  --transition: 200ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-ink);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.lede {
  font-size: 1.18rem;
  color: var(--color-slate);
  line-height: 1.6;
  max-width: 60ch;
}

small, .eyebrow {
  font-family: var(--font-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-berry);
  display: inline-block;
  margin-bottom: 0.9rem;
  font-weight: 500;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 110px 0;
}

section + section { border-top: 1px solid var(--color-line); }
section.no-border + section { border-top: none; }

.section-sand { background: var(--color-sand-soft); }
.section-dark {
  background: var(--color-ink);
  color: #E9E4D6;
  border-top: none !important;
}
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--color-white); }
.section-dark .lede { color: #CFC7B4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--color-berry);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-berry-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-ink);
}
.btn-secondary:hover { background: var(--color-ink); color: var(--color-white); }

.section-dark .btn-secondary { color: var(--color-white); border-color: var(--color-white); }
.section-dark .btn-secondary:hover { background: var(--color-white); color: var(--color-ink); }

.btn-arrow::after { content: "→"; font-family: var(--font-body); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.0);
  backdrop-filter: saturate(1.2) blur(0px);
  -webkit-backdrop-filter: saturate(1.2) blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease, padding 300ms ease, box-shadow 300ms ease;
}
.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: var(--color-line);
  box-shadow: 0 2px 20px rgba(31, 42, 46, 0.06);
}
.site-header.is-scrolled .nav { padding-top: 12px; padding-bottom: 12px; }
.site-header.is-light .logo,
.site-header.is-light .nav-links a,
.site-header.is-light .mega-label,
.site-header.is-light .mega-toggle { color: var(--color-white); }
.site-header.is-light .nav-toggle span { background: var(--color-white); }
.site-header.is-light.is-scrolled .logo,
.site-header.is-light.is-scrolled .nav-links a,
.site-header.is-light.is-scrolled .mega-label,
.site-header.is-light.is-scrolled .mega-toggle { color: var(--color-ink); }
.site-header.is-light.is-scrolled .nav-toggle span { background: var(--color-ink); }
/* Offset f\u00fcr fixed header auf Seiten ohne Immersive Hero */
body.has-offset-header { padding-top: 82px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  transition: padding 300ms ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink);
  font-size: 1.02rem;
}
.logo img { height: 38px; width: auto; }
.logo .wordmark { display: none; }
.logo img[data-broken] { display: none; }
.logo img[data-broken] + .wordmark { display: inline; }

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
}
.nav-links a.btn-primary { color: var(--color-white); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-berry);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

/* ---------- Megamenu ---------- */
.has-mega { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.mega-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
  font-weight: 500;
  padding-bottom: 4px;
  position: relative;
  text-decoration: none;
}
.mega-label::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--color-berry);
  transition: width var(--transition);
}
.has-mega:hover .mega-label::after,
.has-mega[data-open="true"] .mega-label::after { width: 100%; }
.mega-toggle {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0 2px 4px;
  color: var(--color-ink);
  cursor: pointer;
}
.mega-toggle .chev {
  display: inline-block;
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--transition);
}
.has-mega[data-open="true"] .mega-toggle .chev,
.has-mega:hover .mega-toggle .chev { transform: rotate(-135deg) translate(-2px, -2px); }
.site-header.is-light .mega-label { color: var(--color-white); }
.site-header.is-light.is-scrolled .mega-label { color: var(--color-ink); }

.mega {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(860px, 90vw);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 100;
  border: 1px solid var(--color-line);
}
.has-mega:hover .mega,
.has-mega[data-open="true"] .mega {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.mega::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -18px;
  height: 18px;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mega-link {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  color: var(--color-ink);
}
.mega-link:hover {
  background: var(--color-sand-soft);
  transform: translateX(2px);
}
.mega-link .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-berry);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
}
.mega-link h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 0;
  color: var(--color-ink);
  text-transform: none;
  letter-spacing: 0;
}
.mega-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.mega-footer a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-berry);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 120px;
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: var(--color-sand);
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(2px);
  z-index: 0;
}

.hero .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 span.accent {
  color: var(--color-berry);
  font-style: italic;
  font-family: var(--font-head);
}

.hero .lede { margin-top: 1.2em; }
.hero-ctas { margin-top: 2rem; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--color-sand) 0%, var(--color-sand-soft) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img,
.hero-visual picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1200ms cubic-bezier(.2,.7,.2,1);
}
.hero-visual picture img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual.is-visible img { transform: scale(1.04); }
.hero-visual.is-placeholder::after {
  content: "STUDIO";
  font-family: var(--font-head);
  font-size: 2.4rem;
  letter-spacing: 0.3em;
  color: rgba(31, 42, 46, 0.22);
}

/* ---------- Immersive Hero (Vollbild mit Parallax) ---------- */
.hero-immersive {
  position: relative;
  min-height: 92vh;
  padding: 0;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-ink);
  isolation: isolate;
}
.hero-immersive .hero-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-immersive .hero-layer img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  display: block;
}
.hero-immersive .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(31, 42, 46, 0.55) 0%, rgba(31, 42, 46, 0.2) 35%, rgba(31, 42, 46, 0.7) 100%),
    radial-gradient(ellipse at 30% 80%, rgba(171, 41, 74, 0.25), transparent 60%);
}
.hero-immersive .container {
  position: relative;
  z-index: 2;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-top: 160px;
  padding-bottom: 90px;
}
.hero-immersive h1,
.hero-immersive h2,
.hero-immersive h3 { color: var(--color-white); }
.hero-immersive .lede { color: #E8E1CE; max-width: 58ch; }
.hero-immersive .eyebrow { color: #F5DCE4; }
.hero-immersive .btn-secondary { color: var(--color-white); border-color: var(--color-white); }
.hero-immersive .btn-secondary:hover { background: var(--color-white); color: var(--color-ink); }
.hero-immersive .hero-inner { max-width: 880px; }
.hero-immersive .scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: scrollHintBob 2800ms ease-in-out infinite;
}
.hero-immersive .scroll-hint::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent);
}
@keyframes scrollHintBob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.75; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* Reveal intro animations auf Hero Content */
.hero-immersive .hero-inner > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 900ms cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-immersive .hero-inner > *:nth-child(1) { animation-delay: 180ms; }
.hero-immersive .hero-inner > *:nth-child(2) { animation-delay: 320ms; }
.hero-immersive .hero-inner > *:nth-child(3) { animation-delay: 460ms; }
.hero-immersive .hero-inner > *:nth-child(4) { animation-delay: 600ms; }
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* ---------- Parallax Divider ---------- */
.parallax-divider {
  position: relative;
  height: clamp(260px, 42vh, 420px);
  overflow: hidden;
  border-top: none !important;
  isolation: isolate;
}
.parallax-divider .layer {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
  z-index: 0;
}
.parallax-divider .layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.parallax-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(31, 42, 46, 0.35) 0%, rgba(31, 42, 46, 0.15) 50%, rgba(31, 42, 46, 0.55) 100%);
}
.parallax-divider .divider-caption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.82rem;
  text-align: center;
  padding: 0 20px;
}

/* ---------- Feature row ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.feature {
  padding: 36px 32px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--color-berry);
  display: block;
  margin-bottom: 12px;
}

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }

.split-visual {
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-slate), var(--color-ink));
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(233, 223, 203, 0.2), transparent 60%);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.service-card {
  background: var(--color-white);
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid transparent;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-sand);
  box-shadow: var(--shadow-md);
}
.service-card h3 { margin: 0; }
.service-card .price {
  font-family: var(--font-head);
  color: var(--color-berry);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card ul li {
  padding-left: 22px;
  position: relative;
  color: var(--color-slate);
}
.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-berry);
  font-weight: 700;
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--color-sand-soft);
  padding: 70px 60px;
  border-radius: var(--radius-lg);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: 40px;
  font-family: Georgia, serif;
  font-size: 8rem;
  color: var(--color-berry);
  line-height: 1;
}
.testimonial blockquote {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--color-ink);
  font-family: var(--font-head);
  font-weight: 400;
}
.testimonial cite {
  display: block;
  margin-top: 26px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-style: normal;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-ink);
  color: #EDE6D4;
  padding: 90px 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-white); }
.cta-band .lede { color: #EDE6D4; }
.cta-band .eyebrow { color: #EDE6D4; }
.cta-band .btn-primary { background: var(--color-berry); }
.cta-band .btn-primary:hover { background: var(--color-berry-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: #BFB7A4;
  padding: 70px 0 40px;
  font-size: 0.94rem;
  border-top: none;
}
.site-footer a { color: #E4DDC9; }
.site-footer a:hover { color: var(--color-white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  color: var(--color-white);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8D8776;
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 18px;
  max-width: 620px;
}
.form label {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--color-slate);
  display: block;
  margin-bottom: 6px;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-white);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--color-berry);
  box-shadow: 0 0 0 4px rgba(171, 41, 74, 0.1);
}
.form textarea { min-height: 160px; resize: vertical; }
.form .honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form .consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--color-muted);
}
.form .consent input { width: auto; }
.form-status {
  padding: 14px 18px;
  border-radius: var(--radius);
  display: none;
}
.form-status.success { display: block; background: #E9F3EA; color: #205C2B; }
.form-status.error { display: block; background: #FBEAEF; color: #861F3A; }

/* ---------- YouTube 2-click ---------- */
.yt-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.yt-embed img,
.yt-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}
.yt-embed .yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 42, 46, 0.25);
  transition: background var(--transition);
}
.yt-embed:hover .yt-play { background: rgba(31, 42, 46, 0.45); }
.yt-embed .yt-play svg {
  width: 80px;
  height: 80px;
  fill: var(--color-white);
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}
.yt-embed .yt-hint {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  color: #F5EFE2;
  font-size: 0.82rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-ink);
  color: #ECE5D4;
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 100;
  animation: cookieIn 400ms cubic-bezier(.2,.7,.2,1);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h4 {
  color: var(--color-white);
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.cookie-banner p { font-size: 0.92rem; color: #CFC7B4; margin: 0 0 16px; }
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner .btn { padding: 12px 20px; font-size: 0.8rem; }
.cookie-banner .btn-secondary { border-color: #CFC7B4; color: #CFC7B4; }
.cookie-banner .btn-secondary:hover { background: #CFC7B4; color: var(--color-ink); }
/* Video-Card ohne Thumbnail: dunkler Platzhalter mit Forest-Grün-Farbverlauf */
.video-card:not(:has(iframe)) { background: linear-gradient(135deg, #1F2A2E 0%, #2C3E35 100%); }
.cookie-banner .btn-link {
  background: transparent;
  color: #CFC7B4;
  padding: 12px 14px;
  border: none;
  text-decoration: underline;
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-40 { max-width: 40rem; margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 80px 0; }
  .hero { padding: 90px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 16/10; }
  .split, .split.reverse > :first-child { order: unset; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonial { padding: 50px 30px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-cream);
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--color-line);
    display: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > li { width: 100%; border-bottom: 1px solid var(--color-line); }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links a { padding: 16px 0; display: block; width: 100%; }
  .nav-links .has-mega { width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .nav-links .mega-label { padding: 16px 0; flex: 1; }
  .nav-links .mega-toggle { padding: 16px 8px; }

  /* Megamenu accordion on mobile */
  .has-mega .mega {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 0 14px;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }
  .has-mega[data-open="true"] .mega { display: block; }
  .has-mega:hover .mega {
    display: none;
    opacity: 1;
    transform: none;
  }
  .has-mega[data-open="true"]:hover .mega { display: block; }
  .mega-grid { grid-template-columns: 1fr; gap: 6px; }
  .mega-link { padding: 12px 10px; }
  .mega-footer { flex-direction: column; gap: 10px; align-items: flex-start; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .testimonial::before { font-size: 5rem; left: 20px; top: -10px; }
  .testimonial blockquote { font-size: 1.1rem; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
}
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px);  }
.reveal.from-down  { transform: translateY(-28px); }
.reveal.zoom       { transform: scale(0.96);        }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Staffelung innerhalb Reveal Gruppen */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal-stagger.is-visible > *                  { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1)     { transition-delay:  60ms; }
.reveal-stagger.is-visible > *:nth-child(2)     { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(3)     { transition-delay: 300ms; }
.reveal-stagger.is-visible > *:nth-child(4)     { transition-delay: 420ms; }
.reveal-stagger.is-visible > *:nth-child(5)     { transition-delay: 540ms; }
.reveal-stagger.is-visible > *:nth-child(6)     { transition-delay: 660ms; }

/* Zahlen Counter */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.counter {
  text-align: center;
  padding: 20px 10px;
}
.counter .num {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--color-berry);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.counter .label {
  font-family: var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-slate);
}
.section-dark .counter .label { color: #CFC7B4; }

/* Card hover lift f\u00fcr Produkt und L\u00f6sungskarten */
.hover-lift {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Responsive Bilder */
.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-sand);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1200ms cubic-bezier(.2,.7,.2,1);
}
.image-frame:hover img { transform: scale(1.03); }
.image-frame.ratio-4-5  { aspect-ratio: 4 / 5; }
.image-frame.ratio-5-4  { aspect-ratio: 5 / 4; }
.image-frame.ratio-16-9 { aspect-ratio: 16 / 9; }
.image-frame.ratio-1-1  { aspect-ratio: 1 / 1; }
.image-frame.ratio-3-4  { aspect-ratio: 3 / 4; }

.image-frame.placeholder {
  background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-sand-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-frame.placeholder::after {
  content: attr(data-label);
  font-family: var(--font-head);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(31, 42, 46, 0.35);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.gallery-grid .image-frame { grid-column: span 4; }
.gallery-grid .image-frame.span-6 { grid-column: span 6; }
.gallery-grid .image-frame.span-8 { grid-column: span 8; }
@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
  .gallery-grid .image-frame,
  .gallery-grid .image-frame.span-6,
  .gallery-grid .image-frame.span-8 { grid-column: span 6; }
}

/* ---------- Travel Map (mobile production) ---------- */
.travel-map-wrap {
  max-width: 760px;
  margin: 50px auto 0;
  position: relative;
  padding: 20px;
}
.travel-map-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.travel-map .map-country {
  fill: rgba(31, 42, 46, 0.05);
  stroke: rgba(31, 42, 46, 0.28);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.travel-map .map-country-glow {
  fill: none;
  stroke: rgba(171, 41, 74, 0.08);
  stroke-width: 6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.travel-map .map-route {
  fill: none;
  stroke: rgba(31, 42, 46, 0.22);
  stroke-width: 1.3;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
  stroke-dashoffset: 0;
  animation: routeDash 28s linear infinite;
}
@keyframes routeDash {
  to { stroke-dashoffset: -200; }
}
.travel-map .map-city {
  cursor: default;
}
.travel-map .map-city .pin-outer {
  fill: rgba(31, 42, 46, 0.12);
  transition: fill 320ms ease;
}
.travel-map .map-city .pin {
  fill: var(--color-ink);
  transition: transform 320ms cubic-bezier(.2,.8,.3,1);
  transform-origin: center;
  transform-box: fill-box;
}
.travel-map .map-city .label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--color-ink);
  text-anchor: middle;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transform-box: fill-box;
  transition: opacity 280ms ease, transform 280ms cubic-bezier(.2,.8,.3,1);
}
.travel-map .map-city:hover .pin {
  transform: scale(1.6);
}
.travel-map .map-city:hover .pin-outer {
  fill: rgba(171, 41, 74, 0.22);
}
.travel-map .map-city:hover .label {
  opacity: 1;
  transform: translateY(0);
}
.travel-map .map-home .pin {
  fill: var(--color-berry);
}
.travel-map .map-home .pin-outer {
  fill: rgba(171, 41, 74, 0.22);
}
.travel-map .map-home .home-pulse {
  fill: none;
  stroke: var(--color-berry);
  stroke-width: 1.5;
  transform-origin: center;
  transform-box: fill-box;
  animation: homePulse 2.6s ease-out infinite;
}
.travel-map .map-home .label {
  fill: var(--color-berry);
  font-weight: 600;
  font-size: 15px;
}
@keyframes homePulse {
  0%   { r: 8;  opacity: 0.7; }
  80%  { r: 34; opacity: 0; }
  100% { r: 34; opacity: 0; }
}
.travel-map-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 30px auto 0;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}
.travel-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.travel-map-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-ink);
  display: inline-block;
}
.travel-map-legend .dot.home {
  background: var(--color-berry);
}
@media (max-width: 640px) {
  .travel-map .map-city .label { font-size: 18px; }
  .travel-map .map-home .label { font-size: 20px; }
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  .hero-immersive .hero-layer,
  .parallax-divider .layer { transform: none !important; }
  .reveal,
  .reveal-stagger > *,
  .hero-immersive .hero-inner > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hero-visual img { transform: none !important; transition: none !important; }
  .hero-immersive .scroll-hint { animation: none; }
  .travel-map .map-route,
  .travel-map .map-home .home-pulse { animation: none !important; }
  .travel-map .map-city .pin,
  .travel-map .map-city .label { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Video Showcase (Zwei-Klick / DSGVO) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-ink);
  cursor: pointer;
}
.video-card .video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 360ms ease;
}
.video-card:hover .video-thumb {
  opacity: 0.9;
}
.video-card .video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}
.video-card .video-play svg {
  width: 64px;
  height: 64px;
  fill: #fff;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
  transition: transform 320ms cubic-bezier(.2,.8,.3,1);
}
.video-card:hover .video-play svg {
  transform: scale(1.12);
}
.video-card .video-consent {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  max-width: 260px;
  line-height: 1.4;
}
.video-card .video-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 18px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.03em;
  pointer-events: none;
}
.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner { display: none; }
  body { background: white; }
}
