/* ==========================================================================
   TANZER Living Life — Brand Stylesheet
   Brand-Farben aus dem Master-Deck (v3.0)
   ========================================================================== */

:root {
  /* Primary palette */
  --sand:        #f0e0d0;     /* Light sand background */
  --sand-deep:   #e0d0a0;     /* Warm sandy tone */
  --sand-warm:   #f5e8d3;     /* Card backgrounds */
  --bronze:      #b05030;     /* Primary accent (CTA, headlines) */
  --bronze-dark: #8a3c22;     /* Hover state */
  --terracotta:  #a05030;     /* Secondary accent */
  --brown:       #603020;     /* Logo dark, dividers */
  --brown-soft:  #6b4a36;     /* Body text */
  --anthracite:  #3a2820;     /* Headlines dark */
  --cream:       #fdf8f0;     /* Light background variant */
  --white:       #ffffff;
  --black:       #1a1310;

  /* Functional */
  --shadow-sm: 0 2px 8px rgba(96, 48, 32, 0.08);
  --shadow-md: 0 6px 24px rgba(96, 48, 32, 0.12);
  --shadow-lg: 0 16px 48px rgba(96, 48, 32, 0.18);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--brown-soft);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--anthracite);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 36px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 1px;
  background: var(--bronze);
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--brown-soft);
  max-width: 64ch;
  font-weight: 300;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--sand { background: var(--sand); }
.section--sand-deep { background: var(--sand-deep); }
.section--cream { background: var(--cream); }
.section--dark {
  background: var(--anthracite);
  color: var(--sand);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--sand); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: #f5ead3;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(176, 80, 48, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brown);
}
.nav__logo-img {
  height: 80px;
  max-height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer__brand .nav__logo-img { 
  height: 80px;
  filter: brightness(0) invert(1);
}
@media (max-width: 720px) {
  .nav__logo-img { height: 70px; }
  .footer__brand .nav__logo-img { height: 80px; }
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav__menu a {
  color: var(--brown);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--bronze);
  transition: width var(--transition);
}
.nav__menu a:hover::after { width: 100%; }

.nav__lang {
  display: flex;
  gap: 0.2rem;
  padding: 0.25rem;
  background: rgba(176, 80, 48, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nav__lang a {
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  color: var(--brown);
}
.nav__lang a.active {
  background: var(--bronze);
  color: var(--cream);
}
@media (max-width: 540px) {
  .nav__lang a { padding: 0.3rem 0.45rem; font-size: 0.72rem; }
}

.nav__toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  position: relative;
  transition: transform var(--transition);
}
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after { position: absolute; top: 7px; }

@media (max-width: 880px) {
  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--sand);
    padding: 1.5rem;
    border-top: 1px solid rgba(176,80,48,0.1);
    transform: translateY(-200%);
    transition: transform var(--transition);
    gap: 1rem;
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__toggle { display: flex; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--bronze);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--bronze-dark);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--brown);
  border: 1.5px solid var(--bronze);
}
.btn--ghost:hover {
  background: var(--bronze);
  color: var(--cream);
}
.btn--light {
  background: var(--cream);
  color: var(--bronze);
}
.btn--light:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn__arrow {
  display: inline-block;
  transition: transform var(--transition);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 10rem 0 5rem;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.85);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(26, 19, 16, 0.3) 0%,
    rgba(26, 19, 16, 0.5) 60%,
    rgba(26, 19, 16, 0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: 920px;
}
.hero__eyebrow {
  color: var(--sand-deep);
  padding-left: 36px;
  position: relative;
}
.hero__eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 1px;
  background: var(--sand-deep);
}
.hero__title {
  color: var(--cream);
  margin: 1.5rem 0;
  font-weight: 500;
  line-height: 1.05;
}
.hero__title em {
  font-style: italic;
  color: var(--sand-deep);
}
.hero__lede {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: rgba(253, 248, 240, 0.92);
  max-width: 60ch;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 540px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 720px) {
  .hero { padding-bottom: 3rem; }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section__header .eyebrow { padding-left: 0; }
.section__header .eyebrow::before { display: none; }
.section__header .lede {
  margin: 1rem auto 0;
}
.section__header--left { text-align: left; }
.section__header--left .lede { margin-inline: 0; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(176, 80, 48, 0.06);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card__icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bronze), var(--terracotta));
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  color: var(--cream);
}
.card__icon svg { width: 28px; height: 28px; }
.card__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}
.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.card p { color: var(--brown-soft); font-size: 0.95rem; line-height: 1.65; }
.card__footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(176, 80, 48, 0.15);
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   USP grid (two columns visual split: Safe Haven | Öko)
   ========================================================================== */
.dual-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
@media (max-width: 880px) { .dual-hero { grid-template-columns: 1fr; } }

.dual-hero__panel {
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dual-hero__panel--haven {
  background: linear-gradient(135deg, var(--anthracite) 0%, #2a1c14 100%);
  color: var(--cream);
}
.dual-hero__panel--haven h3,
.dual-hero__panel--haven h2 { color: var(--cream); }
.dual-hero__panel--eco {
  background: linear-gradient(135deg, #f5e8d3 0%, var(--sand-deep) 100%);
  color: var(--brown);
}

.dual-hero__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(176, 80, 48, 0.15);
  color: var(--bronze);
}
.dual-hero__panel--haven .dual-hero__icon {
  background: rgba(245, 232, 211, 0.1);
  color: var(--sand-deep);
}
.dual-hero h3 { margin-bottom: 0.75rem; }
.dual-hero p { line-height: 1.7; opacity: 0.92; }
.dual-hero__features {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dual-hero__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
}
.dual-hero__features li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  background: var(--bronze);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdf8f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stat__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--bronze);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
}

/* ==========================================================================
   Image with text overlay
   ========================================================================== */
.media-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 880px) { .media-feature { grid-template-columns: 1fr; } }

/* Inline-style grid blocks (Farm-to-Table, Safe Haven image side) */
.grid--split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.grid--split--reverse {
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 880px) {
  .grid--split,
  .grid--split--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* On mobile: image always on top (find by .reveal containing <img>) */
  .grid--split > .reveal:has(> img),
  .grid--split > .reveal:has(> .media-feature__img),
  .grid--split--reverse > .reveal:has(> img),
  .grid--split--reverse > .reveal:has(> .media-feature__img) {
    order: -1;
  }
}

.media-feature__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.media-feature__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}
.media-feature:hover .media-feature__img img { transform: scale(1.04); }

.media-feature__content h2 { margin-bottom: 1.5rem; }
.media-feature__list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.media-feature__list li {
  padding-left: 28px;
  position: relative;
  line-height: 1.6;
}
.media-feature__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 16px; height: 1px;
  background: var(--bronze);
}

/* ==========================================================================
   Target audience pills
   ========================================================================== */
.audience {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius);
  background: var(--sand-warm);
  transition: all var(--transition);
  border: 1px solid rgba(176, 80, 48, 0.08);
}
.audience:hover {
  transform: translateY(-4px);
  background: var(--cream);
  box-shadow: var(--shadow-md);
}
.audience__icon {
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  color: var(--bronze);
}
.audience h4 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.audience p { font-size: 0.85rem; color: var(--brown-soft); }

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta {
  background: linear-gradient(135deg, var(--anthracite) 0%, var(--brown) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(176, 80, 48, 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.cta h2 { color: var(--cream); margin-bottom: 1rem; position: relative; }
.cta p { color: rgba(253, 248, 240, 0.85); position: relative; max-width: 56ch; margin: 0 auto 2rem; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--anthracite);
  color: var(--sand-deep);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand p {
  margin-top: 1rem;
  color: rgba(245, 232, 211, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer h4 {
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul li a { color: rgba(245, 232, 211, 0.7); font-size: 0.9rem; }
.footer ul li a:hover { color: var(--sand-deep); }
.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 232, 211, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(245, 232, 211, 0.5);
}

/* ==========================================================================
   Reveal animation on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Page subheader
   ========================================================================== */
.page-header {
  padding: 12rem 0 5rem;
  text-align: center;
  background: var(--sand);
  position: relative;
}
.page-header__title { margin-bottom: 1rem; }
.page-header__lede { margin: 0 auto; }

/* ==========================================================================
   Form
   ========================================================================== */
.form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--cream);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form__group { margin-bottom: 1.5rem; }
.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.5rem;
}
.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--anthracite);
  background: var(--white);
  border: 1.5px solid rgba(176, 80, 48, 0.2);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(176, 80, 48, 0.15);
}
.form__textarea { resize: vertical; min-height: 140px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }
.form__success {
  display: none;
  padding: 1rem;
  background: rgba(176, 80, 48, 0.1);
  border-left: 3px solid var(--bronze);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  color: var(--brown);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .hero { min-height: 90vh; }
  .nav__lang { padding: 0.2rem; }
  .nav__lang a { padding: 0.3rem 0.55rem; }
}