/*
 * SyxMail – Grundlagen für alle Seiten der Startseite:
 * Farben, Schrift, Knöpfe, Kopf und Fuß.
 * Nur Systemschriften – keine Anfrage an fremde Server.
 */
:root {
  --paper: #f2f3f5;      /* Seitenhintergrund: helles Grau, nicht ganz weiß */
  --surface: #ffffff;    /* Karten und Flächen */
  --sunk: #e9ebef;       /* abgesetzte Flächen */
  --ink: #141821;        /* Text */
  --muted: #5b6272;      /* Nebentext */
  --faint: #8a90a0;
  --rule: #dcdfe5;       /* Linien */
  --brand: #0e2548;      /* Dunkelblau aus dem Logo */
  --brand-soft: #e6ebf4;
  --accent: #146efc;     /* Blau aus dem Logo – sparsam */
  --ok: #17703a;
  --warn: #8a5a00;
  --warn-soft: #fbf3e2;
  --danger: #a3261f;
  --danger-soft: #fbecea;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14, 37, 72, .06), 0 8px 24px -8px rgba(14, 37, 72, .12);
  color-scheme: light; /* immer hell – unabhängig von der Einstellung des Rechners */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { color: var(--ink); }
h1 { font: 400 clamp(36px, 4.6vw, 62px)/1.07 var(--serif); letter-spacing: -0.02em; margin: 0 0 22px; }
h2 { font: 400 clamp(28px, 3vw, 42px)/1.15 var(--serif); letter-spacing: -0.015em; margin: 0 0 16px; }
h3 { font: 600 18px/1.35 var(--sans); margin: 0 0 6px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin: 0 0 30px; max-width: 36em; }
.muted { color: var(--muted); }

/* Knöpfe: ruhig, wenig gerundet, Dunkelblau aus dem Logo */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 6px;
  font: 600 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-solid { background: var(--brand); color: #fff !important; }
.btn-solid:hover { background: #18346a; }
.btn-line { border-color: #c7ccd6; background: var(--surface); color: var(--ink) !important; }
.btn-line:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand) !important; }
.btn-light:hover { background: var(--brand-soft); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }

/* Kopf */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(242, 243, 245, .92); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.4) blur(8px); }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: block; flex-shrink: 0; }
.brand img { display: block; height: 34px; width: auto; }
header.top nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; }
header.top nav a:not(.btn) { color: var(--ink); text-decoration: none; }
header.top nav a:not(.btn):hover { color: var(--brand); text-decoration: underline; }
header.top .buttons { display: flex; gap: 10px; }

/* Fuß */
footer.site { margin-top: 0; background: var(--surface); border-top: 1px solid var(--rule); color: var(--muted); font-size: 15px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
footer.site h4 { margin: 0 0 12px; font: 600 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--brand); text-decoration: underline; }
footer.site .about img { height: 30px; width: auto; display: block; margin-bottom: 14px; }
footer.site .about p { margin: 0; max-width: 24em; }
footer.site .bottom { border-top: 1px solid var(--rule); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }

@media (max-width: 960px) {
  header.top nav .nav-link { display: none; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  footer.site .about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  header.top .wrap { gap: 12px; height: 62px; }
  .brand img { height: 28px; }
  header.top .buttons .btn-line { display: none; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
