:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-soft: #eef2f8;
  --card: #ffffff;
  --text: #0b1320;
  --muted: #4f5d7a;
  --primary: #3a7bd5;
  --accent: #2ab6b0;
  --accent-2: #8a5cff;
  --shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(58, 123, 213, 0.12), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(42, 182, 176, 0.12), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  padding: 96px 6vw;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6vw;
}

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.logo-image {
  height: 160px;
  width: auto;
  margin: -24px 0;
}

.logo-text {
  font-weight: 700;
}

.logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 16px rgba(58, 123, 213, 0.35);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.nav-links .btn-primary,
.nav-links .btn-primary:visited,
.nav-links .btn-primary:hover,
.nav-links .btn-primary:active,
.nav-links .btn-primary:focus {
  color: #ffffff;
}

.nav-links a:hover {
  color: var(--text);
}

.mobile-menu {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  flex-direction: column;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(15, 23, 42, 0.06);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.55);
  opacity: 0;
  pointer-events: none;
  border: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

body.nav-open {
  overflow: hidden;
}

.hero {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  min-height: 85vh;
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.lead {
  max-width: 520px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(58, 123, 213, 0.25);
}

.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  color: #ffffff;
}

.btn-ghost {
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.hero-stats div {
  padding: 16px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-stats strong {
  font-size: 1.2rem;
  display: block;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  width: 520px;
  height: 420px;
  min-height: 420px;
  max-width: 520px;
  overflow: visible;
  justify-self: end;
  margin-left: auto;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  pointer-events: none;
  z-index: 1;
  font-size: 0.85rem;
  line-height: 1.2;
  color: rgba(11, 19, 32, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

.orb-2 {
  width: 180px;
  height: 180px;
  top: 36px;
  right: 284px;
}

.glass-card {
  position: absolute;
  bottom: -150px;
  right: 62px;
  background: rgba(255, 255, 255, 0.9);
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  width: 490px;
  z-index: 2;
}

.glass-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  position: relative;
}

.section.alt {
  background: var(--bg-soft);
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
}

.section-actions {
  margin-top: 24px;
}

.grid {
  display: grid;
  gap: 22px;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.role-card > a {
  align-self: flex-start;
}

.role-card h3 {
  margin-bottom: 8px;
}

.role-details {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
}

.role-details h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 8px;
  padding-left: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.checklist li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.tag {
  display: inline-block;
  margin-top: 8px;
  margin-right: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(58, 123, 213, 0.12);
  color: #2d3c5a;
}

.timeline {
  display: grid;
  gap: 20px;
  list-style: none;
}

.timeline li {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.timeline h3 {
  margin-bottom: 8px;
}

.quote {
  font-style: italic;
}

.faq {
  display: grid;
  gap: 16px;
}

.faq details {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding-left: 0;
  margin: 0;
  color: var(--muted);
}

.contact-list a {
  color: inherit;
  font-weight: 600;
}

.hours-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding-left: 0;
  margin: 0;
  color: var(--muted);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cta {
  background: linear-gradient(135deg, rgba(58, 123, 213, 0.15), rgba(42, 182, 176, 0.15));
}

.cta-inner {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  background: #ffffff;
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cta-form {
  display: grid;
  gap: 16px;
}

.cta-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--text);
}

.quick-apply-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.quick-apply-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.quick-apply-scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 26, 0.55);
}

.quick-apply-panel {
  position: relative;
  width: min(560px, 92vw);
  max-height: min(72vh, 640px);
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow);
  z-index: 1;
}

.quick-apply-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.quick-apply-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  color: var(--muted);
}

.quick-apply-lead {
  color: var(--muted);
  margin: 10px 0 20px;
}

.quick-apply-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.quick-apply-progress span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
}

.quick-apply-progress span.is-active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.quick-apply-form {
  display: grid;
  gap: 16px;
}

.quick-apply-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-apply-form input,
.quick-apply-form textarea,
.quick-apply-form select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

.quick-apply-step {
  display: none;
  gap: 12px;
}

.quick-apply-step.is-active {
  display: grid;
}

.quick-apply-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quick-apply-actions .btn {
  min-width: 120px;
}

.quick-apply-actions [data-step-submit][hidden],
.quick-apply-actions [data-step-next][hidden] {
  display: none;
}

.quick-apply-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.quick-apply-consent input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.quick-apply-consent span {
  display: inline;
}

.quick-apply-consent a {
  color: var(--primary);
  font-weight: 600;
  margin-left: 6px;
  text-decoration: underline;
}

.quick-apply-error {
  background: rgba(234, 88, 12, 0.12);
  color: #7a2d0a;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(234, 88, 12, 0.3);
  font-size: 0.85rem;
}

.quick-apply-thanks {
  text-align: center;
  padding: 24px 12px;
}

.quick-apply-thanks h3 {
  margin-bottom: 8px;
}

.quick-apply-thanks p {
  color: var(--muted);
}

.quick-apply-success {
  background: rgba(42, 182, 176, 0.1);
  color: #116e6a;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(42, 182, 176, 0.3);
  font-size: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 32px 6vw 48px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 10;
  }

  body {
    padding-top: 60px;
  }

  .nav {
    padding: 6px 6vw;
    gap: 12px;
  }

  .logo {
    gap: 8px;
  }

  .logo-text {
    display: none;
  }

  .logo-image {
    height: 42px;
    margin: 0;
  }

  .nav-links.desktop-links {
    display: none;
  }

  .mobile-menu {
    position: fixed !important;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    display: flex !important;
    flex-direction: column;
    background: #f7f8fb;
    padding: calc(18px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 11;
    pointer-events: none;
    visibility: hidden;
    box-shadow: -24px 0 48px rgba(15, 23, 42, 0.12);
    border-left: 1px solid #e3e8f2;
    border-radius: 0;
  }

  .mobile-menu.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #0b1320;
    gap: 16px;
    margin-bottom: 16px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
  }

  .mobile-brand-text {
    display: grid;
    gap: 2px;
  }

  .mobile-brand-text strong {
    font-size: 1rem;
  }

  .mobile-brand-text span {
    font-size: 0.75rem;
    color: #5b6785;
    letter-spacing: 0.3px;
  }

  .mobile-divider {
    height: 1px;
    background: #e1e6f0;
    margin: 4px 0 18px;
  }

  .mobile-menu-links {
    display: grid;
    gap: 12px;
    margin-top: 4px;
  }

  .mobile-menu-links a {
    color: #0b1320;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e7f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-links a:hover {
    color: #ffffff;
    color: #0b1320;
    background: #f0f3f9;
  }

  .mobile-menu-links .btn-primary {
    margin-top: 12px;
    justify-content: center;
    padding: 16px 18px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(58, 123, 213, 0.25);
  }

  .mobile-menu-links .btn-primary:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
  }

  .mobile-menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e1e6f0;
    display: grid;
    gap: 12px;
  }

  .mobile-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .mobile-footer-links a {
    font-size: 0.85rem;
    color: #5b6785;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
  }

  .mobile-footer-links a:hover {
    color: #0b1320;
    background: #f0f3f9;
  }

  .mobile-copyright {
    font-size: 0.75rem;
    color: #7a879f;
  }

  .nav-toggle {
    display: inline-flex !important;
    z-index: 12;
  }

  .nav-scrim {
    display: block;
  }

  body.nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-visual {
    order: 1;
    width: 100%;
    max-width: 100%;
    height: 320px;
    min-height: 320px;
  }

  .hero-content {
    order: 0;
  }

  .role-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-image {
    height: 64px;
  }
}

@media (max-width: 640px) {
  .quick-apply-panel {
    padding: 18px 16px;
    max-height: 80vh;
  }

  .quick-apply-actions {
    flex-direction: column;
  }

  .quick-apply-actions .btn {
    width: 100%;
  }

  .quick-apply-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    top: 127px;
    margin-top: 60px;
  }

  .orb-2 img {
    width: 700px;
    bottom: 70px;
    position: absolute;
    left: -104px;
  }

  .glass-card {
    position: relative;
    bottom: auto;
    right: auto;
    width: calc(100% - 32px);
    margin: 24px auto 0;
  }

  .orb-1 {
    width: 160px;
    height: 160px;
    top: -30px;
    right: 10px;
  }
}

@media (max-width: 560px) {
  .hero-visual {
    width: calc(100% + 32px);
    height: 375px;
  }

  .orb-1 {
    width: 140px;
    height: 140px;
    top: -30px;
    right: 5px;
  }

  .glass-card {
    width: calc(100% - 24px);
    margin: 16px auto 0;
    padding: 18px;
  }
}

@media (max-width: 560px) {
  section {
    padding: 72px 6vw;
  }

  .cta-inner {
    padding: 28px;
  }
}

@media (min-width: 1025px) {
  .site-header {
    position: fixed !important;
    width: 100%;
    left: 0;
  }

  body {
    padding-top: 140px;
  }

  .site-header.is-compact .nav {
    padding: 4px 6vw;
  }

  .site-header.is-compact .logo-image {
    height: 72px;
    margin: 0;
  }

  .site-header.is-compact .logo-text {
    font-size: 0.95rem;
  }
}

/* WordPress-spezifische Ergänzungen */
.karriere-portal-page {
  margin: 0;
  padding: 0;
}

/* CTA-Formular Ergänzungen */
.cta-form select,
.cta-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  width: 100%;
}

.cta-form textarea {
  min-height: 80px;
}

.consent-label {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.consent-label span {
  flex: 1;
}

.consent-label a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Formular-Nachrichten */
.form-message {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  margin-top: 8px;
}

.form-message:empty {
  display: none;
}

.form-message-success {
  background: rgba(42, 182, 176, 0.12);
  color: #116e6a;
  border: 1px solid rgba(42, 182, 176, 0.3);
}

.form-message-error {
  background: rgba(234, 88, 12, 0.12);
  color: #7a2d0a;
  border: 1px solid rgba(234, 88, 12, 0.3);
}
