/* ==========================================================================
   Ingpuls Gruppe – Ansprechpartner
   Designsprache angelehnt an ingpuls-dynamics.com
   (viel Weißraum, harte Kanten, Lime-Akzent #A1C719)
   ========================================================================== */

/* --- Schriften (lokal gehostet, keine externen Aufrufe) ------------------ */
@font-face {
  font-family: 'Bai Jamjuree';
  src: url('../fonts/bai-jamjuree-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bai Jamjuree';
  src: url('../fonts/bai-jamjuree-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bai Jamjuree';
  src: url('../fonts/bai-jamjuree-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- Grundwerte --------------------------------------------------------- */
:root {
  --ink: #101114;
  --ink-soft: #43474d;
  --muted: #7c8288;
  --line: #e4e6e9;
  --line-strong: #d3d7db;
  --accent: #a1c719;
  --accent-dark: #8bae0e;
  --accent-soft: #f2f7dd;
  --bg: #ffffff;
  --bg-soft: #f6f7f5;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(16, 17, 20, 0.04);
  --shadow-md: 0 10px 30px rgba(16, 17, 20, 0.08);
  --font-head: 'Bai Jamjuree', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
  --header-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-small { padding: 9px 16px; font-size: 12px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: var(--ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn .icon-external { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* --- Kopfzeile ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 12px rgba(16, 17, 20, 0.06); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -2px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-text span {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.lang-option {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  padding: 7px 11px;
  color: var(--muted);
  transition: background-color .18s ease, color .18s ease;
}
.lang-option + .lang-option { border-left: 1px solid var(--line-strong); }
.lang-option:hover { color: var(--ink); background: var(--bg-soft); }
.lang-option.is-active { background: var(--ink); color: #fff; }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 84px 0 64px; background: var(--bg); }
.hero .wrap { max-width: 1000px; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(34px, 6vw, 68px);
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.hero-text {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-stats > div {
  min-width: 170px;
  margin-right: 48px;
}
.hero-stats dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.notice {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 12px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.notice strong { color: var(--ink); }

/* --- Filterleiste ------------------------------------------------------- */
.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count {
  font-size: 11px;
  background: rgba(16, 17, 20, 0.08);
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}
.chip.is-active .chip-count { background: var(--accent); color: var(--ink); }

.search-box {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
  flex: 1 1 280px;
  max-width: 380px;
}
.search-box svg {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 14px 11px 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* --- Unternehmensblöcke ------------------------------------------------- */
.main-content { padding: 56px 32px 96px; }

.company-block { padding: 0 0 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.company-block:last-of-type { border-bottom: 0; margin-bottom: 0; }

.company-head {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.company-logo {
  flex: 0 0 auto;
  width: 210px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.company-logo img { height: 54px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.company-logo-fallback {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 12px 18px;
  border-radius: var(--radius);
}

.company-meta { flex: 1 1 auto; min-width: 240px; }
.company-meta h2 { font-size: 26px; margin: 0 0 8px; }
.company-meta p { color: var(--ink-soft); font-size: 15.5px; margin: 0; max-width: 620px; }

.company-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: 0 0 auto; }
.badge {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* --- Kontaktkarten ------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 24px;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-card::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.contact-card:hover::after { transform: scaleX(1); }
.contact-card[hidden] { display: none; }

.contact-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.contact-initials {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.contact-name { font-size: 19px; margin: 0 0 6px; }

.contact-role {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  min-height: 2.6em;
}

.contact-company {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 0 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.contact-company img { height: 24px; width: auto; max-width: 170px; object-fit: contain; object-position: left center; opacity: 0.78; }
.contact-company span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.contact-actions { list-style: none; margin: 0; padding: 0; }
.contact-actions li + li { border-top: 1px solid var(--line); }
.contact-actions a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  transition: color .16s ease, padding-left .16s ease;
}
.contact-actions a:hover { color: var(--accent-dark); padding-left: 4px; }

.action-icon { flex: 0 0 auto; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; transition: border-color .16s ease, background-color .16s ease; }
.contact-actions a:hover .action-icon { border-color: var(--accent); background: var(--accent-soft); }
.action-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.action-body { display: flex; flex-direction: column; min-width: 0; }
.action-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.action-value { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.contact-actions a:hover .action-value { color: var(--accent-dark); }

/* --- Leere Zustände ----------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
}
.empty-state h2 { font-size: 22px; }

.no-results {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

/* --- Fußzeile ----------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-family: var(--font-head); font-size: 15px; display: block; line-height: 1.2; }
.footer-brand span { font-size: 13px; color: var(--muted); }
.footer-brand .brand-mark { font-size: 24px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.footer-nav a { font-size: 13.5px; color: var(--ink-soft); border-bottom: 1px solid transparent; }
.footer-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a:hover { color: var(--ink); }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .main-content { padding: 40px 20px 72px; }
  .hero { padding: 56px 0 44px; }
  .hero-stats > div { margin-right: 32px; }

  .company-head { flex-direction: column; gap: 18px; }
  .company-logo { width: auto; height: auto; }
  .company-logo img { max-height: 46px; }
  .company-side { flex-direction: row; align-items: center; flex-wrap: wrap; }

  .search-box { max-width: none; min-width: 0; width: 100%; margin-left: 0; }
  .toolbar-inner { gap: 14px; }
}

@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 14px; }
  .brand-text span { display: none; }
  .footer-nav { margin-left: 0; }
}

/* --- Druck -------------------------------------------------------------- */
@media print {
  .site-header, .toolbar, .site-footer, .notice { display: none !important; }
  .contact-card { break-inside: avoid; box-shadow: none; }
  .company-block { break-inside: avoid; }
}

/* --- Sprachumschalter in der Filterleiste ------------------------------- */
.toolbar-lang { flex: 0 0 auto; }

/* =========================================================================
   Fußzeile und Rechtstexte
   ====================================================================== */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px 0 34px;
}
.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.legal-link {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.legal-link:hover { border-bottom-color: var(--accent); }

/* Fenster für Impressum und Datenschutz */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.legal-modal[hidden] { display: none; }
.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 17, 20, 0.55);
}
.legal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  max-height: min(86vh, 900px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(16, 17, 20, 0.3);
  overflow: hidden;
  animation: legal-in 0.18s ease-out;
}
@keyframes legal-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}
.legal-head h2 {
  margin: 0;
  font-size: 20px;
}
.legal-close {
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.legal-close:hover { color: var(--ink); }
.legal-body {
  padding: 22px 26px 26px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.legal-body h1 { margin: 0 0 14px; font-size: 19px; color: var(--ink); }
.legal-body h2 { margin: 24px 0 8px; font-size: 15.5px; color: var(--ink); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 10px; }
.legal-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal-body li { margin-bottom: 4px; }
.legal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
}
.legal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
body.legal-open { overflow: hidden; }

@media (max-width: 640px) {
  .legal-modal { padding: 12px; }
  .legal-dialog { max-height: 92vh; }
  .legal-body { padding: 18px; }
  .legal-head { padding: 16px 18px; }
}

/* =========================================================================
   Mobiloptimierung
   ====================================================================== */
@media (max-width: 720px) {
  :root { --header-h: 56px; }

  .wrap { padding: 0 18px; }

  /* --- Kopfzeile ------------------------------------------------------- */
  /* Die obere Navigation ist auf dem Telefon leer – die Filterleiste
     übernimmt ihren Platz und bleibt oben stehen. */
  .site-header { display: none; }
  .toolbar { top: 0; }

  /* --- Filterleiste: Chips als wischbare Reihe ------------------------ */
  .toolbar { border-top: 0; }
  .toolbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "tabs   lang"
      "search search";
    gap: 10px 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .filter-tabs {
    grid-area: tabs;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin: 0 -18px;
    padding: 2px 18px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .chip {
    flex: 0 0 auto;
    padding: 8px 13px;
    font-size: 12px;
    gap: 6px;
    scroll-snap-align: start;
  }
  .chip-count { font-size: 10.5px; padding: 1px 6px; min-width: 18px; }
  .toolbar-lang { grid-area: lang; }
  .search-box { grid-area: search; flex: none; min-width: 0; max-width: none; }
  .search-box input { font-size: 16px; padding: 12px 14px 12px 42px; }

  /* --- Inhalt --------------------------------------------------------- */
  .main-content { padding: 28px 18px 52px; }
  .company-block {
    padding-bottom: 32px;
    margin-bottom: 32px;
    scroll-margin-top: 126px;
  }
  .company-head {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }
  .company-logo { width: auto; height: auto; }
  .company-logo img { height: 34px; }
  .company-logo-fallback { font-size: 15px; padding: 7px 11px; }
  .company-side { flex-direction: row; align-items: center; gap: 8px; margin-left: 0; order: 2; }
  .badge { font-size: 10px; letter-spacing: 0.08em; padding: 5px 11px; }
  .company-meta { flex: 1 1 auto; min-width: 0; order: 3; }
  .company-meta h2 { font-size: 21px; margin: 0 0 6px; }
  .company-meta p { font-size: 14.5px; line-height: 1.5; }

  /* --- Kontaktkarten: Foto links, Angaben rechts ---------------------- */
  .contact-grid { gap: 14px; }
  .contact-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "photo   name"
      "photo   role"
      "company company"
      "actions actions";
    column-gap: 14px;
    padding: 18px 18px 10px;
  }
  .contact-card:hover { transform: none; }
  .contact-photo { grid-area: photo; width: 78px; height: 78px; margin: 2px 0 0; }
  .contact-initials { font-size: 24px; }
  .contact-name { grid-area: name; align-self: end; font-size: 17.5px; margin: 0 0 3px; }
  .contact-role { grid-area: role; align-self: start; font-size: 13px; margin: 0 0 12px; min-height: 0; }
  .contact-company { grid-area: company; height: auto; padding: 10px 0 12px; margin: 0; }
  .contact-company img { height: 20px; }
  .contact-actions { grid-area: actions; }
  .contact-actions a { padding: 12px 0; }
  .action-icon { width: 32px; height: 32px; }
  .action-value { font-size: 14.5px; }
  .action-label { font-size: 10px; }

  /* --- Fußzeile ------------------------------------------------------- */
  .site-footer { margin-top: 36px; }
  .footer-inner { padding: 22px 0 28px; gap: 14px; }
  .footer-copy { font-size: 12.5px; }
  .footer-legal { gap: 20px; }
  .legal-link { font-size: 12px; padding: 6px 0; }

  /* --- Rechtstexte als Blatt von unten -------------------------------- */
  .legal-modal { padding: 0; align-items: flex-end; }
  .legal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
    animation: legal-up 0.22s ease-out;
  }
  .legal-head { padding: 16px 18px; }
  .legal-head h2 { font-size: 18px; }
  .legal-body { padding: 18px 18px 22px; }
  .legal-foot { padding: 12px 18px; }
}

@keyframes legal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 380px) {
  .contact-card { grid-template-columns: 66px minmax(0, 1fr); }
  .contact-photo { width: 66px; height: 66px; }
  .contact-name { font-size: 16.5px; }
  .company-meta h2 { font-size: 19px; }
}

/* Ohne die obere Navigation (unter 1080 px) bleibt die Kopfzeile leer –
   die Filterleiste übernimmt ihren Platz und bleibt oben stehen. */
@media (max-width: 1080px) {
  .site-header { display: none; }
  .toolbar { top: 0; }
  .company-block { scroll-margin-top: 132px; }
}
