:root{
  --bg: #F6F3EE;
  --surface: #FFFFFF;

  --ink: #1E1E1E;
  --muted: #5E5A55;

  --accent: #184838;
  --accent2: #21614a;

  --shadow-sm: 0 10px 24px rgba(0,0,0,.06);
  --shadow-md: 0 18px 46px rgba(0,0,0,.10);

  --radius: 18px;
  --radius2: 26px;

  --container: min(1120px, 92%);
  --sheet-radius: 28px;

  /* Sticky heights */
  --header-h: 74px; /* Desktop */

  /* Portrait framing (global defaults) */
  --hero-img-focus-y: 38%; /* 0% = top, 50% = middle */
}

*{box-sizing:border-box}
html,body{
  margin:0;padding:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background: var(--bg);
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:var(--container);margin:0 auto}

/* LOGO: rund & größer */
.logo{
  height: 62px;
  width: 62px;
  border-radius: 999px;
  object-fit: cover;
  display:block;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(24,72,56,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* Header sticky */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,243,238,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24,72,56,.16);
}
.topbar__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 0;
  gap: 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:190px;
}
.brand__name{font-weight:900; letter-spacing:.2px}
.brand__sub{font-size:13px; color:var(--muted)}

/* Nav */
.nav{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  font-size:14px;
  color:var(--muted);
  padding:8px 10px;
  border-radius: 12px;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.nav a:hover{
  color: var(--accent);
  background: rgba(24,72,56,.14);
  transform: translateY(-1px);
}
.nav a.is-active{
  color: var(--accent);
  background: rgba(24,72,56,.20);
  box-shadow: 0 10px 18px rgba(24,72,56,.10);
}

/* Burger */
.nav-toggle{
  display:none;
  border:1px solid rgba(24,72,56,.26);
  background: rgba(255,255,255,.55);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.nav-toggle__bar{
  width:18px;height:2px;
  background:var(--accent);
  border-radius:999px;
  display:block;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{ background: var(--accent); color:#fff; box-shadow: 0 16px 38px rgba(24,72,56,.26); }
.btn--primary:hover{ background: var(--accent2); transform: translateY(-1px); box-shadow: 0 20px 50px rgba(24,72,56,.32); }

.btn--ghost{ background: rgba(24,72,56,.06); border-color: rgba(24,72,56,.36); color: var(--accent); }
.btn--ghost:hover{ border-color: rgba(24,72,56,.56); background: rgba(24,72,56,.12); transform: translateY(-1px); }

.btn--wa{ background: var(--accent); color:#fff; box-shadow: 0 14px 34px rgba(24,72,56,.20); }
.btn--wa:hover{ background: var(--accent2); transform: translateY(-1px); box-shadow: 0 18px 46px rgba(24,72,56,.28); }

.btn--tiny{ padding: 9px 10px; font-size: 12px; border-radius: 12px; }
.btn--full{ width: 100%; }

/* ---------- HERO sticky (Startseite etc.) ---------- */
.hero{ padding: 56px 0 0; }

.hero--green{
  background:
    radial-gradient(900px 560px at 18% 10%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 560px at 78% 20%, rgba(255,255,255,.06), transparent 62%),
    linear-gradient(180deg, rgba(24,72,56,1), rgba(16,40,31,1));
  color:#fff;
}

.hero--sticky{
  position: sticky;
  top: var(--header-h);
  z-index: 10; /* unter dem Sheet */
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items:center;
  padding-bottom: 28px;
}

.hero h1{
  font-size:46px;
  line-height:1.06;
  margin:10px 0 14px;
  letter-spacing:-.3px;
}
.hero__p{
  font-size:16px;
  margin:0 0 18px;
  max-width:58ch;
}

.accent-line{
  width:70px;
  height:3px;
  border-radius:999px;
  margin-bottom:12px;
  background: var(--accent);
}

.hero__em{ position:relative; display:inline-block; }

.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:10px 0 14px;
}

.hero__meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.meta-pill--light{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.86);
}

/* Übergang in den Sheet-Layer */
.hero-wave{
  height: 44px;
  background: linear-gradient(180deg, rgba(16,40,31,1), rgba(246,243,238,1));
}

/* Media */
.hero__media .media-frame{ max-width: 430px; margin-left:auto; }

.media-frame{
  border-radius: var(--radius2);
  overflow:hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.14);
  position: relative;
}

/* Desktop hero image */
.hero__media img{
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

/* Signature */
.signature{
  position:absolute;
  right:18px; bottom:14px;
  z-index:3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(246,243,238,.90);
  border: 1px solid rgba(24,72,56,.28);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  font-family: "Segoe Script","Bradley Hand","Brush Script MT","Apple Chancery",cursive;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
}

/* ---------- SHEET rollt über Hero ---------- */
.sheet{
  position: relative;
  z-index: 30;
  margin-top: -22px; /* Desktop darf leicht overlappen */
  border-top-left-radius: var(--sheet-radius);
  border-top-right-radius: var(--sheet-radius);
  overflow: hidden;
  box-shadow: 0 -22px 52px rgba(0,0,0,.12);
  background: var(--bg);
}

/* Sections */
.section{ padding: 64px 0; }
.section--plain{ background: var(--bg); }
.section__head{ max-width:820px; margin-bottom:22px; }
.section__head h2{ font-size:30px; margin:10px 0 10px; letter-spacing:-.2px; }
.section__head p{ margin:0; color:var(--muted); }
.align-center{ align-items:center; }

/* Cards */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.grid-3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:18px; }

.card{
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(24,72,56,.22);
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card::before{
  content:"";
  position:absolute;
  left:16px; right:16px; top:0;
  height:3px;
  border-radius:999px;
  background: rgba(24,72,56,.32);
}
.card--link{ display:block; }
.card--link:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(24,72,56,.40); }
.card h3{ margin:6px 0 8px; font-size:18px; }
.card p{ margin:0; color:var(--muted); }
.link{ display:inline-block; margin-top:12px; font-weight:900; color:var(--accent); }
.link:hover{ color:var(--accent2); }

/* Deep green section (falls du sie auf anderen Seiten brauchst) */
.section--deepgreen{
  background:
    radial-gradient(1200px 520px at 15% 20%, rgba(24,72,56,.52), rgba(24,72,56,.94)),
    linear-gradient(180deg, rgba(24,72,56,.96), rgba(16,40,31,.98));
  color:#fff;
}
.h2--light{ color:#fff; }
.muted--light{ color: rgba(255,255,255,.78); }
.fineprint--light{ color: rgba(255,255,255,.70); }

.media-frame--menu img{ width:100%; height:420px; object-fit:cover; object-position:center; }

/* About Foto Desktop */
.media-frame--about{ max-width: 600px; margin-left:auto; border-color: rgba(24,72,56,.22); }
.media-frame--about img{ width:100%; height:460px; object-fit:cover; object-position: top center; }

/* Footer fade section */
.section--footerfade{
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(24,72,56,.18), transparent 55%),
    linear-gradient(180deg, rgba(24,72,56,.12), rgba(255,255,255,.26));
  border-top: 1px solid rgba(24,72,56,.10);
}

/* FAQ (falls vorhanden) */
.faq{ display:grid; gap:12px; }
.faq__item{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(24,72,56,.22);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow:hidden;
}
.faq__item summary{
  cursor:pointer;
  list-style:none;
  padding: 14px 16px;
  font-weight: 900;
  color: var(--accent);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.faq__item summary::-webkit-details-marker{ display:none; }
.faq__item summary::after{ content:"+"; font-weight:900; color:var(--accent); opacity:.9; }
.faq__item[open] summary::after{ content:"–"; }
.faq__content{ padding: 0 16px 14px 16px; color: var(--muted); }

/* Footer */
.footer{
  padding: 26px 0;
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(24,72,56,.18), transparent 55%),
    linear-gradient(180deg, rgba(24,72,56,.12), rgba(255,255,255,.26));
  border-top: 2px solid rgba(24,72,56,.22);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.footer__links{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.fineprint{ font-size:12px; color:var(--muted); margin:0; }

/* Reveal */
.reveal{
  opacity:0;
  transform: translateY(12px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* shrink */
.topbar--compact .topbar__inner{ padding:10px 0; }
.topbar--compact .brand__sub{ display:none; }
.topbar--compact .logo{
  height: 54px;
  width: 54px;
}

/* =========================================================
   KUNDEN: HELLES HERO + FORMS + EMBED + SERVICE LINKS
   ========================================================= */

/* Heller Kunden-Hero */
.hero--plain{
  padding: 38px 0 22px;
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(24,72,56,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.70), rgba(246,243,238,1));
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.hero__grid--plain{
  padding-bottom: 22px;
}

.meta-pill--plain{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(24,72,56,.06);
  border: 1px solid rgba(24,72,56,.18);
  color: var(--accent);
}

/* Kunden: Sheet darf über Hero liegen */
.sheet--over-hero{
  margin-top: -18px;
}

/* Embed */
.embed{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(246,243,238,.55);
  border: 1px solid rgba(24,72,56,.16);
  min-height: 520px;
}

.embed__frame{
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
  background: #fff;
}

.embed__fallback{
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 22px;
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(24,72,56,.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(246,243,238,1));
}

/* Form wide card header */
.card--formwide{
  padding: 0;
  overflow: hidden;
}
.card--formwide::before{
  left: 20px;
  right: 20px;
}
.formwide__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 14px;
  padding: 18px 20px 0 20px;
}
.formwide__head h3{ margin: 6px 0 6px; }

/* Form base */
.form{
  padding: 18px 20px 20px 20px;
}
.form--premium{
  background: linear-gradient(180deg, rgba(246,243,238,.40), rgba(255,255,255,0));
}

.form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-bottom: 14px;
}

.field--cta{
  justify-content:flex-end;
}

label{
  font-weight: 900;
  font-size: 13px;
  color: var(--accent);
}

input, select, textarea{
  font: inherit;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(24,72,56,.22);
  background: rgba(255,255,255,.92);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

input::placeholder, textarea::placeholder{
  color: rgba(94,90,85,.70);
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(24,72,56,.45);
  box-shadow: 0 0 0 4px rgba(24,72,56,.10);
}

textarea{
  resize: vertical;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Service links */
.list-links{
  display:grid;
  gap: 12px;
}

.list-links__item{
  display:block;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(24,72,56,.22);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.list-links__item:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(24,72,56,.38);
}
.list-links__title{
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}
.list-links__sub{
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   RESPONSIVE / MOBILE
   ========================================================= */

@media (max-width: 900px){
  :root{
    --header-h: 72px;
    --hero-img-focus-y: 40%;
  }

  .brand__text{ display:none; }

  .logo{
    height: 72px;
    width: 72px;
  }

  .nav-toggle{ display:inline-flex; }
  .nav{
    position: fixed;
    inset: 90px 12px auto 12px;
    background: rgba(246,243,238,.98);
    border: 1px solid rgba(24,72,56,.24);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 12px;
    display: grid;
    gap: 8px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  body.nav-open .nav{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav a, .nav button{ width:100%; justify-content:flex-start; }

  .hero--sticky{
    min-height: calc(100svh - var(--header-h));
    display:flex;
    align-items:flex-start;
  }

  .hero__grid{
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    padding-top: 12px;
    padding-bottom: 18px;
  }

  /* Reihenfolge mobil: Bild oben, Text unten */
  .hero__media{ order: 1; }
  .hero__copy{ order: 2; }

  .hero h1{
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.4px;
    margin: 8px 0 10px;
  }
  .hero__p{
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 14px;
    max-width: 44ch;
  }

  .hero__cta{
    display:grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 10px 0 10px;
  }
  .hero__cta .btn{
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .hero__meta{
    gap: 8px;
    margin-top: 10px;
  }

  .hero__media .media-frame{
    max-width: 100%;
    margin-left: 0;
    border-radius: 22px;
  }

  .hero__media img{
    width: 100%;
    height: clamp(240px, 32vh, 340px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 35%;
  }

  .signature{
    font-size: 18px;
    right: 12px;
    bottom: 12px;
  }

  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }

  .media-frame--menu img{ height: 320px; }

  .media-frame--about img{
    height: 420px;
    object-fit: contain;
    object-position: center;
    background: rgba(255,255,255,.92);
  }

  .sheet{
    margin-top: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -18px 44px rgba(0,0,0,.10);
  }

  .hero-wave{ height: 26px; }

  .embed__frame{
    height: 560px;
  }

  .form__row{
    grid-template-columns: 1fr;
  }

  .formwide__head{
    flex-direction: column;
    align-items: stretch;
  }
}
/* Sticky muss gewinnen, egal welche Hero-Variante */
.hero.hero--sticky{
  position: sticky;
  top: var(--header-h);
  z-index: 10;
}

/* Optional: auf grün soll die Accent-Line sichtbar sein */
.hero--green .accent-line{
  background: rgba(255,255,255,.78);
}
/* ONBOARDING: Bild-Fokus höher setzen (damit Kopf nicht abgeschnitten wird) */
.hero--onboarding .hero__media img{
  object-position: 50% 18%;
}

/* Mobile: etwas mehr Höhe + Fokus noch ein Tick höher */
@media (max-width: 900px){
  .hero--onboarding .hero__media img{
    height: clamp(320px, 46vh, 520px);
    object-position: 50% 12%;
  }
}
