/* ============================================
   GardenDragons — Design System
   ============================================ */

:root {
  /* Colors — 60/30/10 */
  --bg: #F6F3EC;          /* Sand / Off-white (60%) */
  --bg-elev: #FFFFFF;
  --surface: #ECE7DB;     /* Warmer sand */
  --ink: #14140F;         /* Anthrazit */
  --ink-soft: #2A2A24;
  --muted: #5B5B52;
  --hairline: #D9D2C2;

  --green: #2D5234;       /* Primary Naturgrün */
  --green-deep: #1E3A24;
  --green-light: #DCE6D9;

  --ember: #D9531E;       /* Drachen-Orange Akzent */
  --ember-soft: #F6E1D2;

  /* Type */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow-1: 0 1px 0 rgba(20,20,15,.05), 0 8px 24px -12px rgba(20,20,15,.18);
  --shadow-2: 0 4px 16px -4px rgba(20,20,15,.12), 0 16px 48px -16px rgba(20,20,15,.20);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---- Typography ---- */
.display, h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.2vw, 78px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.4vw, 22px); color: var(--ink-soft); line-height: 1.5; max-width: 60ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  display: inline-block;
}

.serif-accent { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---- Layout ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 243, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: padding .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-color: var(--hairline);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  transition: padding .25s ease;
}
.site-header.is-scrolled .site-header__inner { padding-top: 12px; padding-bottom: 12px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 32px; height: 32px;
  background: var(--ink);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 6px;
  background: var(--ember);
  clip-path: polygon(50% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.brand__name span { color: var(--green); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.nav__link:hover { background: rgba(20,20,15,.06); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--green); }
.nav__link[aria-current="page"]::after {
  content: "•";
  margin-left: 6px;
  color: var(--ember);
}

.nav__cta { margin-left: 12px; }

.menu-btn {
  display: none;
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 8px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav.is-open {
    display: flex;
    position: fixed; inset: 64px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 24px var(--gutter);
    gap: 0;
    z-index: 99;
    overflow-y: auto;
  }
  .nav.is-open .nav__link { font-size: 24px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
  .nav__cta { margin: 16px 0 0; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
  white-space: nowrap;
  min-height: 48px;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #000; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--ember { background: var(--ember); color: #fff; }
.btn--ember:hover { background: #B8431A; transform: translateY(-1px); }
.btn--sm { padding: 10px 16px; font-size: 14px; min-height: 40px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Trust bar ---- */
.trustbar {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}
.trustbar__row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  padding: 22px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.trustbar__item { display: inline-flex; align-items: center; gap: 10px; }
.trustbar__item strong { color: var(--ink); font-weight: 600; font-family: var(--font-sans); }
.stars { color: var(--ember); letter-spacing: 2px; font-size: 14px; }

/* ---- Cards ---- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: #C9C0AB; }

/* ---- Image slots (Foto-Platzhalter / echtes Foto) ---- */
image-slot { display: block; width: 100%; height: 100%; background: var(--surface); }
image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-slot__ph {
  width: 100%; height: 100%;
  min-height: 150px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 11px, rgba(20,20,15,.022) 11px, rgba(20,20,15,.022) 22px),
    var(--surface);
}
.image-slot__icon { width: 34px; height: 34px; color: var(--green); opacity: .55; }
.image-slot__tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.image-slot__desc {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.5;
  color: var(--muted); max-width: 32ch;
}

.image-frame {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.image-frame--16-9 { aspect-ratio: 16/9; }
.image-frame--4-5 { aspect-ratio: 4/5; }
.image-frame--1-1 { aspect-ratio: 1/1; }
.image-frame--3-2 { aspect-ratio: 3/2; }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #E6E2D8;
  padding: 80px 0 32px;
}
.site-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .14em; font-family: var(--font-mono); font-weight: 500; color: #9A9486; margin-bottom: 18px; }
.site-footer a { color: #E6E2D8; text-decoration: none; opacity: .8; }
.site-footer a:hover { opacity: 1; color: var(--ember); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid #2A2A24;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  padding-top: 28px;
  font-family: var(--font-mono); font-size: 12px; color: #8A8475;
  gap: 20px;
}
.site-footer__legal a { font-family: var(--font-mono); }
@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---- WhatsApp Float ---- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 50;
  background: #25D366;
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
  text-decoration: none;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---- Mobile sticky call/wa bar ---- */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 49;
  background: var(--ink);
  padding: 10px 14px;
  gap: 8px;
  border-top: 1px solid #2A2A24;
}
.mobile-cta a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #25292B;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
}
.mobile-cta a.is-primary { background: var(--green); }
@media (max-width: 700px) {
  .mobile-cta { display: flex; }
  .wa-float { display: none; }
  body { padding-bottom: 72px; }
}

/* ---- Animations: fade-in on scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Utility ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-deep);
}
.tag--ember { background: var(--ember-soft); color: #8A3613; }
.tag--ink { background: var(--ink); color: var(--bg); }

/* ---- Section header pattern ---- */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { max-width: 14ch; }
.sec-head p { color: var(--ink-soft); max-width: 50ch; margin: 0; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; } }

/* ---- Forms ---- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing: .04em; }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  color: var(--ink);
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-light);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-error {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--ember-soft);
  border: 1px solid #E8C4A8;
  color: #8A3613;
  font-size: 14px;
  line-height: 1.5;
}

/* ---- Misc ---- */
.divider { height: 1px; background: var(--hairline); margin: 80px 0; }
.kicker-num { font-family: var(--font-mono); font-size: 13px; color: var(--ember); font-weight: 500; }

/* ---- Big stat ---- */
.stat__num { font-family: var(--font-sans); font-weight: 700; font-size: clamp(48px, 6vw, 84px); letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.stat__label { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 8px; text-transform: uppercase; letter-spacing: .08em; }

/* ---- Hero shared ---- */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 120px);
}
.hero h1 .accent {
  color: var(--ember);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ---- Page hero compact (subpages) ---- */
.page-hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--hairline);
}
.page-hero .breadcrumbs { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.page-hero .breadcrumbs a { color: var(--muted); text-decoration: none; }
.page-hero .breadcrumbs a:hover { color: var(--ink); }

/* ---- Scroll anim hook ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
