/* ==========================================================================
   MSolutions – gemeinsames Stylesheet
   Marke: Navy #16283F · Cyan #2AB3C6 · dunkler Grund #0E1826
   Grundlage: die bestehende Startseite (seite/index.html, August 2026)
   ========================================================================== */

:root{
  --navy:#16283F; --navy-deep:#0E1826; --navy-soft:#1D3350;
  --cyan:#2AB3C6; --cyan-soft:rgba(42,179,198,.14);
  --bg:#F5F7FA; --card:#FFFFFF; --text:#16283F; --muted:#5A6B80; --line:#E4E9F0;
  --wrap:1080px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text); background:var(--bg);
  display:flex; flex-direction:column; min-height:100vh;
}
main{flex:1 0 auto;}
a{color:inherit;}
img{max-width:100%; height:auto;}
:focus-visible{outline:2px solid var(--cyan); outline-offset:3px; border-radius:4px;}
.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}
.skip{
  position:absolute; left:-9999px; top:0; z-index:50;
  background:var(--cyan); color:#06222A; padding:10px 16px; border-radius:0 0 8px 0; font-weight:650;
}
.skip:focus{left:0;}

/* ---------- Kopfbereich (dunkel) ---------- */
.top{
  position:relative; overflow:hidden; color:#fff;
  background:radial-gradient(1200px 600px at 75% -10%, #21395B 0%, var(--navy-deep) 55%);
  padding:0 24px;
}
.top.hero{padding-bottom:96px;}
.top.slim{padding-bottom:60px;}

nav.mainnav{
  max-width:var(--wrap); margin:0 auto;
  display:flex; align-items:center; gap:20px; padding:22px 0;
}
nav.mainnav .brand{display:flex; align-items:center; gap:12px; text-decoration:none; flex:none;}
nav.mainnav svg{flex:none;}
.wordmark{font-size:22px; letter-spacing:-0.02em; color:#fff;}
.wordmark b{font-weight:700;}
.wordmark span{font-weight:450;}

.navlinks{
  display:flex; align-items:center; gap:4px; margin-left:auto; flex-wrap:wrap;
}
.navlinks a{
  text-decoration:none; color:#C3D0DF; font-size:15px; font-weight:550;
  padding:9px 13px; border-radius:8px; transition:color .15s ease, background .15s ease;
}
.navlinks a:hover{color:#fff; background:rgba(255,255,255,.08);}
.navlinks a[aria-current="page"]{color:#fff; background:rgba(42,179,198,.16);}

.lang{
  display:flex; align-items:center; gap:2px; margin-left:10px; flex:none;
  border:1px solid rgba(255,255,255,.22); border-radius:999px; padding:3px;
}
.lang a{
  text-decoration:none; font-size:12.5px; font-weight:700; letter-spacing:.06em;
  color:#9FB0C4; padding:5px 11px; border-radius:999px;
}
.lang a:hover{color:#fff;}
.lang a[aria-current="true"]{background:var(--cyan); color:#06222A;}

.navtoggle{
  display:none; margin-left:auto; background:none; border:1px solid rgba(255,255,255,.25);
  color:#fff; border-radius:9px; padding:8px 11px; font-size:15px; cursor:pointer;
}

/* ---------- Hero ---------- */
.hero-inner{
  max-width:var(--wrap); margin:0 auto; padding-top:64px;
  display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--cyan-soft); border:1px solid rgba(42,179,198,.45);
  color:#9FE3ED; font-size:13px; font-weight:600; letter-spacing:.04em;
  padding:7px 14px; border-radius:999px; margin-bottom:22px;
}
.badge i{display:block; width:8px; height:8px; border-radius:50%; background:var(--cyan);
  animation:pulse 2.2s ease-in-out infinite;}
@keyframes pulse{0%,100%{opacity:1; transform:scale(1);}50%{opacity:.45; transform:scale(.75);}}
@media (prefers-reduced-motion:reduce){
  .badge i{animation:none;}
  html{scroll-behavior:auto;}
}
h1{font-size:clamp(34px,5vw,54px); line-height:1.08; letter-spacing:-0.025em; font-weight:750;}
h1 em{font-style:normal; color:var(--cyan);}
.top p.sub{margin-top:20px; font-size:17.5px; line-height:1.65; color:#B9C6D6; max-width:54ch;}
.cta-row{margin-top:34px; display:flex; gap:14px; flex-wrap:wrap;}
.btn{
  display:inline-block; text-decoration:none; font-weight:650; font-size:15.5px;
  padding:13px 26px; border-radius:10px; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn.primary{background:var(--cyan); color:#06222A;}
.btn.primary:hover{transform:translateY(-1px); box-shadow:0 6px 18px rgba(42,179,198,.35);}
.btn.ghost{border:1px solid rgba(255,255,255,.28); color:#E7EDF4;}
.btn.ghost:hover{border-color:rgba(255,255,255,.55);}
.btn.dark{background:var(--navy); color:#fff;}
.btn.dark:hover{transform:translateY(-1px); box-shadow:0 6px 18px rgba(22,40,63,.28);}
.btn.line{border:1px solid var(--line); color:var(--navy); background:#fff;}
.btn.line:hover{border-color:var(--cyan);}
.hero-art{display:flex; justify-content:center;}
.hero-art svg{width:min(340px,80%); height:auto; filter:drop-shadow(0 18px 45px rgba(0,0,0,.35));}

/* Seitenkopf der Unterseiten */
.pagehead{max-width:var(--wrap); margin:0 auto; padding-top:46px;}
.pagehead h1{font-size:clamp(30px,4.2vw,44px);}
.pagehead .kicker{color:var(--cyan);}
.pagehead p{margin-top:16px; font-size:17px; line-height:1.65; color:#B9C6D6; max-width:62ch;}

/* ---------- Abschnitte ---------- */
section{padding:84px 24px;}
section.tight{padding:56px 24px;}
.wrap{max-width:var(--wrap); margin:0 auto;}
.kicker{color:var(--cyan); font-size:13.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; display:block;}
h2{font-size:clamp(26px,3.2vw,34px); letter-spacing:-0.02em; margin-top:10px;}
h3{font-size:19px; letter-spacing:-0.01em;}
.lead{color:var(--muted); font-size:16.5px; line-height:1.65; margin-top:14px; max-width:min(70ch,100%);}
.prose{overflow-wrap:break-word;}
.prose p{color:var(--muted); font-size:16.5px; line-height:1.75; margin-top:16px; max-width:min(70ch,100%);}
.prose h2{margin-top:48px;}
.prose > h2:first-child{margin-top:0;}
.prose h3{margin-top:34px; color:var(--text);}
.prose .dl{margin-top:18px;}
.prose ul{margin-top:14px; padding-left:22px; color:var(--muted); font-size:16px; line-height:1.7; max-width:min(70ch,100%);}
.prose li{margin-top:7px;}
.prose strong{color:var(--text);}
.prose a{color:var(--navy); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--cyan);}

.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:44px;}
.cards.two{grid-template-columns:repeat(2,1fr);}
.card{
  background:var(--card); border:1px solid var(--line); border-radius:16px; padding:28px 26px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.card:hover{transform:translateY(-3px); box-shadow:0 12px 30px rgba(22,40,63,.10);}
/* Auf dem weißen Band bekommen die Karten einen leicht getönten Grund,
   sonst verschwinden sie darin. */
.band .card{background:#F7F9FC;}
.card .ico{
  width:46px; height:46px; border-radius:12px; background:var(--cyan-soft);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.card h3{font-size:18px;}
.card p{color:var(--muted); font-size:14.5px; line-height:1.6; margin-top:10px;}
.card ul{margin-top:12px; padding-left:20px; color:var(--muted); font-size:14.5px; line-height:1.6;}
.card li{margin-top:6px;}

/* Statuskennzeichnung – ehrlich bleiben: live / Beta / geplant */
.status{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; padding:4px 10px; border-radius:999px; margin-left:10px;
  vertical-align:middle; white-space:nowrap;
}
.status.live{background:rgba(42,179,198,.15); color:#12707E; border:1px solid rgba(42,179,198,.4);}
.status.beta{background:#FFF3E0; color:#8A5A12; border:1px solid #F0D9B5;}
.status.plan{background:#EEF1F6; color:#5A6B80; border:1px solid var(--line);}
/* Anklickbare Kacheln für die Projektübersicht */
a.card{text-decoration:none; color:inherit; display:block; position:relative;}
a.card:hover h3{color:var(--navy);}
.cards.kacheln{grid-template-columns:repeat(3,1fr); gap:18px; margin-top:38px;}
.cards.kacheln .card{padding:22px 22px 24px;}
.cards.kacheln .ico{width:38px; height:38px; border-radius:10px; margin-bottom:14px;}
.cards.kacheln .ico svg{width:20px; height:20px;}
.cards.kacheln h3{font-size:17px;}
.cards.kacheln p{margin-top:8px; font-size:14px; line-height:1.55;}
.cards.kacheln .status{font-size:11px; padding:3px 8px; margin-left:8px;}

/* Hinweiszeile unter den Kacheln */
.zugang{
  margin-top:30px; display:flex; align-items:flex-start; gap:14px;
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:20px 22px; max-width:min(78ch,100%);
}
.zugang .schloss{flex:none; margin-top:2px;}
.zugang p{color:var(--muted); font-size:15px; line-height:1.65; margin:0;}
.zugang strong{color:var(--text);}
.zugang a{color:var(--navy); text-decoration:underline; text-underline-offset:3px;
  text-decoration-color:var(--cyan);}

/* In Karten darf ein langes Etikett umbrechen – sonst zwingt es die Spalte breiter,
   als der Bildschirm ist. */
.card{min-width:0;}
.card h3 .status{white-space:normal; margin-left:8px;}

/* Weißer Block mit Rahmen (Über / Vertrauen) */
.band{background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.band.split .wrap{display:grid; grid-template-columns:auto 1fr; gap:44px; align-items:center;}
.band.split svg{width:120px; height:120px; flex:none;}
.band p{color:var(--muted); font-size:16.5px; line-height:1.7; max-width:min(75ch,100%); margin-top:14px;}

/* Faktenliste (Was der Server hat / nicht hat, Eckdaten) */
.facts{list-style:none; margin-top:26px; display:grid; gap:12px; max-width:min(70ch,100%);}
.facts li{
  position:relative; padding-left:20px; min-width:0;
  color:var(--muted); font-size:16px; line-height:1.6; overflow-wrap:anywhere;
}
.facts li::before{
  content:""; position:absolute; left:0; top:9px;
  width:8px; height:8px; border-radius:50%; background:var(--cyan);
}
.facts li.no::before{background:#C6CFDA;}

/* Definitionsliste (Kontakt, Impressum) */
.dl{margin-top:26px; display:grid; grid-template-columns:auto 1fr; gap:12px 28px; max-width:min(70ch,100%);}
.dl dt, .dl dd{min-width:0; overflow-wrap:anywhere;}
.dl dt{font-weight:650; color:var(--text); font-size:15.5px;}
.dl dd{color:var(--muted); font-size:15.5px; line-height:1.6;}
.dl a{color:var(--navy); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--cyan);}

/* Platzhalter, die vor dem Livegang gefüllt werden müssen */
.tbd{
  overflow-wrap:anywhere;
  background:#FFF6E5; border:1px dashed #E0B978; color:#8A5A12;
  padding:2px 8px; border-radius:6px; font-size:14.5px; font-weight:600;
  display:inline-block;
}
.notice{
  background:#FFF6E5; border:1px solid #F0D9B5; color:#7A4F10;
  border-radius:12px; padding:18px 20px; margin-top:30px;
  font-size:15px; line-height:1.6; max-width:min(70ch,100%);
}
.notice strong{color:#5F3D0B;}

/* Abschluss-Aufforderung */
.closing{background:var(--navy-deep); color:#fff; padding:72px 24px; text-align:center;}
.closing h2{color:#fff;}
.closing p{color:#B9C6D6; font-size:16.5px; line-height:1.65; margin:14px auto 0; max-width:56ch;}
.closing .cta-row{justify-content:center;}

/* ---------- Fußbereich ---------- */
footer{background:var(--navy-deep); color:#8FA1B8; padding:48px 24px 34px; flex:none;}
.footgrid{
  max-width:var(--wrap); margin:0 auto;
  display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:36px;
}
.footgrid .brand{display:flex; align-items:center; gap:10px;}
.footgrid .wordmark{font-size:19px;}
.footgrid p{margin-top:14px; font-size:14.5px; line-height:1.65; max-width:38ch;}
.footgrid h4{color:#DCE5EF; font-size:14px; letter-spacing:.06em; text-transform:uppercase; font-weight:700;}
.footgrid ul{list-style:none; margin-top:14px; display:grid; gap:9px;}
.footgrid a{color:#8FA1B8; text-decoration:none; font-size:14.5px;}
.footgrid a:hover{color:#fff;}
.footbar{
  max-width:var(--wrap); margin:34px auto 0; padding-top:20px;
  border-top:1px solid rgba(255,255,255,.09);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:13.5px;
}

/* ---------- Responsiv ---------- */
@media (max-width:1020px){
  .cards.kacheln{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:900px){
  .footgrid{grid-template-columns:1fr 1fr;}
  .footgrid .brand-col{grid-column:1 / -1;}
}
@media (max-width:860px){
  .hero-inner{grid-template-columns:1fr; padding-top:40px; gap:40px;}
  .hero-art{order:-1;}
  .hero-art svg{width:min(220px,60%);}
  .cards, .cards.two, .cards.kacheln{grid-template-columns:1fr;}
  .zugang{flex-direction:column; gap:10px;}
  .band.split .wrap{grid-template-columns:1fr; text-align:left;}
  section{padding:64px 20px;}
  nav.mainnav{flex-wrap:wrap; gap:10px; row-gap:6px;}
  nav.mainnav .brand{margin-right:auto;}
  .wordmark{font-size:20px;}
  /* Das Etikett im Hero ist lang – auf schmalen Bildschirmen etwas enger setzen,
     damit es einzeilig bleibt; bricht es doch, sitzt der Punkt an der ersten Zeile. */
  .badge{font-size:12px; letter-spacing:.02em; align-items:flex-start; line-height:1.45;}
  .badge i{margin-top:5px;}
  .navtoggle{display:block; margin-left:0; order:1;}
  .lang{order:2; margin-left:0;}
  .navlinks{
    display:none; width:100%; flex-basis:100%; order:3; margin-left:0;
    flex-direction:column; align-items:stretch; gap:2px; padding-bottom:14px;
  }
  .navlinks a{padding:12px 14px;}
  nav.mainnav.open .navlinks{display:flex;}
}
@media (max-width:560px){
  .dl{grid-template-columns:1fr; gap:4px 0;}
  .dl dd{margin-bottom:12px;}
  .footgrid{grid-template-columns:1fr;}
}
