/* KMU Navigation – Basis-Styles (Design-Tokens, Reset, Logo, Buttons, Footer)
   Gemeinsam genutzt von allen Seiten. */

:root {
  --primary: #1F3864;
  --accent: #4472C4;
  --accent-light: #9BBAEA;   /* Negativ-Fassung von --accent für dunkle Flächen */
  --gold: #C9A44C;
  --light: #D9E1F2;
  --green: #00B050;
  --orange: #ED7D31;
  --red: #C00000;
  --bg: #FAFBFC;
  --grey-bg: #F8F9FA;
  --grey-border: #DEE2E6;
  --text: #212529;
  --text-light: #6C757D;
  --border: #E5E7EB;
  --maxw: 1200px;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: white;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 1000; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Logo (Kompass, rein per CSS) ----------
   Bewusst ohne Bilddatei: Das Zeichen steckt in neun Seiten, so genügt eine
   Anpassung hier. Variante «offener Ring»: Der Ring ist rechts geöffnet und
   leicht gekippt – das nimmt dem Kreis die Statik. Die Nadel gleicht die
   Kippung aus und steht dadurch aufrecht im schrägen Ring. */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-circle {
  width: 44px; height: 44px; border-radius: 50%;
  position: relative; flex-shrink: 0;
  /* Lichtquelle oben links – dadurch wölbt sich das Zifferblatt nach vorne. */
  background: radial-gradient(circle at 36% 26%, #ffffff 0%, #f1f5fc 52%, #d7e1f2 100%);
  border: 2.5px solid var(--primary);
  border-right-color: transparent;   /* die Öffnung */
  transform: rotate(-18deg);         /* Kippung – die Öffnung wandert nach oben rechts */
  box-shadow:
    0 3px 8px rgba(31, 56, 100, .26),          /* Schlagschatten: hebt vom Grund ab */
    inset 0 2px 3px rgba(255, 255, 255, .92),  /* Lichtkante */
    inset 0 -3px 7px rgba(31, 56, 100, .16);   /* Schattenkante = Wölbung */
  transition: transform .3s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s ease;
}

/* Nadel: zwei Dreiecke mit hartem Farbwechsel in der Mitte. Der Bruch wirkt
   wie eine gefaltete Kante und macht die Nadel körperlich statt flach.
   50° abzüglich der 18° Kippung des Rings ergeben die sichtbaren 32°. */
.logo-circle::before,
.logo-circle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 15px; margin-left: -5.5px;
  transform: rotate(50deg);
  transition: transform .45s cubic-bezier(.34, 1.4, .64, 1);
}
.logo-circle::before {           /* Norden – Gold */
  margin-top: -15px; transform-origin: 50% 100%;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(102deg, #F2DEA4 0%, #E3C574 46%, #A8862F 47%, #C9A44C 100%);
}
.logo-circle::after {            /* Süden – Stahlblau */
  transform-origin: 50% 0%;
  clip-path: polygon(50% 100%, 100% 0%, 0% 0%);
  background: linear-gradient(102deg, #E8EEF8 0%, #C4D2E9 46%, #7A91BD 47%, #A1B3D4 100%);
}

/* Beim Überfahren richtet sich der Ring auf und die Nadel schwingt weiter –
   mit leichtem Überschwingen, wie eine echte Kompassnadel. */
.logo:hover .logo-circle {
  transform: translateY(-1.5px) rotate(-8deg);
  box-shadow:
    0 7px 16px rgba(31, 56, 100, .32),
    inset 0 2px 3px rgba(255, 255, 255, .92),
    inset 0 -3px 7px rgba(31, 56, 100, .16);
}
.logo:hover .logo-circle::before,
.logo:hover .logo-circle::after { transform: rotate(64deg); }

@media (prefers-reduced-motion: reduce) {
  .logo-circle, .logo-circle::before, .logo-circle::after { transition: none; }
  .logo:hover .logo-circle { transform: rotate(-18deg); }
  .logo:hover .logo-circle::before, .logo:hover .logo-circle::after { transform: rotate(50deg); }
}

.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text .kmu { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: 0.8px; }
.logo-text .nav-label { font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 2.5px; }

/* ---------- Buttons ---------- */
.btn {
  padding: 13px 24px; border-radius: 8px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: none; text-decoration: none; display: inline-block;
  transition: background .15s, transform .15s, box-shadow .15s; text-align: center;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #2A4A7A; }
.btn-secondary { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--light); }
.btn-gold { background: linear-gradient(135deg, var(--gold) 0%, #B8932E 100%); color: white; }
.btn-block { width: 100%; }

/* ---------- Footer ---------- */
footer.site-footer { background: #1A2D52; color: rgba(255,255,255,0.7); padding: 50px 0 24px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .logo-circle {
  background: radial-gradient(circle at 36% 26%, #5F86C9 0%, #2D4E8B 52%, #16294A 100%);
  border-color: rgba(255, 255, 255, .9);
  border-right-color: transparent;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, .4),
    inset 0 2px 4px rgba(255, 255, 255, .28),
    inset 0 -3px 7px rgba(0, 0, 0, .32);
}
/* Gleiche Logik wie im Header, nur negativ: «KMU» im stärksten Ton,
   «NAVIGATION» im Akzent – dort Dunkelblau/Akzentblau, hier Weiss/Hellblau. */
.footer-brand .logo-text .kmu { color: #FFFFFF; }
.footer-brand .logo-text .nav-label { color: var(--accent-light); }
.footer-brand p { margin-top: 14px; line-height: 1.6; }
.footer-brand a { color: rgba(255,255,255,0.85); }
.footer-col h5 { color: white; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 12px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
