:root {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --surface-muted: #f4f3f3;
  --text: #1a1c1c;
  --muted: #335792;
  --primary: #1a2c6b;
  --primary-2: #274188;
  --primary-dark: #132257;
  --accent: #5a84c2;
  --accent-soft: #d8e5f7;
  --border-soft: rgba(199, 197, 209, 0.5);
  --shadow: 0 22px 38px rgba(26, 28, 28, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  padding-bottom: 88px;
}

.container {
  width: min(1040px, 100% - 32px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 6px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(150px, 28vw, 220px);
  height: auto;
}

.section {
  padding: 42px 0;
}

.section-muted {
  background: var(--surface-muted);
}

.hero {
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(90, 132, 194, 0.2), transparent 65%),
    linear-gradient(180deg, #eef4fc 0%, var(--bg) 70%);
  padding-top: 56px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.hero-media {
  max-width: 520px;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--primary);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--primary);
}

h3 {
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  color: var(--primary);
}

.lead {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 56ch;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
}

.lead-small {
  margin: 0;
  color: var(--muted);
}

.hero-paper-text {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  line-height: 1.55;
  max-width: none;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.hero-actions .btn-hero-pair {
  width: 100%;
  box-sizing: border-box;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  text-align: center;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  padding: 12px 18px;
  background: linear-gradient(150deg, var(--primary), var(--primary-2));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease;
  box-shadow: var(--shadow);
}

.btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-compact {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 0.88rem;
  box-shadow: none;
}

.btn-light {
  background: #e9eff8;
  color: var(--primary);
  box-shadow: none;
}

.btn-wide {
  width: min(380px, 100%);
}

/* Mobile: nur Header-CTA + sticky .mobile-cta; alle anderen Bewerbungs-CTAs ausblenden */
@media (max-width: 759px) {
  .cta-hide-mobile {
    display: none !important;
  }
}

.hero-visual {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 6px;
  margin-bottom: 2px;
}

.visual-card {
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow);
}

.visual-card h3 {
  color: inherit;
  margin-bottom: 4px;
}

.visual-card p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.95rem;
}

.card-1 {
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
}

.card-2 {
  background: linear-gradient(140deg, #4b73ab, var(--accent));
}

.benefit-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.learn-head-photo {
  margin-bottom: 18px;
}

.learn-head-photo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.learn-grid .card h3 {
  font-size: clamp(1rem, 2.8vw, 1.08rem);
  line-height: 1.3;
}

.learn-grid .card p {
  font-size: 0.92rem;
  line-height: 1.55;
}

.section-head {
  margin-bottom: 14px;
}

/* Team: Mobile = horizontal Slideshow (Scroll-Snap), ab Tablet = Grid */
.team-slider {
  margin-top: 16px;
}

.team-slider .team-list {
  display: flex;
  gap: 12px;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  padding: 0 16px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  box-sizing: border-box;
}

.team-slider .team-list::-webkit-scrollbar {
  display: none;
}

.team-slider .team-card {
  flex: 0 0 calc(100vw - 56px);
  max-width: min(400px, calc(100vw - 56px));
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}

.team-slider-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 0 16px;
}

.team-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--border-soft);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.team-slider-dot.is-active {
  background: var(--primary);
  transform: scale(1.2);
}

@media (max-width: 759px) {
  .team-slider-dots:not([hidden]) {
    display: flex;
  }
}

.team-list .team-card,
.team-slider .team-card {
  min-height: 0;
  align-self: start;
}

.team-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
}

.team-card h3 {
  margin-bottom: 2px;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Rahmen mit festem Seitenverhältnis: verhindert, dass hohe PNGs die Grid-Zeile aufblasen */
.team-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--surface-muted);
}

.team-photo-frame .team-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  margin: 0;
  border-radius: 0;
}

.team-card.featured {
  background: linear-gradient(165deg, var(--primary) 5%, var(--primary-2) 95%);
}

.team-card.featured h3,
.team-card.featured p {
  color: #fff;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.team-card.featured .avatar {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.center-action {
  margin-top: 16px;
}

.cta-wrap {
  text-align: center;
}

.steps {
  list-style: decimal;
  margin: 14px auto 20px;
  padding-left: 20px;
  max-width: 430px;
  color: var(--muted);
  text-align: left;
}

.steps li + li {
  margin-top: 6px;
}

.contact ul {
  list-style: none;
  margin: 12px 0 18px;
  padding: 0;
  color: var(--muted);
}

.contact li + li {
  margin-top: 5px;
}

.contact-photo-wrap {
  margin-bottom: 18px;
}

.contact-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.flags-photo-wrap {
  margin-top: 28px;
}

.flags-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 10px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  padding: 14px 16px;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: var(--shadow);
}

@media (min-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .hero {
    padding-top: 68px;
  }

  .hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-slider .team-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    gap: 12px;
  }

  .team-slider .team-card {
    flex: none;
    max-width: none;
    scroll-snap-align: unset;
    scroll-snap-stop: normal;
  }

  .team-slider-dots {
    display: none !important;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    font-size: 0.92rem;
  }

  .mobile-cta {
    display: none;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 64px 0;
  }

  .hero-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 30px;
  }

  .hero-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
