:root{
  --bg:#f4f3ee; --ink:#11120f; --muted:#686a62; --line:#d7d6cf;
  --card:#fbfaf6; --accent:#b8ff5a; --accent2:#d9ffab;
  --radius:24px; --max:1180px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none}

.wrap{
  width:min(calc(100% - 40px),var(--max));
  margin:auto;
}

nav{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(244,243,238,.82);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(17,18,15,.08);
}

.nav{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}


+.brand{
  font-weight:800;
  letter-spacing:-.03em;
}

.brand span{
  color:#6f7468;
  font-weight:500;
}

.navlinks{
  display:flex;
  gap:28px;
  align-items:center;
  font-size:14px;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--ink);
  color:white;
  border-radius:999px;
  padding:13px 19px;
  font-weight:700;
  transition:.2s transform,.2s opacity;
}

.pill:hover{
  transform:translateY(-2px);
  opacity:.9;
}

.hero{
  padding:100px 0 70px;
}

.eyebrow{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:800;
  color:#66695f;
}

h1{
  font-size:clamp(62px,10vw,138px);
  line-height:.82;
  letter-spacing:-.075em;
  margin:28px 0 35px;
  max-width:1050px;
  font-weight:850;
}

h1 em{
  font-style:normal;
  position:relative;
  display:inline-block;
}

h1 em:after{
  content:"";
  position:absolute;
  left:-1%;
  right:-1%;
  bottom:-8px;
  height:18px;
  background:var(--accent);
  z-index:-1;
  border-radius:999px;
  transform:rotate(-1deg);
}

.hero-bottom{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:60px;
  align-items:end;
}

.lead{
  font-size:clamp(19px,2vw,27px);
  line-height:1.45;
  max-width:700px;
  color:#35372f;
  letter-spacing:-.02em;
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  justify-content:flex-end;
}

.tag{
  border:1px solid var(--line);
  padding:9px 12px;
  border-radius:999px;
  font-size:12px;
  background:rgba(255,255,255,.35);
}

section{
  padding:100px 0;
  border-top:1px solid var(--line);
}

.section-head{
  display:grid;
  grid-template-columns:.5fr 1.5fr;
  gap:40px;
  margin-bottom:58px;
}

h2{
  font-size:clamp(42px,6vw,78px);
  line-height:.96;
  letter-spacing:-.055em;
  margin:0;
  max-width:850px;
}

.muted{
  color:var(--muted);
}

.problem-grid,
.services{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px;
  min-height:250px;
  transition:.25s transform,.25s box-shadow;
}

.card:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 50px rgba(20,20,15,.07);
}

.num{
  font-size:12px;
  font-weight:800;
  color:#74776d;
  margin-bottom:65px;
}

.card h3{
  font-size:27px;
  letter-spacing:-.035em;
  margin:0 0 12px;
  overflow-wrap:anywhere;
  hyphens:auto;
}

.card p{
  color:var(--muted);
  line-height:1.65;
  margin:0;
}

.services{
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:100%;
}

.services > *{
  min-width:0;
}

.service{
  overflow:hidden;
}

.service{
  min-height:320px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:34px;
}

.service .icon{
  width:48px;
  height:48px;
  border-radius:14px;
  background:var(--accent);
  display:grid;
  place-items:center;
  font-weight:900;
}

.service small{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.1em;
}

.case{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:18px;
  margin-top:18px;
}

.case-copy,
.flow{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  padding:34px;
}

.case-copy{
  min-height:430px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.case-copy h3{
  font-size:42px;
  line-height:1;
  letter-spacing:-.045em;
  margin:15px 0;
}

.flow{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
}

.flow:before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(
    circle at 70% 20%,
    rgba(184,255,90,.28),
    transparent 34%
  );
}

.nodes{
  position:relative;
  z-index:1;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.node{
  background:white;
  border:1px solid #cecec7;
  border-radius:15px;
  padding:17px 14px;
  font-weight:750;
  font-size:13px;
  min-width:92px;
  text-align:center;
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease,
    background-color .3s ease;
}

.node.is-active{
  border-color:var(--accent);
  background:#fbfff4;
  transform:translateY(-3px);
  box-shadow:
    0 0 0 7px rgba(184,255,90,.16),
    0 12px 30px rgba(36,46,20,.08);
}

.node.is-complete{
  border-color:#c7dda5;
  background:#fcfff7;
}

.arrow{
  height:1px;
  background:#b7baaf;
  width:35px;
  position:relative;
  overflow:visible;
}

.arrow::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:0;
  height:1px;
  background:var(--accent);
  transition:width .38s ease,height .38s ease;
}

.arrow.is-active::before,
.arrow.is-complete::before{
  width:100%;
}

.arrow:after{
  content:"›";
  position:absolute;
  right:-2px;
  top:-12px;
  color:#777;
  font-size:20px;
  transition:color .3s ease;
}

.arrow.is-active:after,
.arrow.is-complete:after{
  color:#7da52d;
}

.about{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:start;
}

.about p{
  font-size:22px;
  line-height:1.55;
  letter-spacing:-.02em;
  margin-top:0;
}

.quote{
  font-size:clamp(45px,6vw,76px);
  line-height:.95;
  letter-spacing:-.055em;
  font-weight:800;
}

.quote span{
  background:var(--accent);
  padding:0 .08em;
}

.cta{
  padding:120px 0;
}

.cta-box{
  background:var(--ink);
  color:white;
  border-radius:34px;
  padding:65px;
  position:relative;
  overflow:hidden;
}

.cta-box:after{
  content:"";
  position:absolute;
  width:390px;
  height:390px;
  border-radius:50%;
  background:var(--accent);
  right:-170px;
  top:-190px;
  filter:blur(2px);
}

.cta h2{
  font-size:clamp(55px,8vw,110px);
  max-width:900px;
  position:relative;
  z-index:2;
}

.cta p{
  color:#b8bab2;
  font-size:19px;
  max-width:570px;
  line-height:1.6;
  position:relative;
  z-index:2;
}

.cta .pill{
  background:var(--accent);
  color:var(--ink);
  margin-top:18px;
  position:relative;
  z-index:2;
}

footer{
  padding:25px 0 50px;
  color:#74776e;
  font-size:13px;
}

.footer{
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--line);
  padding-top:25px;
}

.tags-left{
  justify-content:flex-start;
}

.tags-about{
  margin-top:30px;
}

.about-eyebrow{
  margin-bottom:25px;
}

.eyebrow-on-dark{
  color:#b8bab2;
}


/* =========================================================
   REVEAL ANIMATIONS
   Ohne JavaScript bleiben alle Inhalte vollständig sichtbar.
   ========================================================= */

.reveal{
  opacity:1;
  transform:none;
}

/* Wird erst aktiviert, wenn script.js erfolgreich ausgeführt wurde */
.animations-ready .reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .65s ease,transform .65s ease;
}

.animations-ready .reveal.visible{
  opacity:1;
  transform:none;
}


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

@media(max-width:800px){

  .navlinks a:not(.pill){
    display:none;
  }

  .hero{
    padding-top:65px;
  }

  .hero-bottom,
  .section-head,
  .about,
  .case{
    grid-template-columns:1fr;
  }

  .tags{
    justify-content:flex-start;
  }

  .problem-grid,
  .services{
    grid-template-columns:minmax(0,1fr);
  }

  section{
    padding:75px 0;
  }

  .case-copy{
    min-height:340px;
  }

  .flow{
    min-height:300px;
  }

  .nodes{
    flex-direction:column;
  }

  .arrow{
    width:1px;
    height:25px;
  }

  .arrow::before{
    width:1px;
    height:0;
  }

  .arrow.is-active::before,
  .arrow.is-complete::before{
    width:1px;
    height:100%;
  }

  .arrow:after{
    display:none;
  }

  .cta-box{
    padding:40px 28px;
  }

  .wrap{
    width:min(calc(100% - 26px),var(--max));
  }


  /* Mobile optimization for the service cards */

  #services .section-head{
    gap:18px;
    margin-bottom:34px;
  }

  #services h2{
    font-size:clamp(38px,11vw,54px);
    line-height:1;
  }

  #services .services{
    gap:12px;
  }

  #services .service{
    min-height:0;
    width:100%;
    padding:24px 22px;
    gap:30px;
  }

  #services .service .icon{
    width:44px;
    height:44px;
    flex:0 0 44px;
  }

  #services .service h3{
    font-size:clamp(22px,7vw,28px);
    line-height:1.08;
    letter-spacing:-.035em;
    overflow-wrap:anywhere;
    word-break:normal;
    hyphens:auto;
  }

  #services .service p{
    font-size:15px;
    line-height:1.55;
  }

  #services .service small{
    font-size:11px;
  }
}


@media(max-width:420px){

  #services .service{
    padding:21px 18px;
  }

  #services h2{
    font-size:38px;
  }

  #services .service h3{
    font-size:23px;
  }
}

/* =========================================================
   LEGAL PAGES
   Impressum / Datenschutz
   ========================================================= */

.legal-page{
  min-height:calc(100vh - 72px);
}

.legal-hero{
  padding:100px 0 75px;
}

.legal-title{
  font-size:clamp(70px,10vw,130px);
  line-height:.85;
  letter-spacing:-.075em;
  margin:28px 0 0;
  max-width:none;
}

.legal-section{
  padding:80px 0 120px;
}

.legal-layout{
  display:grid;
  grid-template-columns:.5fr 1.5fr;
  gap:40px;
}

.legal-content{
  max-width:760px;
}

.legal-block{
  padding:0 0 45px;
  margin-bottom:45px;
  border-bottom:1px solid var(--line);
}

.legal-block:last-child{
  margin-bottom:0;
}

.legal-block h2{
  font-size:clamp(32px,4vw,48px);
  line-height:1;
  letter-spacing:-.045em;
  margin:0 0 22px;
}

.legal-block h3{
  font-size:24px;
  line-height:1.15;
  letter-spacing:-.03em;
  margin:0 0 18px;
}

.legal-block p{
  color:var(--muted);
  font-size:17px;
  line-height:1.7;
  margin:0;
}

.legal-block a{
  color:var(--ink);
  border-bottom:1px solid var(--line);
  transition:border-color .2s ease;
}

.legal-block a:hover{
  border-color:var(--ink);
}

.footer-links{
  display:flex;
  gap:20px;
}

.footer-links a{
  transition:color .2s ease;
}

.footer-links a:hover{
  color:var(--ink);
}


@media(max-width:800px){

  .legal-hero{
    padding:65px 0 50px;
  }

  .legal-title{
    font-size:clamp(58px,18vw,90px);
  }

  .legal-section{
    padding:60px 0 80px;
  }

  .legal-layout{
    grid-template-columns:1fr;
    gap:35px;
  }

  .legal-block{
    padding-bottom:35px;
    margin-bottom:35px;
  }

  .legal-block h3{
    font-size:22px;
  }

  .legal-block p{
    font-size:16px;
  }

  .footer{
    gap:20px;
    align-items:flex-start;
  }

  .footer-links{
    flex-wrap:wrap;
    justify-content:flex-end;
  }
}

/* =========================================================
   DATENSCHUTZ
   ========================================================= */

.legal-block h3{
  margin-top:38px;
}

.legal-block h3:first-child{
  margin-top:0;
}

.legal-block h4{
  font-size:17px;
  line-height:1.4;
  letter-spacing:-.015em;
  margin:28px 0 10px;
}

.legal-block p + p{
  margin-top:18px;
}

.legal-block ul{
  color:var(--muted);
  font-size:17px;
  line-height:1.7;
  padding-left:22px;
  margin:20px 0;
}

.legal-block li{
  padding-left:5px;
  margin-bottom:12px;
}

.legal-emphasis{
  font-size:14px !important;
  line-height:1.7 !important;
  letter-spacing:.01em;
}

/* =========================================================
   MOBILE CALL BUTTON
   ========================================================= */

.mobile-call{
  display:none;
}

@media(max-width:800px){

  .mobile-call{
    position:fixed;
    right:18px;
    bottom:10%;
    z-index:100;

    display:flex;
    align-items:center;
    gap:9px;

    background:var(--ink);
    color:white;

    padding:14px 18px;
    border-radius:999px;

    font-size:14px;
    font-weight:750;

    box-shadow:0 10px 35px rgba(17,18,15,.18);

    transition:transform .2s ease, box-shadow .2s ease;
  }

  .mobile-call:active{
    transform:scale(.96);
  }

  .mobile-call-icon{
    display:grid;
    place-items:center;

    width:26px;
    height:26px;

    background:var(--accent);
    color:var(--ink);

    border-radius:50%;

    font-size:14px;
    line-height:1;
  }
}

/* =========================================================
   CONTRACT FLOW
   Nur für den neuen Vertragsprozess.
   Bestehende Flows und restliches Layout bleiben unverändert.
   ========================================================= */

.flow-contract{
  min-height:430px;
  align-items:flex-start;
  justify-content:center;
}

.flow-contract .contract-top{
  position:relative;
  z-index:1;
  width:100%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:10px;
}

.flow-contract .contract-top > .node{
  flex:0 0 auto;
  min-width:120px;
}

.flow-contract .contract-top > .arrow{
  flex:0 0 35px;
  margin-top:25px;
}

.flow-contract .check-block{
  flex:0 0 320px;
  width:320px;
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
}

.flow-contract .node-check{
  min-width:140px;
}


/* Entscheidung unterhalb der Datenprüfung */

.flow-contract .decision-grid{
  position:relative;
  width:100%;
  margin-top:44px;

  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

/* Datenprüfung -> Verzweigung */
.flow-contract .decision-grid::before{
  content:"";
  position:absolute;
  left:50%;
  top:-44px;
  width:1px;
  height:22px;
  background:#b7baaf;
}

/* horizontale Verzweigung */
.flow-contract .decision-grid::after{
  content:"";
  position:absolute;
  left:25%;
  right:25%;
  top:-22px;
  height:1px;
  background:#b7baaf;
}

.flow-contract .decision-path{
  position:relative;
  min-width:0;

  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Verzweigung -> jeweiliger Pfad */
.flow-contract .decision-path::before{
  content:"";
  position:absolute;
  left:50%;
  top:-22px;
  width:1px;
  height:22px;
  background:#b7baaf;
}


/* Kleine Entscheidungslabels */

.flow-contract .branch-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:30px;
  padding:6px 10px;

  border:1px solid #cecec7;
  border-radius:999px;

  background:rgba(255,255,255,.78);
  color:#686a62;

  font-size:11px;
  line-height:1.2;
  font-weight:750;
  text-align:center;
  white-space:nowrap;
}


/* Prozess-Nodes unterhalb der Entscheidung */

.flow-contract .decision-path .node{
  position:relative;

  width:100%;
  max-width:145px;
  min-width:0;

  margin-top:18px;
  padding:15px 10px;
}

/* Label -> Prozess-Node */
.flow-contract .decision-path .node::before{
  content:"";
  position:absolute;
  left:50%;
  top:-19px;
  width:1px;
  height:18px;
  background:#b7baaf;
}


/* Rücksprung zur Prüfung */

.flow-contract .return-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin-top:13px;
  padding:5px 8px;

  border-radius:999px;
  background:rgba(255,255,255,.55);

  color:#686a62;
  font-size:10px;
  line-height:1.2;
  font-weight:700;
  white-space:nowrap;
}


/* Mobile: nur der Vertragsflow */

@media(max-width:800px){

  .flow-contract{
    min-height:520px;
    padding:28px 18px;
    align-items:center;
  }

  .flow-contract .contract-top{
    flex-direction:column;
    align-items:center;
    gap:0;
  }

  .flow-contract .contract-top > .node{
    min-width:150px;
  }

  .flow-contract .contract-top > .arrow{
    width:1px;
    height:24px;
    flex:0 0 24px;
    margin:0;
  }

  .flow-contract .contract-top > .arrow::before{
    width:1px;
    height:0;
  }

  .flow-contract .contract-top > .arrow.is-active::before,
  .flow-contract .contract-top > .arrow.is-complete::before{
    width:1px;
    height:100%;
  }

  .flow-contract .contract-top > .arrow::after{
    display:none;
  }

  .flow-contract .check-block{
    width:100%;
    max-width:360px;
    flex:0 0 auto;
  }

  .flow-contract .decision-grid{
    margin-top:40px;
    gap:12px;
  }

  .flow-contract .decision-grid::before{
    top:-40px;
    height:20px;
  }

  .flow-contract .decision-grid::after{
    top:-20px;
  }

  .flow-contract .decision-path::before{
    top:-20px;
    height:20px;
  }

  .flow-contract .branch-label{
    max-width:125px;
    min-height:28px;
    padding:6px 8px;
    font-size:10px;
    white-space:normal;
  }

  .flow-contract .decision-path .node{
    max-width:135px;
    padding:13px 8px;
    font-size:12px;
  }

  .flow-contract .return-label{
    font-size:9px;
  }
}

