:root{
  --bg0:#ffffff;
  --bg1:#ffffff;
  --surface:#ffffff;
  --surface2:#ffffff;
  --border:rgba(15,23,42,.10);
  --text:#0b1220;
  --muted:#334155;
  --muted2:#64748b;
  --shadow: 0 18px 60px rgba(2,6,23,.10);
  --shadow2: 0 10px 30px rgba(2,6,23,.08);
  --radius: 18px;
  --radius2: 14px;
  --ring: 0 0 0 2px #ffffff, 0 0 0 5px #9a3412;
  --accent:#f97316;   /* clean orange */
  --accent2:#f59e0b;  /* warm amber */
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background: #ffffff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height:1.55;
  text-rendering:optimizeLegibility;
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; height:auto}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.skip-link{
  position:absolute;
  left:12px;
  top:10px;
  transform:translateY(-200%);
  padding:10px 12px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:12px;
  z-index:1000;
}
.skip-link:focus{transform:translateY(0); outline:none; box-shadow:var(--ring)}

.container{max-width:var(--max); margin:0 auto; padding:0 18px}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background:rgba(255,255,255,.72);
  border-bottom:1px solid rgba(15,23,42,.08);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header[data-elevated="true"]{
  border-bottom-color: rgba(15,23,42,.10);
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}
.site-header::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,.55), transparent);
  opacity:.9;
  pointer-events:none;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none !important;
}
.brand-mark{display:inline-flex; align-items:center; gap:10px}
.brand-logo{
  height:34px;
  width:auto;
  display:inline-block;
  filter: drop-shadow(0 10px 22px rgba(2,6,23,.18));
}
.brand-fallback{opacity:.75}
.brand-logo--small{height:34px}
.brand-text{display:flex; flex-direction:column; line-height:1.15}
.brand-title{font-weight:700; letter-spacing:.2px}
.brand-subtitle{color:var(--muted2); font-size:.86rem}
.brand-title{font-size:1.05rem}

.nav{display:flex; align-items:center}
.nav-menu{
  display:flex;
  align-items:center;
  gap:10px;
}
.nav-link{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  text-decoration:none !important;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover{background:rgba(2,6,23,.04); color:var(--text)}
.nav-cta{
  background:linear-gradient(135deg, rgba(249,115,22,.92), rgba(245,158,11,.80));
  color:#111827;
  font-weight:650;
}
.nav-cta:hover{filter:brightness(1.06)}

.language-switcher{
  display:flex;
  align-items:center;
  gap:4px;
  margin-left:4px;
  padding-left:8px;
  border-left:1px solid var(--border);
}
.language-link{
  padding:7px 8px;
  border-radius:10px;
  color:var(--muted);
  font-size:.76rem;
  font-weight:700;
  text-decoration:none !important;
  white-space:nowrap;
}
.language-link:hover,.language-link:focus-visible{background:rgba(2,6,23,.06); color:var(--text)}
.language-link.is-active{background:#172554; color:#fff}

.nav-toggle{
  display:none;
  background:transparent;
  border:1px solid var(--border);
  border-radius:12px;
  width:44px;
  height:44px;
  padding:0;
  color:var(--text);
}
.nav-toggle:focus{outline:none; box-shadow:var(--ring)}
.nav-toggle-lines{
  display:block;
  width:20px;
  height:2px;
  background:var(--text);
  margin:0 auto;
  position:relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0;
  width:20px;
  height:2px;
  background:var(--text);
}
.nav-toggle-lines::before{top:-6px}
.nav-toggle-lines::after{top:6px}

/* Hero */
.hero{position:relative; padding:64px 0 34px}
.hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:24px;
  align-items:start;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  background:rgba(255,255,255,.75);
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  margin:0 0 14px;
  width:fit-content;
}
.badge .dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 4px rgba(249,115,22,.10);
}
.hero h1{
  margin:0 0 12px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height:1.06;
  letter-spacing:-.02em;
}
.lead{margin:0 0 18px; color:var(--muted); font-size:1.05rem}
.lead strong{color:var(--text); font-weight:650}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin:0 0 18px}

.hero-head{
  display:grid;
  grid-template-columns: auto 1fr;
  gap:18px;
  align-items:center;
  margin:6px 0 10px;
}

.hero-logo-wrap{margin:0}
.hero-logo{
  height:168px;
  width:auto;
  display:block;
  filter: drop-shadow(0 20px 34px rgba(2,6,23,.14));
}

.hero-pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:#ffffff;
  color:rgba(2,6,23,.78);
  font-weight:600;
  font-size:.92rem;
}
.pill::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(249,115,22,.95), rgba(245,158,11,.75));
  box-shadow: 0 0 0 3px rgba(249,115,22,.10);
}

.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin:0;
}
.stat{
  padding:12px 12px;
  background:rgba(255,255,255,.75);
  border:1px solid var(--border);
  border-radius:var(--radius2);
}
.stat dt{color:var(--muted2); font-size:.85rem}
.stat dd{margin:2px 0 0; font-weight:650}

.hero-card{position:relative}

.hero-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:1;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.parallax-layer{
  position:absolute;
  inset:-12%;
  border-radius:999px;
  filter: blur(38px);
  opacity:.18;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.parallax-layer.p1{
  left:-20%;
  top:-22%;
  right:20%;
  bottom:40%;
  background: radial-gradient(circle at 30% 30%, rgba(249,115,22,.55), transparent 60%);
}
.parallax-layer.p2{
  left:20%;
  top:-18%;
  right:-10%;
  bottom:35%;
  background: radial-gradient(circle at 65% 25%, rgba(245,158,11,.50), transparent 62%);
}
.parallax-layer.p3{
  left:-5%;
  top:35%;
  right:-5%;
  bottom:-35%;
  background: radial-gradient(circle at 50% 55%, rgba(2,6,23,.10), transparent 62%);
}

/* Sections */
.section{padding:54px 0}
.section.alt{
  background:#ffffff;
  border-top:1px solid rgba(15,23,42,.08);
  border-bottom:1px solid rgba(15,23,42,.08);
}
.section.alt .section-head::after{
  content:"";
  display:block;
  height:2px;
  width:72px;
  margin-top:10px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(249,115,22,.65), rgba(245,158,11,.40));
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.section-head h2{margin:0; font-size:1.7rem; letter-spacing:-.015em}
.muted{color:var(--muted)}
.muted.small{font-size:.92rem}

.grid{display:grid; gap:14px}
.grid.cards{grid-template-columns: repeat(3, minmax(0, 1fr))}
.grid.two{grid-template-columns: repeat(2, minmax(0, 1fr))}
.grid.contact{grid-template-columns: .95fr 1.05fr}

/* Private Projekte */
.private-projects .projects-grid{
  align-items:stretch;
}
.private-projects .project{
  display:flex;
  flex-direction:column;
  height:100%;
}
.private-projects .project .link-grid{
  margin-top:auto;
  padding-top:12px;
}
.private-projects .project-wide{
  grid-column:1 / -1;
}
.private-projects .project-actions{
  flex-wrap:wrap;
  justify-content:flex-end;
}
.private-projects .link-card-compact{
  min-width:0;
  max-width:100%;
}
html, body{overflow-x:clip}

/* Products in development */
.product-showcase{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(700px 300px at 8% 12%, rgba(29,78,65,.08), transparent 70%),
    radial-gradient(620px 300px at 92% 88%, rgba(191,143,0,.08), transparent 72%),
    #fffdf8;
  border-top:1px solid rgba(15,23,42,.06);
  border-bottom:1px solid rgba(15,23,42,.06);
}
.product-section-head{align-items:flex-start}
.product-section-intro{max-width:560px; margin:0; line-height:1.65}
.product-grid{display:grid; grid-template-columns:1fr; gap:24px}
.product-card{
  position:relative;
  min-height:410px;
  padding:34px;
  border-radius:32px;
  border:1px solid rgba(15,23,42,.10);
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(340px, .95fr);
  gap:46px;
  align-items:center;
  box-shadow:0 22px 60px rgba(2,6,23,.10);
}
.product-card::after{
  content:"";
  position:absolute;
  width:280px;
  height:280px;
  right:-110px;
  bottom:-150px;
  border-radius:50%;
  border:48px solid rgba(255,255,255,.08);
  pointer-events:none;
}
.product-card--keyvoya{
  color:#fff8d8;
  background:
    linear-gradient(135deg, rgba(14,62,52,.98), rgba(21,79,65,.92)),
    #123f36;
}
.product-card--ketopilot{
  color:#fff8df;
  background:
    radial-gradient(circle at 86% 18%, rgba(234,179,8,.18), transparent 34%),
    linear-gradient(145deg, #111214, #242426);
}
.product-card--lofistrangers{
  color:#f4f0ff;
  background:
    radial-gradient(circle at 82% 18%, rgba(168,85,247,.26), transparent 38%),
    linear-gradient(145deg, #171128, #38245c 58%, #153a43);
}
.product-card-copy,.product-card-media{position:relative; z-index:1}
.product-card-copy{max-width:650px; padding:10px 4px}
.product-card h3{font-size:clamp(2rem, 4vw, 3.1rem); margin:4px 0 0; letter-spacing:-.035em}
.product-card .kicker{color:rgba(255,255,255,.64); margin-top:18px}
.product-card .muted{color:rgba(255,255,255,.76); line-height:1.65}
.product-card-subtitle{margin:2px 0 18px; color:rgba(255,255,255,.94); font-weight:700}
.product-card-media{
  min-height:320px;
  height:100%;
  display:grid;
  place-items:center;
  padding:28px;
  border-radius:26px;
  overflow:hidden;
  background:linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 24px 54px rgba(0,0,0,.20) inset, 0 18px 38px rgba(0,0,0,.16);
}
.product-card-media img{
  display:block;
  width:100%;
  height:auto;
  max-height:260px;
  object-fit:contain;
  border-radius:20px;
}
.product-card-media--icon img{max-width:250px; border-radius:27%; filter:drop-shadow(0 20px 30px rgba(0,0,0,.35))}
.product-card--ketopilot .product-card-copy{grid-column:2; grid-row:1}
.product-card--ketopilot .product-card-media{grid-column:1; grid-row:1}
.status-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  border-radius:999px;
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.22);
}
.status-badge::before{content:""; width:8px; height:8px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px rgba(255,255,255,.08)}
.status-badge--test{color:#f8d66d; background:rgba(248,214,109,.10)}
.status-badge--final{color:#f7c948; background:rgba(247,201,72,.10)}
.status-badge--live{color:#86efac; background:rgba(34,197,94,.13)}
.btn-product{margin-top:20px; padding:13px 18px; color:#111827; border:0; background:linear-gradient(135deg, #fff3c4, #e7b83f)}
.btn-product::after{content:"→"; font-size:1.08em; transition:transform .18s ease}
.btn-product:hover::after{transform:translateX(4px)}

/* Product detail pages */
.product-detail{background:#fbfaf6}
.product-detail-main{overflow:hidden}
.product-hero{position:relative; padding:86px 0 64px; min-height:620px; display:flex; align-items:center}
.product-hero--keyvoya{
  color:#fff8d8;
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(225,184,68,.22), transparent 70%),
    linear-gradient(145deg, #0c3c34, #185747);
}
.product-hero--ketopilot{
  color:#fff8df;
  background:
    radial-gradient(700px 480px at 82% 22%, rgba(234,179,8,.17), transparent 68%),
    linear-gradient(145deg, #0c0d0f, #252527);
}
.product-hero--lofistrangers{
  color:#f5f1ff;
  background:
    radial-gradient(760px 520px at 80% 20%, rgba(168,85,247,.25), transparent 68%),
    radial-gradient(620px 440px at 12% 82%, rgba(45,212,191,.13), transparent 72%),
    linear-gradient(145deg, #120d22, #352154 62%, #12343d);
}
.product-hero-grid{display:grid; grid-template-columns:minmax(0, .9fr) minmax(420px, 1.1fr); gap:54px; align-items:center}
.product-hero-copy h1{font-size:clamp(2.8rem, 7vw, 5.8rem); letter-spacing:-.055em; line-height:.94; margin:18px 0}
.product-hero-copy .lead{color:rgba(255,255,255,.78); max-width:650px}
.product-eyebrow{margin:0; color:rgba(255,255,255,.58); font-weight:750; letter-spacing:.12em; text-transform:uppercase; font-size:.82rem}
.product-hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:28px}
.product-hero .btn-ghost{color:#fff; border-color:rgba(255,255,255,.25); background:rgba(255,255,255,.06)}
.product-visual{position:relative; min-width:0}
.product-visual--keyvoya{padding-top:62px}
.product-visual-logo{position:absolute; left:28px; top:0; z-index:2; width:min(72%, 480px); filter:drop-shadow(0 10px 18px rgba(0,0,0,.28))}
.product-screen{
  width:100%;
  display:block;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.20);
  box-shadow:0 36px 80px rgba(0,0,0,.36);
}
.product-visual--ketopilot{
  min-height:470px;
  border-radius:42px;
  display:grid;
  place-items:center;
  padding:40px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.015) 22px 23px);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 36px 80px rgba(0,0,0,.35);
}
.product-visual--ketopilot img{width:min(78%, 360px); border-radius:25%; filter:drop-shadow(0 32px 45px rgba(0,0,0,.45))}
.product-visual--lofistrangers{
  min-height:470px;
  border-radius:42px;
  display:grid;
  place-items:center;
  padding:40px;
  background:linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 36px 80px rgba(0,0,0,.36);
}
.product-visual--lofistrangers img{width:min(92%, 520px); border-radius:24px; filter:drop-shadow(0 28px 42px rgba(0,0,0,.42))}
.product-card-media--lofistrangers img{max-height:290px}
.product-proof{position:absolute; right:-16px; bottom:28px; padding:12px 16px; border-radius:16px; color:#fff8df; background:rgba(13,14,16,.88); border:1px solid rgba(234,179,8,.30); box-shadow:0 14px 30px rgba(0,0,0,.25); font-weight:750}
.product-proof--live{color:#dcfce7; border-color:rgba(74,222,128,.38)}
.product-content-section{padding:72px 0}
.product-content-section--tint{background:#f3f1e9; border-top:1px solid rgba(15,23,42,.06); border-bottom:1px solid rgba(15,23,42,.06)}
.product-content-head{max-width:760px; margin-bottom:26px}
.product-content-head h2{font-size:clamp(2rem, 4vw, 3.25rem); margin:0 0 12px; letter-spacing:-.035em}
.product-content-head p{font-size:1.08rem; line-height:1.7}
.product-feature-grid{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px}
.product-feature{
  padding:22px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 14px 34px rgba(2,6,23,.05);
}
.product-feature-num{display:block; margin-bottom:18px; color:#a36d00; font-size:.78rem; font-weight:850; letter-spacing:.14em}
.product-feature h3{font-size:1.18rem; margin:0 0 8px}
.product-feature p{margin:0; line-height:1.6}
.product-stage{
  display:grid;
  grid-template-columns:minmax(0, .7fr) minmax(0, 1.3fr);
  gap:42px;
  align-items:start;
  padding:32px;
  border-radius:28px;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
}
.product-stage h2{font-size:clamp(2rem, 4vw, 3rem); margin:12px 0}
.product-stage p{line-height:1.7}
.product-stage-list{display:grid; gap:12px}
.product-stage-item{padding:15px 16px; border-radius:16px; background:#f7f5ef; border:1px solid rgba(15,23,42,.07)}
.product-stage-item strong{display:block; margin-bottom:4px}
.product-note{margin-top:24px; padding:16px 18px; border-left:4px solid #d7a927; background:rgba(215,169,39,.09); border-radius:0 16px 16px 0}
@media (min-width: 900px){
  .private-projects .project-wide{
    display:grid;
    grid-template-columns:minmax(240px, 320px) minmax(0, 1fr);
    column-gap:28px;
    row-gap:0;
    align-items:start;
  }
  .private-projects .project-wide .project-top{
    grid-column:1;
    grid-row:1 / span 99;
    flex-direction:column;
    align-items:flex-start;
  }
  .private-projects .project-wide .project-actions{
    flex-direction:column;
    align-items:stretch;
    width:100%;
  }
  .private-projects .project-wide .project-logo{
    width:100%;
    height:auto;
    max-height:140px;
    object-fit:contain;
  }
  .private-projects .project-wide .link-card-compact{
    width:100%;
  }
  .private-projects .project-wide > .muted,
  .private-projects .project-wide > .link-grid{
    grid-column:2;
  }
  .private-projects .project-wide > .link-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    margin-top:12px;
    padding-top:0;
  }
}

/* Slider */
.slider{position:relative}
.slider-wrap{
  position:relative;
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  align-items:stretch;
  gap:10px;
}
.slider-track{
  display:flex;
  gap:14px;
  overflow:auto hidden;
  padding:2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar{display:none}
.slide{
  scroll-snap-align: start;
  flex: 0 0 min(520px, 90vw);
  min-height: 520px;
  display:flex;
  flex-direction:column;
}
.slide-media{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(2,6,23,.02);
  height: 240px;
  margin-bottom:14px;
  position:relative;
}
.slide-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.75) 100%);
  pointer-events:none;
}
.slide-img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.slider-btn{
  border:1px solid rgba(15,23,42,.10);
  background:#ffffff;
  border-radius:14px;
  width:44px;
  height:100%;
  min-height:56px;
  display:grid;
  place-items:center;
  color:rgba(2,6,23,.80);
  font-size:26px;
  line-height:1;
  box-shadow: 0 8px 18px rgba(2,6,23,.05);
  cursor:pointer;
}
.slider-btn:hover{filter:brightness(1.02)}
.slider-btn:focus{outline:none; box-shadow: var(--ring)}

/* Cards */
.card{
  background:linear-gradient(180deg, var(--surface), rgba(255,255,255,.92));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.70) inset, 0 10px 26px rgba(2,6,23,.05);
}
.card h3{margin:0 0 8px; letter-spacing:-.01em}
.card-title{margin:0 0 10px; font-size:1.15rem}
.glow{
  position:relative;
  overflow:hidden;
}
.glow::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(520px 240px at 10% 10%, rgba(249,115,22,.16), transparent 60%),
    radial-gradient(460px 240px at 90% 0%, rgba(245,158,11,.12), transparent 60%);
  opacity:.9;
  pointer-events:none;
  z-index:0;
}
.glow > *{position:relative; z-index:1}

.bullets{
  margin:12px 0 0;
  padding-left:18px;
  color:var(--muted);
}
.bullets li{margin:6px 0}

.checklist{list-style:none; margin:12px 0 0; padding:0; color:var(--muted)}
.checklist li{
  margin:10px 0;
  padding-left:28px;
  position:relative;
}
.checklist li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  width:22px;
  height:22px;
  border-radius:10px;
  background:rgba(249,115,22,.14);
  border:1px solid rgba(249,115,22,.18);
  display:grid;
  place-items:center;
  color:rgba(2,6,23,.86);
  font-weight:800;
  font-size:.9rem;
}

.callout{
  margin-top:14px;
  padding:12px 12px;
  border-radius:var(--radius2);
  background:rgba(249,115,22,.10);
  border:1px solid rgba(249,115,22,.16);
}
.callout p{margin:0}

.mini-row{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:12px;
}
.mini{
  padding:14px 14px;
  border-radius:var(--radius);
  background:rgba(2,6,23,.02);
  border:1px solid rgba(15,23,42,.08);
}
.mini-kicker{color:var(--muted2); font-size:.85rem}
.mini-title{font-weight:700; margin-top:2px}
.mini-text{color:var(--muted); font-size:.95rem; margin-top:6px}

/* Steps */
.steps{display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:14px}
.step-num{
  width:44px; height:44px;
  border-radius:14px;
  display:grid; place-items:center;
  background:rgba(2,6,23,.03);
  border:1px solid rgba(15,23,42,.10);
  color:rgba(2,6,23,.90);
  font-weight:800;
  margin-bottom:10px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#ffffff;
  color:var(--text);
  text-decoration:none !important;
  font-weight:650;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover{transform:translateY(-1px); filter:brightness(1.05)}
.btn:focus{outline:none; box-shadow:var(--ring)}
.btn-primary{
  border-color: rgba(249,115,22,.30);
  background:linear-gradient(135deg, rgba(249,115,22,.92), rgba(245,158,11,.80));
  color:#111827;
}
.btn-ghost{
  background:transparent;
}

/* Projects */
.project-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.project-actions{display:flex; align-items:center; gap:10px}
.project-logo{
  flex:0 0 auto;
  height:92px;
  width:auto;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.92);
}
.kicker{
  margin:0 0 6px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted2);
  font-size:.8rem;
}

.embed{
  margin-top:14px;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(2,6,23,.03);
}
.embed iframe{
  width:100%;
  aspect-ratio: 16/9;
  border:0;
  display:block;
}
.embed-note{margin:10px 12px 12px}

.link-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:12px;
}
.private-projects .link-grid{grid-template-columns: 1fr}
.link-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.link-card-compact{
  padding:10px 12px;
  border-radius:14px;
  width:auto;
  min-width: 180px;
}
.link-left{min-width:0}
.link-icon{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(2,6,23,.02);
  display:grid;
  place-items:center;
  color: rgba(2,6,23,.72);
  flex: 0 0 auto;
}
.link-icon svg{width:18px; height:18px; display:block}
.link-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  background:#ffffff;
  text-decoration:none !important;
}
.link-card:hover{background:rgba(2,6,23,.02)}
.link-card-primary{
  border-color: rgba(249,115,22,.24);
  background: linear-gradient(135deg, rgba(249,115,22,.14), rgba(245,158,11,.10));
}
.link-card-primary:hover{filter:brightness(1.05)}
.link-title{font-weight:750}
.link-sub{
  display:block;
  margin-top:4px;
  font-size:.92rem;
  overflow-wrap:anywhere;
  word-break: break-word;
  line-height:1.2;
}

/* In "Private Projekte": Icon links neben Text */
.private-projects .link-card{
  justify-content:flex-start;
}
.private-projects .link-icon{
  order:-1;
}
.private-projects .link-left{
  flex:1;
}

/* Forms */
.form label{display:block; margin-top:12px}
.label{display:block; color:var(--muted2); font-size:.9rem; margin-bottom:6px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background:#ffffff;
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{box-shadow:var(--ring); border-color: rgba(249,115,22,.30)}
/* Box shadows may be suppressed in Windows high-contrast mode. */
@media (forced-colors: active){
  .skip-link:focus,.nav-toggle:focus,.slider-btn:focus,.btn:focus,input:focus,textarea:focus{
    outline:2px solid Highlight;
    outline-offset:3px;
  }
}
textarea{resize:vertical}
.form-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.form-status{
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  font-size:.95rem;
}
.form-status--success{
  background:rgba(34,197,94,.08);
  border-color:rgba(34,197,94,.22);
  color:#166534;
}
.form-status--error{
  background:rgba(239,68,68,.08);
  border-color:rgba(239,68,68,.22);
  color:#991b1b;
}
.hp-field{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.contact-list{display:grid; gap:10px; margin-top:12px}
.contact-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  background:#ffffff;
  text-decoration:none !important;
}
.contact-item:hover{background:rgba(2,6,23,.02)}
.contact-label{color:var(--muted2)}
.contact-value{font-weight:650}
.divider{height:1px; background:rgba(15,23,42,.08); margin:14px 0}

/* Footer */
.footer{
  padding:28px 0 34px;
  border-top:1px solid rgba(15,23,42,.08);
  background:#ffffff;
}
.footer-inner{display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap}
.footer-links{display:flex; gap:14px}
.footer-links a{color:var(--muted); text-decoration:none}
.footer-links a:hover{text-decoration:underline; color:var(--text)}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr; gap:16px}
  .grid.cards{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .product-card{grid-template-columns:minmax(0, 1fr) minmax(280px, .8fr); gap:28px}
  .product-hero-grid{grid-template-columns:1fr}
  .product-hero{padding-top:64px}
  .product-visual{max-width:760px}
  .product-feature-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .steps{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .grid.contact{grid-template-columns: 1fr}
  .slider-wrap{grid-template-columns: 1fr}
  .slider-btn{display:none}
}
@media (max-width: 720px){
  .hero-head{grid-template-columns: 1fr; gap:10px}
  .hero-logo{height:84px}
  .project-logo{height:72px}
  .section-head{flex-direction:column; align-items:flex-start}
  .stats{grid-template-columns:1fr; gap:10px}
  .grid.cards{grid-template-columns:1fr}
  .grid.two{grid-template-columns:1fr}
  .product-card{grid-template-columns:1fr; min-height:0}
  .product-card--ketopilot .product-card-copy,
  .product-card--ketopilot .product-card-media{grid-column:1; grid-row:auto}
  .product-card-media{order:-1; justify-items:center; min-height:220px; padding:20px}
  .product-card-media img{max-width:360px; max-height:190px}
  .product-card-media--icon img{max-width:150px}
  .product-feature-grid{grid-template-columns:1fr}
  .product-stage{grid-template-columns:1fr; padding:22px}
  .product-visual--ketopilot{min-height:360px}
  .product-proof{right:10px}
  .private-projects .project-wide > .link-grid{grid-template-columns:1fr}
  .mini-row{grid-template-columns:1fr}
  .link-grid{grid-template-columns:1fr}

  .nav-toggle{display:inline-grid; place-items:center}
  .nav-menu{
    position:absolute;
    right:18px;
    top:64px;
    width:min(360px, calc(100vw - 36px));
    padding:10px;
    border-radius:18px;
    border:1px solid rgba(15,23,42,.10);
    background:rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }
  .nav-menu[data-open="true"]{display:flex}
  .nav-link{width:100%}
  .nav-menu .language-switcher{width:100%; margin:4px 0 0; padding:8px 0 0; border-left:0; border-top:1px solid var(--border); flex-wrap:wrap}
  .product-detail .header-inner{flex-wrap:wrap}
  .product-detail .nav{width:100%}
  .product-detail .nav-menu{position:static; width:100%; display:flex !important; flex-flow:row wrap; padding:0; border:0; box-shadow:none; background:transparent}
  .product-detail .nav-link{width:auto}

  /* Mobile: Logos zentrieren */
  .hero-logo-wrap{
    display:flex;
    justify-content:center;
  }
  .hero-head{
    text-align:center;
  }
  .project-top{
    flex-direction:column;
    align-items:center;
  }
  .project-title{
    text-align:center;
  }
  .project-actions{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
  }
  .project-logo{
    margin:0 auto;
  }
}



/* Homepage service directory: one panel per topic, compact links within it. */
.service-directory-section{
  padding-top:12px;
  padding-bottom:64px;
  scroll-margin-top:112px;
}
.service-directory-section .section-head{align-items:flex-end;gap:24px;margin-bottom:28px}
.service-directory-section .section-head>div{min-width:0}
.service-directory-section .section-head h2{font-size:clamp(1.7rem,2.8vw,2.1rem);line-height:1.2;letter-spacing:-.025em}
.service-directory-section .section-head>.muted{max-width:27rem;margin:0;font-size:.95rem;line-height:1.65}
.service-directory-section .kicker{margin:0 0 10px;color:#b45309;font-size:.73rem;font-weight:750;letter-spacing:.11em;text-transform:uppercase}
.service-directory-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.service-directory-group{
  min-width:0;
  padding:24px 24px 12px;
  border:1px solid #e4e8ee;
  border-radius:20px;
  background:#fff;
  box-shadow:0 6px 24px rgba(15,23,42,.035);
}
.service-directory-group-heading{display:flex;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid #e8ecf1}
.service-directory-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#fff3e8;color:#b45309}
.service-directory-group-heading h3{min-width:0;margin:0;color:var(--text);font-size:1.08rem;font-weight:700;line-height:1.4;letter-spacing:-.015em;overflow-wrap:anywhere}
.service-directory{display:grid;grid-template-columns:minmax(0,1fr)}
.service-directory-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 20px;
  align-items:center;
  gap:4px 16px;
  min-width:0;
  min-height:76px;
  padding:15px 8px;
  border-radius:8px;
  color:var(--text);
  text-decoration:none;
  transition:background-color .16s ease;
}
.service-directory-card+.service-directory-card{border-top:1px solid #eef0f4}
/* Older cached homepages keep readable links while the six-file release rolls out. */
.service-directory-card>strong,.service-directory-card>span:not(.service-directory-copy){grid-column:1 / -1}
.service-directory-card>span:not(.service-directory-copy){color:#526174;font-size:.875rem;line-height:1.5}
.service-directory-group>h3{margin:0 0 14px;font-size:1.08rem;line-height:1.4}
.service-directory-copy{display:block;min-width:0;overflow-wrap:anywhere}
.service-directory-copy strong{display:block;font-size:1rem;font-weight:650;line-height:1.45;letter-spacing:-.01em}
.service-directory-description{display:block;margin-top:4px;color:#526174;font-size:.875rem;line-height:1.5}
.service-directory-arrow{color:#7c8999;transition:color .16s ease,transform .16s ease}
.service-directory-card:hover{background:#fff7ef;text-decoration:none}
.service-directory-card:focus-visible{outline:2px solid #c2410c;outline-offset:2px;background:#fff7ef;text-decoration:none}
.service-directory-card:is(:hover,:focus-visible) .service-directory-arrow{color:#c2410c;transform:translateX(3px)}
@media(max-width:899px){
  .service-directory-groups{grid-template-columns:minmax(0,1fr);gap:16px}
  .service-directory-section .section-head{flex-direction:column;align-items:flex-start;gap:12px}
  .service-directory-section .section-head>.muted{max-width:38rem}
}
@media(min-width:721px) and (max-width:980px){
  /* The existing desktop navigation wraps to several lines on tablets. */
  .service-directory-section{scroll-margin-top:200px}
}
@media(max-width:480px){
  .service-directory-section{padding-bottom:48px}
  .service-directory-group{padding:20px 16px 8px;border-radius:18px}
  .service-directory-group-heading{gap:10px;padding-bottom:14px}
  .service-directory-group-heading h3{font-size:1.02rem}
  .service-directory-icon{flex-basis:36px;width:36px;height:36px;border-radius:10px}
  .service-directory-card{gap:4px 12px;padding:14px 4px}
}
@media(prefers-reduced-motion:reduce){
  .service-directory-card,.service-directory-arrow{transition:none}
  .service-directory-card:is(:hover,:focus-visible) .service-directory-arrow{transform:none}
}

/* Service detail pages */
.service-page{padding-top:32px}
.breadcrumbs{display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; color:var(--muted2); font-size:.9rem}
.breadcrumbs a{color:var(--muted2)}
.service-page-hero{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr); gap:42px; align-items:center; padding:52px; border:1px solid rgba(15,23,42,.08); border-radius:32px; background:linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,237,.92)); box-shadow:0 24px 60px rgba(15,23,42,.08)}
.service-page-hero h1{max-width:760px; margin:0 0 18px; font-size:clamp(2.2rem, 5vw, 4.2rem); line-height:1.04; letter-spacing:-.045em}
.service-page-hero .lead{max-width:720px}
.service-page-visual{display:grid; place-items:center; min-height:280px; padding:22px; border-radius:26px; background:rgba(2,6,23,.92); overflow:hidden}
.service-page-visual picture{display:contents}
.service-page-visual img{display:block; width:100%; max-width:430px; max-height:300px; aspect-ratio:16/10; object-fit:contain; border-radius:20px}
.service-page-copy{max-width:820px}
.service-page-copy h2{margin-bottom:12px}
.service-page-copy p{max-width:780px}
.service-page-grid{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; margin-top:22px}
.service-page-grid .card{height:100%}
.service-page-cta{margin-top:28px; display:flex; flex-wrap:wrap; gap:12px}
@media (max-width:980px){.service-page-hero{grid-template-columns:1fr; padding:36px}.service-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.service-page-hero{padding:24px; border-radius:24px}.service-page-grid{grid-template-columns:1fr}.service-page-visual{min-height:220px}.service-page{padding-top:18px}}
.slide-media picture{display:contents}

/* Expanded service catalogue and detailed service pages */
.slide-link{display:inline-flex;margin-top:auto;padding-top:.35rem;color:var(--accent,#176b67);font-weight:750;text-decoration:none}
.service-detail .site-header{position:sticky;top:0}
.service-page-main{width:100%;max-width:none;padding:0}
.service-detail .breadcrumbs{padding-top:1.4rem}
.service-detail .service-page-hero{padding-top:2.5rem;padding-bottom:4.5rem}
.service-page-visual picture,.service-page-visual img{width:100%;display:block}
.service-page-visual{overflow:hidden;border-radius:30px;border:1px solid rgba(33,61,66,.12);background:#fff;box-shadow:0 22px 60px rgba(33,61,66,.10)}
.service-section{padding:4.8rem 0}
.service-section:nth-of-type(even){background:#f7f9f7}
.service-two-column{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:clamp(2rem,5vw,5rem);align-items:start}
.service-intro{font-size:clamp(1.16rem,2vw,1.45rem);line-height:1.65}
.service-offer-panel,.service-boundary{padding:clamp(1.35rem,3vw,2.2rem);border-radius:24px;background:#fff;border:1px solid var(--line,#dde3e1);box-shadow:0 14px 36px rgba(33,61,66,.07)}
.service-offer-panel h2,.service-boundary h2{margin-top:0;font-size:1.25rem}
.service-offer-panel ul,.service-checklist{margin:0;padding-left:1.25rem;display:grid;gap:.7rem}
.service-section-head{max-width:760px;margin-bottom:1.8rem}
.service-scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.service-scenario{min-height:100%;padding:1.5rem;border-radius:22px;background:#fff;border:1px solid var(--line,#dde3e1)}
.service-scenario h3{margin:.55rem 0 .7rem}.service-scenario p{margin-bottom:0;color:var(--muted,#4d6266)}
.scenario-label{color:var(--accent,#176b67);font-size:.75rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.service-process{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem}
.service-step{padding:1.15rem;border-top:3px solid #e7a35a;background:rgba(255,255,255,.8);border-radius:0 0 18px 18px}
.service-step h3{font-size:1rem;margin:0 0 .6rem}.service-step p{margin:0;color:var(--muted,#4d6266);font-size:.93rem}
.service-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}
.service-related-card{display:grid;gap:.35rem;padding:1.2rem;color:inherit;text-decoration:none;border:1px solid var(--line,#dde3e1);border-radius:18px;background:#fff;transition:transform .18s ease,border-color .18s ease}
.service-related-card:hover{transform:translateY(-2px);border-color:#68a6a0}.service-related-card span{color:var(--muted,#4d6266)}
.service-faq-wrap{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:clamp(2rem,5vw,5rem)}
.service-faq{border-top:1px solid var(--line,#dde3e1)}.service-faq:last-child{border-bottom:1px solid var(--line,#dde3e1)}
.service-faq summary{padding:1.1rem 2rem 1.1rem 0;cursor:pointer;font-weight:750}.service-faq p{margin:0 0 1.2rem;color:var(--muted,#4d6266)}
.service-contact{padding:4.5rem 0;background:#173f45;color:#fff}.service-contact .kicker{color:#90d1ca}
.service-contact-inner{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,.7fr);gap:2rem;align-items:center}.service-contact-inner h2{margin:.25rem 0 .7rem}
.service-contact-actions{display:flex;flex-wrap:wrap;gap:.8rem 1.1rem;align-items:center}.service-contact-actions>a:not(.btn){color:#fff}
.selected-service{display:grid;gap:.2rem;margin:.6rem 0 1rem;padding:.85rem 1rem;border-left:4px solid #e7a35a;border-radius:8px;background:#fff8ed}
.selected-service[hidden]{display:none}.selected-service span{color:var(--muted,#4d6266);font-size:.8rem;text-transform:uppercase;letter-spacing:.06em}
@media(max-width:980px){.service-process{grid-template-columns:repeat(2,minmax(0,1fr))}.service-scenario-grid{grid-template-columns:1fr}}
@media(max-width:720px){.service-two-column,.service-faq-wrap,.service-contact-inner,.service-related-grid{grid-template-columns:1fr}.service-process{grid-template-columns:1fr}.service-detail .service-page-hero{padding-top:1.5rem;padding-bottom:3rem}.service-section{padding:3.2rem 0}}

/* BEGIN CASTEL HERO ENTRIES 20261012 */
.hero-service-entries{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:24px 0;
}
.hero-service-entry{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  padding:18px;
  border:1px solid #cbd5e1;
  border-radius:var(--radius2);
  background:#fff;
  color:#0b1220;
  overflow-wrap:anywhere;
}
.hero-service-entry strong{font-size:1.05rem;line-height:1.35}
.hero-service-entry span{color:#334155;font-size:.95rem}
.hero-service-entry:hover{border-color:#9a3412;text-decoration:none}
.hero-service-entry:focus-visible{outline:2px solid #9a3412;outline-offset:3px}
@media(max-width:720px){
  .hero-service-entries{grid-template-columns:1fr}
}
@media(forced-colors:active){
  .hero-service-entry:focus-visible{outline-color:Highlight}
}
/* END CASTEL HERO ENTRIES 20261012 */
