/* ═══════════════════════════════════════════════════════════
   Gemüse Überacker – Marktgärtnerei Bunte Beete
   Warm & natürlich · Marken-Farben und -Schriften aus der App
   ═══════════════════════════════════════════════════════════ */

/* ── Schriften (lokal, offline-sicher, DSGVO-freundlich) ── */
@font-face {
  font-family: 'Fredoka'; src: url('assets/fonts/Fredoka.ttf') format('truetype');
  font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: 'Nunito'; src: url('assets/fonts/Nunito.ttf') format('truetype');
  font-weight: 200 900; font-display: swap;
}
@font-face {
  font-family: 'Caveat'; src: url('assets/fonts/Caveat.ttf') format('truetype');
  font-weight: 400 700; font-display: swap;
}

/* ── Design-Token ── */
:root {
  --creme:       #FFFCF5;
  --creme-2:     #FFF3DD;
  --gruen:       #2F9E44;
  --gruen-hell:  #51CF66;
  --gruen-dunkel:#1B4332;
  --karotte:     #F76707;
  --sonne:       #F59F00;
  --tomate:      #F03E3E;
  --bete:        #D6336C;

  --text:  #26332a;
  --muted: #5d6b60;
  --line:  rgba(27,67,50,.12);

  --r-sm: 14px;
  --r:    22px;
  --r-lg: 30px;

  --schatten:    0 18px 44px -22px rgba(27,67,50,.35);
  --schatten-sm: 0 8px 22px -14px rgba(27,67,50,.35);

  --display: 'Fredoka', system-ui, sans-serif;
  --body:    'Nunito', system-ui, sans-serif;
  --hand:    'Caveat', 'Fredoka', cursive;

  --wrap: 1160px;
}

/* ── Reset / Basis ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--creme);
  line-height: 1.65;
  font-size: 1.06rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gruen); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--display); color: var(--gruen-dunkel); line-height: 1.08; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.kicker {
  font-family: var(--display);
  text-transform: none;
  color: var(--gruen);
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: .5rem;
  font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gruen); border-radius: 2px; }
.kicker-hell { color: #eafff0; }
.kicker-hell::before { background: var(--gruen-hell); }

.handschrift { font-family: var(--hand); font-size: 1.9rem; color: var(--karotte); line-height: 1.2; margin-top: 1.2rem; font-weight: 600; }
.platzhalter { color: var(--muted); font-size: .95rem; }
.platzhalter em { background: #fff7e6; border: 1px dashed var(--sonne); border-radius: 10px; padding: .15em .5em; font-style: normal; display: inline-block; color: #8a5a00; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gruen); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0; z-index: 200; }
.skip-link:focus { left: 0; }

/* ── Marken-Badge (B aus der App, per Maske eingefärbt) ── */
/* Logo = das App-Icon: weißes, abgerundetes Quadrat mit schwarzem B. */
.brand-badge {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 13px;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: var(--schatten-sm);
  border: 1px solid rgba(27,67,50,.08);
  overflow: hidden;
}
.brand-b {
  width: 100%; height: 100%;
  background: url('assets/img/b-mark.png') center / 160% no-repeat;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: .78rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-sm { padding: .5rem 1rem; font-size: .95rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.08rem; }
.btn-primary { background: var(--gruen); color: #fff; box-shadow: 0 12px 26px -12px rgba(47,158,68,.75); }
.btn-primary:hover { background: #268038; box-shadow: 0 16px 30px -12px rgba(47,158,68,.8); }
.btn-ghost { background: transparent; color: var(--gruen-dunkel); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gruen); color: var(--gruen); }
.btn-ghost-hell { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-hell:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }
.btn-light { background: #fff; color: var(--gruen-dunkel); }
.btn-light:hover { background: var(--creme-2); }

/* ══════════ Kopfzeile ══════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,252,245,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(27,67,50,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--gruen-dunkel); }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a { font-family: var(--display); font-weight: 500; color: var(--gruen-dunkel); font-size: 1rem; }
.main-nav > a:not(.btn):hover { color: var(--gruen); text-decoration: none; }
.main-nav > a:not(.btn) { position: relative; }
.main-nav > a:not(.btn)::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:2px; background:var(--gruen); border-radius:2px; transition:width .2s ease; }
.main-nav > a:not(.btn):hover::after { width:100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--gruen-dunkel); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ══════════ Hero ══════════ */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: -2; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(21,40,25,.86) 0%, rgba(21,40,25,.42) 42%, rgba(21,40,25,.12) 70%, rgba(21,40,25,.28) 100%);
}
.hero-content { padding-bottom: clamp(3rem, 8vw, 6rem); padding-top: 6rem; color: #fff; max-width: 760px; }
.hero-content h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.28); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #eef6ef; margin-top: 1.1rem; max-width: 620px; }
.hero-lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-scroll { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; display: grid; justify-items: center; padding-top: 8px; z-index: 1; }
.hero-scroll span { width: 4px; height: 8px; background: #fff; border-radius: 3px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(9px); } }

/* ══════════ Werte-Streifen ══════════ */
.werte { background: var(--creme); padding: clamp(2.6rem, 5vw, 3.6rem) 0; margin-top: -1px; }
.werte-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.wert { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem 1.6rem; box-shadow: var(--schatten-sm); }
.wert-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); margin-bottom: 1rem; }
.wert-icon svg { width: 28px; height: 28px; }
.wert h3 { margin-bottom: .3rem; }
.wert p { color: var(--muted); font-size: .98rem; }

/* ══════════ Über uns ══════════ */
.konzept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.konzept-text p { margin-top: 1rem; color: #3a4a3e; }
.konzept-text h2 { margin-top: .3rem; }
.konzept-bilder { position: relative; aspect-ratio: 1/1; }
.konzept-bilder .foto-gross { width: 82%; height: 74%; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--schatten); }
.konzept-bilder .foto-klein { position: absolute; border-radius: var(--r); object-fit: cover; border: 5px solid #fff; box-shadow: var(--schatten); }
.foto-klein-a { width: 46%; aspect-ratio: 4/3; right: 0; bottom: 6%; }
.foto-klein-b { width: 34%; aspect-ratio: 1/1; right: 12%; top: 4%; }

/* ══════════ Unsere Geschichte (Zeitleiste) ══════════ */
.geschichte { margin-top: clamp(3rem, 7vw, 5rem); }
.geschichte .section-head { margin-bottom: 2.4rem; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 6px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--gruen-hell), var(--sonne) 55%, var(--bete));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 1.7rem 3.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 5px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c, var(--gruen)); border: 4px solid var(--creme);
  box-shadow: 0 0 0 1px var(--line);
}
.tl-date { display: block; font-family: var(--display); font-weight: 600; color: var(--gruen-dunkel); font-size: 1.08rem; margin-bottom: .15rem; }
.tl-body p { margin: 0; color: #3a4a3e; }

/* ══════════ So funktioniert's ══════════ */
.section-creme { background: linear-gradient(180deg, var(--creme-2), #fff8ea); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); }
.section-head .kicker { justify-content: center; }
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.schritt { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.7rem; text-align: center; box-shadow: var(--schatten-sm); }
.schritt-num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin-bottom: 1rem; }
.schritt h3 { margin-bottom: .4rem; }
.schritt p { color: var(--muted); font-size: .98rem; }

.kisten-callout {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem); margin-top: 2.4rem; box-shadow: var(--schatten-sm); overflow: hidden;
}
.kisten-text p { margin-top: .6rem; color: var(--muted); }
.kisten-text h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: .2rem; }
.kisten-text .btn { margin-top: 1.3rem; }
.kisten-callout img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; border-radius: var(--r); }

/* ══════════ Galerie ══════════ */
/* Masonry über CSS-Spalten: lückenlos, ordnet sich je nach Breite automatisch
   neu an (mehr/weniger Spalten). Reihenfolge egal. */
.galerie-grid {
  width: min(100% - 2.6rem, 1320px); margin: 2rem auto 0;
  column-width: 300px; column-gap: 14px;
}
.g-item {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--r-sm); overflow: hidden; background: var(--creme-2);
  box-shadow: var(--schatten-sm);
  break-inside: avoid; margin: 0 0 14px;
}
.g-item img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.06); }

/* ══════════ Kontakt ══════════ */
.section-gruen { background: linear-gradient(160deg, var(--gruen-dunkel), #143024); color: #eaf3ec; }
.section-gruen h2 { color: #fff; }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kontakt-liste { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.2rem; }
.kontakt-liste li { display: flex; gap: .9rem; align-items: flex-start; }
.kontakt-liste .k-icon { font-size: 1.4rem; line-height: 1.4; flex: 0 0 auto; }
.kontakt-liste strong { color: #fff; font-family: var(--display); font-weight: 600; }
.kontakt-liste a { color: var(--gruen-hell); }
.kontakt-info .platzhalter em { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #cfe6d5; }
.kontakt-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.kontakt-bild img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--schatten); }

/* ══════════ Fußzeile ══════════ */
.site-footer { background: #12170f; color: #cfd8c9; padding: 3rem 0 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-name { font-family: var(--display); font-weight: 600; color: #fff; font-size: 1.15rem; }
.footer-sub { font-size: .82rem; color: #93a08c; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-nav a { color: #cfd8c9; font-size: .95rem; }
.footer-nav a:hover { color: var(--gruen-hell); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.09); font-size: .82rem; color: #8a9784; }

/* ══════════ Lightbox ══════════ */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,22,13,.94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-sm); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: lbin .25s ease; }
@keyframes lbin { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.lb-close, .lb-prev, .lb-next { position: fixed; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer; border-radius: 999px; display: grid; place-items: center; transition: background .18s ease; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 1.1rem; right: 1.2rem; width: 48px; height: 48px; font-size: 1.9rem; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; }
.lb-prev { left: 1.2rem; } .lb-next { right: 1.2rem; }

/* ══════════ Reveal-Animation ══════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ══════════ Rechtstexte (Impressum / Datenschutz) ══════════ */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.legal .wrap { max-width: 780px; }
.legal-back { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 500; margin-bottom: 1.4rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .3rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .5rem; }
.legal p, .legal li { color: #3a4a3e; }
.legal p { margin-top: .8rem; }
.legal ul { margin: .6rem 0 0 1.2rem; }
.legal .lead { color: var(--muted); }
.legal address { font-style: normal; margin-top: .6rem; line-height: 1.8; }

/* ══════════ Responsive ══════════ */
@media (max-width: 900px) {
  .werte-grid, .schritte { grid-template-columns: 1fr; }
  .konzept-grid, .kontakt-grid, .kisten-callout { grid-template-columns: 1fr; }
  .konzept-bilder { aspect-ratio: 16/11; margin-top: 1rem; }
  .kisten-callout img { max-height: 260px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 1.3rem;
    background: var(--creme); padding: 5.5rem 1.8rem 2rem;
    box-shadow: -18px 0 50px -20px rgba(0,0,0,.35);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.3,1);
  }
  .main-nav.open { transform: none; }
  .main-nav > a { font-size: 1.2rem; }
  .main-nav .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: flex; z-index: 110; }
  .brand-sub { display: none; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(15,22,13,.4); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }
}

@media (max-width: 460px) {
  .hero-cta .btn, .kontakt-cta .btn { flex: 1 1 auto; justify-content: center; }
}
