/* ============================================================
   1. DESIGN-TOKENS – hier zentral Farben und Maße ändern
   ============================================================ */
:root{
  --bg:#fafaf8;          /* Seitenhintergrund       */
  --bg-sand:#f0ebe3;     /* abgesetzte Sektionen    */
  --wald:#1c3326;        /* Dunkelgrün / Primärfarbe*/
  --smaragd:#4a7a5e;     /* Mittelgrün              */
  --lime:#c3ee1e;        /* Akzent (hell)           */
  --lime-alt:#c2d019;    /* Akzent (Nav/Buttons)    */
  --text:#33352f;
  --text-soft:#4a4b43;
  --muted:#8a8577;
  --muted-2:#6b6b60;
  --line:#ece4d4;
  --line-strong:#d4c5a8;
  --on-dark:#fafaf8;
  --on-dark-soft:#c4cdc6;
  --footer:#a5a494;
  --wrap:1280px;
  --pad:40px;  
}

/* ============================================================
   2. BASIS
   ============================================================ */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:#000;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
::-moz-selection { background:var(--muted); color:var(--lime); }
::selection { background:var(--muted); color:var(--lime); }
img{max-width:100%; height:auto; display:block}
a{color:var(--wald); text-decoration:none}
a:hover{color:var(--smaragd)}
a:focus-visible,button:focus-visible,summary:focus-visible,
input:focus-visible,textarea:focus-visible{
  outline:3px solid var(--smaragd); outline-offset:3px; border-radius:4px;
}
h1,h2,h3{letter-spacing:-.02em; font-weight:600; margin:0}
p{margin:0}
.wrap{max-width:var(--wrap); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad)}

/* Kleinschrift-Label über den Überschriften */
.eyebrow{
  font-family:'JetBrains Mono',ui-monospace,monospace;
  font-size:12.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--smaragd); font-weight:500; margin-bottom:18px;
}
.eyebrow--dark{color:var(--lime)}
.eyebrow--muted{color:var(--muted)}

/* Buttons */
.btn{
  display:inline-block; font-size:15px; font-weight:600;
  padding:16px 30px; border-radius:100px; border:1px solid transparent;
  transition:transform .15s ease, opacity .15s ease;
}
.btn:hover{transform:translateY(-1px); opacity:.92}
.btn--dark{background:var(--wald); color:var(--on-dark)}
.btn--dark:hover{color:var(--on-dark)}
.btn--lime{background:var(--lime-alt); color:var(--on-dark); border-color:var(--line-strong)}
.btn--lime:hover{color:var(--wald)}
.btn--sm{font-size:14px; padding:11px 22px}

section{
padding:100px var(--pad);
max-width: calc(var(--wrap) - 80px);
margin-left: auto;
margin-right: auto;
}
section > .wrap{padding-left:0; padding-right:0}

/* ============================================================
   3. HEADER / NAVIGATION
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,250,248,.92); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex-wrap:wrap; padding-top:18px; padding-bottom:18px;
}
.logo{width:209px; height:auto}
.site-nav{display:flex; align-items:center; gap:32px; flex-wrap:wrap}
.site-nav a{font-size:15px; font-weight:500}

/* ============================================================
   4. HERO
   ============================================================ */
.hero{padding-top:88px; padding-bottom:40px}
.hero-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center}
.hero h1{font-size:clamp(42px,6.4vw,88px); line-height:.98; margin:0 0 28px; max-width:16ch}
.hero h1 .accent{color:var(--lime-alt)}
.hero-lead{font-size:clamp(17px,1.6vw,21px); line-height:1.55; color:var(--text); max-width:640px; margin-bottom:40px}
.hero-actions{display:flex; gap:16px; flex-wrap:wrap}
.hero-visual img{width:100%; max-width:515px; height:auto; aspect-ratio:1/1; object-fit:contain; margin-left:auto; border-radius:24px}
.dot{width:7px; height:7px; border-radius:2px; background:var(--lime); display:inline-block}
.eyebrow--dot{display:flex; align-items:center; gap:10px; margin-bottom:26px}

/* ============================================================
   5. FALTSEQUENZ (01–04) – hier ist die Nummerierung sinnvoll,
      weil es eine echte Reihenfolge ist
   ============================================================ */
.steps{border-top:1px solid var(--line); padding-top:44px; margin-top:72px}
.steps-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:20px}
.step{
  background:#fff; border:1px solid var(--line); border-radius:20px;
  padding:24px; display:flex; flex-direction:column;
}
.step-head{display:flex; align-items:flex-start; gap:10px; margin-bottom:16px}
.step-num{
  flex-shrink:0; width:26px; height:26px; border-radius:100px;
  background:var(--wald); color:var(--lime);
  font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:500;
  display:flex; align-items:center; justify-content:center;
}
.step-title{font-size:14.5px; font-weight:600}
.step-figure{
  margin-top:auto; height:190px;
  display:flex; align-items:center; justify-content:center;
}
.step-figure img{max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain}

/* ============================================================
   6. VORTEILE
   ============================================================ */
.section--sand{background:var(--bg-sand)}
.section-title{font-size:clamp(30px,3.6vw,46px); margin-bottom:56px; max-width:16ch}
.benefits{display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:40px}
.benefit h3{font-size:19px; margin-bottom:10px}
.benefit p{font-size:15.5px; line-height:1.6; color:var(--text-soft)}
.mark{width:56px; height:56px; border-radius:14px; position:relative; overflow:hidden; margin-bottom:22px; background:var(--wald)}
.mark--alt{background:var(--smaragd)}
.mark::after{
  content:""; position:absolute; width:150%; height:9px; background:var(--lime);
  top:50%; left:-25%; transform:translateY(-50%) rotate(-30deg);
}

/* ============================================================
   7. EINSATZBEREICHE (dunkel)
   ============================================================ */
.section--dark{background:var(--wald); color:var(--on-dark)}
.section--dark .section-title{color:var(--on-dark)}
.usecases{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1px; background:rgba(250,250,248,.14); border-radius:20px; overflow:hidden;
}
.usecase{background:var(--wald); padding:36px 32px}
.usecase:first-child{padding:36px 0}
.usecase h3{font-size:18px; margin-bottom:10px}
.usecase p{font-size:14.5px; line-height:1.6; color:var(--on-dark-soft)}
.mark--sm{width:44px; height:44px; border-radius:12px; background:var(--lime); margin-bottom:24px}
.mark--sm::after{height:7px; background:var(--wald)}

/* ============================================================
   8. PERSONALISIERUNG
   ============================================================ */
.split{display:grid;    grid-template-columns: 1fr 1fr; gap:75px; align-items:center}
.split h2{font-size:clamp(28px,3.2vw,40px); margin-bottom:22px; max-width:14ch}
.split p{font-size:16.5px; line-height:1.65; color:var(--text); max-width:52ch}
.split p + p{margin-top:20px}
.photo-slot{
  aspect-ratio:8 / 5; 
  border-radius:20px; 
  background:var(--bg-sand);
  display:flex; 
  align-items:center; 
  justify-content:center; 
  margin-left:40px;
}
.photo-slot img{width:100%; height:100%; object-fit:cover; border-radius:20px}

/* ============================================================
   9. CTA / KONTAKT
   ============================================================ */
.cta{background:var(--wald); color:var(--on-dark); padding:110px var(--pad)}
.cta-inner{max-width:900px; margin:0 auto; text-align:center}
.cta h2{font-size:clamp(30px,4vw,50px); margin-bottom:20px; color:var(--on-dark)}
.cta-lead{font-size:17px; line-height:1.6; color:var(--on-dark-soft); margin-bottom:40px}
.cta-actions{display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:64px}
.btn--ghost{background:rgba(250,250,248,.12); color:var(--lime); border-color:rgba(250,250,248,.35); font-size:16px; padding:18px 32px}
.btn--ghost:hover{color:var(--lime)}
.btn--solid-lime{background:var(--lime); color:var(--wald); font-size:16px; padding:18px 32px}
.btn--solid-lime:hover{color:var(--wald)}

.contact-form{
  background:rgba(250,250,248,.06); border:1px solid rgba(250,250,248,.16);
  border-radius:24px; padding:36px; text-align:left; scroll-margin-top:90px;
}
.form-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-bottom:16px}
.contact-form input,.contact-form textarea{
  width:100%; background:var(--bg); border:none; border-radius:10px;
  padding:14px 16px; font-size:15px; font-family:inherit; color:#000;
}
.contact-form textarea{margin-bottom:20px; resize:vertical}
.consent{display:flex; gap:10px; align-items:flex-start; font-size:13.5px; line-height:1.5; color:var(--on-dark-soft); margin-bottom:24px}
.consent input{width:auto; flex-shrink:0; margin-top:2px}
.consent a{color:var(--lime); text-decoration:underline}
.contact-form button{
  font-size:15px; font-weight:600; color:var(--wald); background:var(--lime);
  padding:15px 30px; border-radius:100px; border:none; cursor:pointer; font-family:inherit;
}

/* ============================================================
   10. FAQ
   ============================================================ */
.faq-inner{max-width:820px; margin:0 auto}
.faq-inner h2{font-size:clamp(28px,3.2vw,40px); margin-bottom:44px}
details{border-top:1px solid var(--line-strong); padding:22px 0}
details .hervorheben{color:var(--lime-alt)}
details:last-of-type{border-bottom:1px solid var(--line-strong)}
summary{font-size:16.5px; font-weight:600; list-style:none; cursor:pointer; display: list-item!important;; gap:16px}
summary::-webkit-details-marker{display:none}
details p{font-size:15.5px; line-height:1.65; color:var(--text-soft); margin-top:14px}

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer{background:var(--bg); padding:56px var(--pad) 40px; border-top:1px solid var(--line)}
.footer-grid{display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap}
.footer-logo{width:251px; height:auto}
.footer-address{font-size:14px; line-height:1.7; color:var(--muted-2); max-width:32ch; margin-top:16px}
.footer-col{font-size:14px; line-height:2; color:var(--text)}
.footer-col-title{
  font-family:'JetBrains Mono',monospace; font-size:11.5px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted); font-weight:500; margin-bottom:10px;
}
.footer-bottom{
  max-width:calc(var(--wrap) - 80px); margin:48px auto 0; padding-top:24px;
  border-top:1px solid var(--line); font-size:13px; color:#a5a494;
  display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.footer-bottom a{color:var(--footer); text-decoration:underline}

/* ============================================================
   12. BACK 2 TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lime-alt);
    color: var(--on-dark);
    border-color: var(--line-strong);
    text-decoration: none;
    font-size: 24px; 
    transition: transform .2s ease, opacity .2s ease;
} 
.back-to-top:hover {
    transform: translateY(-3px);
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width:900px){
  :root{--pad:24px}
  section{padding:72px var(--pad)}
  .cta{padding:80px var(--pad)}
  .hero-grid{grid-template-columns:1fr; gap:40px}
  .hero-visual img{margin:0 auto}
  .split{grid-template-columns:1fr; gap:36px}
  .split > div:first-child{max-width:340px}
  .site-nav{gap:20px}
   .usecase{padding:36px 0}  
  .photo-slot{margin-left:0} 
  .wrap.footer-grid{padding-left:0;padding-right:0} 
}
@media (max-width:520px){
  .site-header .wrap{padding-top:14px; padding-bottom:14px}
  .logo{width:160px}
  .site-nav{width:100%; justify-content:space-between; gap:14px}
  .site-nav a{font-size:14px}
  .contact-form{padding:24px}
  .hero-actions .btn, .cta-actions .btn{width:100%; text-align:center}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important; animation:none !important}
}

/* ============================================================
   BURGER-MENÜ (mobil)
   ============================================================ */
.nav-toggle{display:none}

@media (max-width:768px){

  .nav-toggle{
    display:flex; flex-direction:column; justify-content:center; gap:5px;
    width:44px; height:44px; padding:0 9px;
    background:none; border:none; cursor:pointer;
  }
  .nav-toggle span{
    display:block; width:100%; height:2px; border-radius:2px;
    background:var(--wald);
    transition:transform .25s ease, opacity .2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
  .nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  /* Panel unterhalb des Headers */
  .site-nav{
    position:fixed; left:0; right:0; top:var(--header-h,72px);
    width:auto;
    flex-direction:column; align-items:stretch;
    justify-content:flex-start; gap:0;
    padding:4px var(--pad) 26px;
    background:var(--bg);
    border-bottom:1px solid var(--line);
    box-shadow:0 12px 24px rgba(28,51,38,.08);
    max-height:0; overflow:hidden; visibility:hidden;
    transition:max-height .3s ease, visibility 0s .3s;
  }
  .site-nav[data-open="true"]{
    max-height:min(70vh, 520px); overflow-y:auto; visibility:visible;
    transition:max-height .3s ease, visibility 0s;
  }

  .site-nav a{
    font-size:17px; padding:15px 2px;
    border-bottom:1px solid var(--line);
  }
  .site-nav .btn{
    margin-top:20px; text-align:center; border-bottom:none;
    font-size:15px; padding:15px 24px;
  }
}

@media (prefers-reduced-motion:reduce){
  .nav-toggle span, .site-nav{transition:none}
}

/* ============================================================
   14. RECHTS-OVERLAY (Impressum / Datenschutz)
       Panel faehrt von unten herein, Breite lt. --wrap
   ============================================================ */
.sheet{
  position:fixed; inset:0; z-index:120;
  display:flex; align-items:flex-end; justify-content:center;
  visibility:hidden; pointer-events:none;
  transition:visibility 0s .45s;
}
.sheet[data-open="true"]{
  visibility:visible; pointer-events:auto;
  transition:visibility 0s 0s;
}

/* Abdunklung hinter dem Panel */
.sheet-backdrop{
  position:absolute; inset:0; width:100%; height:100%;
  border:none; padding:0; margin:0; cursor:pointer;
  background:rgba(28,51,38,.55);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  opacity:0; transition:opacity .45s ease;
}
.sheet[data-open="true"] .sheet-backdrop{opacity:1}

/* Das eigentliche Fenster */
.sheet-panel{
  position:relative;
  width:100%;
  max-width:var(--wrap);
  max-height:92vh;
  max-height:92dvh;
  display:flex; flex-direction:column;
  background:var(--bg);
  border:1px solid var(--line);
  border-bottom:none;
  border-radius:28px 28px 0 0;
  box-shadow:0 -24px 70px rgba(28,51,38,.28);
  transform:translateY(100%);
  transition:transform .45s cubic-bezier(.22,.61,.36,1);
  overflow:hidden;
}
.sheet[data-open="true"] .sheet-panel{transform:translateY(0)}

/* Griff-Andeutung oben */
.sheet-handle{
  width:44px; height:4px; border-radius:100px;
  background:var(--line-strong);
  margin:10px auto 0; flex-shrink:0;
}

/* Kopfzeile mit Titel und Schliessen-Button */
.sheet-head{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:24px; flex-shrink:0;
  padding:18px var(--pad) 20px;
  border-bottom:1px solid var(--line);
}
.sheet-head h2{
  font-size:clamp(24px,3vw,34px);
  line-height:1.1; color:var(--wald);
}
.sheet-close{
  flex-shrink:0;
  width:44px; height:44px; border-radius:100px;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-sand); border:1px solid var(--line-strong);
  color:var(--wald); cursor:pointer;
  transition:transform .25s ease, background .2s ease, color .2s ease;
}
.sheet-close svg{width:18px; height:18px; display:block}
.sheet-close:hover{background:var(--lime-alt); color:var(--wald); transform:rotate(90deg)}

/* Scrollbarer Inhalt */
.sheet-body{
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding:34px var(--pad) 56px;
}
.sheet-body > *{max-width:76ch}
.sheet-body h3{
  font-size:19px; color:var(--wald);
  margin:40px 0 12px;
}
.sheet-body h3:first-child{margin-top:0}
.sheet-body p{
  font-size:15.5px; line-height:1.7; color:var(--text-soft);
}
.sheet-body p + p{margin-top:14px}
.sheet-body a{color:var(--smaragd); text-decoration:underline}
.sheet-body a:hover{color:var(--wald)}
.sheet-note{
  font-family:'JetBrains Mono',ui-monospace,monospace;
  font-size:12px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted); margin-bottom:30px;
}
.sheet-lead{
  font-size:17px; line-height:1.6; color:var(--text);
  padding-bottom:8px;
}

/* Zweispaltige Angaben im Impressum */
.legal-list{
  display:grid; grid-template-columns:minmax(180px,240px) 1fr;
  gap:6px 40px; max-width:900px;
}
.legal-list > dt{
  font-family:'JetBrains Mono',ui-monospace,monospace;
  font-size:11.5px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--muted); font-weight:500;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.legal-list > dd{
  margin:0; padding-top:20px;
  border-top:1px solid var(--line);
  font-size:15.5px; line-height:1.7; color:var(--text-soft);
}
.legal-list > dt:first-child,
.legal-list > dt:first-child + dd{border-top:none; padding-top:0}

/* Scroll-Sperre der Seite, solange ein Fenster offen ist */
html.sheet-open, body.sheet-open{overflow:hidden}

@media (max-width:900px){
  .sheet-panel{border-radius:22px 22px 0 0; max-height:94vh; max-height:94dvh}
  .sheet-body{padding:28px var(--pad) 48px}
  .legal-list{grid-template-columns:1fr; gap:0}
  .legal-list > dt{padding-top:22px}
  .legal-list > dd{padding-top:6px; border-top:none; padding-bottom:2px}
  .legal-list > dt:first-child + dd{padding-top:6px}
}

@media (prefers-reduced-motion:reduce){
  .sheet{transition:none}
  .sheet-panel{transform:translateY(0)}
  .sheet-backdrop{opacity:1}
}

/* ============================================================
   15. KONTAKTFORMULAR - Honeypot und Statusmeldung
   ============================================================ */

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ausfuellbar.
   Bewusst kein display:none - manche Bots ueberspringen das. */
.hp-feld{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
  opacity:0; pointer-events:none;
}

/* Rueckmeldung nach dem Absenden */
.form-status{
  margin-top:18px; font-size:14.5px; line-height:1.6;
  max-height:0; opacity:0; overflow:hidden;
  transition:max-height .3s ease, opacity .3s ease, margin-top .3s ease;
}
.form-status[data-status="ok"],
.form-status[data-status="fehler"]{
  max-height:200px; opacity:1;
  padding:14px 18px; border-radius:12px;
}
.form-status[data-status="ok"]{
  background:rgba(195,238,30,.14);
  border:1px solid rgba(195,238,30,.45);
  color:var(--lime);
}
.form-status[data-status="fehler"]{
  background:rgba(250,250,248,.08);
  border:1px solid rgba(250,250,248,.32);
  color:var(--on-dark);
}
.form-status[data-status="laedt"]{max-height:0; opacity:0; margin-top:0}

/* Button waehrend des Versands */
.contact-form button[disabled]{
  opacity:.6; cursor:progress;
}
