  :root{
    --bg:#12161c;
    --surface:#1a2028;
    --surface-2:#20272f;
    --border:#2a313c;
    --border-soft:#232a33;
    --text:#e8eaed;
    --text-muted:#8b95a1;
    --text-dim:#707b8a;
    --pass:#4fd1a5;
    --pass-soft:rgba(79,209,165,0.12);
    --run:#e8a33d;
    --run-soft:rgba(232,163,61,0.14);
    --max:1040px;
  }

  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  @media (prefers-reduced-motion:reduce){
    html{scroll-behavior:auto;}
    *{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;}
  }

  body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:'IBM Plex Sans',system-ui,sans-serif;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }

  h1,h2,h3{
    font-family:'Space Grotesk',system-ui,sans-serif;
    font-weight:600;
    letter-spacing:-0.01em;
    margin:0;
  }

  .mono{font-family:'IBM Plex Mono',monospace;}

  a{color:inherit;}

  .wrap{
    max-width:var(--max);
    margin:0 auto;
    padding:0 28px;
  }

  /* -------- Nav -------- */
  header.nav{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(18,22,28,0.85);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--border-soft);
  }
  .nav-inner{
    max-width:var(--max);
    margin:0 auto;
    padding:16px 28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .nav-brand{
    font-family:'Space Grotesk',sans-serif;
    font-weight:600;
    font-size:15px;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .nav-brand .dot{
    width:8px;height:8px;border-radius:50%;
    background:var(--pass);
    box-shadow:0 0 0 3px var(--pass-soft);
  }
  .nav-links{
    display:flex;
    gap:28px;
    font-size:14px;
    color:var(--text-muted);
  }
  .nav-links a{text-decoration:none;transition:color .15s;}
  .nav-links a:hover{color:var(--text);}
  .nav-links a:focus-visible{outline:2px solid var(--pass);outline-offset:4px;border-radius:2px;}
  @media (max-width:640px){ .nav-links{display:none;} }

  /* -------- Hero -------- */
  .hero{
    padding:96px 0 72px;
    border-bottom:1px solid var(--border-soft);
  }
  .eyebrow{
    font-family:'IBM Plex Mono',monospace;
    font-size:13px;
    color:var(--pass);
    letter-spacing:0.04em;
    margin-bottom:18px;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .eyebrow::before{
    content:"";
    width:18px;height:1px;
    background:var(--pass);
    display:inline-block;
  }
  .hero h1{
    font-size:clamp(34px,5.5vw,54px);
    line-height:1.08;
    margin-bottom:14px;
  }
  .hero .role{
    font-size:clamp(16px,2.2vw,19px);
    color:var(--text-muted);
    margin-bottom:22px;
  }
  .hero .role .sep{color:var(--text-dim);margin:0 8px;}
  .hero .loc{
    font-family:'IBM Plex Mono',monospace;
    font-size:13px;
    color:var(--text-dim);
  }
  .hero-actions{
    margin-top:34px;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
  }
  .btn{
    font-family:'IBM Plex Mono',monospace;
    font-size:13px;
    padding:11px 18px;
    border-radius:6px;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:transform .15s, border-color .15s, background .15s;
  }
  .btn-primary{
    background:var(--pass);
    color:#0d1410;
    font-weight:500;
    border:1px solid var(--pass);
  }
  .btn-primary:hover{transform:translateY(-1px);}
  .btn-ghost{
    border:1px solid var(--border);
    color:var(--text-muted);
  }
  .btn-ghost:hover{border-color:var(--text-dim);color:var(--text);}

  /* -------- Section shell -------- */
  section{padding:80px 0;border-bottom:1px solid var(--border-soft);}
  section:last-of-type{border-bottom:none;}
  .section-head{margin-bottom:44px;}
  .section-head .tag{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    color:var(--text-dim);
    text-transform:uppercase;
    letter-spacing:0.08em;
    margin-bottom:10px;
  }
  .section-head h2{font-size:clamp(24px,3vw,32px);}

  /* -------- Profil -------- */
  .profil-text{
    max-width:680px;
    color:var(--text-muted);
    font-size:16.5px;
  }
  .profil-text p{margin:0 0 16px;}
  .profil-text strong{color:var(--text);font-weight:500;}

  /* -------- Pipeline (career) -------- */
  .pipeline{
    position:relative;
  }
  .stage{
    position:relative;
    display:grid;
    grid-template-columns:96px 1fr;
    gap:0 24px;
    padding-bottom:44px;
    opacity:0;
    transform:translateY(14px);
    transition:opacity .5s ease, transform .5s ease;
  }
  .stage.visible{opacity:1;transform:translateY(0);}
  .stage:last-child{padding-bottom:0;}

  .stage-rail{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .stage-node{
    width:14px;height:14px;
    border-radius:50%;
    background:var(--surface-2);
    border:2px solid var(--pass);
    z-index:2;
    margin-top:6px;
    flex-shrink:0;
  }
  .stage.is-current .stage-node{
    border-color:var(--run);
    background:var(--run);
    box-shadow:0 0 0 4px var(--run-soft);
    animation:pulse 2s ease-in-out infinite;
  }
  @keyframes pulse{
    0%,100%{box-shadow:0 0 0 4px var(--run-soft);}
    50%{box-shadow:0 0 0 8px transparent;}
  }
  .stage-line{
    width:2px;
    flex:1;
    background:linear-gradient(var(--pass), var(--border));
    margin-top:2px;
  }
  .stage:last-child .stage-line{display:none;}

  .stage-body{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    padding:22px 24px;
  }
  .stage-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:10px;
  }
  .stage-period{
    font-family:'IBM Plex Mono',monospace;
    font-size:12.5px;
    color:var(--text-dim);
  }
  .status-chip{
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    padding:3px 9px;
    border-radius:20px;
    letter-spacing:0.03em;
    background:var(--pass-soft);
    color:var(--pass);
  }
  .stage.is-current .status-chip{
    background:var(--run-soft);
    color:var(--run);
  }
  .stage h3{font-size:17px;margin-bottom:3px;}
  .stage .company{
    font-size:14px;
    color:var(--text-muted);
    margin-bottom:12px;
  }
  .stage p.desc{
    color:var(--text-muted);
    font-size:14.5px;
    margin:0;
  }

  /* -------- Skills -------- */
  .skill-groups{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:28px;
  }
  .skill-group h3{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    color:var(--text-dim);
    text-transform:uppercase;
    letter-spacing:0.07em;
    font-weight:500;
    margin-bottom:14px;
  }
  .chips{display:flex;flex-wrap:wrap;gap:8px;}
  .chip{
    font-family:'IBM Plex Mono',monospace;
    font-size:12.5px;
    color:var(--text-muted);
    background:var(--surface);
    border:1px solid var(--border);
    padding:6px 11px;
    border-radius:6px;
  }

  /* -------- Chatbot section -------- */
  .chatbot-section{
    background:var(--surface);
    border-radius:14px;
    border:1px solid var(--border);
    padding:36px;
    margin-top:8px;
  }
  .chatbot-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:26px;
  }
  .chatbot-head h3{font-size:19px;margin-bottom:6px;}
  .chatbot-head p{color:var(--text-muted);font-size:14.5px;max-width:480px;margin:0;}
  .badge-proto{
    font-family:'IBM Plex Mono',monospace;
    font-size:11.5px;
    color:var(--run);
    background:var(--run-soft);
    border-radius:20px;
    padding:5px 12px;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    gap:6px;
  }
  .badge-proto .d{width:6px;height:6px;border-radius:50%;background:var(--run);animation:pulse 2s ease-in-out infinite;}

  /* Widget host: this is where the real chatbot embed script/iframe should be inserted */
  #chatbot-widget-root{
    border:1px dashed var(--border);
    border-radius:10px;
    background:var(--bg);
    min-height:380px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  .chat-demo-bar{
    display:flex;
    align-items:center;
    gap:8px;
    padding:12px 16px;
    border-bottom:1px solid var(--border-soft);
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    color:var(--text-muted);
  }
  .chat-demo-bar .lights span{
    display:inline-block;width:8px;height:8px;border-radius:50%;
    background:var(--border);margin-right:5px;
  }
  .chat-demo-body{
    flex:1;
    padding:20px 18px;
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  .msg{
    max-width:72%;
    padding:10px 14px;
    border-radius:12px;
    font-size:14px;
  }
  .msg.bot{
    align-self:flex-start;
    background:var(--surface-2);
    color:var(--text);
    border-bottom-left-radius:3px;
  }
  .msg.user{
    align-self:flex-end;
    background:var(--pass);
    color:#0d1410;
    border-bottom-right-radius:3px;
  }
  .chat-demo-input{
    display:flex;
    gap:10px;
    padding:14px 16px;
    border-top:1px solid var(--border-soft);
  }
  .chat-demo-input input{
    flex:1;
    background:var(--surface-2);
    border:1px solid var(--border);
    border-radius:8px;
    padding:10px 12px;
    color:var(--text);
    font-family:'IBM Plex Sans',sans-serif;
    font-size:13.5px;
  }
  .chat-demo-input input::placeholder{
    color:var(--text-muted);
    opacity:1;
  }
  .chat-demo-input input:focus{
    outline:none;
    border-color:var(--pass);
  }
  .chat-demo-input button{
    font-family:'IBM Plex Mono',monospace;
    font-size:12.5px;
    font-weight:500;
    background:var(--pass);
    color:#0d1410;
    border:1px solid var(--pass);
    border-radius:8px;
    padding:0 16px;
    cursor:pointer;
    transition:transform .15s;
  }
  .chat-demo-input button:hover{transform:translateY(-1px);}
  .chat-demo-input button:disabled{
    background:var(--surface-2);
    color:var(--text-dim);
    border-color:var(--border);
    cursor:default;
    transform:none;
  }
  .chatbot-note{
    margin-top:16px;
    font-size:12.5px;
    color:var(--text-dim);
    font-family:'IBM Plex Mono',monospace;
  }

  /* -------- Contact / Footer -------- */
  .contact-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
  }
  .contact-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    padding:20px;
  }
  .contact-card .label{
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    color:var(--text-dim);
    text-transform:uppercase;
    letter-spacing:0.06em;
    margin-bottom:8px;
  }
  .contact-card .value{font-size:15px;color:var(--text);}

  footer{
    padding:36px 0 48px;
    text-align:center;
    color:var(--text-dim);
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
  }

  :focus-visible{outline:2px solid var(--pass);outline-offset:3px;}

  @media (max-width:640px){
    .stage{grid-template-columns:28px 1fr;gap:0 14px;}
    .stage-node{margin-top:4px;}
    .chatbot-section{padding:22px;}
  }

/* -------- Contact form -------- */
.contact-form{
  margin-top:32px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:28px;
  max-width:560px;
}
.contact-form .form-row{margin-bottom:16px;}
.contact-form label{
  display:block;
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  color:var(--text-dim);
  text-transform:uppercase;
  letter-spacing:0.06em;
  margin-bottom:7px;
}
.contact-form input,
.contact-form textarea{
  width:100%;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:7px;
  padding:11px 13px;
  color:var(--text);
  font-family:'IBM Plex Sans',sans-serif;
  font-size:14.5px;
}
.contact-form textarea{resize:vertical;min-height:110px;}
.contact-form input:focus,
.contact-form textarea:focus{outline:2px solid var(--pass);outline-offset:1px;border-color:var(--pass);}
.contact-form .form-note{
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  color:var(--text-dim);
  margin-top:14px;
}

/* -------- Footer legal links -------- */
footer .legal{margin-top:10px;}
footer .legal a{
  color:var(--text-dim);
  text-decoration:none;
  margin:0 8px;
}
footer .legal a:hover{color:var(--text-muted);}

/* -------- Legal pages (Impressum / Datenschutz) -------- */
.legal-page{padding:64px 0 40px;}
.legal-page h1{font-size:clamp(26px,4vw,36px);margin-bottom:10px;}
.legal-page .tag{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  color:var(--pass);
  text-transform:uppercase;
  letter-spacing:0.08em;
  margin-bottom:12px;
}
.legal-page h2{
  font-size:18px;
  margin-top:38px;
  margin-bottom:12px;
}
.legal-page p, .legal-page li{
  color:var(--text-muted);
  font-size:15px;
}
.legal-page ul{padding-left:20px;}
.legal-page .placeholder{
  color:var(--run);
  background:var(--run-soft);
  padding:1px 6px;
  border-radius:4px;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.92em;
}
.back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  color:var(--text-muted);
  text-decoration:none;
  margin-bottom:20px;
}
.back-link:hover{color:var(--text);}
