/* ==========================================================================
   Höhne Elektro GmbH – Stylesheet
   Mobile first: base styles target small screens, media queries add
   layout for larger screens (640px, 1024px).
   ========================================================================== */

/* ---------- 1. Self-hosted web fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Design tokens ---------- */
:root {
  /* Fonts */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Brand colours – taken from the logo (#3B5E9E blue, #ED1C24 red) */
  --color-blue: #3b5e9e;
  --color-blue-700: #2e4a80;
  --color-blue-900: #14233f;
  --color-blue-100: #dde5f3;
  --color-blue-50: #eef2f9;
  --color-red: #ed1c24;
  --color-red-600: #d3141b; /* white text on this passes WCAG AA */
  --color-red-700: #b51118;

  /* Neutrals */
  --color-text: #1e2533;
  --color-text-muted: #5b6474;
  --color-text-on-dark: #c3ccdd;
  --color-bg: #ffffff;
  --color-surface: #f4f6fa;
  --color-border: #e1e6ef;
  --color-white: #ffffff;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(20 35 63 / 0.06), 0 1px 3px rgb(20 35 63 / 0.08);
  --shadow-md: 0 4px 12px rgb(20 35 63 / 0.07), 0 14px 32px rgb(20 35 63 / 0.08);

  /* Layout */
  --container: 1200px;
  --gutter: 1rem;
  --header-h: 68px;
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);

  /* Brand stripe – echoes the diagonal lines in the logo's "N" */
  --stripes: repeating-linear-gradient(115deg, var(--color-red) 0 2px, transparent 2px 5px);

  --transition: 180ms ease;
}

@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
}

@media (min-width: 1024px) {
  :root { --gutter: 2rem; --header-h: 84px; }
}

/* ---------- 3. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-blue-900);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); font-weight: 700; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-blue); text-underline-offset: 0.18em; }
a:hover { color: var(--color-blue-700); }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

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

::selection { background: var(--color-blue); color: var(--color-white); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--color-blue-900);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--color-white); }

/* Icons are separate SVG files in assets/icons/ (Lucide, see LICENSE-lucide.txt),
   used as <img class="icon" src="assets/icons/phone-white.svg" alt="">.
   The colour is part of the file name – one file per colour that is needed. */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* ---------- 4. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--surface { background: var(--color-surface); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lead {
  font-size: clamp(1.075rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 12px;
  background: var(--stripes);
  flex-shrink: 0;
}

.grid { display: grid; gap: 1.25rem; }

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

@media (min-width: 1024px) {
  .grid { gap: 1.75rem; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--color-red-600); color: var(--color-white); }
.btn--primary:hover { background: var(--color-red-700); color: var(--color-white); }

.btn--blue { background: var(--color-blue); color: var(--color-white); }
.btn--blue:hover { background: var(--color-blue-700); color: var(--color-white); }

.btn--outline { border-color: var(--color-blue); color: var(--color-blue); background: transparent; }
/* Hover keeps the text colour so the fixed-colour icon stays visible */
.btn--outline:hover { background: var(--color-blue-50); color: var(--color-blue); }

.btn--light { background: var(--color-white); color: var(--color-blue-900); }
.btn--light:hover { background: var(--color-blue-50); color: var(--color-blue-900); }

.btn--ghost-light { border-color: rgb(255 255 255 / 0.6); color: var(--color-white); background: transparent; }
.btn--ghost-light:hover { background: rgb(255 255 255 / 0.15); border-color: var(--color-white); color: var(--color-white); }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  color: var(--color-blue);
}
.text-link .icon { transition: transform var(--transition); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- 6. Top bar (desktop only) ---------- */
.topbar { display: none; }

@media (min-width: 1024px) {
  .topbar {
    display: block;
    background: var(--color-blue-900);
    color: var(--color-text-on-dark);
    font-size: 0.875rem;
  }
  .topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 40px;
  }
  .topbar__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .topbar__item { display: inline-flex; align-items: center; gap: 0.45rem; }
  .topbar a { color: var(--color-white); text-decoration: none; }
  .topbar a:hover { text-decoration: underline; color: var(--color-white); }
  .topbar .icon { width: 1rem; height: 1rem; }
  .topbar__emergency { font-weight: 600; }
}

/* ---------- 7. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

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

.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 140px; height: auto; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--color-blue-50);
  color: var(--color-blue-900);
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover { background: var(--color-blue-100); color: var(--color-blue-900); }
.icon-btn--red { background: var(--color-red-600); color: var(--color-white); }
.icon-btn--red:hover { background: var(--color-red-700); color: var(--color-white); }

.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-open { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

/* Mobile navigation panel */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}

.js .main-nav { display: none; }
.js .site-header.is-open .main-nav { display: block; }
.no-js .main-nav { position: static; box-shadow: none; border: 0; width: 100%; }
.no-js .site-header__inner { flex-wrap: wrap; }
.no-js .nav-toggle { display: none; }

.main-nav__list {
  margin: 0;
  padding: 0.5rem var(--gutter);
  list-style: none;
}

.main-nav__link {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--color-blue-900);
  text-decoration: none;
}
.main-nav__item:last-child .main-nav__link { border-bottom: 0; }
.main-nav__link:hover { color: var(--color-blue); }
.main-nav__link[aria-current="page"] { color: var(--color-red-600); }

.main-nav__contact {
  display: grid;
  gap: 0.6rem;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--color-surface);
}
.main-nav__contact .btn { width: 100%; }

@media (min-width: 1024px) {
  .brand img { width: 180px; }
  .header-actions { display: none; }

  .js .main-nav,
  .main-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  .main-nav__list { display: flex; align-items: center; gap: 0.15rem; padding: 0; }
  .main-nav__link {
    position: relative;
    padding: 0.5rem 0.7rem;
    border: 0;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
  .main-nav__link::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--color-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
  }
  .main-nav__link:hover::after,
  .main-nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav__link[aria-current="page"] { color: var(--color-blue-900); }
  .main-nav__contact { display: none; }
}

@media (min-width: 1200px) {
  .main-nav__link { padding-inline: 0.9rem; font-size: 1rem; }
  .main-nav__link::after { left: 0.9rem; right: 0.9rem; }
}

/* ---------- 8. Hero (start page) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 760px);
  min-height: min(88svh, 760px);
  padding-block: 7rem 3rem;
  color: var(--color-white);
  overflow: hidden;
}

.hero__img,
.page-hero__img,
.cta-band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(20 35 63 / 0.15) 0%, rgb(20 35 63 / 0.55) 45%, rgb(20 35 63 / 0.92) 100%);
}

.hero__content { position: relative; max-width: 760px; }
.hero h1 { color: var(--color-white); margin-bottom: 1rem; }
.hero .eyebrow { color: var(--color-white); }
.hero__lead {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 500;
  color: rgb(255 255 255 / 0.92);
  margin-bottom: 2rem;
}

.hero__facts {
  display: grid;
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.25);
  list-style: none;
  font-size: 0.95rem;
}
.hero__facts li { display: flex; align-items: center; gap: 0.6rem; color: rgb(255 255 255 / 0.9); }
.hero__facts a { color: var(--color-white); font-weight: 600; text-decoration: none; }
.hero__facts a:hover { text-decoration: underline; color: var(--color-white); }

@media (min-width: 640px) {
  .hero { align-items: center; padding-block: 8rem 5rem; }
  .hero::before {
    background: linear-gradient(90deg, rgb(20 35 63 / 0.92) 0%, rgb(20 35 63 / 0.7) 45%, rgb(20 35 63 / 0.2) 100%);
  }
  .hero__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
}

/* ---------- 9. Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  padding-block: 4rem 2.25rem;
  color: var(--color-white);
  overflow: hidden;
  background: var(--color-blue-900);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(20 35 63 / 0.94) 0%, rgb(20 35 63 / 0.75) 50%, rgb(20 35 63 / 0.35) 100%);
}
.page-hero h1 { color: var(--color-white); margin: 0; }
.page-hero--plain { min-height: 0; padding-block: 3rem 2.25rem; }
.page-hero--plain::before { background: var(--stripes); opacity: 0.08; }

@media (min-width: 1024px) {
  .page-hero { min-height: 360px; padding-block: 5rem 3.25rem; }
  .page-hero--plain { min-height: 0; padding-block: 4rem 3rem; }
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.8);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.6; }
.breadcrumb a { color: var(--color-white); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--color-white); }

/* ---------- 10. Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card__body { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; padding: 1.5rem; }
.card__body > .text-link { margin-top: auto; padding-top: 1rem; }
.card__body p { color: var(--color-text-muted); }

/* Feature cards (Kompetent, Innovativ, Servicestark) */
.feature-card { padding: 1.75rem; transition: transform var(--transition), box-shadow var(--transition); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: var(--color-blue-50);
  color: var(--color-blue);
}
.feature-card__icon .icon { width: 28px; height: 28px; }
.feature-card p { color: var(--color-text-muted); }
.feature-card .text-link { margin-top: auto; padding-top: 1rem; }

/* Service cards (Leistungen) */
.service-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--color-surface);
  overflow: hidden;
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card ul { margin: 0.25rem 0 0; color: var(--color-text-muted); }
.service-card--highlight { border-color: var(--color-red); box-shadow: 0 0 0 1px var(--color-red), var(--shadow-sm); }
.service-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-red-600);
  text-decoration: none;
}
.service-card__phone:hover { color: var(--color-red-700); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--color-blue-50);
  color: var(--color-blue-700);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}
.badge--red { background: #fde8e9; color: var(--color-red-700); }
.service-card__media .badge { position: absolute; top: 0.85rem; left: 0.85rem; background: var(--color-red-600); color: var(--color-white); }

/* ---------- 11. Split layout (image + text) ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 1024px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .split--reverse .split__media { order: 2; }
}

.quote {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-blue-900);
}
.quote::before {
  content: "\201E";
  display: block;
  height: 0.6em;
  margin-bottom: 0.5rem;
  font-size: 4.5rem;
  line-height: 0.2;
  color: var(--color-red);
}
.quote p { margin-bottom: 1rem; }
.quote footer {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}
.quote cite { font-style: normal; font-weight: 700; color: var(--color-blue-900); }

/* ---------- 12. Stats ---------- */
.stats {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
}
.stat {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
}
.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 1.5rem + 1.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-blue);
  white-space: nowrap;
}
.stat__label { display: block; margin-top: 0.35rem; color: var(--color-text-muted); }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.tag-list li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-blue-100);
  color: var(--color-blue-900);
  font-weight: 600;
  font-size: 0.925rem;
}

/* ---------- 13. Prose ---------- */
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.1rem; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.3rem; }
.prose a { overflow-wrap: anywhere; }

.info-list { margin: 0 0 1.5rem; display: grid; gap: 0.25rem; }
.info-list dt { font-weight: 700; color: var(--color-blue-900); margin-top: 0.75rem; }
.info-list dt:first-child { margin-top: 0; }
.info-list dd { margin: 0; }

/* ---------- 14. CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-y);
  color: var(--color-white);
  background: var(--color-blue-900);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(20 35 63 / 0.95) 0%, rgb(20 35 63 / 0.8) 60%, rgb(20 35 63 / 0.55) 100%);
}
.cta-band--plain::before {
  background:
    radial-gradient(circle at 100% 0%, rgb(59 94 158 / 0.55), transparent 55%),
    var(--color-blue-900);
}
.cta-band h2 { color: var(--color-white); max-width: 22ch; }
.cta-band p { color: var(--color-text-on-dark); max-width: 60ch; font-size: 1.075rem; }
.cta-band .btn-group { margin-top: 2rem; }
.cta-band .eyebrow { color: #ff8a8e; }

/* ---------- 15. Partner badges & logo grid ---------- */
.partner-badges { display: grid; gap: 1.25rem; }
.partner-badge {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}
.partner-badge__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.partner-badge__logo--dark { background: #2b2b2b; padding: 0.75rem; }
.partner-badge__logo img { width: 100%; height: 100%; object-fit: contain; }
.partner-badge h3 { margin-bottom: 0.25rem; }
.partner-badge p { color: var(--color-text-muted); font-size: 0.95rem; }

@media (min-width: 1024px) {
  .partner-badges { grid-template-columns: 1fr 1fr; }
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  padding: 1.25rem 1rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.logo-grid a:hover { border-color: var(--color-blue-100); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.logo-grid img { width: 100%; max-width: 180px; aspect-ratio: 2 / 1; object-fit: contain; }
.logo-grid .icon { width: 0.9rem; height: 0.9rem; }
.logo-grid__name { display: inline-flex; align-items: center; gap: 0.3rem; }

@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 16. News (Aktuelles) ---------- */
.news-feature {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.news-feature__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.news-feature__subtitle { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-blue); margin-bottom: 1rem; }
.news-feature__source { font-size: 0.875rem; color: var(--color-text-muted); }

.news-list { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }

.news-item {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.news-item h3 { margin-bottom: 0.75rem; }
.news-item__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.85rem; }
.news-item__text { max-width: 75ch; }
.news-item__text p { color: var(--color-text); }
.news-item__link { margin-top: 0.25rem; }

@media (min-width: 1024px) {
  .news-item { padding: 2rem 2.25rem; }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.gallery a:hover img { transform: scale(1.04); }
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgb(20 35 63 / 0.08);
  border-radius: inherit;
}

@media (min-width: 640px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(6, 1fr); } }

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0a1221;
  color: var(--color-white);
}
.lightbox::backdrop { background: #0a1221; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 4rem 1rem 5rem;
  width: 100%;
  height: 100%;
}
.lightbox__img {
  flex: 1;
  min-height: 0;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__caption { font-size: 0.9rem; color: var(--color-text-on-dark); text-align: center; }
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: var(--color-white);
  cursor: pointer;
}
.lightbox__btn:hover { background: rgb(255 255 255 / 0.25); }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { bottom: 1rem; left: calc(50% - 56px); }
.lightbox__next { bottom: 1rem; right: calc(50% - 56px); }

@media (min-width: 1024px) {
  .lightbox__figure { padding: 4rem 6rem 3rem; }
  .lightbox__prev { bottom: auto; top: 50%; left: 1.5rem; transform: translateY(-50%); }
  .lightbox__next { bottom: auto; top: 50%; right: 1.5rem; transform: translateY(-50%); }
}

/* ---------- 17. Jobs ---------- */
.job-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.job-card__head { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.job-card h3 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem); margin-bottom: 1rem; }
.job-card h4 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-blue);
}

.check-list { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.check-list li { position: relative; padding-left: 1.85rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--color-blue-50) url("../assets/icons/check-blue.svg") center / 0.7rem no-repeat;
}

.apply-box {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
}
.apply-box address { font-style: normal; }
.apply-box p { margin: 0; }

@media (min-width: 640px) {
  .apply-box { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- 18. Contact ---------- */
.contact-layout { display: grid; gap: 2rem; }

@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: start; }
}

.contact-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.contact-card + .contact-card { margin-top: 1.25rem; }
.contact-card h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; }
.contact-card address { font-style: normal; margin-bottom: 1rem; }

.phone-list { margin: 0; padding: 0; list-style: none; }
.phone-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}
.phone-list li:last-child { border-bottom: 0; }
.phone-list a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.phone-list a:hover { text-decoration: underline; }
.phone-list__emergency span:first-child { font-weight: 700; color: var(--color-red-600); }
.phone-list__emergency a { color: var(--color-red-600); }

.hours { width: 100%; border-collapse: collapse; }
.hours th,
.hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--color-border); text-align: left; font-weight: 400; }
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }
.hours td { text-align: right; white-space: nowrap; }
.hours th { font-weight: 600; color: var(--color-blue-900); }
.hours tr.is-today th,
.hours tr.is-today td { color: var(--color-red-600); font-weight: 700; }

/* Form */
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: 1.1rem; }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--color-blue-900); }
.field .req { color: var(--color-red-600); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font: inherit;
  color: var(--color-text);
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--color-blue-100); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgb(59 94 158 / 0.15);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--color-red-600); background: #fff7f7; }
.field__error { display: none; font-size: 0.85rem; color: var(--color-red-700); }
.field.has-error .field__error { display: block; }

.checkbox { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.925rem; color: var(--color-text-muted); }
.checkbox input { width: 20px; height: 20px; margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--color-blue); }

.form-note { font-size: 0.85rem; color: var(--color-text-muted); }
.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-blue-50);
  color: var(--color-blue-900);
  font-weight: 600;
}
.form-status.is-visible { display: block; }

/* ---------- 19. Footer ---------- */
.site-footer {
  background: var(--color-blue-900);
  color: var(--color-text-on-dark);
  font-size: 0.95rem;
}
.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--color-blue) 0 70%, var(--color-red) 70% 100%);
}
.site-footer a { color: var(--color-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--color-white); }

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}
.footer-title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-white);
}
.footer-brand { font-size: 1.25rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }

.footer-contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.footer-contact li { display: flex; justify-content: space-between; gap: 1rem; max-width: 320px; }
.footer-contact a { white-space: nowrap; }
.footer-contact__emergency span:first-child { color: #ff8a8e; font-weight: 700; }

.site-footer .hours th,
.site-footer .hours td { border-color: rgb(255 255 255 / 0.1); color: var(--color-text-on-dark); padding-block: 0.35rem; }
.site-footer .hours th { color: var(--color-white); font-weight: 500; }
.site-footer .hours tr.is-today th,
.site-footer .hours tr.is-today td { color: #ff8a8e; font-weight: 700; }
.site-footer .hours { max-width: 320px; }

.footer-badges { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer-badges a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.footer-badges img { height: 84px; width: auto; }
.footer-badges a:first-child img { padding: 0.25rem; }
.footer-badges a:last-child { background: var(--color-white); }

.social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
}
.social a:hover { background: var(--color-red-600); text-decoration: none; }
.social .icon { width: 1.15rem; height: 1.15rem; }

.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.1); }
.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 1.25rem;
  font-size: 0.875rem;
}
.footer-bottom__inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; padding-block: 4.5rem 3rem; }
}

/* ---------- 20. Scroll-to-top button ---------- */
/* Hidden until main.js adds .is-visible (after half a screen of scrolling).
   visibility: hidden also removes it from the tab order while hidden. */
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background-color var(--transition);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--color-blue-700); }
.to-top .icon { width: 1.4rem; height: 1.4rem; }

@media (min-width: 1024px) {
  .to-top { right: 2rem; bottom: 2rem; width: 52px; height: 52px; }
}

/* ---------- 21. Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }

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

/* Checkbox inside a form field keeps body text styling */
.field .checkbox { font-weight: 400; font-size: 0.925rem; color: var(--color-text-muted); }
