
:root {
    --navy:#113278;
    --sky:#0ea5e9;
    --blue:#2563eb;
    --grey:#cdcdcd;
    --slate:#111827;
    --muted:#6b7280;
    --bg:#f8fafc;
    --card:#ffffff;
    --ns-maxw: 1120px;
    --ns-space: 1rem;
    --ns-radius: 14px;
    --ns-gap: clamp(16px, 3vw, 28px);
    --ns-fg: #0e1116;
    --ns-bg: #ffffff;
    --ns-accent: #1e64ff;
}
*{
    box-sizing:border-box;
}
html{
    font-size: 16px;
}
body{
    margin:0;
    padding:0;
    font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color:var(--slate);
    background:var(--bg);
    line-height: 1.6;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
a, button { min-height: 44px; }

/* Hilfs-Klassen */
[hidden] { display: none !important; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

.btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; border-radius:12px; text-decoration:none; border:1px solid transparent; }
.btn.primary { background:#1e64ff; color:#fff; }

a{
    color:var(--blue);
    text-decoration:none;
}
a:hover{
    text-decoration:underline;
}
.container{
    max-width:1160px;
    margin:0 auto;
    padding:0 20px;
}
.btn{
    display:inline-block;
    padding:12px 18px;
    border-radius:14px;
    background:#fff;
    color:var(--navy);
    font-weight:600;
    border:1px solid #e5e7eb;
    transition:transform .1s,box-shadow .2s;
}
.btn.primary{
    background:var(--blue);
    color:#fff;
    border-color:var(--blue);
}
.btn:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.btn.ghost{
    background:transparent;
    border-color:rgba(255,255,255,.4);
    color:#fff;
}
.tag{
    font-size:12px;
    padding:4px 8px;
    border-radius:999px;
    background:#eef2ff;
    color:var(--blue);
    font-weight:600;
}
header.navbar{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(255,255,255,.85);
    backdrop-filter:blur(8px);
    border-bottom:1px solid #e5e7eb;
}
.navbar .row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 0;
}
.navbar .brand{
    display:flex;
    gap:12px;
    align-items:center;
}
.navbar .brand img {
    height:36px;
    width:auto;
}
.navbar nav a{
    margin:0 12px;
    color:var(--slate);
    font-weight:600;
}
.navbar nav a:hover{
    color:var(--blue);
    text-decoration:none;
}

.ns-header{
    position: sticky; top:0; z-index:10;
    display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px;
    padding:10px 16px; border-bottom:1px solid #e8eaee; background:#fff;
}
.ns-brand img { display:block; height:auto; }

/* Mobile-First */
.nav-desktop {
    display: none;

}
.nav-mobile  {
    display: grid;
    gap: 4px;
    padding: 4px 0;
}
.nav-toggle  {
    display: inline-flex;
    width:44px;
    height:44px;
    align-items:center;
    justify-content:center;
}

/* Ab Desktop-Breite */
@media (min-width: 900px){
    .nav-desktop {
        display: flex; gap: 8px;
        align-items:center;
    }
    .nav-mobile  { display: none; }
    .nav-toggle  { display: none; }
}
/* Optional: sanfte Auf/Zu-Animation (max-height Trick) */
.nav-mobile {
    overflow: hidden;
    max-height: 0;
    transition: max-height 200ms ease;
}
.nav-mobile[data-open="true"] {
    max-height: 60vh; /* genug Platz für Links */
}

/* Links im Mobile-Menü */
.nav-mobile a {
    display: block;
    padding: 8px 12px; /* hier Abstände anpassen (vorher z. B. 12px 14px) */
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
}

.nav-mobile a:hover,
.nav-mobile a:focus {
    background: #f3f5f8;
    outline: none;
}

/* Basis-Look */
#nav-mobile a, .nav-desktop a {
    display:inline-block; padding:12px 14px; border-radius:10px; text-decoration:none;
}
#nav-mobile a:hover, .nav-desktop a:hover,
#nav-mobile a:focus, .nav-desktop a:focus { background:#f3f5f8; outline:none; }


/* Header / Nav */
.ns-header{
    position: sticky; top: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr auto;
    gap: 8px; align-items: center;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
    border-bottom: 1px solid #e8eaee; padding: 10px 16px;
}
.ns-brand img{ display:block; height:auto; }

.ns-nav-toggle{
    border: none; background: transparent; font-size: 1.5rem; line-height: 1;
    width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
}
.ns-nav{
    grid-column: 1 / -1; display: grid; gap: 8px; padding-bottom: 8px;
}
.ns-nav[data-collapsed="true"]{ display: none; }

.ns-nav a{
    padding: 12px 14px; border-radius: 10px; text-decoration: none; color: inherit;
}
.ns-nav a:hover, .ns-nav a:focus{ background: #f3f5f8; outline: none; }
.ns-nav .ns-cta{
    background: var(--ns-accent); color: #fff; text-align: center; font-weight: 600;
}
.ns-nav .ns-cta:hover, .ns-nav .ns-cta:focus{ filter: brightness(0.95); }

.hero{
    background:linear-gradient(135deg,var(--navy),#1f4fa5,#3b82f6);
    color:#fff;
}
.hero .inner{
    padding:90px 0;
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:40px;
    align-items:center;
}
.hero .device{
    border:1px solid rgba(255,255,255,.25);
    background:rgba(255,255,255,.08);
    border-radius:24px;
    padding:18px;
    box-shadow:0 18px 48px rgba(0,0,0,.25);
}
.hero h1{
    font-size:clamp(32px,4.5vw,56px);
    line-height:1.05;
    margin:0 0 16px;
}
.hero p.lead{
    font-size:clamp(16px,2vw,22px);
    color:#dbeafe;
    margin:0 0 24px;
}
.section{
    padding:72px 0;
}
.section h2{
    font-size:36px;
    margin:0 0 24px;
}
.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}
.card{
    background:var(--card);
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:22px;
    box-shadow:0 6px 18px rgba(0,0,0,.03);
}
.icon{
    width:40px;
    height:40px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:#eff6ff;
    color:var(--blue);
    font-weight:800;
}
.kpis{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-top:18px;
}
.kpi{
    padding:14px;
    background:#f1f5f9;
    border-radius:12px;
    text-align:center;
    color:var(--muted);
}
.kpi strong{
    color:var(--navy);
}
.form{
    display:grid;
    gap:12px;
}
.form .row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.input,.textarea{
    width:100%;
    padding:12px 14px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
    font:inherit;
}
.textarea{
    min-height:130px;
    resize:vertical;
}
.footer{
    background:var(--grey);
    color:#5d5d5d;
}
.footer .cols{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:22px;
    padding:34px 0;
}
.footer a{
    color:#5d5d5d;
}
.footer .legal{
    border-top:1px solid rgba(0,0,0,.30);
    padding:12px 0;
    font-size:12px;
    text-align:center;
    color:#5d5d5d;
}
@media (max-width:980px){
    .hero .inner{grid-template-columns:1fr}
    .grid-3{grid-template-columns:1fr}
    .kpis{grid-template-columns:repeat(2,1fr)}
    .footer .cols{grid-template-columns:1fr 1fr}
}

/* === Ergänzung: Mobile & UX === */
html { font-size: 16px; }
body { line-height: 1.6; }

a, button {
    min-height: 44px; /* bessere Touch-Ergonomie */
}

/* Navigation */
.nav-toggle, .ns-nav-toggle {
    border: 1px solid #e8eaee; background:#fff; border-radius:12px;
    width:44px; height:44px; line-height:1; cursor:pointer;
}

/* Menü einklappen auf Mobile */
#site-nav[data-collapsed="true"],
#ns-nav[data-collapsed="true"] { display: none; }

#site-nav a, #ns-nav a {
    display:inline-block; padding:12px 14px; border-radius:10px; text-decoration:none;
}
#site-nav a:hover, #ns-nav a:hover,
#site-nav a:focus, #ns-nav a:focus { background:#f3f5f8; outline:none; }

/* Grids & Cards */
.grid { display:grid; gap: clamp(16px, 3vw, 28px); }
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-3 { grid-template-columns: 1fr; }
.grid.cols-4 { grid-template-columns: 1fr; }

@media (min-width: 700px){
    .grid.cols-2 { grid-template-columns: repeat(2,1fr); }
    .grid.cols-3 { grid-template-columns: repeat(3,1fr); }
    .grid.cols-4 { grid-template-columns: repeat(4,1fr); }
}

.card {
    border:1px solid #e8eaee; border-radius:14px; background:#fff; padding:18px;
}

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 16px;
    border-radius:12px; border:1px solid transparent; font-weight:600; text-decoration:none; }
.btn.primary { background:#1e64ff; color:#fff; }
.btn.secondary { background:#f3f5f8; color:inherit; }

/* Bilder */
img { max-width:100%; height:auto; border-radius: 12px; }

/* Sticky CTA (nur Mobile) */
.sticky-cta{
    position:fixed; right:16px; bottom:16px; z-index:60;
    display:inline-flex; padding:12px 16px; border-radius:999px;
    background:#1e64ff; color:#fff; text-decoration:none; font-weight:700;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}
@media (min-width: 900px){ .sticky-cta{ display:none; } }

/* Accessibility */
.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; }
:focus-visible{ outline:2px solid #1e64ff; outline-offset:2px; }
