/* Global styling ported from the Astro version */
:root {
  --color-blue: #10218b;
  --color-blue-light: #2435a8;
  --color-blue-dark: #0a185c;
  --color-red: #ff2c04;
  --color-red-muted: #c92202;
  --color-bg: #f8f8f8;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #4b5563;
  --font-sans: 'Inter', system-ui, sans-serif;
  --max-width: 1200px;
  --space: 1.5rem;
  --header-height: 6.5rem;
}

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

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 2.5rem;
}
h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

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

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

.text p,
.text ul,
.text ol {
  margin: 0 0 1rem;
}
.text p:last-child,
.text ul:last-child,
.text ol:last-child {
  margin-bottom: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.25s ease;
}
body:not(.is-home) .header,
.header.is-scrolled {
  background: rgba(16, 33, 139, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space);
  padding-bottom: var(--space);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo img {
  height: 52px;
  width: auto;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.nav a {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.25rem 0;
}
.nav a:hover {
  color: var(--color-white);
  opacity: 0.85;
  text-decoration: none;
}
.btn-header {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--color-white);
  color: var(--color-blue);
  border-radius: 4px;
  white-space: nowrap;
}
.btn-header:hover {
  opacity: 0.95;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}
.nav-toggle-bars {
  position: relative;
  width: 1.2rem;
  height: 0.95rem;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.26s ease, opacity 0.2s ease, top 0.26s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle-bars span:nth-child(3) { top: calc(100% - 2px); }
body.nav-open .nav-toggle-bars span:nth-child(1) {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}
body.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bars span:nth-child(3) {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}
@media (max-width: 900px) {
  :root {
    --header-height: 82px;
    --space: 1.25rem;
  }
  .header-inner {
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1.25rem !important;
    min-height: 82px;
  }
  .header {
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .header-right {
    position: fixed;
    top: calc(var(--header-height, 4.25rem) + 1.25rem);
    left: 1.25rem;
    right: 1.25rem;
    z-index: 99;
    display: block;
    padding: 1.25rem;
    background: rgba(16, 33, 139, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
  }
  .logo img {
    height: 34px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    width: 100%;
  }
  .nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    overflow: visible;
    padding: 0;
  }
  .nav a {
    display: block;
    width: 100%;
    padding: 0.58rem 0;
    white-space: normal;
    font-size: 1rem;
  }
  .hero,
  .karriere-hero,
  .unternehmen-hero {
    margin-top: calc(-1 * var(--header-height, 6rem) - 4px);
  }
  body.nav-open .header-right {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  body.nav-open {
    overflow: hidden;
  }
  .footer .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
@media (max-width: 768px) {
  .btn-header {
    display: none;
  }
}

/* Footer */
.footer {
  background: var(--color-blue);
  color: var(--color-white);
  margin-top: 0;
}
.footer a {
  color: var(--color-white);
  opacity: 0.9;
}
.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2rem;
  align-items: start;
}
.footer-logo-link img {
  height: 48px;
  width: auto;
  display: block;
}
.footer-company {
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.footer-address,
.footer-tel {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.9rem;
}
.footer-bar {
  background: var(--color-blue-dark);
  padding: 1rem 0;
}
.footer-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-empty {
    display: none;
  }
}
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Pages */
.page {
  padding: 2rem 0 4rem;
}
.page-header {
  margin-bottom: 2.5rem;
}
.page-header h1 {
  color: var(--color-blue);
  margin-top: 0;
}
.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

/* Onepager sections */
.page.onepager {
  padding-top: 0;
  padding-bottom: 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(16, 33, 139, 0.045), transparent 34%),
    radial-gradient(circle at 88% 36%, rgba(201, 34, 2, 0.04), transparent 33%),
    var(--color-bg);
}
.section {
  padding: 92px 0;
}
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98));
}
.section h2 {
  color: var(--color-blue);
  margin-top: 0;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.onepager #leistungen,
.onepager #arbeitsweise,
.onepager #branchen,
.onepager #ausbildung,
.onepager #familienunternehmen,
.onepager #kontakt {
  scroll-margin-top: calc(var(--header-height, 6rem) + 1.25rem);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  text-shadow: none;
}
.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  border: 2px solid var(--color-blue);
}
.btn-primary:hover {
  background: #0d1a6e;
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-height, 6rem));
  padding-top: calc(var(--header-height, 6rem) + 5.5rem);
  padding-bottom: 5.75rem;
  min-height: 32rem;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
    90deg,
    rgba(16, 33, 139, 0.85) 0%,
    rgba(16, 33, 139, 0.65) 55%,
    rgba(16, 33, 139, 0.35) 100%
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}
.hero-col-text {
  max-width: 36rem;
  animation: fade-up 620ms ease both;
}
.hero-col-empty {
  min-height: 1px;
}
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-col-empty {
    display: none;
  }
}
.hero h1 {
  color: var(--color-white);
  margin-top: 0;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.hero .lead,
.hero p {
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.hero .lead {
  animation: fade-up 620ms ease both;
  animation-delay: 120ms;
}
.lead {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  animation: fade-up 620ms ease both;
  animation-delay: 220ms;
}
.btn-hero-cta {
  background: var(--color-red-muted);
  color: var(--color-white);
  border: 2px solid var(--color-red-muted);
}
.btn-hero-cta:hover {
  background: #a81d02;
  border-color: #a81d02;
  color: var(--color-white);
  text-decoration: none;
}
.btn-hero-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn-hero-secondary:hover {
  background: var(--color-white);
  color: var(--color-blue);
  text-decoration: none;
}

/* Two columns */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: stretch;
}
.two-col-img {
  position: relative;
  min-height: 280px;
}
.two-col-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  box-shadow: 0 14px 32px rgba(16, 33, 139, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.two-col-img:hover img {
  transform: scale(1.015);
  box-shadow: 0 18px 38px rgba(16, 33, 139, 0.18);
}
.two-col-text h2 {
  margin-top: 0;
}
@media (max-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  .two-col-img {
    order: 1;
    min-height: 0;
    height: 240px;
  }
  .two-col-text {
    order: 2;
  }
}

/* Kernkompetenzen cards */
.kernkompetenzen {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.kernkompetenzen h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--color-blue);
}
.competency-cards {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.competency-cards .card {
  padding: 1.5rem 1.25rem;
  background: linear-gradient(155deg, #d62c09 0%, #b52004 100%);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 12px 26px rgba(16, 33, 139, 0.2);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 140px;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  animation: card-enter 520ms cubic-bezier(0.2, 0.75, 0.3, 1) forwards;
}
.competency-cards .card:nth-child(1) { animation-delay: 90ms; }
.competency-cards .card:nth-child(2) { animation-delay: 140ms; }
.competency-cards .card:nth-child(3) { animation-delay: 190ms; }
.competency-cards .card:nth-child(4) { animation-delay: 240ms; }
.competency-cards .card:nth-child(5) { animation-delay: 290ms; }
.competency-cards .card:nth-child(6) { animation-delay: 340ms; }
.competency-cards .card:hover {
  box-shadow: 0 16px 32px rgba(16, 33, 139, 0.24);
  transform: translateY(-4px);
}
.competency-cards .card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.competency-cards .card-label {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--color-white);
}
.competency-cards .card-detail {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 0.35rem;
  line-height: 1.4;
  font-style: normal;
}
.kernkompetenzen-footer {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Check list */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.check-list li {
  padding: 0.35rem 0;
  padding-left: 1.75rem;
  position: relative;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: 600;
}

/* Ausbildung */
.section-ausbildung {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
  color: var(--color-white);
}
.section-ausbildung h2,
.section-ausbildung .two-col-text p {
  color: var(--color-white);
}
.btn-ausbildung {
  background: var(--color-white);
  color: var(--color-blue);
  border: 2px solid var(--color-white);
}
.btn-ausbildung:hover {
  background: var(--color-bg);
  color: var(--color-blue);
  border-color: var(--color-white);
  text-decoration: none;
}

/* Kontakt */
.section-contact {
  position: relative;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
  color: var(--color-white);
}
.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.section-contact .container {
  position: relative;
  z-index: 1;
}
.section-contact h2,
.section-contact p {
  color: inherit;
}
.section-contact a {
  color: var(--color-white);
  text-decoration: underline;
}
.section-contact a:hover {
  opacity: 0.9;
}
.section-contact address {
  font-style: normal;
  margin: 0.5rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
.contact-form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.18);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.contact-form button {
  margin-top: 1rem;
}
.section-contact .btn-primary {
  background: var(--color-white);
  color: var(--color-blue);
  border-color: var(--color-white);
}
.section-contact .btn-primary:hover {
  background: var(--color-bg);
  color: var(--color-blue);
  text-decoration: none;
}
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 14px 30px rgba(10, 24, 92, 0.2);
}

/* Unternehmen page */
.unternehmen-page {
  padding-top: 0;
  padding-bottom: 4rem;
  background:
    radial-gradient(circle at 9% 16%, rgba(16, 33, 139, 0.06), transparent 34%),
    radial-gradient(circle at 88% 26%, rgba(201, 34, 2, 0.05), transparent 36%),
    var(--color-bg);
}
.unternehmen-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-height, 6rem));
  padding-top: calc(var(--header-height, 6rem) + 4.75rem);
  padding-bottom: 5.25rem;
  color: var(--color-white);
  overflow: hidden;
}
.unternehmen-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      110deg,
      var(--unternehmen-gradient-start, rgba(16, 33, 139, 0.9)) 0%,
      var(--unternehmen-gradient-end, rgba(16, 33, 139, 0.55)) 100%
    ),
    var(--unternehmen-hero-image, none);
  background-size: cover;
  background-position: var(--unternehmen-hero-position, center);
  background-repeat: no-repeat;
}
.unternehmen-hero .container {
  position: relative;
  z-index: 1;
}
.unternehmen-hero-title,
.unternehmen-hero-lead {
  animation: fade-up 620ms ease both;
}
.unternehmen-hero-lead {
  max-width: 48rem;
  opacity: 0.95;
  font-size: 1.08rem;
  animation-delay: 110ms;
}
.container.narrow {
  max-width: 860px;
}
.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}
.content-split-spacious {
  gap: 4rem;
}
.content-split-reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.content-split-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(16, 33, 139, 0.16);
}
.content-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-split-compact-image {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}
.content-split-compact-image.content-split-reverse {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}
.content-split-compact-image .content-split-image {
  max-width: 320px;
  justify-self: end;
}
.content-split-compact-image.content-split-reverse .content-split-image {
  justify-self: start;
}

.history-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.timeline-line {
  position: relative;
  width: 4px;
  background: rgba(201, 34, 2, 0.2);
  border-radius: 999px;
  margin-left: 22px;
}
.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #ff2c04 0%, #c92202 100%);
  border-radius: 999px;
  transition: none;
}
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1rem;
}
.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  margin-top: 0.35rem;
  background: var(--color-white);
  border: 3px solid var(--color-blue);
  box-shadow: 0 0 0 4px rgba(16, 33, 139, 0.12);
}
.timeline-content {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 33, 139, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 24px rgba(16, 33, 139, 0.1);
}
.timeline-year {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-red-muted);
}
.timeline-title {
  margin: 0.2rem 0 0.15rem;
  font-size: 1.1rem;
  color: var(--color-blue);
}
.timeline-subtitle {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}
.timeline-text {
  margin: 0;
  color: var(--color-text);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.team-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 33, 139, 0.08);
  border-radius: 12px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 10px 24px rgba(16, 33, 139, 0.1);
}
.team-photo-wrap {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: rgba(16, 33, 139, 0.08);
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-photo-placeholder {
  background: linear-gradient(135deg, rgba(16, 33, 139, 0.12), rgba(201, 34, 2, 0.12));
}
.team-name {
  margin: 0;
  font-size: 1.15rem;
  color: var(--color-blue);
}
.team-position {
  margin: 0.25rem 0 0.65rem;
  color: var(--color-text-muted);
}
.team-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.team-links a {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 33, 139, 0.12);
  color: var(--color-blue);
  font-weight: 700;
  text-decoration: none;
}
.team-links a:hover {
  background: rgba(16, 33, 139, 0.2);
}
.team-link-icon {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.why-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 33, 139, 0.08);
  border-radius: 12px;
  padding: 1rem 0.9rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(16, 33, 139, 0.1);
}
.why-ring {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 0.55rem;
}
.why-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.why-ring-track,
.why-ring-progress {
  fill: none;
  stroke-width: 10;
}
.why-ring-track {
  stroke: rgba(16, 33, 139, 0.12);
}
.why-ring-progress {
  stroke: var(--color-red-muted);
  stroke-linecap: round;
}
.why-percent {
  margin: 0;
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-red-muted);
}
.why-percent span {
  font-size: 1rem;
  margin-left: 0.15rem;
}
.why-label {
  margin: 0.5rem 0 0;
  font-weight: 600;
  color: var(--color-blue);
}
.why-knowhow {
  margin-top: 1.75rem;
}
.why-knowhow h3 {
  margin-top: 0;
  color: var(--color-blue);
}
.testimonial-box {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 33, 139, 0.08);
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 10px 24px rgba(16, 33, 139, 0.1);
}
.testimonial-heading,
.testimonial-subheading {
  text-align: center;
}
.testimonial-subheading {
  margin-left: auto;
  margin-right: auto;
  max-width: 44rem;
}
.testimonial-slider {
  margin-top: 1.25rem;
  overflow: visible;
}
.testimonial-viewport {
  position: relative;
  border-radius: 12px;
  padding: 0.15rem 0.2rem 0.35rem;
}
.testimonial-track {
  position: relative;
}
.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.testimonial-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.testimonial-stars {
  margin: 0 0 0.55rem;
  color: #f8b529;
  letter-spacing: 0.15rem;
  font-size: 1rem;
}
.testimonial-quote {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.65;
}
.testimonial-name {
  margin: 0.9rem 0 0;
  font-weight: 700;
  color: var(--color-blue);
}
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
}
.testimonial-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(16, 33, 139, 0.22);
  background: #fff;
  color: var(--color-blue);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.testimonial-dots {
  display: flex;
  gap: 0.4rem;
}
.testimonial-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(16, 33, 139, 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.testimonial-dot.is-active {
  background: var(--color-red-muted);
}

/* Karriere page (ported from Astro) */
.karriere-page {
  padding-top: 0;
  padding-bottom: 4rem;
  background:
    radial-gradient(circle at 8% 10%, rgba(16, 33, 139, 0.06), transparent 36%),
    radial-gradient(circle at 92% 24%, rgba(201, 34, 2, 0.06), transparent 34%),
    var(--color-bg);
}
.karriere-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-height, 6rem));
  padding-top: calc(var(--header-height, 6rem) + 5rem);
  padding-bottom: 9rem;
  color: var(--color-white);
  background-color: var(--color-blue);
  margin-bottom: 2rem;
  overflow: hidden;
}
.karriere-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      110deg,
      var(--karriere-gradient-start, rgba(16, 33, 139, 0.88)) 0%,
      var(--karriere-gradient-end, rgba(16, 33, 139, 0.55)) 100%
    ),
    var(--karriere-hero-image, none);
  background-size: cover;
  background-position: var(--karriere-hero-position, center);
  background-repeat: no-repeat;
}
.karriere-hero .container {
  position: relative;
  z-index: 1;
}
.karriere-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.25;
  color: var(--color-white);
}
.karriere-hero-lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 42em;
}
.karriere-hero-title,
.karriere-hero-lead {
  animation: fade-up 620ms ease both;
}
.karriere-hero-lead {
  animation-delay: 120ms;
}
.einstieg-kacheln {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: -4.75rem;
  margin-bottom: 5rem;
  position: relative;
  z-index: 2;
}
.einstieg-kachel {
  padding: 1.5rem 1.25rem;
  background: linear-gradient(155deg, #d62c09 0%, #b52004 100%);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(16, 33, 139, 0.2);
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 140px;
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  animation: card-enter 560ms cubic-bezier(0.2, 0.75, 0.3, 1) forwards;
}
.einstieg-kachel:nth-child(1) { animation-delay: 120ms; }
.einstieg-kachel:nth-child(2) { animation-delay: 210ms; }
.einstieg-kachel:nth-child(3) { animation-delay: 300ms; }
.einstieg-kachel:hover {
  box-shadow: 0 16px 30px rgba(16, 33, 139, 0.26);
  transform: translateY(-4px);
  background: linear-gradient(155deg, #e3320d 0%, #bf2407 100%);
  color: var(--color-white);
  text-decoration: none;
}
.einstieg-kachel-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.einstieg-kachel-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
}
.einstieg-kachel-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-white);
  opacity: 0.95;
}
.karriere-section {
  margin-bottom: 3.25rem;
  padding-top: 0.65rem;
}
.karriere-page #ausbildung,
.karriere-page #fachkraefte,
.karriere-page #initiativ,
.karriere-page #weiterkommen {
  scroll-margin-top: calc(var(--header-height, 6rem) + 1.5rem);
}
.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: var(--color-blue);
  letter-spacing: -0.01em;
}
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.section-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
}
.job-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.job-accordion {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  border: 1px solid rgba(16, 33, 139, 0.1);
  box-shadow: 0 8px 20px rgba(16, 33, 139, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.job-accordion:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 33, 139, 0.12);
  border-color: rgba(16, 33, 139, 0.22);
}
.job-accordion-summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  padding-right: 2.5rem;
}
.job-accordion-summary::-webkit-details-marker,
.job-accordion-summary::marker {
  display: none;
}
.job-accordion-summary::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 0.72rem;
  height: 0.72rem;
  border-right: 2px solid var(--color-blue);
  border-bottom: 2px solid var(--color-blue);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}
.job-accordion[open] .job-accordion-summary::after {
  transform: translateY(-50%) rotate(-135deg);
}
.job-accordion-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-blue);
}
.job-accordion-teaser {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.job-accordion-content {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.job-accordion[open] .job-accordion-content {
  animation: fade-up 260ms ease both;
}
.job-accordion-content > p:first-child {
  margin: 0 0 1.25rem;
  padding-top: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}
.job-card-block {
  margin-bottom: 1.25rem;
}
.job-accordion-content .job-card-block:last-child {
  margin-bottom: 0;
}
.job-card-block h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-text);
}
.job-card-block p,
.job-card-block ul {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.benefits-section .section-title {
  margin-bottom: 1.5rem;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.benefit-card {
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  border-radius: 12px;
  border: 1px solid rgba(16, 33, 139, 0.08);
  box-shadow: 0 8px 20px rgba(16, 33, 139, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(16, 33, 139, 0.12);
}
.benefit-card-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-blue);
}
.benefit-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
}
.karriere-cta {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
  color: var(--color-white);
  padding: 2.25rem;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(16, 33, 139, 0.2);
}
.karriere-cta .section-title,
.karriere-cta p {
  color: var(--color-white);
}
.karriere-cta a {
  color: var(--color-white);
  text-decoration: underline;
}
.karriere-cta a:hover {
  opacity: 0.9;
}
.karriere-cta .btn-primary {
  background: var(--color-white);
  color: var(--color-blue);
  border-color: var(--color-white);
  text-decoration: none;
}
.karriere-cta .btn-primary:hover {
  background: var(--color-bg);
  color: var(--color-blue);
  text-decoration: none;
}
.weiterkommen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.weiterkommen-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  border: 1px solid rgba(16, 33, 139, 0.08);
  box-shadow: 0 8px 20px rgba(16, 33, 139, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.weiterkommen-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(16, 33, 139, 0.12);
}
.weiterkommen-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--color-blue);
}
.weiterkommen-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.karriere-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-down {
  margin-top: 1.5rem;
}
.nav-down a {
  font-weight: 500;
  margin-right: 0.5rem;
}
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
  .container {
    padding: 0 1.25rem;
  }
  .hero {
    min-height: 28rem;
    padding-top: calc(var(--header-height, 6rem) + 3.5rem);
    padding-bottom: 3.8rem;
  }
  .karriere-hero {
    padding-top: calc(var(--header-height, 6rem) + 3.1rem);
    padding-bottom: 5.1rem;
  }
  .unternehmen-hero {
    padding-top: calc(var(--header-height, 6rem) + 3rem);
    padding-bottom: 3.4rem;
  }
  .lead {
    font-size: 1.05rem;
  }
  .content-split,
  .content-split-reverse {
    grid-template-columns: 1fr;
  }
  .content-split-spacious {
    gap: 2rem;
  }
  .content-split-compact-image,
  .content-split-compact-image.content-split-reverse {
    grid-template-columns: 1fr;
  }
  .history-timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-line {
    display: none;
  }
  .einstieg-kacheln {
    grid-template-columns: 1fr;
    margin-top: -2.2rem;
    margin-bottom: 3.25rem;
    gap: 1rem;
  }
  .einstieg-kachel {
    min-height: 124px;
    padding: 1.2rem 1rem;
  }
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
  .weiterkommen-grid {
    grid-template-columns: 1fr;
  }
  .job-accordion-summary {
    padding: 1rem 2.9rem 1rem 1rem;
  }
  .job-accordion-summary::after {
    right: 1rem;
    width: 0.68rem;
    height: 0.68rem;
  }
  .job-accordion-content {
    padding: 0 1rem 1rem;
  }
  .karriere-cta {
    padding: 1.4rem 1.1rem;
  }
  .testimonial-box {
    padding: 1.1rem 0.95rem;
  }
  .testimonial-quote {
    font-size: 0.98rem;
    line-height: 1.55;
  }
  .testimonial-btn {
    width: 2.3rem;
    height: 2.3rem;
  }
}
@media (max-width: 480px) {
  :root {
    --header-height: 4.625rem;
  }
  .hero {
    min-height: 22rem;
    padding-top: calc(var(--header-height, 6rem) + 2.8rem);
    padding-bottom: 3.1rem;
  }
  .karriere-hero {
    padding-top: calc(var(--header-height, 6rem) + 2.6rem);
    padding-bottom: 4.15rem;
  }
  .unternehmen-hero {
    padding-top: calc(var(--header-height, 6rem) + 2.5rem);
    padding-bottom: 2.8rem;
  }
  .section {
    padding: 54px 0;
  }
  .section-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
  }
  .two-col-grid {
    gap: 1.5rem;
  }
  .two-col-img {
    height: 205px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card {
    padding: 0.85rem 0.85rem 1rem;
  }
  .why-ring {
    width: 96px;
    height: 96px;
  }
  .why-percent {
    font-size: 1.45rem;
  }
  .footer-inner {
    gap: 1.35rem;
    padding: 2.2rem 0 1.45rem;
  }
}

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

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .karriere-hero-title,
  .karriere-hero-lead,
  .job-accordion[open] .job-accordion-content {
    animation: none;
  }
  .einstieg-kachel,
  .job-accordion,
  .benefit-card,
  .weiterkommen-card {
    transition: none;
  }
  .two-col-img img,
  .competency-cards .card,
  .contact-form input,
  .contact-form textarea {
    transition: none;
  }
  .einstieg-kachel {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .competency-cards .card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
