:root {
  --bg: #f7f6f3;            /* warmes Papier */
  --bg-alt: #eef0f2;        /* kühler Abschnittston */
  --card: #ffffff;
  --border: #d8d6d0;
  --text: #1c2430;
  --muted: #5c6572;
  --accent: #1b7fc4;        /* Markenblau aus dem Logo */
  --accent-strong: #29abe2;
  --accent-ink: #14567e;
  --radius: 4px;            /* kantig statt "AI-Blob" */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, nav, .btn, .dl-item .name, .footer-inner strong {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
}
.site-header .header-inner { max-width: 1080px; margin: 0 auto; }
.header-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 24px 10px; }
.site-header { position: sticky; top: 0; z-index: 50; }
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; }
.brand-logo { height: 57px; width: auto; display: block; }
@media (max-width: 820px) { .brand-logo { height: 44px; } }
nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; justify-content: flex-start; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; font-size: .95rem; transition: .15s; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
nav a.nav-cta { color: #fff; background: var(--accent); border-radius: 3px; border-bottom: none; margin-left: 8px; }
nav a.nav-cta:hover { background: var(--accent-ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); font-size: 1.2rem; padding: 6px 12px; border-radius: 3px; cursor: pointer; }

/* Hero */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-eyebrow {
  color: var(--accent-ink); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 16px;
  font-family: system-ui, sans-serif;
}
.hero-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--accent); margin-right: 12px; vertical-align: middle; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.18; letter-spacing: -.015em; font-weight: 700; }
.accent { color: var(--accent); }
.hero-text { margin-top: 20px; max-width: 600px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 3px;
  text-decoration: none; font-weight: 600; font-size: .95rem; transition: .15s;
  font-family: system-ui, sans-serif;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { color: var(--accent-ink); border: 1px solid var(--border); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 1.8rem; letter-spacing: -.01em; }
.section-sub { color: var(--muted); margin-top: 8px; margin-bottom: 40px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border: 1px solid var(--border); background: var(--border); }
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); padding: 30px; text-decoration: none; color: var(--text);
  transition: .2s; gap: 10px;
}
.card:hover { background: #fbfdff; box-shadow: inset 0 3px 0 var(--accent); }
.card-icon { font-size: 1.6rem; }
.card h3 { font-size: 1.12rem; color: var(--accent-ink); }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-link { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.feature { border-top: 3px solid var(--accent); padding-top: 16px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 10px; }
.feature p { color: var(--muted); }

/* CTA band */
.cta-band { background: var(--accent-ink); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.75); }
.cta-band .btn-primary { background: #fff; color: var(--accent-ink); }
.cta-band .btn-primary:hover { background: var(--accent-strong); color: #fff; }

/* Content pages */
.page-hero { padding: 72px 0 8px; }
.page-hero .eyebrow { color: var(--accent-ink); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.page-hero .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--accent); margin-right: 12px; vertical-align: middle; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-top: 10px; letter-spacing: -.01em; }
.content { max-width: 800px; padding-bottom: 72px; }
.content p { margin: 16px 0; color: #33404f; }
.content h2 { margin: 36px 0 12px; font-size: 1.3rem; color: var(--accent-ink); }
.content ul { margin: 16px 0 16px 22px; color: #33404f; }
.content ol { margin: 16px 0 16px 22px; color: #33404f; }
.content li { margin: 8px 0; }
.content .note {
  background: var(--bg-alt); border-left: 3px solid var(--accent);
  padding: 16px 20px; margin: 24px 0; color: var(--muted); font-size: .95rem;
}
.content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
.content th, .content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.content th { color: var(--muted); font-weight: 600; }
.content a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Kontaktbox */
.contact-box { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 24px 28px; margin: 24px 0; animation: lb-in .3s ease; }
.contact-list { display: grid; grid-template-columns: 110px 1fr; gap: 10px 18px; margin: 0; }
.contact-list dt { font-weight: 600; color: var(--accent-ink); font-family: system-ui, sans-serif; font-size: .9rem; }
.contact-list dd { margin: 0; color: #33404f; }
.contact-wait { color: var(--muted); font-style: italic; margin: 24px 0; }
.content figure { margin: 0; }
.content img { max-width: 100%; height: auto; display: block; }
.content figcaption { color: var(--muted); font-size: .85rem; margin-top: 8px; text-align: center; }
.img-row { display: flex; gap: 24px; flex-wrap: wrap; margin: 20px 0; }
.img-row figure { cursor: zoom-in; transition: .2s; background: #fff; border: 1px solid var(--border); padding: 8px; }
.img-row figure:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(20,86,126,.15); }

/* Lightbox modal */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(18, 26, 36, .9);
  align-items: center; justify-content: center; padding: 32px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh; width: auto; height: auto;
  background: #fff; padding: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5); animation: lb-in .2s ease;
}
.lightbox .lb-caption {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: #e8ecf4; font-size: .95rem; background: rgba(28, 36, 48, .85);
  padding: 8px 18px;
}
.lightbox .lb-close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px;
  background: #fff; color: var(--text);
  font-size: 1.4rem; line-height: 1; cursor: pointer; transition: .15s;
  display: flex; align-items: center; justify-content: center;
  border: none;
}
.lightbox .lb-close:hover { background: var(--accent); color: #fff; }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* Download list */
.dl-group { margin: 28px 0; }
.dl-group h2 { font-size: 1.2rem; margin-bottom: 14px; color: var(--accent-ink); }
.dl-list { display: flex; flex-direction: column; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 16px 18px; text-decoration: none; color: var(--text); transition: .15s;
  border-left: 3px solid transparent;
}
.dl-item:hover { border-left-color: var(--accent); background: #fbfdff; }
.dl-item .name { font-weight: 600; font-size: .95rem; }
.dl-item .desc { color: var(--muted); font-size: .85rem; }
.dl-item .btn { padding: 7px 16px; font-size: .85rem; white-space: nowrap; }

/* Footer */
.site-footer { border-top: 2px solid var(--accent); background: var(--bg-alt); padding: 44px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; }
.footer-inner p { color: var(--muted); font-size: .92rem; }
.footer-links { display: flex; gap: 20px; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--accent-ink); }
.copyright { color: #8a8578; font-size: .82rem; text-align: center; padding: 18px 0; border-top: 1px solid var(--border); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  nav {
    display: none; width: 100%;
    background: var(--card); border: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 10px; gap: 2px;
  }
  nav a { border-bottom: none; }
  nav.open { display: flex; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
