/* ============================================================
   SERRUZ — Clean Corporate Design System
   Heidelberg Materials Corporate Style
   ============================================================ */

/* ----- 1. CSS Custom Properties ------------------------------ */

:root {
  --accent: #004E2B;
  --accent-hover: #003d22;
  --accent-rgb: 0, 78, 43;
  --accent-light: #e8f5ee;

  --accent-green: #00DD39;
  --cta: #e64215;
  --cta-hover: #c93a12;
  --cta-rgb: 230, 66, 21;

  --dark: #1a1a1a;
  --dark-rgb: 26, 26, 26;
  --dark-surface: #222222;
  --dark-muted: #2c2c2c;

  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;

  --surface: #f8f8f5;
  --surface-warm: #f5f3f0;
  --border-light: rgba(0,0,0,0.06);

  --header-bg: #ffffff;
  --header-text: #333333;
  --header-border: #004E2B;
  --footer-bg: var(--surface);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-accent: 0 4px 16px rgba(var(--accent-rgb), 0.2);
  --shadow-cta: 0 4px 16px rgba(var(--cta-rgb), 0.25);
}

[data-brand="ruz"] {
  --header-bg: #ffffff;
  --header-text: #333333;
}

/* ----- 2. Base / Reset --------------------------------------- */

*, *::before, *::after {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

/* ----- 3. Custom Scrollbar ----------------------------------- */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* ----- 4. Typography Enhancements ---------------------------- */

.heading-xl {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.heading-lg {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading-sm {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.label-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Gradient text — legacy, now just inherits */
.gradient-text {
  color: inherit;
}

/* ----- 5. Header --------------------------------------------- */

.site-header {
  background: var(--header-bg);
  border-bottom: 2px solid var(--header-border);
  transition: box-shadow var(--transition-base);
}

/* Legacy classes — map to default solid style */
.site-header--transparent,
.site-header--solid {
  background: var(--header-bg);
  border-bottom: 2px solid var(--header-border);
}

.site-header .nav-link {
  color: var(--text-secondary);
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--accent);
}

.site-header .burger-btn span {
  background: var(--text-primary);
}

/* Scrolled header — just add shadow */
.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

/* Scrolled overrides for legacy transparent class */
.site-header--transparent.scrolled {
  background: var(--header-bg);
  color: var(--header-text);
}

.site-header--transparent.scrolled .nav-link {
  color: var(--text-secondary);
}

.site-header--transparent.scrolled .nav-link:hover,
.site-header--transparent.scrolled .nav-link.active {
  color: var(--accent);
}

.site-header--transparent.scrolled .burger-btn span {
  background: var(--text-primary);
}

/* Nav links */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ----- 6. Toggle Switch -------------------------------------- */

.brand-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  padding: 3px;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.brand-toggle__option {
  position: relative;
  z-index: 1;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  user-select: none;
  text-decoration: none;
}

.brand-toggle__option:hover {
  color: var(--text-primary);
}

.brand-toggle__option.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.3);
}

/* Mobile menu toggle variant */
.mobile-menu .brand-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255,255,255,0.15);
}

.mobile-menu .brand-toggle__option {
  color: rgba(255, 255, 255, 0.4);
}

.mobile-menu .brand-toggle__option:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ----- 6b. DE/EN Header Toggle ------------------------------- */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  padding: 2px;
  gap: 0;
}

.lang-toggle__opt {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
  user-select: none;
}

.lang-toggle__opt:hover {
  color: var(--text-primary);
}

.lang-toggle__opt.active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

/* Mobile variant */
.lang-toggle--mobile {
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  padding: 3px;
  margin-bottom: 0.75rem;
}

.lang-toggle--mobile .lang-toggle__opt {
  color: rgba(255,255,255,0.4);
  padding: 6px 16px;
}

.lang-toggle--mobile .lang-toggle__opt:hover {
  color: rgba(255,255,255,0.7);
}

.lang-toggle--mobile .lang-toggle__opt.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* ----- 6c. Karriere Language Bar ----------------------------- */

.karriere-lang-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 10;
}

.karriere-lang-bar__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.karriere-lang-bar__globe {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.karriere-lang-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.karriere-lang-bar__item:hover {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.karriere-lang-bar__item--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  cursor: default;
}

.karriere-lang-bar__item--active:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.karriere-lang-bar__short {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.karriere-lang-bar__full {
  font-weight: 400;
  opacity: 0.8;
}

.karriere-lang-bar__item--active .karriere-lang-bar__full {
  opacity: 1;
}

@media (max-width: 640px) {
  .karriere-lang-bar__inner {
    gap: 0.35rem;
    padding: 0.625rem 1rem;
  }
  .karriere-lang-bar__item {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }
  .karriere-lang-bar__full {
    display: none;
  }
  .karriere-lang-bar__globe {
    display: none;
  }
}

/* ----- 7. Hero ----------------------------------------------- */

.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 10s ease-out;
  will-change: transform;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: relative;
  overflow: hidden;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(var(--accent-rgb), 0.15) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-overlay > *:not(.hero-bg):not(.hero-building) {
  position: relative;
  z-index: 2;
}

/* Hero Banner Layout (HM-style) */
.hero-banner {
  position: relative;
  min-height: 65vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-top: 64px;
}

@media (min-width: 1024px) {
  .hero-banner {
    margin-top: 80px;
  }
}

.hero-banner__image {
  position: absolute;
  inset: 0;
}

.hero-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,15,15,0.7) 0%,
    rgba(15,15,15,0.4) 35%,
    rgba(15,15,15,0.2) 60%,
    rgba(15,15,15,0.08) 100%
  );
  z-index: 1;
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: 3rem;
  width: 100%;
}

/* Legacy elements (unused) */
.hero-banner__badge,
.hero-banner__curve {
  display: none;
}

@media (max-width: 639px) {
  .hero-banner {
    min-height: 60vh;
    max-height: none;
  }
  .hero-banner__content {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }
  .hero-banner__badge {
    display: none;
  }
}

/* Hero Split Layout (legacy) */
.hero-split {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 50% 50%;
  overflow: hidden;
  background: #ffffff;
}

.hero-split__left {
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  position: relative;
  z-index: 2;
}

.hero-split__content {
  max-width: 580px;
  margin-left: auto;
  padding: 0 3rem 0 2rem;
}

.hero-split__right {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-split__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* No overlay needed on clean corporate style */
.hero-split__right::before {
  display: none;
}

@media (max-width: 1023px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    min-height: auto;
  }
  .hero-split__left {
    padding: 7rem 1.5rem 3rem;
    order: 1;
  }
  .hero-split__content {
    margin-left: 0;
    padding: 0;
    max-width: 100%;
  }
  .hero-split__right {
    order: 2;
    height: 280px;
    margin: 0 1.5rem 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .hero-split__right::before {
    display: none;
  }
}

/* Subpage Hero — clean corporate style */
.hero-subpage {
  position: relative;
  padding: 10rem 0 5rem;
  background: var(--surface);
  color: var(--text-primary);
  overflow: hidden;
}

.hero-subpage::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-subpage::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--accent-rgb), 0.15), transparent);
}

/* Diagonal clip on hero bottom */
.hero-clip::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 100px;
  background: #ffffff;
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 3;
}

.hero-clip-dark::before {
  background: var(--dark);
}

.hero-clip-surface::before {
  background: var(--surface);
}

/* Hero content animation */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Animated line under hero heading */
.hero-line {
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1.5rem auto 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}

.hero-line.visible {
  transform: scaleX(1);
}

/* ----- 8. Stats Bar ------------------------------------------ */

.stats-bar {
  position: relative;
  z-index: 4;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-green);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.6);
}

/* Light variant */
.stat-label-dark {
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  align-self: center;
}

.stat-divider-dark {
  background: var(--border-light);
}

/* ----- 9. Scroll Animations ---------------------------------- */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ----- 10. Cards --------------------------------------------- */

.card-modern {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
}

.card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  z-index: 2;
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--accent-rgb), 0.15);
}

.card-modern:hover::before {
  transform: scaleX(1);
}

/* Card with icon */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base), transform var(--transition-bounce);
}

.card-modern:hover .card-icon {
  background: var(--accent);
  transform: scale(1.05) rotate(-3deg);
}

.card-modern:hover .card-icon svg {
  color: #ffffff;
}

/* Hover effect legacy */
.card-hover {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ----- 11. Image Gallery / Refs ------------------------------ */

.ref-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.ref-card img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ref-card:hover img {
  transform: scale(1.08);
}

.ref-card .ref-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.ref-card:hover .ref-overlay {
  opacity: 1;
}

.ref-card .ref-label {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  transform: translateY(10px);
  transition: transform var(--transition-base);
}

.ref-card:hover .ref-label {
  transform: translateY(0);
}

/* ----- 12. Buttons ------------------------------------------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

/* CTA Button (orange highlight) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--cta);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background: var(--cta-hover);
  box-shadow: var(--shadow-cta);
  transform: translateY(-2px);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta .btn-arrow {
  transition: transform var(--transition-base);
}

.btn-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-white:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Arrow animation in buttons */
.btn-arrow {
  transition: transform var(--transition-base);
}

.btn-primary:hover .btn-arrow,
.btn-outline:hover .btn-arrow,
.btn-white:hover .btn-arrow {
  transform: translateX(4px);
}

/* Link style */
.link-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cta);
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--transition-base);
}

.link-accent:hover {
  gap: 12px;
}

/* ----- 13. Section Utilities --------------------------------- */

/* Diagonal section divider */
.section-divider {
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

/* Accent bar */
.accent-bar {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.accent-bar-lg {
  width: 64px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* Background utilities */
.bg-cover-center {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Grain texture overlay */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
  pointer-events: none;
  z-index: 0;
}

/* Text shadow */
.text-shadow {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ----- 14. Mobile Menu --------------------------------------- */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: var(--accent);
  z-index: 100;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  padding: 6rem 2.5rem 2.5rem;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Burger animation */
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: #fff !important;
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: #fff !important;
}

/* Mobile menu nav links */
.mobile-nav-link {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  padding-left: 8px;
}

.mobile-nav-link.active {
  font-weight: 700;
}

/* ----- 15. Accent Utility Classes ---------------------------- */

.bg-accent {
  background-color: var(--accent);
}

.text-accent {
  color: var(--cta);
}

.border-accent {
  border-color: var(--accent);
}

.hover\:bg-accent-hover:hover {
  background-color: var(--accent-hover);
}

.hover\:text-accent:hover {
  color: var(--cta);
}

.ring-accent {
  --tw-ring-color: var(--accent);
}

.bg-accent\/10 {
  background-color: rgba(var(--accent-rgb), 0.1);
}

.bg-accent\/20 {
  background-color: rgba(var(--accent-rgb), 0.2);
}

.border-accent\/30 {
  border-color: rgba(var(--accent-rgb), 0.3);
}

/* ----- 16. Smooth Image Zoom --------------------------------- */

.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
  transform: scale(1.06);
}

/* ----- 17. Feature Showcase (Alternating Layout) ------------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

@media (max-width: 1023px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-row.reverse {
    direction: ltr;
  }
}

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-image:hover img {
  transform: scale(1.04);
}

/* Floating accent square decoration */
.feature-image::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 3px solid var(--accent);
  border-radius: 12px;
  bottom: -20px;
  right: -20px;
  z-index: -1;
  opacity: 0.3;
}

/* ----- 18. Job Listings -------------------------------------- */

.job-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.job-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform var(--transition-base);
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--accent-rgb), 0.15);
}

.job-card:hover::before {
  transform: scaleY(1);
}

.job-card__info {
  flex: 1;
  min-width: 0;
}

.job-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.job-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.job-card__tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.job-card__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base), transform var(--transition-base);
}

.job-card:hover .job-card__arrow {
  background: var(--accent);
  transform: translateX(4px);
}

.job-card:hover .job-card__arrow svg {
  color: #ffffff;
}

.job-card__arrow svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: color var(--transition-fast);
}

/* Benefit pill for karriere */
.benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.benefit-pill:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.benefit-pill svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .job-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
  }

  .job-card__arrow {
    align-self: flex-end;
    margin-top: -2rem;
  }
}

/* ----- 19. Focus / Accessibility ----------------------------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- 19. Footer -------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  position: relative;
}

.footer-top-line {
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
}

/* ----- 21. Responsive Tweaks --------------------------------- */

@media (max-width: 1023px) {
  .hero-subpage {
    padding: 8rem 0 3.5rem;
  }
}

@media (max-width: 767px) {
  /* Reduce section padding on tablets/phones */
  section[class*="py-24"] {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* Stats bar: tighter on tablets */
  .stat-item {
    padding: 1.25rem 0.75rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }
}

@media (max-width: 639px) {
  .hero-section {
    min-height: 85vh;
  }

  .hero-clip::before {
    height: 50px;
  }

  .hero-subpage {
    padding: 7rem 0 3rem;
  }

  /* Stats bar: compact on phones */
  .stat-item {
    padding: 0.875rem 0.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
  }

  /* Buttons: ensure 44px min tap target */
  .btn-primary, .btn-outline, .btn-white {
    padding: 14px 24px;
    font-size: 0.875rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Cards: reduce padding on mobile */
  .card-modern {
    padding: 1.25rem !important;
  }

  /* Refs: always show overlay on mobile (no hover) */
  .ref-card .ref-overlay {
    opacity: 1;
  }

  .ref-card .ref-label {
    transform: translateY(0);
    font-size: 0.875rem;
  }

  .card-modern:hover {
    transform: none;
  }

  .label-tag {
    font-size: 0.7rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  /* Reduce heading sizes further on phones */
  .heading-xl {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .heading-lg {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  /* Fix inline min-heights on cards */
  [style*="min-height: 320px"],
  [style*="min-height: 340px"],
  [style*="min-height: 300px"],
  [style*="min-height: 280px"] {
    min-height: 220px !important;
  }

  /* Tighter gaps on mobile */
  .gap-12 { gap: 2rem; }
  .gap-8 { gap: 1.5rem; }

  /* Footer columns: stack fully */
  .site-footer .grid {
    gap: 2rem;
  }
}

/* Small phones (iPhone SE, etc.) */
@media (max-width: 374px) {
  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.55rem;
  }

  .heading-xl {
    font-size: 1.5rem;
  }

  .btn-primary, .btn-outline, .btn-white {
    padding: 12px 20px;
    font-size: 0.8125rem;
    min-height: 44px;
  }

  .karriere-lang-bar__item {
    padding: 0.3rem 0.5rem;
    font-size: 0.6875rem;
  }
}

/* ----- 22. Cookie Consent Banner ----------------------------- */

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.3s ease;
}

.cookie-overlay--hidden {
  opacity: 0;
  pointer-events: none;
}

.cookie-banner {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 -8px 60px rgba(0,0,0,0.2);
  max-width: 720px;
  width: 100%;
  padding: 2rem;
  animation: cookieSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  transition: all var(--transition-fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn--primary {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

.cookie-btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.4);
  transform: translateY(-1px);
}

.cookie-btn--outline {
  background: transparent;
  color: var(--text-primary);
  padding: 0.75rem 1.75rem;
  border: 1.5px solid var(--border-light);
}

.cookie-btn--outline:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.cookie-btn--link {
  background: none;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-btn--link:hover {
  color: var(--text-primary);
}

/* Settings modal */
.cookie-settings {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: cookieFadeIn 0.3s ease;
}

@keyframes cookieFadeIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.cookie-settings__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
}

.cookie-settings__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cookie-settings__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.cookie-settings__close:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.cookie-settings__body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-settings__footer {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-light);
}

.cookie-cat {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.cookie-cat:last-child {
  border-bottom: none;
}

.cookie-cat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-cat__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9375rem;
}

.cookie-cat__label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.cookie-cat__label input[type="checkbox"]:disabled {
  cursor: default;
  opacity: 0.5;
}

.cookie-cat__name {
  font-weight: 600;
  color: var(--text-primary);
}

.cookie-cat__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  padding: 2px 8px;
  border-radius: 9999px;
}

.cookie-cat__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
  padding-left: 2.5rem;
}

/* Footer cookie link (button reset) */
.cookie-settings-link {
  cursor: pointer;
  color: #6b7280;
  text-decoration: none;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: left;
}

.cookie-settings-link:hover {
  color: var(--text-primary);
}

@media (max-width: 639px) {
  .cookie-banner {
    padding: 1.5rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-btn--primary,
  .cookie-btn--outline {
    width: 100%;
  }

  .cookie-settings {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    margin: 0.5rem;
    top: 50%;
    left: 50%;
  }

  .cookie-settings__header,
  .cookie-settings__body,
  .cookie-settings__footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .cookie-settings__footer {
    flex-direction: column;
  }

  .cookie-settings__footer .cookie-btn {
    width: 100%;
  }
}

/* ============================================================
   25. Accessibility Widget (Barrierefreiheit / BFSG)
   ============================================================ */

/* --- Trigger Button (left side) --- */
.a11y-trigger {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 3px solid #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.a11y-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.a11y-trigger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.a11y-trigger--active {
  background: var(--accent);
}

/* --- Panel --- */
.a11y-panel {
  position: fixed;
  left: 16px;
  bottom: 76px;
  z-index: 9999;
  width: 300px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.a11y-panel--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.a11y-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}

.a11y-panel__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.a11y-panel__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.a11y-panel__close:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.05);
}

.a11y-panel__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Body */
.a11y-panel__body {
  padding: 16px 20px;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
}

/* Sections */
.a11y-section {
  margin-bottom: 12px;
}

.a11y-section__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* Font size controls */
.a11y-size-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.a11y-size-display {
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 48px;
}

.a11y-btn--size {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.a11y-btn--size:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.a11y-btn--size:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Full-width toggle buttons */
.a11y-btn--full {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.a11y-btn--full:hover {
  background: var(--accent-light);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.a11y-btn--full:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.a11y-btn--full.a11y-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.a11y-btn--full.a11y-btn--active svg {
  color: #fff;
}

/* Reset */
.a11y-section--reset {
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  margin-top: 16px;
}

.a11y-btn--reset {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.a11y-btn--reset:hover {
  color: var(--accent);
}

.a11y-btn--reset:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Legal link */
.a11y-section--legal {
  margin-bottom: 0;
  padding-top: 8px;
}

.a11y-legal-link {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.a11y-legal-link:hover {
  color: var(--accent);
}

/* ============================================================
   26. Accessibility Mode Styles
   ============================================================ */

/* High contrast mode */
.a11y-high-contrast {
  filter: contrast(1.35);
}

.a11y-high-contrast body {
  background: #fff !important;
}

.a11y-high-contrast .text-gray-500,
.a11y-high-contrast .text-gray-600 {
  color: #333 !important;
}

.a11y-high-contrast .text-gray-400 {
  color: #555 !important;
}

/* Highlight links mode */
.a11y-highlight-links a:not(.a11y-btn--full):not(.a11y-btn--size):not(.a11y-btn--reset):not(.a11y-panel__close):not(.a11y-legal-link):not(.a11y-trigger) {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px;
  text-decoration: underline !important;
}

/* Stop animations mode */
.a11y-no-animations *,
.a11y-no-animations *::before,
.a11y-no-animations *::after {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

.a11y-no-animations .hero-bg {
  transform: none !important;
}

.a11y-no-animations .fade-up,
.a11y-no-animations .fade-left,
.a11y-no-animations .fade-right,
.a11y-no-animations .scale-in {
  opacity: 1 !important;
  transform: none !important;
}

/* --- Mobile adjustments --- */
@media (max-width: 640px) {
  .a11y-panel {
    left: 8px;
    right: 8px;
    bottom: 72px;
    width: auto;
  }

  .a11y-trigger {
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }
}
