/* edv-dienstleistungen michaelis – Stylesheet
   Keine externen Schriften, kein Framework, mobile first. */

:root {
  /* Hausfarbe: HKS 43 N (Bildschirm-Näherung #0068B4) */
  --hks: #0068b4;
  --navy: #003a66;      /* HKS 43 N abgedunkelt – Überschriften, Footer */
  --navy-2: #00508c;
  --accent: #0068b4;    /* HKS 43 N */
  --accent-dark: #00508c;
  --accent-soft: #e5f0f8;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1b2733;
  --muted: #55626f;
  --line: #dde3ea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 58, 102, .06), 0 8px 24px rgba(0, 58, 102, .06);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-sub { font-size: .78rem; color: var(--muted); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.no-js .nav-toggle { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; text-decoration: none; color: var(--text); font-weight: 550;
  padding: 12px 4px; border-radius: 8px;
}
.site-nav a:hover { color: var(--accent-dark); }
.site-nav a[aria-current="page"] { color: var(--accent-dark); }

/* Mobile: ausklappbares Menü */
.js .site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0, 58, 102, .08);
  display: none;
}
.js .site-nav.is-open { display: block; }
.js .site-nav ul { padding: 8px 20px 16px; }
.js .site-nav li + li { border-top: 1px solid var(--line); }
.no-js .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .js .site-nav, .no-js .site-nav {
    position: static; display: block; background: none; border: 0; box-shadow: none;
  }
  .js .site-nav ul, .no-js .site-nav ul { display: flex; gap: 6px; padding: 0; }
  .js .site-nav li + li { border: 0; }
  .site-nav a { padding: 8px 12px; }
  .site-nav .nav-cta a {
    background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 999px; margin-left: 6px;
  }
  .site-nav .nav-cta a:hover { background: var(--accent-dark); color: #fff; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Hero (HKS 43 N mit den bisherigen Logo-Elementen) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--hks);
  padding: 64px 0 72px;
}
.hero-art { position: absolute; pointer-events: none; user-select: none; opacity: .22; }
.hero-art-left { left: 0; top: 4%; height: 92%; width: auto; max-width: none; }
.hero-art-right { right: 0; top: 50%; transform: translateY(-50%); height: min(70%, 460px); width: auto; max-width: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: #d6e8f6; margin-bottom: 14px;
}
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #eaf3fb; max-width: 54ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: #fff; color: var(--hks); }
.hero .btn-primary:hover { background: #e5f0f8; color: var(--navy); }
.hero-facts {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px;
}
.hero-facts li {
  background: rgba(0, 40, 80, .28); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px; padding: 14px 16px; color: #eef5fb; font-size: .95rem;
}
.hero-facts strong { display: block; color: #fff; font-size: 1.15rem; }
@media (max-width: 767px) { .hero-art-right { display: none; } .hero-art-left { opacity: .18; } }
@media (min-width: 768px) { .hero { padding: 96px 0 104px; } }
/* Breite Bildschirme: Logos wie auf der bisherigen Seite links und rechts in voller Deckkraft */
@media (min-width: 1100px) {
  .hero-art { opacity: 1; }
  .hero .container { max-width: none; padding-left: 280px; padding-right: 300px; }
  .hero-facts { max-width: 780px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 2px; }

/* ---------- Kontakt ---------- */
.contact-card { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; }
a.contact-card:hover { border-color: var(--accent); }
.contact-card .label { display: block; font-size: .85rem; color: var(--muted); }
.contact-card .value { display: block; font-weight: 650; color: var(--navy); font-size: 1.1rem; word-break: break-word; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 48px 0 72px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0; }
.legal .stand { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d6e3; padding: 40px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
