/* =============================================================
   Der Personalkontakter — Static Redesign
   Brand: #F27B00 (Kupfer/Akzent), #004F7C (Petrol/Text)
   Mobile-first, accessible, no framework, no build step.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand colors */
  --c-accent: #F27B00;
  --c-accent-deep: #C95F00;
  --c-accent-soft: #FBE7CF;
  --c-text: #004F7C;
  --c-ink: #002B47;
  --c-muted: #5C6B7A;

  /* Surfaces */
  --c-bg: #FAF6EE;       /* warm off-white / stone */
  --c-bg-alt: #F2EBDB;   /* warmer alt block */
  --c-surface: #FFFFFF;
  --c-surface-2: #FBF8F1;
  --c-border: #E5DCC9;
  --c-border-strong: #C9BC9C;

  /* Status */
  --c-success: #1F7A52;
  --c-danger: #B8323C;

  /* Type */
  --ff-display: "DM Serif Display", "Source Serif 4", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale (8pt grid) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(0, 43, 71, 0.06), 0 2px 6px rgba(0, 43, 71, 0.04);
  --sh-2: 0 6px 18px rgba(0, 43, 71, 0.08), 0 2px 4px rgba(0, 43, 71, 0.04);
  --sh-3: 0 18px 40px rgba(0, 43, 71, 0.12), 0 4px 8px rgba(0, 43, 71, 0.06);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 76px;

  /* Motion */
  --t-fast: 120ms ease;
  --t: 200ms ease;
  --t-slow: 360ms cubic-bezier(.2,.8,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-deep); text-decoration: underline; text-underline-offset: 3px; transition: color var(--t); }
a:hover { color: var(--c-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
button { font: inherit; cursor: pointer; }
ul, ol { padding-left: 1.2rem; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-7) 0; }

/* ---------- Skip link ---------- */
/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--c-ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.6vw + 1rem, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.6rem); }
h3 { font-size: clamp(1.3rem, 1.4vw + 1rem, 1.7rem); }
h4 { font-size: 1.18rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); font-family: var(--ff-body); font-weight: 600;}

p { margin: 0 0 var(--s-4); }
.lead { font-size: 1.18rem; color: var(--c-text); }
.eyebrow {
  font-family: var(--ff-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--c-accent-deep);
  margin: 0 0 var(--s-3);
  display: inline-block;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--alt { background: var(--c-bg-alt); }
.section--surface { background: var(--c-surface); }
.section--ink { background: var(--c-ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); } .split--media-left { grid-template-columns: 1fr 1.05fr; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
/* Utility strip — refined: dark elegant bar with copper accents */
.site-header__top {
  background: linear-gradient(180deg, #002B47 0%, #004F7C 100%);
  color: #DCE6F0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.site-header__top::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(242, 123, 0, 0.5) 50%,
    transparent 100%
  );
}
.site-header__top .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  row-gap: 8px;
  padding-block: 10px;
}
.site-header__top .flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.site-header__top .flex a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 4px 0;
  margin: 0;
  color: #F4E9CE;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--t);
}
.site-header__top .flex a:hover { color: var(--c-accent); }
.site-header__top .flex a + a {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* Phone + mail: monochrome SVG icons (emoji cannot be tinted — matches envelope colour) */
.contact-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.contact-bar-link--tel::before,
.contact-bar-link--mail::before {
  content: "";
  display: block;
  width: 1.08em;
  height: 1.08em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.contact-bar-link--tel::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E");
}
.contact-bar-link--mail::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.site-header__top-meta {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex-wrap: wrap;
}
.site-header__top .lang-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.lang-switcher { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.site-header__main {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); padding-block: 12px; gap: var(--s-5);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-text { display: none; }
/* brand text is hidden — logo carries the wordmark */

.nav-toggle {
  background: transparent; border: 1px solid var(--c-border-strong); border-radius: 8px;
  padding: 10px 12px; color: var(--c-ink); display: inline-flex; align-items: center; gap: 8px;
}
.nav-toggle__bars { width: 22px; height: 2px; background: currentColor; position: relative; display: block; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; align-items: center; }
.primary-nav a {
  text-decoration: none; color: var(--c-ink); font-weight: 500;
  padding: 8px 2px; position: relative; white-space: nowrap; font-size: 0.86rem;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--c-accent-deep); }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px;
  height: 2px; background: var(--c-accent);
}
.primary-nav__has-children { position: relative; }
.primary-nav__sub {
  position: absolute; top: 100%; left: -8px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 8px; min-width: 240px;
  box-shadow: var(--sh-2);
  display: none; flex-direction: column; gap: 2px;
}
.primary-nav__has-children:hover .primary-nav__sub,
.primary-nav__has-children:focus-within .primary-nav__sub { display: flex; }
.primary-nav__sub a {
  padding: 8px 12px; border-radius: var(--r-sm); white-space: nowrap; font-weight: 400;
}
.primary-nav__sub a:hover { background: var(--c-bg-alt); }

@media (min-width: 980px) {
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
}

/* Mobile menu drawer */
.mobile-menu {
  display: none; padding: var(--s-4) 0 var(--s-6);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li + li { border-top: 1px solid var(--c-border); }
.mobile-menu a {
  display: block; padding: 14px 4px; color: var(--c-ink);
  text-decoration: none; font-weight: 500;
}
.mobile-menu a:hover { color: var(--c-accent-deep); }
.mobile-menu .group-label { padding: 14px 4px 6px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.mobile-menu .indent a { padding-left: 18px; }
@media (min-width: 980px) {
  .mobile-menu { display: none !important; }
}

.header-cta { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-pill); font-weight: 600;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  line-height: 1; letter-spacing: 0.01em; min-height: 48px;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.btn:focus-visible { outline-offset: 4px; }
.btn > svg,
.btn__icon,
.btn::before { flex-shrink: 0; }
.btn span,
.btn font { white-space: nowrap; }
.btn--primary { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn--primary:hover { background: var(--c-accent-deep); border-color: var(--c-accent-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-1); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-border-strong); }
.btn--ghost:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--outline-light:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--dark { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.btn--dark:hover { background: var(--c-text); border-color: var(--c-text); color: #fff; }
.btn--sm { padding: 10px 16px; font-size: 0.9rem; min-height: 40px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 96px);
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(242,123,0,0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(0,79,124,0.12), transparent 60%),
    var(--c-bg);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title { max-width: 18ch; }
.hero__lead { max-width: 60ch; margin-block: var(--s-5) var(--s-6); color: var(--c-text); }
.hero__cta-row { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.hero__quote {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  padding: 10px 16px; border-radius: var(--r-pill); font-size: 0.92rem; color: var(--c-ink);
  margin-bottom: var(--s-5); box-shadow: var(--sh-1);
}
.hero__quote::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(242,123,0,0.18);
}

/* Decorative ornament */
.ornament {
  width: 64px; height: 4px; background: var(--c-accent); border-radius: 2px;
  margin: 0 0 var(--s-4);
}
.ornament--center { margin-inline: auto; }

/* ---------- Cards ---------- */
.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--s-6);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--c-border-strong); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--c-accent-soft); color: var(--c-accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: var(--s-3); }
.card p { margin-bottom: 0; }
.card--link { color: inherit; text-decoration: none; display: block; }
.card--link:hover h3 { color: var(--c-accent-deep); }

/* Service highlight card */
.service-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--s-6); height: 100%;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.service-card__title { font-family: var(--ff-display); font-size: 1.4rem; color: var(--c-ink); margin: 0; }
.service-card__cta { margin-top: auto; padding-top: var(--s-4); }

/* Feature list with checks */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 600px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 14px; border-left: 3px solid var(--c-accent);
  background: var(--c-surface); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.feature-list li::before {
  content: "✓"; color: var(--c-accent-deep); font-weight: 700;
}

/* Arrow list */
.arrow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.arrow-list li {
  display: flex; gap: 10px; align-items: baseline;
  font-weight: 500; color: var(--c-ink);
}
.arrow-list li::before {
  content: "»"; color: var(--c-accent); font-weight: 700;
}

/* ---------- Image patterns ---------- */
.media-frame {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
.media-grid .media-frame img { aspect-ratio: 1 / 1; }

/* ---------- Gallery (clickable images, opens in lightbox) ---------- */
.gallery {
  margin-top: var(--s-6);
  padding: clamp(24px, 4vw, 40px);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.gallery__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
}
.gallery__title {
  margin: 0 0 8px;
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.gallery__lead {
  margin: 0 0 var(--s-4);
  color: var(--c-muted);
  font-size: 0.95rem;
}
.gallery__grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-bg-alt);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0, 43, 71, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: zoom-in;
}
.gallery__item:hover,
.gallery__item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(0, 43, 71, 0.28);
  outline: none;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.25s ease;
  display: block;
}
.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.06);
  filter: brightness(0.92);
}
.gallery__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--c-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}
.gallery__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(242, 123, 0, 0.95);
  color: #fff;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 6px 16px -6px rgba(242, 123, 0, 0.55);
}
.gallery__zoom svg { width: 18px; height: 18px; display: block; }
.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Lightbox overlay ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 28, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__stage {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  background: #111;
  transition: transform 0.25s ease, opacity 0.25s ease;
  user-select: none;
}
.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.4em;
  padding: 0 16px;
  letter-spacing: 0.01em;
}
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox__btn:hover,
.lightbox__btn:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  transform: scale(1.05);
}
.lightbox__btn svg { width: 22px; height: 22px; display: block; }
.lightbox__close {
  top: 16px;
  right: 16px;
}
.lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__prev:hover,
.lightbox__prev:focus-visible { transform: translateY(-50%) scale(1.05); }
.lightbox__next:hover,
.lightbox__next:focus-visible { transform: translateY(-50%) scale(1.05); }
.lightbox__counter {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}
@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next {
    top: auto;
    bottom: 16px;
    transform: none;
  }
  .lightbox__prev:hover, .lightbox__prev:focus-visible,
  .lightbox__next:hover, .lightbox__next:focus-visible { transform: scale(1.05); }
  .lightbox__prev { left: 16px; }
  .lightbox__next { right: 16px; }
}
body.lightbox-open { overflow: hidden; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-7); align-items: center; justify-content: center;
  padding: var(--s-5) var(--s-4); background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-md);
}
.trust-badge { display: inline-flex; align-items: center; gap: 12px; color: var(--c-muted); }
.trust-badge img { height: 56px; width: auto; }
.trust-badge strong { color: var(--c-ink); display: block; font-family: var(--ff-display); font-size: 1.05rem; }
.trust-badge small { font-size: 0.8rem; }

/* ---------- References ---------- */
.refs {
  display: grid; gap: var(--s-3); align-items: center;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .refs { grid-template-columns: repeat(5, 1fr); } }
.refs__item {
  background: var(--c-surface); border: 1px solid var(--c-border);
  padding: 18px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; min-height: 100px;
}
.refs__item img { max-height: 70px; width: auto; filter: grayscale(100%) opacity(0.85); transition: filter var(--t); }
.refs__item:hover img { filter: none; }

/* ---------- Quote / Testimonial ---------- */
.testimonial {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: var(--s-6); display: grid; gap: var(--s-4);
}
.testimonial__quote { font-family: var(--ff-display); font-size: 1.25rem; color: var(--c-ink); }
.testimonial__author { color: var(--c-muted); font-size: 0.95rem; }

/* Premium upgrade: oversized open-quote ornament + accent stripe + hover lift.
   Wirkt site-wide auf alle .testimonial - Karten. */
.testimonial {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: var(--s-7) var(--s-6) var(--s-6);
  background:
    linear-gradient(180deg, rgba(0,79,124,0.04), transparent 65%),
    var(--c-surface);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.testimonial::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, #FFA040 60%, transparent 100%);
}
.testimonial::after {
  content: "\201E"; /* German low quote „ als dekoratives Ornament */
  position: absolute; top: -12px; right: var(--s-5);
  font-family: var(--ff-display);
  font-size: 8rem; line-height: 1; color: var(--c-accent);
  opacity: 0.18; pointer-events: none; user-select: none;
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(0,79,124,0.35), 0 2px 6px -2px rgba(0,79,124,0.08);
  border-color: var(--c-border-strong);
}
.testimonial .eyebrow {
  position: relative; z-index: 1;
  color: var(--c-accent-deep); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem;
}
.testimonial__quote {
  position: relative; z-index: 1;
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 1vw + 0.95rem, 1.4rem);
  line-height: 1.45; color: var(--c-ink); margin: 0;
  padding-right: var(--s-4);
}
.testimonial__author {
  position: relative; z-index: 1;
  color: var(--c-muted); font-size: 0.95rem; margin: 0;
}
.testimonial__author a {
  color: var(--c-accent-deep); text-decoration: none; font-weight: 500;
}
.testimonial__author a:hover { color: var(--c-accent); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .testimonial:hover { transform: none; }
}

/* ---------- Empty state ---------- */
.empty-state {
  border: 1px dashed var(--c-border-strong);
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  color: var(--c-muted);
}
.empty-state strong { color: var(--c-ink); display: block; margin-bottom: 6px; font-family: var(--ff-display); font-size: 1.2rem; }

/* ---------- Job search widget (static, no backend) ---------- */
.jobs-widget {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: var(--s-6); display: grid; gap: var(--s-4);
}
.jobs-widget__form { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 720px) { .jobs-widget__form { grid-template-columns: 2fr 1fr auto auto; align-items: end; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--c-ink); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-ink);
  min-height: 46px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-accent); outline: 2px solid var(--c-accent-soft); outline-offset: 0;
}
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { min-height: auto; margin-top: 4px; }
.field--check label { font-weight: 400; color: var(--c-text); font-size: 0.92rem; line-height: 1.5; }
.field-hint { color: var(--c-muted); font-size: 0.85rem; }

/* ---------- Location cards ---------- */
.location-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
}
.location-card__media { aspect-ratio: 16 / 10; background: var(--c-bg-alt); }
.location-card__media img { width: 100%; height: 100%; object-fit: cover; }
.location-card__body { padding: var(--s-5); display: grid; gap: var(--s-3); }
.location-card__type { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent-deep); font-weight: 600;}
.location-card h3 { margin: 0; }
.location-card address { font-style: normal; color: var(--c-text); }
.location-card__contact { display: grid; gap: 6px; font-size: 0.95rem; }
.location-card__contact a,
.location-card__contact > span {
  color: var(--c-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.location-card__contact a:hover { color: var(--c-accent-deep); text-decoration: underline; }
.location-card__contact a[href^="tel:"]::before,
.location-card__contact a[href^="mailto:"]::before,
.location-card__contact > span[data-icon="fax"]::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: var(--c-accent-deep);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.location-card__contact a[href^="tel:"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E");
}
.location-card__contact a[href^="mailto:"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}
.location-card__contact > span[data-icon="fax"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z'/%3E%3C/svg%3E");
}

/* ---------- Blog ---------- */
.post-card {
  display: grid; gap: var(--s-4); padding: var(--s-5);
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  height: 100%; align-content: start;
  transition: transform var(--t), box-shadow var(--t);
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.post-card__meta { color: var(--c-muted); font-size: 0.85rem; }
.post-card h3 a { color: var(--c-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--c-accent-deep); }
.post-card p { color: var(--c-text); margin-bottom: 0; }
.post-card__more { font-weight: 600; color: var(--c-accent-deep); text-decoration: none; }
.post-card__more:hover { text-decoration: underline; }

.article {
  max-width: 720px; margin-inline: auto;
}
.article header { margin-bottom: var(--s-6); padding-bottom: var(--s-4); border-bottom: 1px solid var(--c-border); }
.article header .meta { color: var(--c-muted); font-size: 0.9rem; }
.article p, .article ul, .article ol { font-size: 1.06rem; }
.article h2 { margin-top: var(--s-7); }
.article h3 { margin-top: var(--s-6); }

/* Legal pages (Datenschutz / Impressum) — readable typography & spacing */
.legal-article h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border);
  letter-spacing: -0.005em;
}
.legal-article h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.legal-article h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-top: var(--s-6);
  color: var(--c-ink);
}
.legal-article h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: var(--s-5);
  margin-bottom: 6px;
  color: var(--c-ink);
  letter-spacing: 0.01em;
}
.legal-article p, .legal-article li { line-height: 1.7; }
.legal-article ul { padding-left: 1.2em; }
.legal-article ul li { margin-bottom: 4px; }
.legal-article a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.legal-article a:hover { text-decoration-thickness: 2px; }

.legal-table-wrap {
  margin: var(--s-4) 0 var(--s-5);
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.legal-table thead th {
  background: var(--c-bg-alt);
  font-weight: 600;
  color: var(--c-ink);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table__empty {
  text-align: center;
  color: var(--c-muted);
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink); color: #C9D6E2;
  padding-block: var(--s-8) var(--s-6); margin-top: var(--s-9);
}
.site-footer a { color: #F4E9CE; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; }
.site-footer h4, .site-footer h5 {
  color: #fff; font-family: var(--ff-display); font-size: 1.15rem; margin: 0 0 var(--s-3);
}
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__brand img { height: 52px; filter: brightness(0) invert(1) opacity(0.95); margin-bottom: var(--s-3); }
.site-footer__brand p { font-size: 0.95rem; color: #B7C7D6; }
.site-footer__brand a[href^="tel:"],
.site-footer__brand a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-footer__brand a[href^="tel:"]::before,
.site-footer__brand a[href^="mailto:"]::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: var(--c-accent);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.site-footer__brand a[href^="tel:"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E");
}
.site-footer__brand a[href^="mailto:"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: var(--s-7); padding-top: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3); justify-content: space-between; align-items: flex-start;
  font-size: 0.88rem;
}
@media (min-width: 720px) { .site-footer__bottom { flex-direction: row; align-items: center; } }
.site-footer__bottom .legal-links { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--c-muted); margin-bottom: var(--s-4); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li::after { content: "/"; margin-left: 6px; color: var(--c-border-strong); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--c-text); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent-deep); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--c-ink); }

/* ---------- Banner / page header ---------- */
.page-header {
  padding-block: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 56px);
  background:
    radial-gradient(1100px 500px at 100% 0%, rgba(242,123,0,0.10), transparent 50%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.page-header h1 { max-width: 22ch; }
.page-header p { max-width: 60ch; color: var(--c-text); margin-top: var(--s-3); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #002B47 0%, #004F7C 60%, #0D5E8C 100%);
  color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px);
  display: grid; gap: var(--s-5); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(242,123,0,0.35), transparent 60%);
  /* Decorative layer must not sit above the tap targets (mobile Safari/Firefox). */
  pointer-events: none;
}
.cta-banner h2 { color: #fff; max-width: 18ch; }
.cta-banner p { color: #DCE6F0; max-width: 60ch; }
.cta-banner__row { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* ---------- Contact action buttons (tap-friendly mobile-first) ---------- */
.contact-actions {
  display: grid;
  gap: 12px;
  margin-top: var(--s-4);
}
.contact-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  min-height: 56px;
  text-align: left;
  text-decoration: none;
  line-height: 1.25;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-ink);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
}
.contact-action:hover {
  transform: translateY(-1px);
  border-color: var(--c-accent);
  box-shadow: 0 8px 22px -14px rgba(0, 79, 124, 0.4);
}
.contact-action--tel {
  background-image: linear-gradient(135deg, #F58418 0%, #E26E00 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px -10px rgba(242, 123, 0, 0.55);
}
.contact-action--tel:hover {
  background-image: linear-gradient(135deg, #E26E00 0%, #C25A00 100%);
  color: #fff;
  border-color: transparent;
}
.contact-action__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-soft);
  color: var(--c-accent-deep);
}
.contact-action--tel .contact-action__icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.contact-action__icon svg {
  width: 22px;
  height: 22px;
}
.contact-action__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contact-action__label {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.contact-action__value {
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
}

/* ---------- Social media links (Standorte page) ---------- */
.social-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.social-block::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, #FFA040 100%);
  border-radius: 0 0 4px 4px;
}
.social-block__head { margin-bottom: var(--s-5); }
.social-block__head h2 { margin: 0 0 var(--s-3); }
.social-block__head p {
  color: var(--c-muted);
  max-width: 56ch;
  margin: 0 auto;
}
.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: center;
}
.social-link {
  --social-color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  color: var(--c-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}
.social-link__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--social-color);
  transition: color var(--t);
}
.social-link:hover {
  transform: translateY(-2px);
  background: var(--social-color);
  border-color: var(--social-color);
  color: #fff;
  box-shadow: 0 10px 24px -14px var(--social-color);
  text-decoration: none;
}
.social-link:hover .social-link__icon { color: #fff; }
.social-link--facebook  { --social-color: #1877F2; }
.social-link--instagram { --social-color: #E4405F; }
.social-link--linkedin  { --social-color: #0A66C2; }
.social-link--youtube   { --social-color: #FF0033; }
.social-link--xing      { --social-color: #126567; }
.social-link--instagram:hover {
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #515BD4 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px -14px rgba(221, 42, 123, 0.65);
}
@media (max-width: 540px) {
  .social-links { gap: 10px; }
  .social-link { padding: 10px 16px; font-size: 0.9rem; }
  .social-link__icon { width: 20px; height: 20px; }
}

/* ============================================================
   Language switcher — clean dropdown with SVG flag files
   Trigger and option rows share IDENTICAL padding+gap+flag sizing
   so the language label aligns perfectly between the two.
   ============================================================ */
.lang-switcher .lang-btn,
.lang-switcher span[aria-hidden="true"] {
  display: none !important;
}

.lang-select {
  position: relative;
  display: inline-block;
  --lang-w: 220px;
  --lang-padding-x: 14px;
  --lang-menu-padding: 6px;
  --lang-trigger-padding-x: calc(var(--lang-padding-x) + var(--lang-menu-padding));
  --lang-flag-w: 26px;
  --lang-flag-h: 17px;
  --lang-gap: 12px;
  --lang-right-w: 16px;
  width: var(--lang-w);
}

/* ----- Trigger ----- */
.lang-select__trigger {
  display: flex;
  align-items: center;
  gap: var(--lang-gap);
  padding: 10px var(--lang-trigger-padding-x);
  width: 100%;
  text-align: left;
  font: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  color: #F4E9CE;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  transition: background var(--t), border-color var(--t), box-shadow var(--t), color var(--t);
}
.lang-select__trigger:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.lang-select.is-open .lang-select__trigger,
.lang-select__trigger:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(242, 123, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(242, 123, 0, 0.22);
  color: #fff;
}

.lang-select__current {
  flex: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Flag rectangle: real SVG file in /assets/img/flags/ ----- */
.lang-select__flag {
  display: inline-block;
  width: var(--lang-flag-w);
  height: var(--lang-flag-h);
  min-width: var(--lang-flag-w);
  border-radius: 3px;
  overflow: hidden;
  flex: 0 0 auto;
  background-color: #444;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.2);
}
.lang-select__flag[data-flag="de"] { background-image: url("../img/flags/de.svg"); }
.lang-select__flag[data-flag="hr"] { background-image: url("../img/flags/hr.svg"); }
.lang-select__flag[data-flag="en"] { background-image: url("../img/flags/en.svg"); }
.lang-select__flag[data-flag="pl"] { background-image: url("../img/flags/pl.svg"); }
.lang-select__flag[data-flag="ro"] { background-image: url("../img/flags/ro.svg"); }
.lang-select__flag[data-flag="hu"] { background-image: url("../img/flags/hu.svg"); }

/* Right-side icon column — fixed width so option-label aligns with trigger-label */
.lang-select__caret,
.lang-select__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--lang-right-w);
  height: var(--lang-right-w);
  flex: 0 0 auto;
}
.lang-select__caret svg,
.lang-select__check svg { width: 14px; height: 14px; display: block; }
.lang-select__caret { transition: transform var(--t); opacity: 0.75; }
.lang-select.is-open .lang-select__caret { transform: rotate(180deg); opacity: 1; }
.lang-select__check {
  color: var(--c-accent);
  opacity: 0;
  transition: opacity var(--t);
}
.lang-select__option[aria-selected="true"] .lang-select__check { opacity: 1; }

/* ----- Menu (popover card) — same width as trigger, drops directly below ----- */
.lang-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: var(--lang-menu-padding);
  list-style: none;
  width: 100%;
  background: #00253D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.28);
  z-index: 60;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  transform-origin: top center;
}
.lang-select.is-open .lang-select__menu {
  display: block;
  animation: lang-menu-in 180ms cubic-bezier(.2, .9, .25, 1);
}
@keyframes lang-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Option row shares trigger's padding so labels line up exactly */
.lang-select__option {
  display: flex;
  align-items: center;
  gap: var(--lang-gap);
  padding: 10px var(--lang-padding-x);
  border-radius: 10px;
  color: #DCE6F0;
  cursor: pointer;
  outline: none;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: background var(--t), color var(--t);
}
.lang-select__option + .lang-select__option { margin-top: 1px; }
.lang-select__option:hover,
.lang-select__option:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.lang-select__option[aria-selected="true"] {
  background: rgba(242, 123, 0, 0.16);
  color: #fff;
}
.lang-select__option[aria-selected="true"]:hover,
.lang-select__option[aria-selected="true"]:focus-visible {
  background: rgba(242, 123, 0, 0.24);
}
.lang-select__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Scrollbar polish (webkit only) */
.lang-select__menu::-webkit-scrollbar { width: 6px; }
.lang-select__menu::-webkit-scrollbar-track { background: transparent; }
.lang-select__menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

/* ----- Mobile drawer variant: light surface ----- */
.mobile-menu__topbar .lang-select { width: 100%; --lang-w: 100%; }
.mobile-menu__topbar .lang-select__trigger {
  background: var(--c-surface);
  color: var(--c-ink);
  border-color: var(--c-border-strong);
  box-shadow: 0 1px 2px rgba(0, 43, 71, 0.05);
}
.mobile-menu__topbar .lang-select__trigger:hover {
  background: var(--c-bg-alt);
  border-color: var(--c-border-strong);
  color: var(--c-ink);
}
.mobile-menu__topbar .lang-select.is-open .lang-select__trigger,
.mobile-menu__topbar .lang-select__trigger:focus-visible {
  background: var(--c-surface);
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(242, 123, 0, 0.18);
  color: var(--c-ink);
}
.mobile-menu__topbar .lang-select__menu {
  background: var(--c-surface);
  border-color: var(--c-border);
  box-shadow:
    0 18px 40px rgba(0, 43, 71, 0.18),
    0 4px 10px rgba(0, 43, 71, 0.08);
}
.mobile-menu__topbar .lang-select__option { color: var(--c-ink); }
.mobile-menu__topbar .lang-select__option:hover,
.mobile-menu__topbar .lang-select__option:focus-visible {
  background: var(--c-bg-alt);
  color: var(--c-accent-deep);
}
.mobile-menu__topbar .lang-select__option[aria-selected="true"] {
  background: var(--c-accent-soft);
  color: var(--c-accent-deep);
}
.mobile-menu__topbar .lang-select__option[aria-selected="true"]:hover,
.mobile-menu__topbar .lang-select__option[aria-selected="true"]:focus-visible {
  background: var(--c-accent-soft);
  color: var(--c-accent-deep);
  filter: brightness(0.97);
}
.mobile-menu__topbar .lang-select__flag {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(0, 43, 71, 0.12),
    0 1px 2px rgba(0, 43, 71, 0.1);
}
.mobile-menu__topbar .lang-select__menu::-webkit-scrollbar-thumb {
  background: var(--c-border-strong);
}

/* ---------- Contact page: hero form layout ---------- */
.contact-split {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 920px) {
  .contact-split {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--s-7);
    align-items: start;
  }
}

.contact-form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--sh-2);
  position: relative;
  overflow: hidden;
}
.contact-form-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, #FFA040 60%, transparent 100%);
}
.contact-form-card h2 { margin: 0 0 var(--s-3); }
.contact-form-card__lead {
  color: var(--c-muted);
  margin: 0;
}

.contact-form-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.contact-form-card__intro {
  flex: 1 1 auto;
  min-width: 0;
}
.contact-form-card__mascot {
  flex: 0 0 auto;
  width: clamp(56px, 10%, 78px);
  align-self: flex-start;
  margin-top: 2px;
}
.contact-form-card__mascot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 43, 71, 0.14));
}
@media (max-width: 420px) {
  .contact-form-card__mascot { display: none; }
}

.contact-form { display: grid; gap: var(--s-4); }
.contact-form__row {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) {
  .contact-form__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Contact form fields — static label above, icon-prefixed input */
.contact-form .field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.contact-form .field > label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0;
}
.contact-form .field__req {
  color: var(--c-accent);
  font-weight: 700;
  letter-spacing: 0;
}
.contact-form .field__hint {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--c-muted);
  opacity: 0.8;
}

.contact-form .field__control {
  position: relative;
  display: block;
}
.contact-form .field__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--c-muted);
  pointer-events: none;
  transition: color var(--t);
}
.contact-form .field__icon svg { width: 100%; height: 100%; display: block; }

.contact-form .field__control > input,
.contact-form .field__control > textarea,
.contact-form .field__control > select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-md);
  padding: 14px 16px 14px 48px;
  min-height: 56px;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.contact-form .field__control > input::placeholder,
.contact-form .field__control > textarea::placeholder {
  color: var(--c-muted);
  opacity: 0.65;
}
.contact-form .field__control > input:focus,
.contact-form .field__control > textarea:focus,
.contact-form .field__control > select:focus {
  outline: none;
  border-color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: 0 0 0 4px rgba(242, 123, 0, 0.14);
}
.contact-form .field:focus-within .field__icon { color: var(--c-accent-deep); }

.contact-form .field--textarea .field__icon {
  top: 18px;
  transform: none;
}
.contact-form .field--textarea .field__control > textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.55;
  padding-top: 16px;
}

/* Custom select: native select is hidden, replaced by JS-built trigger + menu */
.contact-form .field--select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.contact-form .field--select .field__control {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.contact-form .field--select .field__icon { z-index: 2; }
.contact-form .field--select .field__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  z-index: -1;
}

.contact-form .field__trigger {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-md);
  padding: 14px 14px 14px 48px;
  min-height: 56px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
.contact-form .field__trigger:hover {
  border-color: var(--c-accent);
}
.contact-form .field__trigger:focus-visible,
.contact-form .field--select.is-open .field__trigger {
  outline: none;
  border-color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: 0 0 0 4px rgba(242, 123, 0, 0.14);
}
.contact-form .field__trigger-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-ink);
  font-weight: 500;
}

.contact-form .field--select .field__chevron {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  flex-shrink: 0;
  color: var(--c-accent);
  pointer-events: none;
  transition: transform 0.18s ease, color var(--t);
}
.contact-form .field--select .field__chevron svg { width: 100%; height: 100%; display: block; }
.contact-form .field--select.is-open .field__chevron {
  color: var(--c-accent-deep);
  transform: rotate(180deg);
}

.contact-form .field__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0, 43, 71, 0.14), 0 2px 6px rgba(0, 43, 71, 0.08);
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  animation: field-menu-in 0.14s ease-out;
}
@keyframes field-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.contact-form .field__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: calc(var(--r-md) - 4px);
  font: inherit;
  font-size: 0.95rem;
  color: var(--c-ink);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.contact-form .field__option:hover,
.contact-form .field__option:focus-visible {
  background: var(--c-accent-soft);
  color: var(--c-accent-deep);
  outline: none;
}
.contact-form .field__option-label { flex: 1 1 auto; min-width: 0; }
.contact-form .field__option-check {
  width: 18px;
  height: 18px;
  color: var(--c-accent);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.12s ease;
}
.contact-form .field__option-check svg { width: 100%; height: 100%; display: block; }
.contact-form .field__option[aria-selected="true"] {
  background: var(--c-accent-soft);
  color: var(--c-accent-deep);
  font-weight: 600;
}
.contact-form .field__option[aria-selected="true"] .field__option-check { opacity: 1; }

.contact-form .field--check {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}
.contact-form .field--check > input {
  min-height: auto;
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--c-accent);
  cursor: pointer;
}
.contact-form .field--check > label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-text);
  margin: 0;
  gap: 0;
}
.contact-form .field--check > label a {
  color: var(--c-accent-deep);
  text-decoration: underline;
}

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

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-2);
}
.btn--lg { padding: 16px 28px; font-size: 1.02rem; min-height: 56px; }
.btn__icon { width: 20px; height: 20px; }

.form-status {
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status--success { color: var(--c-success); }
.form-status--error { color: var(--c-danger); }
.form-status--info { color: var(--c-muted); }

.recaptcha-notice {
  margin: 0;
  font-size: 0.8rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.recaptcha-notice a { color: var(--c-muted); text-decoration: underline; }
.recaptcha-notice a:hover { color: var(--c-accent-deep); }

/* Aside on contact page */
.contact-aside { display: grid; gap: var(--s-5); }
.contact-direct h3 { margin-top: var(--s-2); margin-bottom: var(--s-3); }
.contact-direct address { font-style: normal; color: var(--c-text); margin-bottom: var(--s-3); }
.contact-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-links a {
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-links a::before {
  content: "→";
  color: var(--c-accent);
  font-weight: 700;
}
.contact-links a:hover { color: var(--c-accent-deep); text-decoration: underline; }


/* ---------- Iconed CTA buttons (replaces 📞 emoji) ---------- */
.btn--icon-tel::before,
.btn--icon-mail::before,
.btn--icon-send::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  margin-right: 4px;
  flex-shrink: 0;
  vertical-align: middle;
}
.btn--icon-send::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M2.01 21 23 12 2.01 3 2 10l15 2-15 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M2.01 21 23 12 2.01 3 2 10l15 2-15 2z'/%3E%3C/svg%3E");
}
.btn--icon-tel::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E");
}
.btn--icon-mail::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

/* ---------- Hero mascot image (jobman/jobwoman) ---------- */
.hero-mascot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-mascot img {
  max-width: 100%;
  height: auto;
  max-height: 480px;
  filter: drop-shadow(0 18px 36px rgba(0, 43, 71, 0.2));
}

/* Page header layout with optional mascot image on the right */
.page-header--with-mascot { padding-block: clamp(36px, 5vw, 64px); }
.page-header__grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .page-header__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--s-7);
  }
}
.page-header--with-mascot .hero-mascot { display: none; }
@media (min-width: 880px) {
  .page-header--with-mascot .hero-mascot {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .page-header--with-mascot .hero-mascot img {
    max-height: 420px;
  }
}

/* hide reCAPTCHA badge but keep accessibility notice in form */
.grecaptcha-badge { visibility: hidden; }

/* ---------- Inline contact links with leading mono icon ---------- */
.contact-inline { line-height: 1.8; }
.contact-inline__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 500;
}
.contact-inline__link:hover {
  color: var(--c-accent-deep);
  text-decoration: underline;
}
.contact-inline__link::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.contact-inline__link--tel::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E");
}
.contact-inline__link--mail::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.flex { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: var(--s-4); }
.stack--lg > * + * { margin-top: var(--s-6); }
.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;
}
.note {
  background: var(--c-accent-soft); border-left: 4px solid var(--c-accent);
  padding: var(--s-4) var(--s-5); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--c-ink);
}
.placeholder-note {
  background: #FFF7E0; border: 1px dashed #E0B85B; color: #6E5108;
  padding: 12px 16px; border-radius: var(--r-sm); font-size: 0.92rem;
}

/* ---------- Hero illustration silhouette (CSS-only fallback) ---------- */
.hero__media-fallback {
  border-radius: var(--r-lg); aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 30% 30%, rgba(242,123,0,0.25), transparent 60%),
    linear-gradient(160deg, #FAF6EE 0%, #E8DEC4 100%);
  border: 1px solid var(--c-border);
  display: grid; place-content: center; color: var(--c-ink);
  padding: var(--s-7);
}

/* ---------- Language switcher pills ---------- */
.site-header__top .lang-switcher span[aria-hidden="true"],
.mobile-menu__topbar .lang-switcher span[aria-hidden="true"] {
  display: none;
}

/* Header strip (dark) — ghost pills */
.site-header__top .lang-switcher .lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 11px;
  margin: 0;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #DCE6F0;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.site-header__top .lang-switcher .lang-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}
.site-header__top .lang-switcher .lang-btn[aria-current="true"] {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  font-weight: 600;
  box-shadow: 0 2px 8px -2px rgba(242, 123, 0, 0.55);
}

/* Mobile drawer (light surface) — solid pills */
.mobile-menu__topbar .lang-switcher .lang-btn {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 6px 12px;
  margin: 0;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
  color: var(--c-text);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.mobile-menu__topbar .lang-switcher .lang-btn:hover {
  color: var(--c-accent-deep);
  border-color: var(--c-border-strong);
  text-decoration: none;
}
.mobile-menu__topbar .lang-switcher .lang-btn[aria-current="true"] {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  font-weight: 600;
}

/* Google Translate Element host — visually hidden, focusable for a11y */
.gt-host {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}
/* Hide Google's auto-injected top banner, which would push our content down */
body { top: 0 !important; }
.skiptranslate, iframe.skiptranslate, .goog-te-banner-frame { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
font font { background: transparent !important; box-shadow: none !important; }

/* ---------- Premium Ribbon (Initiativbewerbung etc.) ---------- */
.ribbon {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #001E33 0%, #002B47 40%, #004F7C 100%);
  color: #fff;
  padding: clamp(72px, 10vw, 128px) 0;
}
.ribbon::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 85% 15%, rgba(242,123,0,0.22), transparent 60%),
    radial-gradient(700px 360px at 5% 95%, rgba(242,123,0,0.10), transparent 60%);
}
.ribbon::after {
  content: ""; position: absolute; right: -8%; top: -25%; width: 560px; height: 560px; z-index: -1;
  background: conic-gradient(from 60deg, transparent 0deg, rgba(242,123,0,0.22) 35deg, transparent 80deg);
  filter: blur(50px);
}
/* Subtle grid pattern */
.ribbon__pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image:
    linear-gradient(to right, #fff 1px, transparent 1px),
    linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.ribbon__grid { display: grid; gap: var(--s-7); align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .ribbon__grid { grid-template-columns: 1.15fr 1fr; gap: var(--s-8); } }
.ribbon h2 {
  color: #fff; font-size: clamp(2rem, 3.4vw + 1rem, 3.4rem); line-height: 1.08;
  margin: 0 0 var(--s-4); letter-spacing: -0.015em;
}
.ribbon p { color: #C9D6E2; font-size: 1.08rem; max-width: 52ch; margin-bottom: var(--s-4); }
.ribbon__eyebrow {
  color: var(--c-accent); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 0.78rem; display: inline-block; margin-bottom: var(--s-3);
}
.ribbon__pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-lg); padding: var(--s-6);
  display: grid; gap: 14px; position: relative; overflow: hidden;
}
.ribbon__pillar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(242,123,0,0.14), transparent 55%);
}
.ribbon__pillar h3 { color: #fff; font-size: 1.2rem; margin: 0; }
.ribbon__pillar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ribbon__pillar li {
  color: #fff; font-weight: 500; display: flex; gap: 10px; align-items: flex-start;
  padding-left: 0;
}
.ribbon__pillar li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px;
  border-radius: 50%; background: var(--c-accent);
  background-image: linear-gradient(135deg, #FFA040 0%, #C95F00 100%);
  box-shadow: 0 0 0 4px rgba(242,123,0,0.18);
}

/* ---------- Premium Empty State ---------- */
.empty-state-v2 {
  border-radius: var(--r-md); padding: var(--s-7) var(--s-5);
  background: var(--c-surface); border: 1px solid var(--c-border);
  text-align: center; position: relative; overflow: hidden;
}
.empty-state-v2::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 96px; height: 4px; background: var(--c-accent); border-radius: 0 0 4px 4px;
}
.empty-state-v2 .icon {
  width: 64px; height: 64px; margin: 0 auto var(--s-4);
  border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-deep);
  display: grid; place-items: center;
}
.empty-state-v2 .icon svg { width: 28px; height: 28px; }
.empty-state-v2 h3 {
  font-size: 1.35rem; color: var(--c-ink); margin: 0 0 var(--s-2);
  font-family: var(--ff-display); font-weight: 400; letter-spacing: -0.01em;
}
.empty-state-v2 p { color: var(--c-muted); margin: 0 auto; max-width: 52ch; }

/* ---------- Value pillars (stats / promise grid) ---------- */
.value-pillars {
  display: grid; gap: var(--s-3); grid-template-columns: 1fr;
}
@media (min-width: 540px) { .value-pillars { grid-template-columns: 1fr 1fr; } }
.value-pillar {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: var(--s-5); display: grid; gap: 6px; position: relative; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.value-pillar:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.value-pillar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c-accent);
}
.value-pillar__num {
  font-family: var(--ff-display); color: var(--c-accent-deep); font-size: 2.6rem; line-height: 1; font-weight: 400;
}
.value-pillar__label { font-weight: 600; color: var(--c-ink); font-size: 1.02rem; }
.value-pillar__hint { color: var(--c-muted); font-size: 0.9rem; line-height: 1.4; }

/* ---------- Hairline divider ---------- */
.hairline { display: block; border: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-strong) 30%, var(--c-border-strong) 70%, transparent);
  margin: var(--s-6) 0;
}

/* ---------- Refined buttons (more elegant copper) ---------- */
.btn--primary {
  background-image: linear-gradient(135deg, #F58418 0%, #E26E00 100%);
  border-color: transparent; box-shadow: 0 6px 20px -8px rgba(242,123,0,0.55);
}
.btn--primary:hover {
  background-image: linear-gradient(135deg, #E26E00 0%, #C25A00 100%);
  box-shadow: 0 10px 24px -8px rgba(242,123,0,0.65);
  transform: translateY(-1px);
}

/* Outline-light needs better contrast on ribbon */
.ribbon .btn--outline-light, .cta-banner .btn--outline-light {
  border-color: rgba(255,255,255,0.4); color: #fff;
}
.ribbon .btn--outline-light:hover, .cta-banner .btn--outline-light:hover {
  background: rgba(255,255,255,0.08); color: #fff; border-color: #fff;
}

/* ---------- Service / post cards: prevent default link underline ---------- */
a.service-card, a.post-card, .service-card, .post-card { text-decoration: none; color: inherit; }
a.service-card *, a.post-card *, .service-card *, .post-card * { text-decoration: none; }

/* ---------- Translation casing fix ------------------------------------
   Google Translate often lowercases labels, headings and button text
   (e.g. "Kontakt" → "contact", "Mission" → "misija", "Kontakt aufnehmen"
   → "uspostaviti kontakt"). When Translate is active it adds a
   `translated-ltr` / `translated-rtl` class to <html>. We only fix
   capitalisation in that state so the German original stays untouched.

   We use ::first-letter (uppercase first character only — sentence case),
   not text-transform: capitalize (which would capitalise every word).
   ::first-letter requires a block container, so inline <a>s get
   display: inline-block. */
html:is(.translated-ltr, .translated-rtl) :is(
  .primary-nav a,
  .primary-nav__sub a,
  .breadcrumbs a,
  .site-footer ul a,
  .site-header__top .lang-switcher .lang-btn,
  .mobile-menu__topbar .lang-switcher .lang-btn,
  .btn
) {
  display: inline-block;
}

html:is(.translated-ltr, .translated-rtl) :is(
  .primary-nav a,
  .primary-nav__sub a,
  .mobile-menu a,
  .site-header__top .lang-switcher .lang-btn,
  .mobile-menu__topbar .lang-switcher .lang-btn,
  .site-footer h4,
  .site-footer ul a,
  .breadcrumbs li,
  .breadcrumbs a,
  h1, h2, h3, h4, h5, h6,
  .btn
)::first-letter {
  text-transform: uppercase;
}

/* ---------- References: ambient wave fade (no slide loop) ---------- */
@keyframes refsPulse {
  0%, 100% { opacity: 0.42; filter: grayscale(100%); transform: scale(0.97); }
  45%, 55% { opacity: 1;    filter: grayscale(0%);   transform: scale(1); }
}
.refs__item { transition: none; }
.refs__item img {
  animation: refsPulse 7s ease-in-out infinite;
  filter: grayscale(100%); opacity: 0.42;
  will-change: opacity, filter, transform;
}
.refs__item:nth-child(1) img { animation-delay: 0s; }
.refs__item:nth-child(2) img { animation-delay: 1.4s; }
.refs__item:nth-child(3) img { animation-delay: 2.8s; }
.refs__item:nth-child(4) img { animation-delay: 4.2s; }
.refs__item:nth-child(5) img { animation-delay: 5.6s; }
.refs__item:hover img { animation-play-state: paused; opacity: 1; filter: grayscale(0%); transform: scale(1); }

/* ---------- References: real looping marquee slider ---------- */
.refs-marquee {
  position: relative; overflow: hidden;
  padding-block: var(--s-2);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%);
}
.refs-marquee__track {
  display: flex; align-items: stretch; gap: var(--s-6);
  width: max-content;
  animation: marquee 50s linear infinite;
  will-change: transform;
}
.refs-marquee:hover .refs-marquee__track,
.refs-marquee:focus-within .refs-marquee__track { animation-play-state: paused; }
.refs-marquee__item {
  flex: 0 0 240px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 22px 28px;
  display: flex; align-items: center; justify-content: center;
  min-height: 128px;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}
.refs-marquee__item:hover {
  border-color: var(--c-border-strong);
  box-shadow: 0 10px 24px -16px rgba(0,79,124,0.35);
  transform: translateY(-2px);
}
.refs-marquee__item img {
  max-height: 76px; width: auto; max-width: 100%;
  filter: grayscale(100%); opacity: 0.72;
  transition: filter 250ms ease, opacity 250ms ease;
}
.refs-marquee__item:hover img { filter: grayscale(0%); opacity: 1; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 720px) {
  .refs-marquee__track { animation-duration: 38s; gap: var(--s-5); }
  .refs-marquee__item { flex-basis: 200px; min-height: 112px; padding: 18px 22px; }
  .refs-marquee__item img { max-height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .refs-marquee__track { animation: none; }
}

/* ---------- Blog post-card: aligned across siblings ----------
   Reserve up to 3 lines for the title so descriptions and the "Weiterlesen…"
   link line up across cards regardless of how long the title is. */
.post-card { display: flex !important; flex-direction: column; gap: var(--s-3); align-content: initial !important; }
.post-card > * { margin: 0; }
.post-card .post-card__meta { font-size: 0.85rem; color: var(--c-muted); }
.post-card h3 {
  line-height: 1.2; margin: 0;
  min-height: calc(1.2em * 3);   /* up to three lines reserved */
}
.post-card p { color: var(--c-text); flex: 1 1 auto; }
.post-card .post-card__more {
  margin-top: auto; align-self: flex-start;
  font-weight: 600; color: var(--c-accent-deep);
}
.post-card .post-card__more:hover { text-decoration: underline; }

/* Modern browsers: use subgrid for perfect alignment when supported */
@supports (grid-template-rows: subgrid) {
  .grid:has(> .post-card) {
    grid-template-rows: auto auto 1fr auto;
    align-items: stretch;
  }
  .grid:has(> .post-card) > .post-card {
    display: grid !important;
    grid-template-rows: subgrid;
    grid-row: span 4;
    gap: var(--s-3);
  }
  .grid:has(> .post-card) > .post-card h3 { min-height: 0; align-self: start; }
  .grid:has(> .post-card) > .post-card p { align-self: start; }
  .grid:has(> .post-card) > .post-card .post-card__more {
    align-self: end; justify-self: start; margin: 0;
  }
}

/* ---------- Premium "Applicant" cards (Für Bewerber – Auslandsbox) ----------
   Numbered, ornament-topped cards with subtle gradient + hover-lift.
   Use by adding `applicant-cards` to a `.grid` wrapper around plain `.card`s. */
.applicant-cards { counter-reset: applicant-card; }
.applicant-cards > .card {
  counter-increment: applicant-card;
  position: relative; overflow: hidden;
  padding: var(--s-7) var(--s-6) var(--s-6);
  background:
    linear-gradient(180deg, rgba(242,123,0,0.04), transparent 60%),
    var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(0,79,124,0.04);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.applicant-cards > .card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, #FFA040 60%, transparent 100%);
}
.applicant-cards > .card::after {
  content: counter(applicant-card, decimal-leading-zero);
  position: absolute; top: var(--s-5); right: var(--s-6);
  font-family: var(--ff-display); font-size: 1.6rem; line-height: 1;
  color: var(--c-accent-deep); opacity: 0.35;
  letter-spacing: 0.02em;
}
.applicant-cards > .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(0,79,124,0.35), 0 2px 6px -2px rgba(0,79,124,0.08);
  border-color: var(--c-border-strong);
}
.applicant-cards > .card h3 {
  font-family: var(--ff-display); color: var(--c-ink);
  font-size: 1.45rem; line-height: 1.15; margin: 0 0 var(--s-3);
  padding-right: 2.5rem; /* leave room for the number */
}
.applicant-cards > .card p { margin: 0 0 var(--s-3); color: var(--c-text); }
.applicant-cards > .card p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .applicant-cards > .card:hover { transform: none; }
}

/* ---------- "Wir denken europäisch" 4-card section: 2x2 layout (better for long German words) ---------- */
.grid--4 { grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 720px) { .grid--4 { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }
@media (min-width: 1280px) { .grid--4 { grid-template-columns: repeat(2, 1fr); gap: var(--s-7); } }
.grid--4 > .card {
  display: grid; grid-template-columns: auto 1fr; gap: 18px 24px;
  align-items: start; padding: var(--s-6) var(--s-6);
}
.grid--4 > .card .card__icon { margin-bottom: 0; grid-row: span 2; }
.grid--4 > .card h3 { margin: 0; align-self: center; }
.grid--4 > .card p {
  grid-column: 1 / -1;
  hyphens: auto; -webkit-hyphens: auto;
  text-wrap: pretty;
  margin: 0;
}
@media (min-width: 600px) {
  .grid--4 > .card { grid-template-columns: 56px 1fr; }
  .grid--4 > .card p { grid-column: 2 / 3; }
}

/* ---------- Active nav indicator (more visible on subpages) ---------- */
.primary-nav a[aria-current="page"] { color: var(--c-accent-deep); font-weight: 600; }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: -2px;
  height: 3px; background: var(--c-accent); border-radius: 2px;
}
.primary-nav .primary-nav__has-children > a[aria-current="page"]::after,
.primary-nav .primary-nav__has-children:has(a[aria-current="page"]) > a::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: -2px;
  height: 3px; background: var(--c-accent); border-radius: 2px;
}
.primary-nav .primary-nav__has-children:has(a[aria-current="page"]) > a {
  color: var(--c-accent-deep); font-weight: 600;
}
.mobile-menu a[aria-current="page"] {
  color: var(--c-accent-deep); font-weight: 600;
  background: var(--c-accent-soft); border-left: 3px solid var(--c-accent);
  padding-left: 12px;
}

/* =============================================================
   Mobile responsive polish
   Targeted fixes for small screens. Header top bar, lang switcher,
   spacing, footer, long-word overflow. Higher in source than the
   defaults above so it wins the cascade where needed.
   ============================================================= */

/* ----- Mobile nav: hide top utility bar; it gets cloned into the menu drawer ----- */
@media (max-width: 980px) {
  .site-header__top { display: none; }

  /* CRITICAL: backdrop-filter on .site-header creates a containing block for
     position: fixed descendants, breaking the drawer's viewport positioning.
     Disable it on mobile (the solid background is enough). */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--c-bg);
  }

  /* Mobile menu becomes a scrollable fixed drawer below the brand bar */
  .mobile-menu {
    position: fixed;
    top: var(--header-actual-h, 76px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: var(--s-4) 0 var(--s-7);
  }
  .mobile-menu.is-open { display: block; }

  /* Lock body scroll while menu is open so the drawer is the only scroll target */
  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  /* ----- Cloned top bar at the top of the drawer ----- */
  .mobile-menu__topbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 16px var(--s-4);
    margin: 0 16px var(--s-4);
    border-radius: var(--r-md);
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    font-size: 0.95rem;
  }
  /* Phone + email — stack vertically as compact rows */
  .mobile-menu__topbar .flex {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
  }
  .mobile-menu__topbar .flex a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--c-ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
  }
  .mobile-menu__topbar .flex a + a {
    border-top: 1px solid var(--c-border);
  }
  .mobile-menu__topbar .flex a:hover { color: var(--c-accent-deep); }

  /* Languages */
  .mobile-menu__topbar .site-header__top-meta {
    margin: 0;
    padding: 12px 0 4px;
    border-top: 1px solid var(--c-border);
    gap: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .mobile-menu__topbar .lang-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    justify-content: center;
  }
  .mobile-menu__topbar .lang-select {
    width: min(300px, 100%);
    --lang-w: min(300px, 100%);
    margin-inline: auto;
  }
  .mobile-menu__topbar .flex {
    align-items: center;
  }
  .mobile-menu__topbar .flex a {
    justify-content: center;
    text-align: center;
  }
  /* Language pill styles shared globally — see “Language switcher (pills)” */

  /* ----- Mobile menu list ----- */
  .mobile-menu .container > ul { padding-inline: 16px; }
  .mobile-menu li + li { border-top: 1px solid var(--c-border); }
  .mobile-menu a {
    display: block;
    padding: 14px 4px;
    color: var(--c-ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
  }

  /* ----- Collapsible groups (Leistungen, Überregional aktiv) ----- */
  .mobile-menu__group-li { border-top: 1px solid var(--c-border); }
  .mobile-menu__group-li:first-child { border-top: 0; }

  .mobile-menu__group { border: 0; padding: 0; margin: 0; }
  .mobile-menu__group-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    color: var(--c-ink);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
  }
  .mobile-menu__group-summary::-webkit-details-marker { display: none; }
  .mobile-menu__group-summary::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: 12px;
    border-right: 2px solid var(--c-muted);
    border-bottom: 2px solid var(--c-muted);
    transform: rotate(45deg);
    transition: transform var(--t);
    flex: 0 0 auto;
  }
  .mobile-menu__group[open] > .mobile-menu__group-summary::after {
    transform: rotate(-135deg);
  }
  .mobile-menu__group[open] > .mobile-menu__group-summary { color: var(--c-accent-deep); }

  .mobile-menu__group-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 4px 0 8px 14px;
    border-left: 2px solid var(--c-accent-soft);
    margin-left: 6px;
  }
  .mobile-menu__group-list li { border-top: 0 !important; }
  .mobile-menu__group-list li + li { border-top: 1px dashed var(--c-border) !important; }
  .mobile-menu__group-list a {
    padding: 10px 4px;
    font-size: 0.95rem;
    color: var(--c-text);
    font-weight: 400;
  }
  .mobile-menu__group-list a:hover,
  .mobile-menu__group-list a[aria-current="page"] {
    color: var(--c-accent-deep);
    font-weight: 500;
  }

  /* Burger → X when expanded */
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* Keep the brand bar visually above the drawer */
  .site-header { z-index: 100; }
}

@media (max-width: 720px) {
  /* Body: prevent stray horizontal scroll from sub-pixel rounding /
     long URLs / wide marquees (clip preserves position: sticky). */
  body { overflow-x: clip; }

  /* Tighter outer padding on phones */
  .container { padding-inline: 16px; }

  /* ----- Header: main bar ----- */
  .site-header__main {
    gap: var(--s-3);
    padding-block: 10px;
    min-height: 64px;
  }
  .brand img { height: 38px; }

  /* ----- Sections / spacing ----- */
  .section { padding-block: 48px; }
  .page-header { padding-block: 32px 24px; }

  /* ----- Hero ----- */
  .hero { padding-block: 48px 36px; }
  .hero__title { max-width: none; }
  .hero__lead { margin-block: var(--s-4) var(--s-5); font-size: 1.05rem; }
  .hero__cta-row .btn { flex: 1 1 200px; }

  /* ----- Headings: avoid long-word overflow ----- */
  h1, h2, h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  /* ----- CTA banner ----- */
  .cta-banner { padding: var(--s-5) var(--s-4); }
  .cta-banner__row { gap: 10px; }

  /* ----- Cards ----- */
  .card { padding: var(--s-5); }
  .applicant-cards > .card { padding: var(--s-6) var(--s-5) var(--s-5); }

  /* ----- Mobile menu drawer container alignment ----- */
  .mobile-menu .container { padding-inline: 16px; }

  /* ----- Footer ----- */
  .site-footer {
    padding-block: var(--s-7) var(--s-5);
    margin-top: var(--s-7);
  }
  .site-footer__brand img { height: 44px; }
  .footer-grid { gap: var(--s-6); }
  .site-footer__bottom { gap: 10px; }
  .site-footer__bottom .legal-links { gap: var(--s-3); }

  /* ----- Ribbon (Initiativbewerbung etc.) ----- */
  .ribbon { padding: 56px 0; }
  .ribbon__pillar { padding: var(--s-5); }
}

/* Very small phones (≤ 420px) */
@media (max-width: 420px) {
  .container { padding-inline: 14px; }

  /* Slightly smaller brand on tiny screens */
  .brand img { height: 34px; }

  /* CTA buttons full width inside the dark banner so they don’t look stranded */
  .cta-banner .btn { width: 100%; }

  /* Drawer language pills slightly tighter on tiny screens */
  .mobile-menu__topbar .lang-switcher .lang-btn {
    padding: 5px 10px;
    font-size: 0.85rem;
  }
}

/* ---------- Broken image fallback ----------
   JS adds class `is-broken` to <img> on error event (see main.js).
   We render alt text inside a styled box instead of an ugly icon. */
img.is-broken {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: var(--s-4);
  background: var(--c-bg-alt);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--r-md);
  color: var(--c-muted);
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
  /* Show alt via ::after — works on the placeholder span we replace it with */
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .mobile-menu, .header-cta { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- Google Translate compatibility ----------
   Google Translate wraps every translated text node in nested <font> tags
   AND injects a top banner that shifts the body down. Both can break our
   layouts (icons jumping below their labels, sticky things misaligned, etc.). */
font, .skiptranslate font {
  display: inline !important;
  vertical-align: baseline !important;
  font: inherit !important;
  background: transparent !important;
  white-space: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}

/* Hard force: inline icon-and-label components stay on a single line, no
   matter what Google Translate's <font> wrappers try to do. */
.btn,
.contact-bar-link,
.contact-inline__link,
.lang-select__trigger,
.lang-select__option,
.contact-action {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

/* All direct flex children of these stay rigid (no shrink, no wrap). */
.btn > *,
.contact-bar-link > *,
.contact-inline__link > *,
.lang-select__trigger > *,
.lang-select__option > * {
  flex-shrink: 0 !important;
}

/* SVG icons inside buttons / pills: override the global `svg { display: block }`
   so they don't behave as block-level (which can push siblings onto a new line
   when combined with translated <font> wrappers). */
.btn > svg,
.btn__icon,
.contact-bar-link > svg,
.contact-action__icon > svg,
.lang-select__flag,
.lang-select__caret,
.lang-select__check,
.contact-inline__link > svg {
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Hide the Google Translate top banner that pushes the page down */
body { top: 0 !important; position: static !important; }
.skiptranslate.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate { display: none !important; }
