/* =========================================================
   Schriften (selbst gehostet – Inter)
   ========================================================= */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2"),
       url("../fonts/inter-v20-latin-regular.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-v20-latin-500.woff2") format("woff2"),
       url("../fonts/inter-v20-latin-500.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-v20-latin-600.woff2") format("woff2"),
       url("../fonts/inter-v20-latin-600.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-v20-latin-700.woff2") format("woff2"),
       url("../fonts/inter-v20-latin-700.ttf") format("truetype");
}

/* =========================================================
   Basis / Design-Tokens
   ========================================================= */
:root {
  --blue: #0061ae;
  --blue-dark: #004e8b;
  --ink: #14181f;
  --body: #3a424e;
  --muted: #6b7480;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --radius: 14px;
  --maxw: 1280px;
  --shadow: 0 10px 30px rgba(16, 30, 54, 0.07);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(30px, 4.5vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }

p { margin: 0 0 1rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

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

/* =========================================================
   Buttons (komponentenübergreifend)
   ========================================================= */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; transform: translateY(-1px); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}

.brand img { height: 75px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--body);
  font-weight: 500;
  font-size: 16px;
}
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav a.btn,
.nav a.btn:hover { color: #fff; }

.nav-toggle { display: none; }

/* Header – mobil (< lg) */
@media (max-width: 992px) {
  .brand img { height: 52px; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    margin: 0 auto;
    background: var(--ink);
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: var(--bg-soft);
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: stretch;
}
.hero-grid.has-media { grid-template-columns: 1.05fr 0.95fr; }

.hero-media { height: 100%; min-height: 340px; }

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero .eyebrow {
  display: inline-block;
  background: rgba(10, 91, 214, 0.09);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 { max-width: 16ch; }

.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 12px;
}

.hero p { max-width: 68ch; }

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

/* Hero – gestapelt (< lg) */
@media (max-width: 992px) {
  .hero-grid.has-media { grid-template-columns: 1fr; }
  .hero-media { height: auto; min-height: 0; }
  .hero-media img { height: auto; max-height: 420px; }
}

/* =========================================================
   Sections (allgemein)
   ========================================================= */
section { padding: clamp(54px, 8vw, 92px) 0; }
section.alt { background: var(--bg-soft); }

.section-head { max-width: 64ch; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* =========================================================
   Karten (Leistungen)
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

section.alt .card { background: #fff; }

.card h3 { margin-bottom: 10px; }

.card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: var(--body);
  border-top: 1px solid var(--line);
}

.card li:first-child { border-top: none; }

.card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

/* =========================================================
   Partner
   ========================================================= */
.partner-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.partner-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
}

.partner-links a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* =========================================================
   Kontakt / Formular
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-info p { color: var(--muted); }
.contact-info .address {
  margin-top: 22px;
  color: var(--body);
  font-style: normal;
}
.contact-info .address strong { color: var(--ink); }

form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 18px; }

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

label .req { color: var(--blue); }

input, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder, textarea::placeholder {
  color: var(--body);
  opacity: 0.7;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 91, 214, 0.13);
}

textarea { resize: vertical; min-height: 130px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

.alert {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-weight: 500;
  display: none;
}
.alert.show { display: block; }
.alert.success { background: #e9f8ef; color: #166a3a; border: 1px solid #b9e6cb; }
.alert.error { background: #fdecec; color: #9a2330; border: 1px solid #f3c4c9; }

/* Kontakt – einspaltig (< lg) */
@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Formularzeilen – einspaltig (< md) */
@media (max-width: 768px) {
  form .row { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 30px;
  background-color: #013e6f;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer img { height: 75px; width: auto; margin-bottom: 16px; }
.site-footer .f-brand { max-width: 320px; }
.site-footer .f-brand p { color: rgba(255, 255, 255, 0.6); font-size: 15px; }

.footer-col h4 {
  color: rgba(255, 255, 255, 1);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}

.footer-col a, .footer-col address {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
  margin-bottom: 8px;
  font-size: 15px;
}

.footer-bottom {
  padding-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   Rechtsseiten (Impressum / Datenschutz)
   ========================================================= */
.legal { padding: clamp(48px, 8vw, 90px) 0; }
.legal .container { max-width: 760px; }
.legal h2 { margin-top: 2em; font-size: 21px; }
.legal h1 + p { color: var(--muted); }
.legal .placeholder {
  background: #fff6e5;
  border: 1px dashed #e3b04b;
  color: #8a5a00;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 15px;
}
