  :root{
    --bg: #14181C;
    --bg-panel: #1B2126;
    --bg-panel-2: #20272D;
    --line: #2A3238;
    --text: #E9ECEA;
    --text-muted: #8B959C;
    --accent: #5B9BE0;
    --accent-deep: #336EB6;
    --accent-dim: rgba(91,155,224,0.16);
    --accent-dim-2: rgba(91,155,224,0.07);
    --on-accent: #0D1319;
    --font-display: 'IBM Plex Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', 'DejaVu Sans Mono', 'Courier New', monospace;
  }

  *{ margin:0; padding:0; box-sizing:border-box; }

  html{ scroll-behavior:smooth; }

  body{
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

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

  .wrap{
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
  }

  .eyebrow{
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display:flex;
    align-items:center;
    gap: 10px;
  }
  .eyebrow::before{
    content:"";
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-dim);
    flex-shrink:0;
  }

  /* ---------- Header ---------- */
  header{
    position: sticky;
    top:0;
    z-index: 50;
    background: rgba(20,24,28,0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  header .wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height: 76px;
  }
  .logo{
    display:flex;
    align-items:center;
    gap: 12px;
  }
  .logo img{
    height: 30px;
    width: auto;
    display:block;
  }
  .logo .sub{
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    border-left: 1px solid var(--line);
    padding-left: 12px;
    line-height: 1.3;
  }
  nav ul{
    list-style:none;
    display:flex;
    gap: 36px;
  }
  nav a{
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s ease;
  }
  nav a:hover{ color: var(--text); }

  .btn{
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 11px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 3px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .btn:hover{
    background: var(--accent);
    color: #10151A;
  }

  .nav-inner{
    display:flex;
    align-items:center;
    gap: 40px;
  }

  .lang-switch{
    display:flex;
    align-items:center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--text-muted);
  }
  .lang-btn{
    background: none;
    border: none;
    padding: 2px 1px;
    font: inherit;
    color: var(--text-muted);
    cursor: pointer;
    letter-spacing: 0.04em;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .lang-btn:hover{ color: var(--text); }
  .lang-btn.is-active{ color: var(--accent); border-bottom-color: var(--accent); cursor: default; }
  .lang-btn:focus-visible{ outline: 1px solid var(--accent); outline-offset: 3px; }
  .lang-switch .sep{ opacity: 0.4; }

  /* Zwischen 820 und 1000px wird es im Kopf eng: der Namenszusatz weicht,
     damit er nicht in die Navigation laeuft. */
  @media (max-width: 1000px){
    .logo .sub{ display:none; }
    nav ul{ gap: 26px; }
  }
  @media (max-width: 900px){
    nav ul{ gap: 20px; }
    nav a{ font-size: 13.5px; }
    .strip-item{ padding: 18px 22px; }
    .strip-item b{ font-size: 17px; }
  }

  /* Mobil: Kopf wird zweizeilig. Er bleibt nicht stehen, weil er sonst
     dauerhaft einen erheblichen Teil des kleinen Bildschirms belegt. */
  @media (max-width: 820px){
    header{ position: static; }
    header .wrap{
      height: auto;
      flex-wrap: wrap;
      gap: 10px;
      padding-top: 14px;
      padding-bottom: 12px;
    }
    .logo .sub{ display:none; }
    .logo img{ height: 27px; }
    .nav-inner{
      order: 3;
      width: 100%;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      border-top: 1px solid var(--line);
      padding-top: 10px;
    }
    nav{ min-width: 0; }
    nav ul{
      flex-wrap: wrap;
      gap: 6px 16px;
    }
    nav a{ font-size: 13px; }
    section{ padding: 68px 0; scroll-margin-top: 0; }
  }
  @media (max-width: 420px){
    .wrap{ padding: 0 18px; }
    nav ul{ gap: 5px 13px; }
    nav a{ font-size: 12.5px; }
    .logo img{ height: 24px; }
    section{ padding: 56px 0; }
  }

  /* ---------- Hero ---------- */
  .hero{
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    padding: 0;
  }
  .hero-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    align-items:center;
    gap: 40px;
    padding-top: 108px;
    padding-bottom: 96px;
  }
  .hero h1{
    font-size: clamp(38px, 4.6vw, 58px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 20px 0 26px;
  }
  .hero h1 em{
    font-style: normal;
    color: var(--accent);
  }
  .hero p.lead{
    font-size: 17px;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 34px;
  }
  .hero-ctas{
    display:flex;
    gap: 14px;
    align-items:center;
  }
  .btn-ghost{
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .btn-ghost:hover{ color: var(--text); border-color: var(--text-muted); }

  .hero-canvas-wrap{
    position: relative;
    height: 400px;
    min-width: 460px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-panel);
    padding: 20px 20px 0;
    display: flex;
    flex-direction: column;
  }

  /* --- Netzdiagramm: HTML-Boxen statt SVG-Text --- */
  .netdiag{
    position: relative;
    flex: 1;
    min-width: 0;
  }
  .nd-line{
    position:absolute;
    background: var(--text-muted);
    opacity: 0.45;
    pointer-events:none;
  }
  .nd-line.h{ height:1px; top:50%; }
  .nd-line.v{ width:1px; }
  .nd-line.dashed{
    background: none;
    opacity: 0.55;
  }
  .nd-line.v.dashed{
    border-left: 1px dashed var(--text-muted);
    width: 0;
  }

  .nd-node{
    position:absolute;
    transform: translate(-50%, -50%);
    width: 26%;
    min-width: 112px;
    box-sizing: border-box;
    padding: 12px 13px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: width 0.24s ease, transform 0.24s ease,
                border-color 0.24s ease, box-shadow 0.24s ease;
    z-index: 2;
    cursor: default;
  }
  .nd-node.is-core{ border-color: var(--accent); }
  .nd-node.is-path{ width: 22%; min-width: 96px; }

  /* Beim Aufklappen wird die Box breiter statt skaliert — so bleibt
     die Schrift scharf und der Text bricht sauber um. */
  .nd-node:hover, .nd-node:focus-within{
    width: 46%;
    min-width: 196px;
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(0,0,0,0.55);
    z-index: 9;
    outline: none;
  }
  /* Linke Box waechst nach rechts, damit sie im Rahmen bleibt */
  .nd-node.anchor-left:hover, .nd-node.anchor-left:focus-within{
    transform: translate(-26%, -50%);
  }
  /* Rechte Box waechst nach links, damit sie im Rahmen bleibt */
  .nd-node.anchor-right:hover, .nd-node.anchor-right:focus-within{
    transform: translate(-74%, -50%);
  }
  .nd-title{
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text);
    letter-spacing: 0.01em;
    line-height: 1.25;
  }
  .nd-sub{
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: 4px;
    line-height: 1.3;
  }
  /* 0fr -> 1fr statt max-height: die Hoehe richtet sich nach dem
     Inhalt, daher wird nie etwas abgeschnitten. */
  .nd-detail{
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    transition: grid-template-rows 0.24s ease, opacity 0.2s ease, margin-top 0.24s ease;
  }
  .nd-detail > span{
    overflow: hidden;
    min-height: 0;
    font-family: var(--font-display);
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
  }
  .nd-node:hover .nd-detail,
  .nd-node:focus-within .nd-detail{
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 9px;
  }

  .hero-canvas-caption{
    flex-shrink: 0;
    display:flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    border-top: 1px solid var(--line);
    padding: 10px 0 14px;
    margin-top: 14px;
  }
  .hero-canvas-caption span{ color: var(--accent); }
  .hero-canvas-caption span.muted{ color: var(--text-muted); }

  @media (prefers-reduced-motion: reduce){
    .nd-node, .nd-detail{ transition: none; }
  }

  @media (max-width: 900px){
    .hero-grid{ grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 32px; }
    .hero-canvas-wrap{ height: auto; }
  }

  /* Schmale Viewports: Absolut-Layout und Hover greifen nicht — gestapelte Liste */
  @media (max-width: 900px){
    .hero-canvas-wrap{ height: auto; min-width: 0; padding: 18px 18px 0; }
    .netdiag{
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .nd-line{ display:none; }
    .nd-node{
      position: static;
      transform: none;
      width: 100%;
      min-width: 0;
    }
    .nd-node.is-path{ width: 100%; min-width: 0; }
    .nd-node:hover, .nd-node:focus-within,
    .nd-node.anchor-left:hover, .nd-node.anchor-left:focus-within{
      transform: none;
      width: 100%;
      min-width: 0;
      box-shadow: none;
    }
    /* Ohne Maus gibt es kein Hover: Texte stehen dauerhaft offen */
    .nd-detail{
      grid-template-rows: 1fr;
      opacity: 1;
      margin-top: 8px;
    }
    .nd-detail > span{ overflow: visible; }
    .hero-canvas-caption span.muted{ display:none; }
  }

  /* ---------- Ticker strip ---------- */
  .strip{
    border-bottom: 1px solid var(--line);
    background: var(--bg-panel);
  }
  .strip .wrap{
    display:flex;
    flex-wrap:wrap;
    gap: 0;
    padding: 0;
  }
  .strip-item{
    flex: 1 1 0;
    min-width: 200px;
    padding: 22px 28px;
    border-right: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.03em;
  }
  .strip-item:last-child{ border-right: none; }
  .strip-item b{
    display:block;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
  }

  /* ---------- Sections generic ---------- */
  section{
    padding: 100px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 84px;
  }
  .section-head{
    display:flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 56px;
  }
  .section-head h2{
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    margin-top: 14px;
    letter-spacing: -0.01em;
    max-width: 560px;
  }
  .section-head p{
    color: var(--text-muted);
    max-width: 340px;
    font-size: 15px;
    text-align: right;
  }
  @media (max-width: 760px){
    .section-head{ flex-direction:column; align-items:flex-start; }
    .section-head p{ text-align:left; }
  }

  /* ---------- Leistungen ---------- */
  .services-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .service-card{
    background: var(--bg);
    padding: 40px;
    transition: background 0.2s ease;
  }
  .service-card:hover{ background: var(--bg-panel); }
  .service-card .tag{
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .service-card h3{
    font-size: 21px;
    font-weight: 600;
    margin: 14px 0 12px;
  }
  .service-card p{
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
  }
  .svc-points{
    list-style: none;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .svc-points li{
    position: relative;
    padding-left: 18px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
    letter-spacing: 0.01em;
  }
  .svc-points li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 1px;
    background: var(--accent);
  }
  @media (max-width: 760px){
    .services-grid{ grid-template-columns: 1fr; }
    .service-card{ padding: 28px 24px; }
    .service-card h3{ font-size: 19px; }
  }
  @media (max-width: 420px){
    .service-card{ padding: 24px 18px; }
  }

  /* ---------- Ansatz ---------- */
  .ansatz-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items:start;
  }
  .ansatz-grid p{
    color: var(--text-muted);
    font-size: 15.5px;
    margin-bottom: 18px;
  }
  .method-block{
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow:hidden;
  }
  .method-head{
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.12em;
    color: var(--on-accent);
    background: var(--accent);
    padding: 9px 20px;
  }
  .cert-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 16px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 13px;
  }
  .cert-row:last-child{ border-bottom:none; }
  .cert-row .name{ color: var(--text); letter-spacing: 0.02em; }
  .cert-row .val{
    color: var(--text-muted);
    font-size: 12.5px;
    letter-spacing: 0.07em;
    text-align: right;
    white-space: nowrap;
  }
  /* Rahmendaten, bewusst abgesetzt von der Methodik */
  .facts-block{
    margin-top: 18px;
    display:flex;
    flex-direction:column;
    gap: 10px;
  }
  .fact{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    gap: 16px;
    padding: 12px 2px;
    border-bottom: 1px dashed var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
  }
  .fact:last-child{ border-bottom:none; }
  .fact .k{ color: var(--text-muted); letter-spacing: 0.04em; }
  .fact .v{ color: var(--accent); letter-spacing: 0.04em; }
  @media (max-width: 820px){
    .ansatz-grid{ grid-template-columns: 1fr; }
  }

  /* ---------- Über uns ---------- */
  .about{
    display:grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
  }
  .about-meta{
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 2;
    letter-spacing: 0.03em;
  }
  .about-meta .loc{ color: var(--accent); }
  .about-body p{
    font-size: 16.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
    max-width: 620px;
  }
  .about-body strong{ color: var(--text); font-weight: 600; }
  @media (max-width: 820px){
    .about{ grid-template-columns: 1fr; }
  }

  /* ---------- Kontakt ---------- */
  .contact{
    border-bottom: none;
    background: var(--bg-panel);
  }
  .contact-grid{
    display:grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
  .contact h2{
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 480px;
  }
  .contact-lead{
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: 32px;
  }
  .contact-card{
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 32px;
    background: var(--bg);
  }
  .contact-card .field{
    margin-bottom: 22px;
  }
  .contact-card .field:last-child{ margin-bottom:0; }
  .contact-card label{
    display:block;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .contact-card .value{
    font-size: 16px;
  }
  .contact-card .value.accent{ color: var(--accent); }
  .contact-card .value a{ color: inherit; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
  .contact-card .value a:hover{ border-bottom-color: currentColor; }
  .placeholder-note{
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
  }
  .process-note{
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 26px;
  }
  @media (max-width: 820px){
    .contact-grid{ grid-template-columns: 1fr; }
  }

  /* ---------- Footer ---------- */
  footer .wrap{
    display:flex;
    justify-content: space-between;
    align-items:center;
    padding: 28px 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
  }
  footer a{ color: var(--text-muted); }
  footer a:hover{ color: var(--accent); }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
  }

  /* ---------- Impressum Modal ---------- */
  .modal-card{
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    max-width: 560px;
    width: 100%;
    max-height: 84vh;
    max-height: 84dvh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
  }
  .modal-card h2{
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
  }
  .modal-card h3{
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 22px 0 8px;
  }
  .modal-card h3:first-of-type{ margin-top: 0; }
  .modal-card p{
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.7;
  }
  .modal-card a{ color: var(--accent); }
  .modal-note{
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
  }

  /* ---------- Prozess-Zeitachse ---------- */
  .process-wrap{
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-panel);
    padding: 54px 30px 40px;
  }
  .pf-track{
    display: flex;
    align-items: flex-start;
    position: relative;
  }
  /* Durchgehende Achse hinter den Knoten */
  .pf-axis{
    position: absolute;
    top: 13px;
    left: 7%;
    right: 7%;
    height: 1px;
    background: var(--line);
  }
  .pf-axis::after{
    content: "";
    position: absolute;
    right: -1px;
    top: -3px;
    width: 7px; height: 7px;
    border-top: 1px solid var(--text-muted);
    border-right: 1px solid var(--text-muted);
    transform: rotate(45deg);
    opacity: 0.6;
  }
  .pf-step{
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4px;
  }
  .pf-dot{
    width: 27px; height: 27px;
    border-radius: 50%;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  }
  .pf-card{
    margin-top: 18px;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 13px 10px;
    text-align: center;
    transition: width 0.24s ease, margin 0.24s ease, border-color 0.24s ease,
                background 0.24s ease, box-shadow 0.24s ease;
  }
  .pf-title{
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.03em;
    color: var(--text);
    line-height: 1.25;
  }
  .pf-sub{
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.35;
    hyphens: auto;
  }
  .pf-detail{
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    transition: grid-template-rows 0.24s ease, opacity 0.2s ease, margin-top 0.24s ease;
  }
  .pf-detail > span{
    overflow: hidden;
    min-height: 0;
    font-family: var(--font-display);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
  }
  /* Hover / Fokus */
  /* Die aktive Karte waechst ueber ihre Spalte hinaus, statt skaliert zu
     werden. Dadurch bleibt die Schrift scharf und der Text vollstaendig. */
  .pf-step:hover, .pf-step:focus-within{ z-index: 9; }
  .pf-step:hover .pf-card,
  .pf-step:focus-within .pf-card{
    width: 178px;
    margin-left: -18px;
    margin-right: -18px;
    border-color: var(--accent);
    background: var(--bg-panel-2);
    box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  }
  .pf-step:first-of-type:hover .pf-card,
  .pf-step:first-of-type:focus-within .pf-card{ margin-left: 0; margin-right: -36px; }
  .pf-step:last-of-type:hover .pf-card,
  .pf-step:last-of-type:focus-within .pf-card{ margin-left: -36px; margin-right: 0; }
  /* Erster und letzter Schritt heben sich beim Hover in Weiss ab */
  .pf-step:first-of-type:hover .pf-card,
  .pf-step:first-of-type:focus-within .pf-card,
  .pf-step:last-of-type:hover .pf-card,
  .pf-step:last-of-type:focus-within .pf-card{ border-color: #fff; }
  .pf-step:hover .pf-detail,
  .pf-step:focus-within .pf-detail{
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 9px;
  }
  .pf-step:hover .pf-dot,
  .pf-step:focus-within .pf-dot{
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
  }
  .pf-step:first-of-type:hover .pf-dot,
  .pf-step:first-of-type:focus-within .pf-dot,
  .pf-step:last-of-type:hover .pf-dot,
  .pf-step:last-of-type:focus-within .pf-dot{
    background: #fff;
    border-color: #fff;
    color: var(--on-accent);
  }
  .pf-step:focus{ outline: none; }

  @media (prefers-reduced-motion: reduce){
    .pf-card, .pf-detail, .pf-dot{ transition: none; }
  }
  /* Schmale Viewports: eine Zeile wird unleserlich, daher gestapelt */
  @media (max-width: 900px){
    .process-wrap{ padding: 24px; }
    .pf-track{ flex-direction: column; align-items: stretch; gap: 14px; }
    .pf-axis{ display: none; }
    .pf-step{
      flex-direction: row;
      align-items: center;
      gap: 14px;
      padding: 0;
    }
    .pf-card{
      margin-top: 0;
      flex: 1;
      min-width: 0;
      text-align: left;
    }
    .pf-step:hover .pf-card,
    .pf-step:focus-within .pf-card,
    .pf-step:first-of-type:hover .pf-card,
    .pf-step:first-of-type:focus-within .pf-card,
    .pf-step:last-of-type:hover .pf-card,
    .pf-step:last-of-type:focus-within .pf-card{
      width: auto;
      margin-left: 0;
      margin-right: 0;
      box-shadow: none;
      background: var(--bg);
    }
    /* Ohne Maus gibt es kein Hover: Texte stehen dauerhaft offen */
    .pf-detail{ grid-template-rows: 1fr; opacity: 1; margin-top: 8px; }
    .pf-detail > span{ overflow: visible; }
  }



/* ============================================================
   Optische Überarbeitung — nur Darstellung, keine Inhalte.
   ============================================================ */
:root{
  --line: #273037;
  --line-soft: #1E262C;
  --text-muted: #98A2AA;
  --bg-panel: #191F25;
  --bg-panel-2: #1F262D;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}
body{
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}
h1, h2, h3{ text-wrap: balance; }
p, .lead, .pf-detail > span, .nd-detail > span{ text-wrap: pretty; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Kopfzeile --- */
header{
  background: rgba(20,24,28,0.82);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
header .wrap{ height: 82px; }
.logo .sub{ letter-spacing: 0.1em; opacity: 0.9; }
nav a{ position: relative; padding-bottom: 3px; letter-spacing: 0.005em; }
nav a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1);
}
nav a:hover::after{ transform: scaleX(1); }

.btn{
  border-radius: var(--r-sm);
  padding: 12px 22px;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.btn:hover{ box-shadow: 0 6px 18px rgba(91,155,224,0.22); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

/* --- Hero --- */
.hero-grid{ padding-top: 124px; padding-bottom: 112px; gap: 56px; }
.hero h1{ line-height: 1.06; letter-spacing: -0.018em; margin: 22px 0 28px; }
.hero p.lead{ font-size: 17.5px; line-height: 1.62; max-width: 480px; }
.hero-ctas{ gap: 18px; }
.btn-ghost{ transition: color 0.22s ease, border-color 0.22s ease; }

.hero-canvas-wrap{
  border-radius: var(--r-lg);
  border-color: var(--line);
  background: linear-gradient(180deg, #1B2228 0%, #171D22 100%);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 24px 24px 0;
}
.nd-node{ border-radius: var(--r-sm); padding: 13px 14px; }
.nd-node:hover, .nd-node:focus-within{ box-shadow: 0 14px 34px rgba(0,0,0,0.6); }

/* --- Kennzahlen-Leiste --- */
.strip{ border-bottom: 1px solid var(--line-soft); }
.strip-item{
  padding: 26px 30px;
  border-right: 1px solid var(--line-soft);
  transition: background 0.22s ease;
}
.strip-item:hover{ background: var(--bg-panel-2); }
.strip-item b{ font-size: 19px; letter-spacing: -0.005em; margin-bottom: 6px; }

/* --- Abschnitte --- */
section{ padding: 112px 0; border-bottom: 1px solid var(--line-soft); }
.section-head{ margin-bottom: 64px; }
.section-head h2{ line-height: 1.16; letter-spacing: -0.018em; max-width: 620px; }
.section-head p{ line-height: 1.65; }

/* --- Leistungen --- */
.services-grid{
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.service-card{ padding: 44px; transition: background 0.24s ease; }
.service-card h3{ font-size: 22px; letter-spacing: -0.01em; margin: 16px 0 14px; }
.service-card p{ font-size: 15px; line-height: 1.68; }
.svc-points{ margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); gap: 10px; }
.svc-points li::before{ width: 10px; }

/* --- Ansatz --- */
.ansatz-grid{ gap: 72px; }
.ansatz-grid p{ font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.method-block{ border-radius: var(--r-md); }
.cert-row{ padding: 16px 22px; border-bottom-color: var(--line-soft); }
.fact{ border-bottom-style: solid; border-bottom-color: var(--line-soft); }

/* --- Prozess --- */
.process-wrap{
  border-radius: var(--r-lg);
  border-color: var(--line-soft);
  background: linear-gradient(180deg, #1B2228 0%, #171D22 100%);
  padding: 58px 34px 44px;
}
.pf-dot{ width: 30px; height: 30px; }
.pf-card{ border-radius: var(--r-sm); padding: 14px 11px; }
.pf-step:hover .pf-card, .pf-step:focus-within .pf-card{ box-shadow: 0 14px 34px rgba(0,0,0,0.6); }
.process-note{ font-size: 15.5px; line-height: 1.6; max-width: 680px; color: var(--text); opacity: 0.82; }

/* --- Über uns --- */
.about{ gap: 72px; }
.about-meta{ line-height: 2.1; }
.about-body p{ font-size: 17px; line-height: 1.72; }

/* --- Kontakt --- */
.contact h2{ letter-spacing: -0.02em; line-height: 1.12; }
.contact-lead{ font-size: 16.5px; line-height: 1.65; }
.contact-card{
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: 0 24px 60px -34px rgba(0,0,0,0.9);
}
.contact-card .field{ margin-bottom: 24px; }
.placeholder-note{ border-top-style: solid; border-top-color: var(--line-soft); line-height: 1.6; }

/* --- Fußzeile --- */
footer .wrap{ padding: 34px 32px; }

/* --- Dialoge --- */
.modal-card{ border-radius: var(--r-lg); padding: 44px; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.95); }
.modal-close{ border-radius: 999px; }
.modal-card p{ line-height: 1.75; }

/* --- Sanftes Einblenden --- */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  .btn:hover{ transform: none; }
  nav a::after{ transition: none; }
}
@media (max-width: 900px){
  section{ padding: 76px 0; }
  .hero-grid{ padding-top: 60px; padding-bottom: 60px; }
  .service-card{ padding: 30px 26px; }
  .modal-card{ padding: 32px 24px; }
}

/* ---- Fassung B: Blau als tragendes Gestaltungsmittel ---- */
.hero{
  background:
    radial-gradient(1000px 520px at 78% 12%, rgba(91,155,224,0.13), transparent 68%),
    linear-gradient(180deg, rgba(91,155,224,0.05), transparent 45%);
}
.hero-canvas-wrap{
  border-color: rgba(91,155,224,0.28);
  box-shadow: 0 24px 70px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(91,155,224,0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}
.strip{ background: linear-gradient(180deg, rgba(91,155,224,0.07), rgba(91,155,224,0.02)); }
.strip-item b{ color: var(--text); }
.service-card{ position: relative; }
.service-card::before{
  content:"";
  position:absolute; left:0; top:0; bottom:0;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1);
}
.service-card:hover::before{ transform: scaleY(1); }
.service-card .tag{
  display:inline-block;
  color: var(--accent);
  background: var(--accent-dim-2);
  border: 1px solid rgba(91,155,224,0.22);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
}
.method-block{ border-color: rgba(91,155,224,0.3); }
.method-head{ letter-spacing: 0.14em; padding: 11px 22px; }
.about-meta{ border-left: 2px solid rgba(91,155,224,0.35); padding-left: 22px; }
.pf-dot{ border-color: rgba(91,155,224,0.35); color: var(--accent); }
.pf-axis{ background: linear-gradient(90deg, rgba(91,155,224,0.45), rgba(91,155,224,0.12)); }
.contact{
  background:
    radial-gradient(800px 420px at 10% 0%, rgba(91,155,224,0.12), transparent 65%),
    var(--bg-panel);
}
.contact-card{ border-color: rgba(91,155,224,0.28); }
.modal-card h3{ color: var(--accent); }
@media (prefers-reduced-motion: reduce){
  .service-card::before{ transition: none; }
}


/* ---------- Angepasst fuer Mehrseiten-Struktur ---------- */
/* Impressum/Datenschutz sind jetzt eigenstaendige Seiten statt Dialoge:
   .modal-card wird ausserhalb des (entfernten) .modal-overlay verwendet. */
.legal-section{ padding: 64px 0 96px; }
.legal-section .modal-card{
  max-width: 720px;
  width: auto;
  max-height: none;
  overflow: visible;
  margin: 0 auto;
  position: static;
}
nav a.is-active{ color: var(--text); }
nav a.is-active::after{ transform: scaleX(1); }
.logo-link{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }

.back-link{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  max-width: 720px;
  width: 100%;
  margin: 0 auto 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.legal-section .back-link{ display: block; }
.back-link:hover{ color: var(--text); border-color: var(--line); }

/* Startseite: Leistungs-Teaser */
.teaser .section-head{ margin-bottom: 40px; }
.teaser .service-card{ padding: 34px 36px; }
.teaser .service-card h3 a{ color: inherit; text-decoration: none; transition: color 0.2s ease; }
.teaser .service-card h3 a::after{ content: " →"; color: var(--accent); opacity: 0; transition: opacity 0.2s ease; }
.teaser .service-card:hover h3 a, .teaser .service-card h3 a:focus-visible{ color: var(--accent); }
.teaser .service-card:hover h3 a::after, .teaser .service-card h3 a:focus-visible::after{ opacity: 1; }
@media (max-width: 820px){ .teaser .service-card{ padding: 24px 20px; } }
