/* ==========================================================================
   ISPA e.V. CSS STYLESHEET
   --------------------------------------------------------------------------
   Author: Frontend Developer
   Design: Modern, organic, fluid, responsive
   Typography: Plus Jakarta Sans
   Layout: Flexbox & CSS Grid (Max-width: 1440px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM & CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --color-primary: #799439;       /* Olive Green */
  --color-primary-dark: #516F2C;  /* Dark Olive */
  --color-primary-darker: #394523;/* Forest Green */
  --color-accent-light: #C7D5B5;  /* Soft Sage Green */
  --color-bg-light: #E7EDDF;      /* Very Light Sage */
  --color-bg-body: #F9FBF7;       /* Off-White Greenish Body BG */
  --color-text-dark: #1F1F1F;     /* Primary Dark Text */
  --color-text-muted: #555555;    /* Muted Text */
  --color-white: #FFFFFF;
  --color-black: #1F1F1F;
  
  /* Fonts */
  --font-family: 'Plus Jakarta Sans', sans-serif;
  
  /* Borders & Shadows */
  --border-radius-lg: 32px;
  --border-radius-md: 24px;
  --border-radius-sm: 16px;
  --border-radius-xs: 8px;
  
  --border-light: 1px solid var(--color-accent-light);
  --border-very-light: 1px solid var(--color-bg-light);
  --border-input: 1px solid #E5E5E5;
  
  --shadow-subtle: 0 8px 30px rgba(81, 111, 44, 0.05);
  --shadow-hover: 0 12px 40px rgba(81, 111, 44, 0.1);
  
  /* Layout */
  --container-max-width: 1440px;
  --transition-speed: 0.3s;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-body);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

/* Prevent flash of unstyled Alpine.js content */
[x-cloak] {
  display: none !important;
}

/* Decorative Background Blurs */
.bg-blur {
  position: absolute;
  border-radius: 9999px;
  filter: blur(147.8px);
  z-index: -1;
  pointer-events: none;
}

.bg-blur-1 { width: 2032px; height: 479px; left: -15px; top: -339px; opacity: 0.15; background: var(--color-primary); }
.bg-blur-2 { width: 973px; height: 973px; left: -456px; top: 615px; opacity: 0.10; background: linear-gradient(117deg, var(--color-primary) 0%, #BFDE77 100%); }
.bg-blur-3 { width: 1068px; height: 1068px; left: -301px; top: 2554px; opacity: 0.10; background: var(--color-primary); }
.bg-blur-4 { width: 1068px; height: 1068px; left: 1588px; top: 3799px; opacity: 0.10; background: linear-gradient(117deg, var(--color-primary) 0%, #BFDE77 100%); }
.bg-blur-5 { width: 1068px; height: 1068px; left: 1421px; top: 1845px; opacity: 0.10; background: linear-gradient(117deg, var(--color-primary) 0%, #BFDE77 100%); }
.bg-blur-6 { width: 1068px; height: 1068px; left: 1414px; top: 5275px; opacity: 0.10; background: linear-gradient(117deg, var(--color-primary) 0%, #BFDE77 100%); }
.bg-blur-7 { width: 1068px; height: 1068px; left: -619px; top: 4725px; opacity: 0.10; background: linear-gradient(117deg, var(--color-primary) 0%, #BFDE77 100%); }
.bg-blur-8 { width: 1145px; height: 1145px; left: 1370px; top: -81px; opacity: 0.10; background: linear-gradient(117deg, var(--color-primary) 0%, #BFDE77 100%); }

/* Main Wrapper Layout */
.main-content {
  width: 100%;
  max-width: calc(var(--container-max-width) + 64px);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.05em; /* -5% */
  word-wrap: break-word;
}

h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em; /* -2% */
}

.section-title {
  font-size: clamp(3.25rem, 5vw, 4.375rem); /* Scales from 36px to 70px */
  font-weight: 300;
  color: var(--color-primary-darker);
}

.section-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem); /* Scales from 18px to 20px */
  color: var(--color-text-dark);
  font-weight: 400;
  max-width: 700px;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & LINK STYLES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(121, 148, 57, 0.2);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  border: var(--border-input);
}

.btn-secondary:hover {
  background-color: #F5F5F5;
  transform: translateY(-2px);
}

.btn-card-more {
  background: var(--color-white);
  color: var(--color-black);
  border: var(--border-input);
  padding: 8px 8px 8px 16px;
  border-radius: var(--border-radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  font-weight: 500;
  width: fit-content;
}

.btn-card-more:hover {
  background: #F9F9F9;
  border-color: var(--color-text-dark);
}

.btn-card-more:hover .arrow-icon-wrapper {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateX(4px);
}

/* Icons */
.arrow-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
}

.arrow-icon {
  width: 20px;
  height: 20px;
}

.check-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--color-text-dark);
  flex-shrink: 0;
}

.check-icon {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  width: 100%;
  padding: 0 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: padding 0.3s ease;
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  background-color: var(--color-white);
  border-bottom-left-radius: var(--border-radius-sm);
  border-bottom-right-radius: var(--border-radius-sm);
  border-left: var(--border-light);
  border-right: var(--border-light);
  border-bottom: var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px;
  height: 119px;
  transition: height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}

/* Scrolled state */
.site-header.scrolled {
  padding: 0 20px;
}

.site-header.scrolled .header-container {
  height: 70px;
  padding: 8px 32px;
  box-shadow: 0 10px 30px rgba(81, 111, 44, 0.08);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-badge {
  width: 139px;
  height: 45px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius-sm);
}

.logo-text {
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-primary-dark);
}

.header-logo {
  height: 24px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 1rem;
  color: var(--color-text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: var(--border-input);
  border-radius: var(--border-radius-xs);
  background: var(--color-white);
  overflow: hidden;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--color-text-dark);
}

.lang-btn.active {
  background: var(--color-black);
  color: var(--color-white);
}

.lang-btn.active:hover {
  background: var(--color-black);
  color: var(--color-white);
}


.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 150;
  outline: none;
}

.hamburger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-text-dark);
  border-radius: 2px;
  transition: all var(--transition-speed) ease;
}

/* --------------------------------------------------------------------------
   5b. DROPDOWN NAVIGATION
   -------------------------------------------------------------------------- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  user-select: none;
}

.nav-dropdown-chevron {
  flex-shrink: 0;
  transition: transform var(--transition-speed) ease;
  color: var(--color-text-dark);
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.nav-dropdown-trigger.active,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--color-primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: var(--border-light);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 16px 40px rgba(81, 111, 44, 0.1);
  min-width: 180px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease, visibility var(--transition-speed) ease;
  z-index: 200;
}

/* Invisible bridge so mouse can travel from trigger to menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-dark);
  text-decoration: none;
  border-radius: var(--border-radius-xs);
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: var(--color-bg-light);
  color: var(--color-primary);
}


/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 211px 0 92px 0; /* Padding top accounts for header height (119px + 92px spacing) */
  gap: 29px;
}

.hero-tag {
  font-size: 1.25rem;
  color: var(--color-text-dark);
  font-weight: 400;
}

.hero-title {
  font-size: clamp(5.5rem, 6.5vw, 7.5rem); /* 120px at maximum scale */
  font-weight: 300;
  background: linear-gradient(261deg, #516F2C 0.46%, #303F15 51.04%, #41481E 100.66%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--color-primary-dark); /* Fallback */
  line-height: 1.02;
  word-wrap: break-word;
  max-width: 1200px;
}

.hero-title-img-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px;
  border-radius: 24px;
  overflow: visible;
}

.hero-title-img-wrapper .hero-title-img {
  width: clamp(175px, 12vw, 188px);
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  display: block;
  margin: 0;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--color-text-dark);
  max-width: 900px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 24px;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   7. ABOUT SECTION ("Was ist ISPA e.V.?")
   -------------------------------------------------------------------------- */
.about-section {
  padding: 48px 0;
}

.about-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: var(--border-light);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 48px;
  box-shadow: var(--shadow-subtle);
}

.about-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.about-eyebrow {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: -16px;
}

.about-text {
  font-size: 1rem;
  color: var(--color-text-dark);
  line-height: 1.65;
}

.about-right {
  flex: 1.2;
  display: flex;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-grid-card {
  background-color: var(--color-bg-body);
  border: 1px solid var(--color-bg-light);
  border-radius: var(--border-radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-speed) ease;
}

.about-grid-card:hover {
  background-color: var(--color-white);
  border-color: var(--color-accent-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.about-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, var(--color-bg-light) 0%, rgba(121, 148, 57, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
  transition: all var(--transition-speed) ease;
}

.about-grid-card:hover .about-icon-box {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.about-card-icon {
  width: 24px;
  height: 24px;
  transition: filter var(--transition-speed) ease;
}

.about-grid-card:hover .about-card-icon {
  filter: brightness(0) invert(1);
}

.about-grid-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary-darker);
  letter-spacing: -0.02em;
}

.about-grid-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. GOALS SECTION ("Unsere Ziele")
   -------------------------------------------------------------------------- */
.goals-section {
  padding: 184px 0 92px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.goal-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: var(--border-very-light);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  min-height: 220px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.goal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.goal-content h3 {
  font-size: 1.5rem;
  color: var(--color-primary-darker);
  font-weight: 500;
}

.goal-content p {
  font-size: 1rem;
  color: var(--color-text-dark);
}

.goal-img-wrapper {
  width: 200px;
  height: 100%;
  position: relative;
  border-radius: var(--border-radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  align-self: stretch;
}

.goal-img-wrapper .goal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   9. SUPPORT SECTION ("Wir unterstützen")
   -------------------------------------------------------------------------- */
.support-section {
  padding: 92px 0;
}

.support-container {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.support-left {
  flex: 1;
  max-width: 684px;
  position: sticky;
  top: 150px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-text {
  font-size: 1.25rem;
  color: var(--color-text-dark);
  line-height: 1.6;
}

.support-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: var(--border-light);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.support-img-wrapper {
  width: 188px;
  height: 120px;
  flex-shrink: 0;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: var(--color-primary);
  position: relative;
}

.support-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-content h3 {
  font-size: 1.5rem;
  color: var(--color-primary-darker);
  font-weight: 600;
  line-height: 1.1;
}

.support-content p {
  font-size: 1rem;
  color: var(--color-text-dark);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. PARTNERS SECTION ("Starke Partner")
   -------------------------------------------------------------------------- */
.partners-section {
  padding: 92px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.partners-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: var(--border-light);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-subtle);
}

.partner-logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-logo {
  max-width: 100%;
  height: auto;
  max-height: 84px;
  object-fit: contain;
}

.vertical-divider {
  width: 1px;
  height: 72px;
  background-color: var(--color-accent-light);
}

/* Barmenia Gothaer Custom Logo */
.barmenia-gothaer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #002641;
}

.bg-logo-icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.bg-star-leg {
  position: absolute;
  width: 2.5px;
  height: 24px;
  background-color: #002641;
  left: 14.75px;
  top: 4px;
  border-radius: 1px;
}

.star-1 { transform: rotate(0deg); }
.star-2 { transform: rotate(30deg); }
.star-3 { transform: rotate(60deg); }
.star-4 { transform: rotate(90deg); }
.star-5 { transform: rotate(120deg); }
.star-6 { transform: rotate(150deg); }

.bg-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-family);
}

.logo-barmenia {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-gothaer {
  font-size: 1.15rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. COUNTRIES SECTION ("Länderinformationen")
   -------------------------------------------------------------------------- */
.countries-section {
  padding: 92px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.header-text-block {
  max-width: 800px;
}

.carousel-nav-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.carousel-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-bg-light);
  background-color: var(--color-bg-body);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0;
}

.carousel-nav-btn:hover:not(.disabled) {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(81, 111, 44, 0.25);
}

.carousel-nav-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.countries-carousel {
  width: 105%;
  position: relative;
  margin: 0px;
  padding: 0px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 20px 4px;
  position: relative;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.country-card.carousel-slide {
  scroll-snap-align: start;
  flex: 0 0 calc(42% - 12px);
  height: auto;
  min-height: 284px;
  margin: 0;
}

.country-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: var(--border-very-light);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

/* Pagination Indicators */
.carousel-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--color-bg-light);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-dot.active {
  width: 32px;
  background-color: var(--color-primary);
}

.carousel-dot:hover:not(.active) {
  background-color: #BFDE77;
}

.country-map-wrapper {
  width: 192px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* SVG map styling */
.country-svg {
  width: 100%;
  height: 100%;
  max-height: 232px;
}

.country-svg path {
  fill: url(#country-gradient);
}

.country-svg g {
  fill: url(#country-gradient) !important;
}

/* Injecting gradient definition dynamically */
.country-svg {
  /* Use gradient defined inside SVG or fall back to CSS styled colors */
  filter: drop-shadow(0px 8px 24px rgba(81, 111, 44, 0.15));
}

.country-svg-de path, .country-svg-de g { fill: #516F2C; }
.country-svg-ca path, .country-svg-ca g { fill: #516F2C; }
.country-svg-us path, .country-svg-us g { fill: #516F2C; }
.country-svg-fr path, .country-svg-fr g { fill: #516F2C; }

.country-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.country-content h3 {
  font-size: 1.5rem;
  color: var(--color-primary-darker);
  font-weight: 600;
  margin-bottom: 8px;
}

.country-content p {
  font-size: 1rem;
  color: var(--color-text-dark);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. DOWNLOADS SECTION
   -------------------------------------------------------------------------- */
.downloads-section {
  padding: 92px 0 184px 0;
}

.downloads-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: var(--border-light);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  box-shadow: var(--shadow-subtle);
}

.downloads-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.downloads-text {
  font-size: 1.25rem;
  color: var(--color-text-dark);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  font-size: 1.5rem;
  color: var(--color-primary-darker);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
  width: fit-content;
}

.contact-link:hover {
  color: var(--color-primary);
}

.downloads-right {
  width: 269px;
  flex-shrink: 0;
}

.downloads-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.downloads-list li {
  font-size: 1.25rem;
}

.downloads-list .download-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--color-primary-darker);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.downloads-list .download-link:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  padding: 0 40px 0px 40px;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  background-color: var(--color-white);
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  border: var(--border-light);
  padding: 85px 65px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand h2 {
  font-size: 4.375rem; /* 70px */
  font-weight: 300;
  color: var(--color-text-dark);
}

.footer-logo {
  height: 54px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  gap: 70px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 1rem;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-col a:hover {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   16. TEAM SECTION ("Vorstandsmitglieder")
   -------------------------------------------------------------------------- */
.team-section {
  padding: 92px 0;
  display: flex;
  flex-direction: column;
  gap: 78px;
}

.team-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 48px;
}

.team-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.team-eyebrow {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: -8px;
}

.team-text {
  font-size: 1rem;
  color: var(--color-text-dark);
  line-height: 1.65;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-item {
  background-color: var(--color-bg-body);
  border: var(--border-very-light);
  border-radius: var(--border-radius-sm);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-speed) ease;
}

.team-item:hover {
  background-color: var(--color-white);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.team-role {
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-name {
  font-size: 1.1rem;
  color: var(--color-primary-darker);
  font-weight: 600;
}

.team-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-img-wrapper {
  width: 100%;
  max-width: 626px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.team-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  display: block;
}

/* ==========================================================================
   14. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet Layout (up to 1024px) */
@media (max-width: 1024px) {
  .header-container {
    padding: 24px 32px;
    height: auto;
  }
  
  .logo-badge {
    width: 100px;
    height: 35px;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  .main-nav {
    gap: 24px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .about-card, .downloads-card {
    flex-direction: column;
    align-items: stretch;
    padding: 32px;
    gap: 32px;
  }
  
  .about-right, .downloads-right {
    width: 100%;
    max-width: none;
  }
  
  .goals-grid {
    grid-template-columns: 1fr;
  }
  
  .support-container {
    flex-direction: column;
    gap: 32px;
  }
  
  .support-left {
    position: static;
    max-width: none;
    gap: 16px;
  }
  
  .carousel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .carousel-nav-buttons {
    align-self: flex-end;
    margin-top: -12px;
  }
  
  .country-card.carousel-slide {
    flex: 0 0 calc(78% - 12px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }
  
  .country-map-wrapper {
    width: 100%;
    height: 180px;
  }
  
  .country-content {
    gap: 16px;
  }
  
  .partners-card {
    flex-direction: column;
    padding: 32px;
    gap: 32px;
  }
  
  .vertical-divider {
    width: 80%;
    height: 1px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 48px;
    padding: 48px 32px;
  }
  
  .footer-brand h2 {
    font-size: 3rem;
  }

  .team-card {
    flex-direction: column;
    padding: 32px;
    gap: 32px;
    align-items: stretch;
  }

  .team-left, .team-right {
    width: 100%;
    max-width: none;
    flex: none;
  }

  .team-img-wrapper {
    max-width: 100%;
  }
}

/* Mobile Layout (up to 768px) */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .main-content {
    padding: 0 16px;
  }
  
  .site-header {
    padding: 0 20px;
  }
  
  .header-container {
    padding: 16px 20px;
    position: relative; /* For absolute dropdown menu */
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  
  .menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }
  
  .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background-color: var(--color-white);
    border-bottom: none;
    box-shadow: none;
    transition: height var(--transition-speed) ease, padding var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    z-index: 140;
  }
  
  .main-nav.active {
    height: auto;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 8px 0 24px;
    border-bottom: var(--border-light);
    box-shadow: 0 10px 30px rgba(81, 111, 44, 0.08);
  }
  
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }
  
  .btn-card-more {
    width: 100%;
    justify-content: space-between;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .country-card.carousel-slide {
    flex: 0 0 calc(84% - 12px);
  }
  
  .goal-card, .support-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .goal-img-wrapper, .support-img-wrapper {
    width: 100%;
    height: 180px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 32px;
  }
  
  .site-footer {
    padding: 0 20px 0px 20px;
  }
  
  .footer-logo {
    height: 40px;
  }
  
  body.menu-open {
    overflow: hidden;
  }

  .team-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px;
  }
}

/* ==========================================================================
   15. SCROLL ANIMATIONS (Intersection Observer)
   ========================================================================== */

.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.about-grid-card.scroll-animate:not(.is-visible),
.country-card.scroll-animate:not(.is-visible) {
  transform: translateY(30px);
}

.about-grid-card:nth-child(1), .country-card:nth-child(1) { transition-delay: 0.1s; }
.about-grid-card:nth-child(2), .country-card:nth-child(2) { transition-delay: 0.2s; }
.about-grid-card:nth-child(3), .country-card:nth-child(3) { transition-delay: 0.3s; }
.about-grid-card:nth-child(4), .country-card:nth-child(4) { transition-delay: 0.4s; }
.country-card:nth-child(5) { transition-delay: 0.5s; }
.country-card:nth-child(6) { transition-delay: 0.6s; }

/* Hero section load animation */
.hero-tag {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-title {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-description {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-buttons {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* --------------------------------------------------------------------------
   8. AUFENTHALT IN DEUTSCHLAND PAGE
   -------------------------------------------------------------------------- */

.page-hero-section {
  padding: 160px 0 40px; /* Accounts for header height */
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(261deg, #516F2C 0.46%, #303F15 51.04%, #41481E 100.66%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.country-inline-wrapper {
  display: inline-flex;
  align-items: center;
  margin: 0 12px;
  vertical-align: middle;
}

.country-inline-flag {
  width: 110px;
  height: 50px;
  object-fit: cover;
  border-radius: 999px;
}

.page-description {
  font-size: 1.125rem;
  color: var(--color-text-dark);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* 2-Column Main Layout */
.aufenthalt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0 80px;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.aufenthalt-left {
  position: sticky;
  top: 100px;
  align-self: start;
}

.aufenthalt-left .section-title {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.2;
}

.aufenthalt-left .info-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.info-hero-img-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: block;
}

.info-hero-img-wrapper .info-hero-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.aufenthalt-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Static Category Cards */
.category-card {
  background: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 32px;
}

.category-card-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-dark);
  margin-bottom: 24px;
}

/* Nested Accordions */
.nested-accordion {
  border-top: 1px solid #EAEAEA;
}

.nested-accordion:last-child {
  border-bottom: 1px solid #EAEAEA;
}

.nested-accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.nested-accordion-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-dark);
}

.nested-accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-speed) ease;
}

/* Rotate right chevron to down chevron */
.nested-accordion-header[aria-expanded="true"] .nested-accordion-icon {
  transform: rotate(90deg);
}

.nested-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease-out;
}

.nested-accordion-inner {
  padding: 0 0 16px 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Override downloads card if needed */
.downloads-card {
  background: var(--color-white);
  border: 1px solid #EAEAEA;
  box-shadow: none;
  margin-bottom: 80px;
}

/* Responsive updates */
@media (max-width: 992px) {
  .aufenthalt-grid {
    grid-template-columns: 1fr;
  }
  .aufenthalt-left {
    position: static;
  }
}
@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  .country-inline-wrapper {
    display: flex;
    margin: 16px auto 0;
    width: fit-content;
  }
  .country-inline-flag {
    width: 80px;
    height: 40px;
  }
}

/* ==========================================================================
   17. KONTAKT PAGE
   ========================================================================== */

.kontakt-cards-section {
  padding: 48px 0 0;
}

.kontakt-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}

.kontakt-info-card {
  background: var(--color-white);
  border-radius: var(--border-radius-md);
  border: var(--border-light);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.kontakt-info-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.kontakt-info-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kontakt-info-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.3;
}

.kontakt-info-value {
  font-size: 1.1rem;
  color: var(--color-text-dark);
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a.kontakt-info-value:hover {
  color: var(--color-primary);
}

.kontakt-address {
  font-style: normal;
}

/* Kontakt downloads section spacing */
.kontakt-cards-section + .downloads-section {
  padding-top: 80px;
}

/* ==========================================================================
   MOBILE MENU — COMPLETE REDESIGN
   ========================================================================== */
@media (max-width: 768px) {

  /* ---- Nav link base (Home / Kontakt) ---- */
  .nav-links > .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-dark);
    border-bottom: 1px solid var(--color-bg-light);
    transition: color var(--transition-speed) ease;
    text-decoration: none;
  }

  .nav-links > .nav-link:last-child {
    border-bottom: none;
  }

  .nav-links > .nav-link.active {
    color: var(--color-primary);
  }

  /* ---- Dropdown wrapper ---- */
  .nav-dropdown {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--color-bg-light);
  }

  /* Disable desktop hover triggers on mobile completely */
  .nav-dropdown:hover .nav-dropdown-chevron,
  .nav-dropdown:focus-within .nav-dropdown-chevron {
    transform: none;
    color: var(--color-text-dark);
  }

  .nav-dropdown:hover .nav-dropdown-trigger,
  .nav-dropdown:focus-within .nav-dropdown-trigger {
    color: var(--color-text-dark);
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  /* ---- Dropdown trigger label ---- */
  .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    cursor: default;
    user-select: none;
  }

  /* Hide chevron on mobile — it's a hover hint irrelevant on touch */
  .nav-dropdown-chevron {
    display: none;
  }

  /* ---- Dropdown menu: always-visible indented sub-list ---- */
  .nav-dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 12px 16px;
    gap: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    transition: none;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  /* ---- Sub-items: stable touch targets, no layout-shifting hover ---- */
  .nav-dropdown-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: var(--border-radius-xs);
    text-decoration: none;
    /* Only color changes on interaction — no geometry shifts */
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
    white-space: nowrap;
  }

  .nav-dropdown-item.active {
    color: var(--color-primary);
    background: var(--color-bg-light);
    font-weight: 600;
  }

  /* Tap state — replace :hover entirely to avoid pointer flicker on touch */
  .nav-dropdown-item:hover {
    background: var(--color-bg-light);
    color: var(--color-primary-dark);
  }

  /* ---- Lang switcher: floated to bottom of menu, separated ---- */
  .main-nav > .lang-switcher {
    align-self: baseline;
    margin: 20px 24px 0;
    border-top: 1px solid var(--color-bg-light);
    justify-content: center;
  }

  /* Kontakt cards stack vertically on mobile */
  .kontakt-cards-grid {
    grid-template-columns: 1fr;
  }

  .kontakt-info-card {
    padding: 32px 24px;
  }
}

/* AI Generated badge overlays */
.ai-badge {
  position: absolute;
  bottom: 4px;
  right: 2px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.5rem;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 4px;
  pointer-events: none;
  letter-spacing: 0.05em;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

/* ==========================================================================
   19. SENIOR UX/UI DESIGNER: MOBILE SPACING & USABILITY OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  /* Section Vertical Paddings & Gaps (Establishing a consistent vertical rhythm) */
  .hero-section {
    padding: 120px 0 48px 0;
    gap: 20px;
  }
  
  .about-section {
    padding: 40px 0;
  }
  
  .goals-section {
    padding: 40px 0;
    gap: 28px;
  }
  
  .support-section {
    padding: 40px 0;
  }
  
  .partners-section {
    padding: 40px 0;
    gap: 24px;
  }
  
  .countries-section {
    padding: 40px 0;
    gap: 12px;
  }
  
  .team-section {
    padding: 40px 0;
    gap: 28px;
  }
  
  .downloads-section {
    padding: 40px 0 60px 0;
  }

  /* Subpages (Country Info Pages & Breadcrumbs spacing) */
  .page-hero-section {
    padding: 110px 0 24px;
  }

  .aufenthalt-grid {
    padding: 24px 0 48px;
    gap: 24px;
  }

  .kontakt-cards-section {
    padding: 32px 0 0;
  }

  .kontakt-cards-section + .downloads-section {
    padding-top: 40px;
  }

  /* Card Containers - Optimizing content line-length and breathing room on small screens */
  .about-card, 
  .downloads-card, 
  .team-card {
    padding: 24px 20px;
    gap: 24px;
    border-radius: var(--border-radius-md);
  }

  .kontakt-info-card {
    padding: 28px 20px;
    gap: 24px;
  }

  /* Headings size balancing for better Usability & wrapping prevention */
  .section-title {
    font-size: clamp(2.3rem, 6vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
  }

  .section-subtitle {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  /* Better spacing for list items and grids on mobile */
  .about-grid, 
  .goals-grid {
    gap: 16px;
  }

  .about-grid-card {
    padding: 16px;
    gap: 12px;
  }

  .goal-card {
    gap: 16px;
  }

  .support-card {
    gap: 16px;
    padding: 16px;
    border-radius: var(--border-radius-md);
  }

  .team-item {
    gap: 8px;
    padding: 16px;
  }

  .partner-logo {
    max-width: 100px;
    height: auto;
    max-height: 50px;
  }
}

/* Accessibility: Skip Links */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  z-index: 99999;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-speed) ease;
}

.skip-link:focus {
  top: 0;
}
