:root {
    --bg: #f7f9fb;
    --surface: #ffffff;
    --surface-soft: #eef3f7;
    --text: #1c2733;
    --muted: #607080;
    --line: #d8e0e7;
    --blue: #0f4f88;
    --blue-dark: #0a355c;
    --steel: #7b8a99;
    --code: #12263a;
    --max: 1120px;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(20, 38, 56, .08);
}

@media (min-width: 1280px) {
    :root { --max: 1180px; }
}

@media (min-width: 1600px) {
    :root { --max: 1320px; }
}

@media (min-width: 1920px) {
    :root { --max: 1440px; }
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
    radial-gradient(circle at 10% 0%, rgba(15, 79, 136, .10), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #eef3f7 100%);
    line-height: 1.6;
}

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

img { max-width: 100%; display: block; }

.wrap {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 249, 251, .86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(216, 224, 231, .7);
}

.nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand img {
    width: 58px;
    height: auto;
}

.brand strong {
    display: block;
    font-size: 1rem;
    line-height: 1.1;
    color: var(--blue-dark);
    letter-spacing: .01em;
}

.brand span {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    margin-top: 2px;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: .92rem;
    color: var(--muted);
}

.navlinks a:hover { color: var(--blue); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
    font-weight: 650;
    font-size: .94rem;
    box-shadow: 0 10px 24px rgba(15, 79, 136, .18);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: var(--blue-dark);
    box-shadow: 0 14px 30px rgba(15, 79, 136, .24);
}

.btn.secondary {
    background: transparent;
    color: var(--blue-dark);
    border-color: var(--line);
    box-shadow: none;
}

.hero {
    min-height: auto;
    padding: clamp(44px, 5vh, 72px) 0 clamp(28px, 3.5vh, 46px);
    display: grid;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr);
    gap: clamp(42px, 5vw, 96px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--muted);
    font-size: .86rem;
    margin-bottom: 22px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.10),
    0 0 10px rgba(34, 197, 94, 0.45),
    0 0 18px rgba(59, 130, 246, 0.18);
  animation: ledPulse 1.8s ease-in-out infinite;
}

@keyframes ledPulse {
  0%, 100% {
    background: #22c55e;
    box-shadow:
      0 0 0 4px rgba(34, 197, 94, 0.10),
      0 0 10px rgba(34, 197, 94, 0.45),
      0 0 18px rgba(59, 130, 246, 0.18);
    transform: scale(1);
  }

  50% {
    background: #38bdf8;
    box-shadow:
      0 0 0 5px rgba(56, 189, 248, 0.14),
      0 0 14px rgba(56, 189, 248, 0.55),
      0 0 24px rgba(34, 197, 94, 0.20);
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none;
  }
}
h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2.55rem, 4.4vw, 5.75rem);
    line-height: .98;
    letter-spacing: -.055em;
    color: var(--blue-dark);
}

.lead {
    max-width: 690px;
    margin: 26px 0 0;
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    color: #415264;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-card {
    position: relative;
    padding: 28px;
    border-radius: calc(var(--radius) + 8px);
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(216, 224, 231, .9);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
    linear-gradient(rgba(15, 79, 136, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 79, 136, .08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, black, transparent 72%);
    pointer-events: none;
}

.terminal {
    position: relative;
    border-radius: 16px;
    background: var(--code);
    color: #dceaf5;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .9rem;
}

.terminal-bar {
    display: flex;
    gap: 7px;
    padding: 13px 14px;
    background: rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.terminal-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(220,234,245,.45);
}

.terminal pre {
    margin: 0;
    padding: 20px;
    white-space: pre-wrap;
}

.terminal-bar i:nth-child(1) { background: #c96b6b; }
.terminal-bar i:nth-child(2) { background: #d4b06a; }
.terminal-bar i:nth-child(3) { background: #6fa77a; }

.terminal .muted { color: #8eabbf; }
.terminal .ok { color: #6fa77a; }

section { padding: clamp(32px, 3.6vw, 54px) 0; }

.section-head {
    display: grid;
    grid-template-columns: .45fr 1fr;
    gap: clamp(18px, 2vw, 28px);
    align-items: start;
    margin-bottom: clamp(18px, 2.2vw, 26px);
}

.section-head-plain {
    display: block;
}

.kicker {
    margin: 0;
    color: var(--blue);
    font-weight: 750;
    font-size: .88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: clamp(1.9rem, 3vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.section-copy {
    margin: 16px 0 0;
    /* max-width: 760px; */
    color: var(--muted);
    font-size: 1.04rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 1.8vw, 28px);
}

.card {
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.78);
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(20, 38, 56, .05);
}

.card small {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--steel);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .78rem;
}

.card h3 {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-size: 1.12rem;
    line-height: 1.3;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(22px, 2vw, 34px);
    align-items: stretch;
}

.panel {
    padding: 30px;
    border-radius: calc(var(--radius) + 6px);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.panel h3 {
    margin: 0 0 14px;
    color: var(--blue-dark);
    font-size: 1.35rem;
    letter-spacing: -.02em;
}

.panel p, .panel li { color: var(--muted); }

.list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.list li::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: .65em;
    border-radius: 2px;
    background: var(--blue);
    transform: rotate(45deg);
}

.contact {
    padding-bottom: clamp(42px, 5vw, 64px);
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: calc(var(--radius) + 10px);
    background: linear-gradient(135deg, var(--blue-dark), #153f67);
    color: #fff;
    box-shadow: 0 24px 55px rgba(10, 53, 92, .22);
    overflow: hidden;
    position: relative;
}

.contact-box::after {
    content: "</>";
    position: absolute;
    right: 26px;
    bottom: -22px;
    color: rgba(255,255,255,.08);
    font-size: 8rem;
    font-weight: 800;
    letter-spacing: -.08em;
}

.contact-box h2,
.contact-box p { color: #fff; position: relative; z-index: 1; }

.contact-box p {
    max-width: 720px;
    margin: 14px 0 0;
    color: rgba(255,255,255,.78);
}

.contact-box .btn {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--blue-dark);
    border-color: #fff;
    box-shadow: none;
    white-space: nowrap;
}

footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    color: var(--muted);
    font-size: .92rem;
}

@media (min-width: 1280px) {
    body {
    background:
        radial-gradient(circle at 18% 6%, rgba(15, 79, 136, .12), transparent 34rem),
        radial-gradient(circle at 82% 18%, rgba(123, 138, 153, .10), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #eef3f7 100%);
    }

    .section-head {
    grid-template-columns: 300px 1fr;
    }

    .hero-card {
    padding: clamp(28px, 2.4vw, 42px);
    }

    .terminal {
    font-size: clamp(.9rem, .78vw, 1.02rem);
    }

    .panel {
    padding: clamp(30px, 2.2vw, 42px);
    }
}

@media (min-width: 1600px) {
    .hero-grid {
    grid-template-columns: minmax(0, 1fr) 480px;
    }

    .lead {
    max-width: 760px;
    }

    section {
    padding: 56px 0;
    }
}

@media (min-width: 1920px) {
    .hero-grid {
    grid-template-columns: minmax(0, 980px) 520px;
    justify-content: space-between;
    }
}

@media (max-width: 1180px) {
    .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.foot {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.foot a { color: var(--blue-dark); }

@media (max-width: 900px) {
    .hero {
    min-height: auto;
    display: block;
    padding-top: 58px;
    }

    .hero-grid,
    .section-head,
    .split,
    .contact-box {
    grid-template-columns: 1fr;
    }

    .cards { grid-template-columns: 1fr; }
    .navlinks a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
    .wrap { width: min(var(--max), calc(100% - 28px)); }
    .brand img { width: 48px; }
    .brand span { display: none; }
    .hero-card, .panel, .contact-box { padding: 22px; }
    section { padding: 38px 0; }
    .actions { width: 100%; }
    .actions .btn { width: 100%; }
    .contact-box .btn { width: 100%; }
    .terminal { font-size: .78rem; }
    .terminal pre { padding: 16px; }
}


/* Rechtliche Unterseiten */
.legal-page {
  padding-top: clamp(44px, 5vh, 72px);
}

.legal-wrap {
  max-width: 860px;
}

.legal-page h1 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.legal-panel {
  display: grid;
  gap: 14px;
}

.legal-panel h2 {
  margin-top: 18px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -.02em;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel p {
  margin: 0;
  color: var(--muted);
}

.legal-panel a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-panel .list {
  margin: 0;
}

#leistungen {
  scroll-margin-top: 50px;
}