/* ============================================================
   Schlimme & Partner – International Average Adjusters
   Design: maritim-professionell (Navy / Sand / Weiß)
   Keine externen Fonts, kein Tracking, keine Cookies.
   Struktur angelehnt an css/style.css der BnB-Referenz.
   ============================================================ */

/* ---------- Design-Tokens ---------- */
:root {
  --navy-900: #0c2440;
  --navy-800: #103152;
  --navy-700: #164067;
  --navy-600: #1d4f7e;
  --navy-100: #dce7f2;
  --navy-50:  #eef4fa;

  --sand-100: #f6f1e7;
  --sand-200: #ede4d3;

  --bg: #ffffff;
  --bg-alt: var(--navy-50);
  --surface: #ffffff;
  --border: #d8e1ea;
  --border-hover: var(--navy-600);

  --text: #16283b;
  --text-muted: #4e6377;
  --text-faint: #7b8da0;

  --accent: var(--navy-800);
  --accent-strong: var(--navy-900);
  --accent-contrast: #ffffff;
  --link: #1d4f7e;
  --link-hover: var(--navy-900);

  --gold: #b98a2f;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 12px 32px rgba(12, 36, 64, 0.12);
  --shadow-soft: 0 4px 14px rgba(12, 36, 64, 0.08);
  --transition: 160ms ease;

  --container: 1120px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 2px;
}

/* ---------- Helpers ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(12,36,64,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy-900);
}
.brand:hover { text-decoration: none; }
.brand img { width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav ul a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--radius);
}
.site-nav ul a:hover {
  color: var(--navy-900);
  background: var(--navy-50);
  text-decoration: none;
}
.site-nav ul a[aria-current="page"] {
  color: var(--navy-900);
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--accent-contrast);
}

.btn-outline {
  border-color: var(--border);
  color: var(--navy-800);
  background: var(--bg);
}
.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--navy-50);
  color: var(--navy-900);
}

.btn-nav { padding: 0.5rem 0.95rem; font-size: 0.85rem; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.65rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
}

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  min-height: clamp(220px, 32vw, 340px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--navy-800);
  overflow: hidden;
}
.page-hero picture,
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,36,64,0.25) 0%, rgba(12,36,64,0.65) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 2.2rem;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.page-hero .hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.4rem;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}
.section-head p { color: var(--text-muted); margin-top: 0.6rem; }

/* Karten-Raster */
.card-grid {
  display: grid;
  gap: 1.25rem;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; color: var(--navy-800); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card .card-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--navy-50);
  color: var(--navy-700);
  margin-bottom: 0.9rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
}

/* Nummerierte Service-Liste */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.service-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-soft);
}
.service-list strong {
  color: var(--navy-900);
  font-family: var(--font-serif);
  font-size: 1.06rem;
}

/* Personen-Listen */
.people-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
.people-group h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.people-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.people-group li {
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.people-group li small {
  display: block;
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}
.contact-block h3 { margin-bottom: 0.6rem; }
.contact-block p { margin-bottom: 0.6rem; color: var(--text-muted); }
.contact-block a { font-weight: 500; }
.contact-block strong { color: var(--text); }

.facts {
  background: var(--navy-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
}
.facts h3 { margin-bottom: 0.8rem; }
.facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.93rem;
}
.facts dt { color: var(--text-faint); }
.facts dd {
  margin: 0;
  color: var(--text);
  text-align: right;
}

/* ---------- Hero (Home) ---------- */
.home-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy-900);
}
.home-hero picture,
.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12,36,64,0.9) 0%, rgba(12,36,64,0.72) 45%, rgba(12,36,64,0.35) 100%);
}
.home-hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 5rem 4rem;
  max-width: 640px;
}
.home-hero .hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-200);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.2rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}
.home-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}
.home-hero .hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.8rem;
  text-wrap: pretty;
}
.home-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.home-hero .btn-primary {
  background: #fff;
  color: var(--navy-900);
}
.home-hero .btn-primary:hover {
  background: var(--navy-50);
  color: var(--navy-900);
}
.home-hero .btn-outline {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.home-hero .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* Kennzahlen-Leiste */
.stats-band {
  background: var(--navy-900);
  color: #fff;
}
.stats-band .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 1.8rem;
  text-align: center;
}
.stats-band .stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #fff;
}
.stats-band .stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 0.15rem;
}

/* ---------- Feature-Liste (Home "Why us") ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.feature-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.feature-list .check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-700);
  font-weight: 700;
  font-size: 0.9rem;
}
.feature-list strong { color: var(--navy-900); display: block; }
.feature-list p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.78);
  padding-block: 2.6rem 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.8rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }

.footer-assoc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.footer-assoc a {
  background: #fff;
  border-radius: 6px;
  padding: 4px 6px;
  display: inline-grid;
  place-items: center;
  transition: transform var(--transition);
}
.footer-assoc a:hover { transform: translateY(-2px); }
.footer-assoc img { height: 40px; width: auto; }

/* ---------- Verbandslogos (Memberships) ----------
   Grid mit auto-fit: immer komplette, symmetrische Reihen
   (Desktop 6 nebeneinander, Tablet 3+3, Handy 2+2+2).
   Flex-wrap füllt Zeilen dagegen kippen-freundlich (4+2/5+1). */
.assoc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem 1.4rem;
  justify-content: center;
}
.assoc-tile,
.assoc-grid > a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  height: 72px;
  transition: transform var(--transition);
}
.assoc-grid > a:hover { transform: translateY(-2px); }
.assoc-grid img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.75); }

/* ---------- Rechtliche Seiten ---------- */
.legal { max-width: 820px; }
.legal h2 { margin-top: 2.2rem; margin-bottom: 0.7rem; }
.legal h3 { margin-top: 1.6rem; margin-bottom: 0.4rem; color: var(--navy-800); }
.legal p, .legal li { color: var(--text-muted); font-size: 0.96rem; }
.legal ul { padding-left: 1.2rem; margin-bottom: 0.8rem; }
.legal strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid.cols-3, .people-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .assoc-grid { grid-template-columns: repeat(3, 1fr); max-width: 620px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem 1.25rem 1.4rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .site-nav ul a {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius);
  }
  .site-nav .btn-nav {
    justify-content: center;
    margin-top: 0.4rem;
  }

  .card-grid.cols-2, .card-grid.cols-3, .people-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .home-hero { min-height: 480px; }
  .footer-assoc img { height: 34px; }
  .assoc-grid { grid-template-columns: repeat(2, 1fr); max-width: 400px; margin-inline: auto; }
  .assoc-tile, .assoc-grid > a { height: 60px; padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .skip-link, .hero-actions { display: none !important; }
  .page-hero { min-height: 0; }
  .page-hero img { display: none; }
  body { color: #000; }
}