:root{
    color-scheme:light;
    --black:#111111;
    --anthracite:#2A2A2A;
    --red:#FF0808;
    --light-gray:#F3F3F3;
    --white:#FFFFFF;
    --font-display:'Montserrat',sans-serif;
    --font-body:'Montserrat',sans-serif;
    --font-mono:'JetBrains Mono',monospace;
    --max-w:1180px;
    --radius:14px;
    --ease:cubic-bezier(.22,.61,.36,1);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important;}
  }
  body{
    margin:0;
    font-family:var(--font-body);
    color:var(--black);
    background:var(--white);
    -webkit-font-smoothing:antialiased;
    line-height:1.6;
  }
  img{max-width:100%; display:block;}
  a{color:inherit;}
  .wrap{max-width:var(--max-w); margin:0 auto; padding:0 24px;}
  ::selection{background:var(--red); color:var(--white);}
  :focus-visible{outline:2px solid var(--red); outline-offset:3px;}

  /* ---------- Eyebrow / labels ---------- */
  .eyebrow{
    display:inline-flex; align-items:center; gap:9px;
    font-family:var(--font-mono);
    font-size:.72rem;
    letter-spacing:.16em;
    text-transform:uppercase;
    color:var(--red);
    font-weight:500;
    margin:0 0 14px;
  }
  .eyebrow::before{
    content:"";
    width:7px; height:7px;
    background:var(--red);
    border-radius:50%;
    box-shadow:0 0 0 3px rgba(255,8,8,.15);
    flex:none;
  }
  .eyebrow.on-dark{color:#ff5f5f;}

  h1,h2,h3{
    font-family:var(--font-display);
    font-weight:800;
    letter-spacing:-0.02em;
    margin:0 0 16px;
    color:var(--black);
  }
  h2{font-size:clamp(1.7rem,3.4vw,2.5rem);}
  h3{font-size:1.15rem; font-weight:700;}
  p{margin:0 0 1em; color:var(--anthracite);}
  .section-head{max-width:640px; margin-bottom:48px;}
  .section-head p{font-size:1.05rem;}

  section{padding:96px 0;}
  @media (max-width:700px){ section{padding:64px 0;} }

  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    font-family:var(--font-display);
    font-weight:700;
    font-size:.95rem;
    padding:15px 28px;
    border-radius:999px;
    border:2px solid transparent;
    cursor:pointer;
    text-decoration:none;
    transition:transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
    white-space:nowrap;
  }
  .btn:hover{transform:translateY(-2px);}
  .btn-primary{background:var(--red); color:var(--white);}
  .btn-primary:hover{background:#e00707;}
  .btn-ghost{background:transparent; color:var(--black); border-color:var(--black);}
  .btn-ghost:hover{border-color:var(--red); color:var(--red);}
  .btn-ghost.on-dark{color:var(--white); border-color:rgba(255,255,255,.4);}
  .btn-ghost.on-dark:hover{border-color:var(--red); color:#ff5f5f;}

  /* ---------- Header ---------- */
  header{
    position:fixed; top:0; left:0; right:0; z-index:100;
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(17,17,17,.06);
    transition:box-shadow .25s var(--ease);
  }
  header.scrolled{box-shadow:0 6px 24px rgba(17,17,17,.06);}
  .nav{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 0;
  }
  .brand{display:flex; align-items:center; gap:10px; text-decoration:none;}
  .brand img{height:34px; width:auto;}
  .nav-links{display:flex; align-items:center; gap:32px; list-style:none; margin:0; padding:0;}
  .nav-links a{
    text-decoration:none; font-weight:600; font-size:.93rem; color:var(--black);
    position:relative; padding:4px 0;
  }
  .nav-links a::after{
    content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:var(--red);
    transition:width .25s var(--ease);
  }
  .nav-links a:hover::after{width:100%;}
  .nav-right{display:flex; align-items:center; gap:20px;}
  .nav-cta{display:inline-flex;}
  .burger{display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;}
  .burger span{width:24px; height:2px; background:var(--black); display:block; transition:transform .25s var(--ease), opacity .25s var(--ease);}
  .mobile-panel{
    display:none; position:fixed; inset:0 0 auto 0; top:64px; background:var(--white);
    padding:24px; border-bottom:1px solid rgba(17,17,17,.08);
    flex-direction:column; gap:18px; z-index:99;
    box-shadow:0 20px 40px rgba(17,17,17,.08);
  }
  .mobile-panel a{text-decoration:none; font-weight:600; font-size:1.05rem; color:var(--black);}
  .mobile-panel .btn{align-self:flex-start;}

  @media (max-width:900px){
    .nav-links, .nav-right .btn{display:none;}
    .burger{display:flex;}
    body.menu-open .mobile-panel{display:flex;}
  }

  /* ---------- Hero ---------- */
  .hero{
    padding:168px 0 100px;
    background:
      radial-gradient(700px 420px at 82% 8%, rgba(255,8,8,.05), transparent 60%),
      var(--light-gray);
    position:relative;
    overflow:hidden;
  }
  .hero .wrap{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:48px;
    align-items:center;
  }
  .hero-content{
    max-width:560px;
    opacity:0;
    transform:translateY(16px);
    animation:hero-in .7s var(--ease) .15s forwards;
  }
  @keyframes hero-in{ to{opacity:1; transform:translateY(0);} }
  .hero h1{
    font-size:clamp(2.5rem,5.4vw,4rem);
    line-height:1.04;
    margin-bottom:22px;
  }
  .hero h1 em{color:var(--red); font-style:normal;}
  .hero p.lead{font-size:1.13rem; max-width:46ch; margin-bottom:32px;}
  .hero-ctas{display:flex; gap:16px; flex-wrap:wrap; margin-bottom:36px;}
  .hero-meta{
    display:flex; gap:22px; flex-wrap:wrap;
    font-family:var(--font-mono); font-size:.78rem; letter-spacing:.04em;
    color:var(--anthracite);
  }
  .hero-meta span{display:flex; align-items:center; gap:8px;}
  .hero-meta span::before{content:"—"; color:var(--red); font-weight:700;}

  /* Signature banner */
  .hero-banner{
    background:var(--white);
    border-radius:var(--radius);
    padding:clamp(16px,2.4vw,28px);
    box-shadow:0 24px 48px rgba(17,17,17,.08);
    opacity:0;
    transform:translateY(20px);
    animation:hero-in .7s var(--ease) .35s forwards;
  }
  .hero-banner img{width:100%; height:auto;}

  @media (max-width:900px){
    .hero .wrap{grid-template-columns:1fr;}
    .hero-content{max-width:none;}
    .hero-banner{margin-top:8px;}
  }
  @media (max-width:700px){
    .hero-banner{padding:18px;}
  }

  /* ---------- Services ---------- */
  .services-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
  }
  @media (max-width:980px){ .services-grid{grid-template-columns:1fr 1fr;} }
  @media (max-width:560px){ .services-grid{grid-template-columns:1fr;} }
  .service-card{
    background:var(--white);
    border:1px solid rgba(17,17,17,.08);
    border-radius:var(--radius);
    padding:30px 26px;
    transition:transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  }
  .service-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(17,17,17,.09);
    border-color:rgba(255,8,8,.25);
  }
  .service-icon{
    width:46px; height:46px;
    border-radius:12px;
    background:var(--black);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:20px;
  }
  .service-icon svg{width:22px; height:22px; stroke:var(--white); fill:none; stroke-width:1.8;}
  .service-card p{font-size:.94rem;}
  .service-card .card-link{display:inline-flex; align-items:center; gap:6px; font-size:.85rem; font-weight:600; text-decoration:none; color:var(--red);}
  .service-card .card-link:hover{color:var(--black);}

  /* Referenzen strip */
  .ref-strip{margin-top:64px;}
  .ref-strip-head{
    display:flex; align-items:baseline; justify-content:space-between; gap:20px; flex-wrap:wrap;
    margin-bottom:24px;
  }
  .ref-strip-head h3{margin:0;}
  .ref-note{font-family:var(--font-mono); font-size:.78rem; color:var(--anthracite); opacity:.75;}
  .ref-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
  }
  @media (max-width:980px){ .ref-grid{grid-template-columns:1fr 1fr;} }
  @media (max-width:560px){ .ref-grid{grid-template-columns:1fr;} }
  .ref-tile{
    aspect-ratio:4/3;
    border-radius:var(--radius);
    background:var(--light-gray);
    border:1px dashed rgba(17,17,17,.18);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:10px; text-align:center; padding:16px;
  }
  .ref-tile svg{width:30px; height:30px; stroke:var(--anthracite); fill:none; stroke-width:1.6;}
  .ref-tile span{font-size:.82rem; color:var(--anthracite); font-weight:600;}

  /* ---------- Ablauf / Process ---------- */
  .process{background:var(--white);}
  .process-track{
    position:relative;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
  }
  .process-track::before{
    content:"";
    position:absolute;
    top:27px; left:6%; right:6%;
    height:2px;
    background-image:linear-gradient(to right, var(--red) 0 8px, transparent 8px 16px);
    background-size:16px 2px;
    background-repeat:repeat-x;
  }
  @media (max-width:900px){
    .process-track{grid-template-columns:1fr; gap:34px;}
    .process-track::before{display:none;}
  }
  .process-step{position:relative;}
  .process-num{
    font-family:var(--font-mono);
    font-weight:500;
    font-size:.85rem;
    width:56px; height:56px;
    border-radius:50%;
    background:var(--black);
    color:var(--white);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:20px;
    position:relative;
    z-index:2;
  }
  .process-num::after{
    content:"";
    position:absolute; inset:-5px;
    border-radius:50%;
    border:1.5px solid var(--red);
    opacity:0;
    transition:opacity .3s var(--ease);
  }
  .process-step:hover .process-num::after{opacity:1;}
  .process-step h3{margin-bottom:8px; font-size:1.02rem;}
  .process-step p{font-size:.92rem;}

  /* ---------- Material (dark) ---------- */
  .material{
    background:var(--black);
    color:var(--white);
  }
  .material h2{color:var(--white);}
  .material p{color:#c8c8c8;}
  .material-cols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
  }
  @media (max-width:760px){ .material-cols{grid-template-columns:1fr;} }
  .material-col h3{color:var(--white); margin-bottom:18px; font-size:1rem; text-transform:uppercase; letter-spacing:.06em;}
  .chips{display:flex; flex-wrap:wrap; gap:10px;}
  .chip{
    font-family:var(--font-mono);
    font-size:.82rem;
    padding:9px 16px;
    border-radius:8px;
    background:var(--anthracite);
    border:1px solid rgba(255,255,255,.08);
    color:#f0f0f0;
  }
  .chip.red{background:rgba(255,8,8,.12); border-color:rgba(255,8,8,.35); color:#ff8080;}

  /* ---------- About ---------- */
  .about-grid{
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:56px;
    align-items:center;
  }
  @media (max-width:860px){ .about-grid{grid-template-columns:1fr;} }
  .about-plate{
    background:var(--light-gray);
    border-radius:var(--radius);
    padding:44px 32px;
    display:flex; flex-direction:column; align-items:center; text-align:center;
    gap:18px;
  }
  .about-plate img{width:96px;}
  .about-plate .role{
    font-family:var(--font-mono); font-size:.78rem; letter-spacing:.1em;
    text-transform:uppercase; color:var(--red);
  }
  .about-plate strong{font-size:1.2rem; font-family:var(--font-display);}
  .about-quote{
    border-left:3px solid var(--red);
    padding-left:20px;
    font-size:1.08rem;
    color:var(--black);
    font-weight:500;
    margin-bottom:22px;
  }

  /* ---------- Kontakt ---------- */
  .kontakt{background:var(--light-gray);}
  .kontakt-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:40px;
    align-items:start;
  }
  @media (max-width:900px){ .kontakt-grid{grid-template-columns:1fr;} }
  .form-card, .info-card{
    background:var(--white);
    border-radius:var(--radius);
    padding:36px;
    border:1px solid rgba(17,17,17,.06);
  }
  .field{margin-bottom:18px;}
  .field label{
    display:block; font-size:.82rem; font-weight:600; margin-bottom:7px; color:var(--black);
  }
  .field input, .field textarea{
    width:100%;
    padding:13px 14px;
    border-radius:9px;
    border:1.5px solid rgba(17,17,17,.15);
    font-family:var(--font-body);
    font-size:.95rem;
    background:var(--white);
    color:var(--black);
    transition:border-color .2s var(--ease);
  }
  .field input:focus, .field textarea:focus{
    border-color:var(--red); outline:none;
  }
  .field textarea{resize:vertical; min-height:120px;}
  .form-note{font-size:.82rem; color:var(--anthracite); opacity:.8; margin-top:-6px; margin-bottom:20px;}
  .form-status{font-size:.85rem; margin-top:12px; display:none;}
  .form-status.show{display:block;}

  .info-list{list-style:none; margin:0 0 24px; padding:0; display:flex; flex-direction:column; gap:18px;}
  .info-list li{display:flex; gap:14px; align-items:flex-start;}
  .info-list .ic{
    width:38px; height:38px; border-radius:10px; background:var(--light-gray);
    display:flex; align-items:center; justify-content:center; flex:none;
  }
  .info-list .ic svg{width:18px; height:18px; stroke:var(--black); fill:none; stroke-width:1.8;}
  .info-list a{text-decoration:none; font-weight:600;}
  .info-list a:hover{color:var(--red);}
  .info-list .label-small{font-size:.78rem; color:var(--anthracite); opacity:.75; margin-bottom:2px;}
  .map-frame{
    border-radius:var(--radius);
    overflow:hidden;
    border:1px solid rgba(17,17,17,.08);
    aspect-ratio:16/10;
  }
  .map-frame iframe{width:100%; height:100%; border:0;}
  .map-consent{
    width:100%; height:100%;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:16px; text-align:center; padding:28px;
    background:var(--black); color:#e8e8e8;
  }
  .map-consent p{color:#cfcfcf; font-size:.86rem; max-width:42ch; margin:0;}
  .map-consent a{color:var(--white); text-decoration:underline;}

  /* ---------- Footer ---------- */
  footer{background:var(--black); color:#d8d8d8; padding:64px 0 28px;}
  .footer-top{
    display:grid;
    grid-template-columns:1.2fr .8fr .8fr 1fr;
    gap:36px;
    padding-bottom:44px;
    border-bottom:1px solid rgba(255,255,255,.1);
  }
  @media (max-width:820px){ .footer-top{grid-template-columns:1fr 1fr; row-gap:36px;} }
  @media (max-width:520px){ .footer-top{grid-template-columns:1fr;} }
  .footer-brand img{height:30px; margin-bottom:14px;}
  .footer-brand p{color:#a8a8a8; font-size:.88rem; max-width:32ch;}
  footer h4{
    color:var(--white); font-size:.8rem; letter-spacing:.08em; text-transform:uppercase;
    margin:0 0 16px; font-family:var(--font-mono); font-weight:500;
  }
  footer ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px;}
  footer a{color:#c8c8c8; text-decoration:none; font-size:.92rem;}
  footer a:hover{color:var(--red);}
  .footer-bottom{
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
    padding-top:24px; font-size:.8rem; color:#8a8a8a;
  }
  .footer-bottom a{color:#8a8a8a;}
  .footer-bottom .legal-links{display:flex; gap:18px;}

  /* ---------- Legal draft sections ---------- */
  .legal-draft{background:var(--white); border-top:1px solid rgba(17,17,17,.08);}
  .legal-draft .wrap{max-width:820px;}
  .legal-draft h2{font-size:1.4rem; margin-bottom:6px;}
  .legal-draft .draft-flag{
    display:inline-block; font-family:var(--font-mono); font-size:.72rem; letter-spacing:.06em;
    background:rgba(255,8,8,.1); color:var(--red); padding:4px 10px; border-radius:6px; margin-bottom:18px;
  }
  .legal-draft p{font-size:.92rem;}
  .legal-draft .todo{color:var(--red); font-weight:600;}

  /* ---------- Standalone legal pages ---------- */
  .legal-page-hero{
    background:var(--light-gray);
    padding:160px 0 48px;
  }
  .legal-page-hero .wrap{max-width:820px;}
  .legal-page-hero h1{font-size:clamp(1.9rem,4vw,2.6rem); margin-bottom:0;}
  .legal-page-body{padding:56px 0 96px;}
  .legal-page-body .wrap{max-width:820px;}
  .legal-page-body h2{font-size:1.15rem; margin-top:40px;}
  .legal-page-body h2:first-of-type{margin-top:0;}
  .legal-page-body ul{padding-left:20px; color:var(--anthracite); font-size:.94rem;}
  .legal-page-body li{margin-bottom:8px;}
  .legal-page-body .draft-flag{
    display:inline-block; font-family:var(--font-mono); font-size:.72rem; letter-spacing:.06em;
    background:rgba(255,8,8,.1); color:var(--red); padding:5px 12px; border-radius:6px; margin-bottom:22px;
  }
  .legal-page-body .todo{color:var(--red); font-weight:600;}
  .back-home{
    display:inline-flex; align-items:center; gap:6px;
    font-size:.85rem; font-weight:600; text-decoration:none; color:var(--anthracite);
    margin-bottom:18px;
  }
  .back-home:hover{color:var(--red);}

  /* ---------- Footer social icons ---------- */
  .social-links{display:flex; gap:12px; margin-top:18px;}
  .social-links a{
    width:38px; height:38px; border-radius:10px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.12);
    display:flex; align-items:center; justify-content:center;
    transition:background .2s var(--ease), border-color .2s var(--ease);
  }
  .social-links a:hover{background:var(--red); border-color:var(--red);}
  .social-links svg{width:18px; height:18px; fill:#e6e6e6; stroke:none;}
  .social-links a:hover svg{fill:var(--white);}

  /* ---------- Back to top ---------- */
  .back-to-top{
    position:fixed;
    right:24px;
    bottom:24px;
    width:48px;
    height:48px;
    border-radius:50%;
    background:var(--black);
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(17,17,17,.25);
    z-index:90;
    opacity:0;
    transform:translateY(12px);
    pointer-events:none;
    transition:opacity .25s var(--ease), transform .25s var(--ease), background .2s var(--ease);
  }
  .back-to-top.show{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
  .back-to-top.banner-open{
    opacity:0;
    pointer-events:none;
  }
  .back-to-top:hover{background:var(--red);}
  .back-to-top svg{width:20px; height:20px; stroke:var(--white); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;}
  @media (max-width:520px){
    .back-to-top{right:16px; bottom:16px; width:44px; height:44px;}
  }

  /* ---------- Cookie banner ---------- */
  .cookie-banner{
    position:fixed; left:16px; right:16px; bottom:16px;
    max-width:640px; margin:0 auto;
    background:var(--black);
    color:#e8e8e8;
    border-radius:var(--radius);
    padding:22px 24px;
    box-shadow:0 20px 50px rgba(0,0,0,.3);
    z-index:200;
    transform:translateY(140%);
    opacity:0;
    transition:transform .4s var(--ease), opacity .4s var(--ease);
    pointer-events:none;
  }
  .cookie-banner.show{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  .cookie-banner p{color:#cfcfcf; font-size:.86rem; margin:0 0 16px;}
  .cookie-banner a{color:var(--white); text-decoration:underline;}
  .cookie-actions{display:flex; gap:12px; flex-wrap:wrap;}
  .cookie-actions .btn{padding:11px 20px; font-size:.85rem;}
  .cookie-actions .btn-ghost{color:var(--white); border-color:rgba(255,255,255,.35);}
  .cookie-actions .btn-ghost:hover{border-color:var(--red); color:#ff8080;}
  @media (max-width:520px){
    .cookie-banner{left:10px; right:10px; bottom:10px; padding:18px;}
  }

  /* ---------- Reveal on scroll ---------- */
  .reveal{opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease);}
  .reveal.in{opacity:1; transform:translateY(0);}

  /* ---------- Leistungsseiten: CTA-Band ---------- */
  .service-cta{background:var(--light-gray); text-align:center;}
  .service-cta .wrap{max-width:640px;}
  .service-cta .eyebrow{justify-content:center;}
  .service-cta .btn{margin-top:8px;}

  /* ---------- Leistungsseiten: Querverweise ---------- */
  .related-services{padding:0 0 96px;}
  .related-services h3{margin-bottom:16px;}
  .related-services ul{list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:14px 28px;}
  .related-services a{font-weight:600; text-decoration:none; color:var(--black);}
  .related-services a:hover{color:var(--red);}
