/* =====================================
   BASE STYLES & VARIABLES
   ===================================== */

/* CSS Custom Properties */
:root {
  /* Primary Colors */
  --primary-color: #003c6b;
  --secondary-color: #005fa3;
  --accent-color: #00a3e0;
  --light-background: #f8f8f8;
  --text-dark: #1e1e1e;
  
  /* Course Category Colors */
  --course-yellow: #d09910;
  --course-green: #8fb63e;
  --course-teal: #007c91;
  --course-blue: #00b3f0;
  --course-purple: #8e24aa;
  --course-red: #d04931;
  --course-orange: #ff9800;
  --course-turquoise: #009688;
  --course-dark-green: #8fb63e; /* Added this line */
  --course-indigo: #0066cc;
  
  /* Form Variables */
  --pd-label: #143a56;
  --pd-border: #d7dfeb;
  --pd-border-focus: #2d6cdf;
  --pd-focus-ring: rgba(45,108,223,.15);
  --pd-bg-soft: #f7f9fc;
  --pd-soft-border: #e6edf7;
  --panel-stripe: 10px;
  --telc-bg: #e9c7c1;
  --telc-border: #cf5a48;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: #1e1e1e;
  line-height: 1.6;
  background-color: #f8f8f8;
  overflow-x: hidden;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

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

/* Container Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* =====================================
   NAVIGATION
   ===================================== */

.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #ffffff;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo Styles */
.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  order: 1;
}

/* Navigation Menu */
.nav {
  order: 2;
  margin: 0 auto;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.nav ul li a:hover {
  color: var(--accent-color);
}

/* Language Switcher */
.language-switcher {
  order: 3;
  margin-left: 1rem;
}

.language-switcher select {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  appearance: none;
  min-width: 100px;
  cursor: pointer;
}

.language-switcher select:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 1px;
}

/* Social Icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 1rem;
  order: 4;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: background-color 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.social-icons .social-icon {
  height: 1rem;
  width: 1rem;
  display: block;
  filter: brightness(0) invert(1);
}

/* Overlay Navigation */
/* When the navigation is overlaid on the hero banner, adjust its positioning
   and appearance.  This class is applied via header.php on pages with a
   banner. */
.overlay-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: none;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* Hintergrund beim Scrollen für bessere Lesbarkeit */
.overlay-navbar.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.overlay-navbar .nav ul li a {
  color: #ffffff;
}

.overlay-navbar .nav ul li a:hover {
  color: var(--accent-color);
}

.overlay-navbar .logo {
  color: #ffffff;
}

.overlay-navbar .nav-toggle {
  color: #ffffff;
}

.overlay-navbar .language-switcher select {
  background: rgba(255,255,255,0.2);
  color: var(--primary-color);
  border: 1px solid rgba(255,255,255,0.4);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
  order: 5;
  z-index: 1001;
}

.nav-toggle:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* =====================================
   MOBILE NAVIGATION
   ===================================== */

@media (max-width: 768px) {
  /* Hide desktop navigation */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 999;
  }

  /* Show navigation when mobile menu is open */
  .navbar.nav-open .nav {
    display: block;
  }

  /* Mobile navigation list */
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav ul li:last-child {
    border-bottom: none;
  }

  .nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }

  .nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding-left: 2rem;
  }

  /* Mobile container layout */
  .navbar .container {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  /* Show mobile toggle */
  .nav-toggle {
    display: block;
    order: 1;
  }

  /* Logo on mobile */
  .navbar .logo {
    order: 2;
    margin-right: auto;
    padding-left: 1rem;
    font-size: 1.3rem;
  }

  /* Language switcher on mobile */
  .language-switcher {
    order: 3;
    margin-left: 0;
    margin-right: 1rem;
  }

  .language-switcher select {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--primary-color);
    font-size: 0.8rem;
    min-width: 80px;
    padding: 0.3rem 0.7rem;
  }

  /* Social icons on mobile */
  .social-icons {
    order: 4;
    margin-left: 0;
    gap: 0.4rem;
  }

  .social-icons a {
    width: 1.8rem;
    height: 1.8rem;
  }

  .social-icons .social-icon {
    height: 0.9rem;
    width: 0.9rem;
  }

  /* Overlay navbar adjustments for mobile */
  .overlay-navbar .language-switcher select {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--primary-color);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .navbar .container {
    padding: 0.5rem;
  }
  
  .navbar .logo {
    font-size: 1.1rem;
    padding-left: 0.5rem;
  }
  
  .language-switcher {
    margin-right: 0.5rem;
  }
  
  .language-switcher select {
    min-width: 70px;
    font-size: 0.75rem;
  }
  
  .social-icons {
    gap: 0.3rem;
  }
  
  .social-icons a {
    width: 1.6rem;
    height: 1.6rem;
  }
}

/* =====================================
   HERO SECTION
   ===================================== */

.hero {
  position: relative;
  text-align: center;
  color: #ffffff;
  background-color: var(--primary-color);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 28, 58, 0.5);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 80%;
}

.hero h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-logo {
  display: block;
  max-width: 160px;
  margin: 0 auto 1rem;
}

.hero-logocards {
  display: block;
  max-width: 60px;
  margin: 0 auto 1rem;
}

/* =====================================
   BUTTONS
   ===================================== */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-info {
  background-color: #6c757d;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-info:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
}

/* =====================================
   SECTIONS & LAYOUT
   ===================================== */

.section {
  padding: 4rem 0;
  width: 100%;
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.section-subtitle {
  font-weight: 700;
  margin: .75rem 0 .5rem;
  color: #003366;
  letter-spacing: .2px;
}

/* Section Dividers */
.section-divider {
  border: none;
  border-top: 2px solid var(--primary-color);
  width: 100%;
  margin: 2rem 0;
}

.section-divider-line {
  border: none;
  height: 2px;
  background-color: var(--primary-color);
  width: 100vw;
  margin: 0 calc(-50vw + 50%) 2rem calc(-50vw + 50%);
}

/* Specific Section Adjustments */
.section.courses {
  padding-bottom: 2rem;
}

.section.exams {
  padding-top: 2rem;
}

.section.why {
  margin-top: 2rem;
}

.section.contact {
  background-color: var(--light-background);
}

/* =====================================
   GRID LAYOUTS
   ===================================== */

.course-grid, .why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Inline Grids */
.inline-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inline-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* =====================================
   COURSE CARDS
   ===================================== */

.course-item, .why-item {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

/* Course Card Hover Effects */
.course-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-left 0.35s ease;
  cursor: pointer;
  overflow: hidden;
}

.course-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  background-color: rgba(255, 255, 255, 0.95);
}

.course-item .course-image {
  transition: transform 0.5s ease;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  max-height: 220px;
}

.course-item:hover .course-image {
  transform: scale(1.08);
}

.course-item .btn {
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.course-item:hover .btn {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* Course Category Color Styles */
.course-yellow {
  border-left: 12px solid var(--course-yellow);
  background-color: rgba(208, 153, 16, 0.25);
}

.course-green {
  border-left: 12px solid var(--course-green);
  background-color: rgba(143, 182, 62, 0.25);
}

.course-teal {
  border-left: 12px solid var(--course-teal);
  background-color: rgba(0, 124, 145, 0.25);
}

.course-blue {
  border-left: 12px solid var(--course-blue);
  background-color: rgba(0, 179, 240, 0.25);
}

.course-purple {
  border-left: 12px solid var(--course-purple);
  background-color: rgba(142, 36, 170, 0.25);
}

.course-red {
  border-left: 12px solid var(--course-red);
  background-color: rgba(208, 73, 49, 0.25);
}

.course-orange {
  border-left: 12px solid var(--course-orange);
  background-color: rgba(255, 152, 0, 0.25);
}

.course-turquoise {
  border-left: 12px solid var(--course-turquoise);
  background-color: rgba(0, 150, 136, 0.25);
}

.course-dark-green {
  border-left: 12px solid var(--course-dark-green);
  background-color: rgba(143, 182, 62, 0.25);
}

.course-indigo {
  border-left: 12px solid var(--course-indigo);
  background-color: rgba(0, 102, 204, 0.25);
}

/* Hover Border Effects */
.course-yellow:hover { border-left: 14px solid var(--course-yellow); }
.course-green:hover { border-left: 14px solid var(--course-green); }
.course-teal:hover { border-left: 14px solid var(--course-teal); }
.course-blue:hover { border-left: 14px solid var(--course-blue); }
.course-purple:hover { border-left: 14px solid var(--course-purple); }
.course-red:hover { border-left: 14px solid var(--course-red); }
.course-orange:hover { border-left: 14px solid var(--course-orange); }
.course-turquoise:hover { border-left: 14px solid var(--course-turquoise); }
.course-dark-green:hover { border-left: 14px solid var(--course-dark-green); }
.course-indigo:hover { border-left: 14px solid var(--course-indigo); }

/* Course Content Elements */
.course-item h3, .why-item h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.course-item p, .why-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.course-item .course-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.course-item .course-icon-img img {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
}

.course-item .course-price {
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.exam-logo {
  max-height: 60px;
  width: auto;
  margin: 0.5rem auto;
  display: block;
  object-fit: contain;
}

/* =====================================
   WHY SECTION
   ===================================== */

.why-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.why-photo:hover {
  transform: scale(1.02);
}

/* =====================================
   PANELS (Enrollment Forms)
   ===================================== */

.panel {
  border-radius: 14px;
  padding: 18px;
  margin: 14px 0;
  background: #fff;
  transition: all 0.3s ease;
}

.panel .panel-title {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--primary-color);
}

.panel-subtitle {
  margin: 0 0 .4rem 0;
  font-weight: 700;
  color: #003c6b;
  font-size: 1.1rem;
}

/* Panel Color Variations */
.panel-yellow {
  background: rgba(208,153,16,.12);
  border-left: var(--panel-stripe) solid var(--course-yellow);
}

.panel-green {
  background: rgba(143,182,62,.12);
  border-left: var(--panel-stripe) solid var(--course-green);
}

.panel-teal {
  background: rgba(0,124,145,.12);
  border-left: var(--panel-stripe) solid var(--course-teal);
}

.panel-blue {
  background: rgba(0,179,240,.12);
  border-left: var(--panel-stripe) solid var(--course-blue);
}

.panel-purple {
  background: rgba(142,36,170,.12);
  border-left: var(--panel-stripe) solid var(--course-purple);
}

.panel-red {
  background: rgba(208,73,49,.12);
  border-left: var(--panel-stripe) solid var(--course-red);
}

.panel-orange {
  background: rgba(255,152,0,.12);
  border-left: var(--panel-stripe) solid var(--course-orange);
}

.panel-turquoise {
  background: rgba(0,150,136,.12);
  border-left: var(--panel-stripe) solid var(--course-turquoise);
}

.panel-dark-green {
  background: rgba(143,182,62,.12);
  border-left: var(--panel-stripe) solid var(--course-dark-green);
}

.panel-indigo {
  background: rgba(0,102,204,.12); 
  border-left: var(--panel-stripe) solid var(--course-indigo);
}

.panel-telc {
  background: var(--telc-bg);
  border-left: 10px solid var(--telc-border);
  border-radius: 14px;
  padding: 18px;
  margin: 14px 0;
}

/* =====================================
   CARDS & FORMS
   ===================================== */

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 24px;
  margin: 24px auto;
  max-width: 1100px;
  transition: box-shadow 0.3s ease;
}

.card--narrow {
  max-width: 800px;
}

.section-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  margin: 24px auto;
  max-width: 1100px;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

/* Form Elements */
.form-group {
  margin-bottom: 12px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--pd-label);
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--pd-label);
}

/* Input Styles */
.lanes-input-text, 
.lanes-input-select, 
.lanes-input-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  line-height: 1.35;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.lanes-input-textarea {
  min-height: 112px;
  resize: vertical;
}

.lanes-input-text:focus, 
.lanes-input-select:focus, 
.lanes-input-textarea:focus {
  outline: none;
  border-color: var(--pd-border-focus);
  box-shadow: 0 0 0 3px var(--pd-focus-ring);
  transform: translateY(-1px);
}

/* Radio Groups */
.radio-group {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid var(--pd-soft-border);
  border-radius: 12px;
  background: var(--pd-bg-soft);
}

.radio-group input {
  transform: translateY(1px);
}

.radio-group label {
  margin: 0;
  cursor: pointer;
}

/* Form Spans */
.form-span-2 {
  grid-column: 1 / -1;
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row > .lanes-input-select {
  flex: 1;
}

/* =====================================
   CONTACT FORM
   ===================================== */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.contact-form :is(input, textarea) {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  color: #555;
  background: #f9f9f9;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.contact-form :is(input, textarea):focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 163, 224, 0.2);
  background: #fff;
}

.contact-form button {
  width: 100%;
}

/* =====================================
   FOOTER
   ===================================== */

.footer {
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Footer Logos - Desktop */
.footer-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: #b5d0e8;
  padding: 1rem 0;
}

.footer-logos-track {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

/* Footer Logos - Mobile Scrolling */
@media (max-width: 600px) {
  .footer-logos {
    overflow: hidden;
    position: relative;
    background-color: #b5d0e8;
    padding: 1rem 0;
  }

  .footer-logos-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    width: max-content;
    animation: scroll-logos 25s linear infinite;
    padding: 0 1rem;
  }

  .footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    flex: 0 0 auto;
  }

  @keyframes scroll-logos {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* Pause animation on hover */
  .footer-logos:hover .footer-logos-track {
    animation-play-state: paused;
  }
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-nav a:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.4);
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.footer-col h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-col p {
  margin: 0.4rem 0;
}

.footer-col a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  filter: invert(82%) sepia(20%) saturate(1083%) hue-rotate(173deg) brightness(93%) contrast(101%);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #555;
  font-family: 'Montserrat', sans-serif;
}

.newsletter-form button {
  padding: 0.5rem 0.75rem;
  background-color: var(--accent-color);
  border: none;
  border-radius: 4px;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--secondary-color);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding: 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

/* =====================================
   COMPONENTS
   ===================================== */

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 16px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background-color: #128C7E;
}

.whatsapp-float img {
  width: 20px;
  height: 20px;
}

/* FAQ Section */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-item:hover {
  background-color: #f9f9f9;
}

.faq-question {
  font-weight: 600;
  margin: 0;
  color: #003366;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  margin-top: 0.5rem;
  color: #444;
  line-height: 1.5;
  padding: 0.5rem 0;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Mission Accordion */
.mission-acc .acc-body {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.mission-acc.open .acc-body {
  display: block;
}

.mission-acc .acc-title {
  cursor: pointer;
  padding: 1rem;
  background-color: var(--pd-bg-soft);
  border-radius: 8px;
  margin: 0.5rem 0;
  transition: background-color 0.3s ease;
}

.mission-acc .acc-title:hover {
  background-color: var(--pd-soft-border);
}

/* Popup/Modal Styles */

	/*added css for the info popup window musst be controlled if it already exists here*/
	/* Popup animations */

/* =====================================
   POPUP STYLES - LIKE REFERENCE SITE
   ===================================== */

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.popup-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupFadeIn 0.3s ease-out;
/* Ensure proper centering */
  margin: auto;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10001;
}

.popup-close:hover {
  background: #f5f5f5;
  color: #333;
  transform: rotate(90deg);
}

.popup-content h2 {
  color: #003c6b;
  margin: 0 0 20px 0;
  font-size: 1.8rem;
  font-weight: 700;
  border-bottom: 2px solid #00a3e0;
  padding-bottom: 10px;
}

.popup-content h3 {
  color: #005fa3;
  margin: 25px 0 10px 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.popup-content ul {
  margin: 10px 0;
  padding-left: 20px;
}

.popup-content li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #555;
}

.popup-content strong {
  color: #d09910;
  font-weight: 600;
}

.popup-content p {
  line-height: 1.6;
  color: #666;
  margin: 10px 0;
}

/* Scrollbar styling for popup */
.popup-content::-webkit-scrollbar {
  width: 6px;
}

.popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Body scroll lock when popup is open */
body.popup-open {
  overflow: hidden;
}

/* Course item animations (keep these) */
.course-item, .why-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.course-item.animate-in, .why-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   PRIVACY PAGE STYLES Datenschutz design
   ===================================== */

.privacy-content {
    line-height: 1.7;
    color: #333;
    max-width: 100%;
}

.privacy-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    font-size: 2rem;
}

.privacy-content h3 {
    color: var(--secondary-color);
    margin: 2.5rem 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.privacy-content h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.privacy-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.privacy-content ul {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.privacy-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.privacy-content a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.privacy-content a:hover {
    border-bottom-color: var(--secondary-color);
}

.contact-info {
    background-color: var(--pd-bg-soft);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin: 1.5rem 0;
}

.contact-info h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.note {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.note strong {
    color: #856404;
}

.update-date {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

/* Table of Contents Style */
.toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.toc ul {
    columns: 2;
    column-gap: 2rem;
}

.toc li {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--secondary-color);
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .privacy-content {
        font-size: 0.95rem;
    }
    
    .privacy-content h2 {
        font-size: 1.6rem;
    }
    
    .privacy-content h3 {
        font-size: 1.2rem;
    }
    
    .contact-info,
    .note {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .toc ul {
        columns: 1;
    }
}

@media (max-width: 480px) {
    .privacy-content {
        font-size: 0.9rem;
    }
    
    .privacy-content h2 {
        font-size: 1.4rem;
    }
    
    .privacy-content h3 {
        font-size: 1.1rem;
    }
}

/* =====================================
end   PRIVACY PAGE STYLES Datenschutz design
   ===================================== */
/* Padding-Ausgleich für fixed Navigation */
body.has-overlay-navbar {
    padding-top: 60px;
}

@media (max-width: 768px) {
    body.has-overlay-navbar {
        padding-top: 60px;
    }
}
/* AGB Page Styles */
.agb-page {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.terms-header {
    text-align: center;
    margin-bottom: 3rem;
}

.terms-header h1 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.last-updated {
    color: #6c757d;
    font-style: italic;
    font-size: 1.1rem;
}

.terms-content {
    line-height: 1.8;
}

.terms-content .section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #2c5530;
}

.terms-content .section h2 {
    color: #2c5530;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    font-size: 1.5rem;
}

.terms-content .section h3 {
    color: #495057;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.terms-content .section p {
    margin-bottom: 1rem;
    color: #495057;
}

.highlight-box {
    background: #dbe7f4;
    padding: 0.2rem;
    border-radius: 8px;
    border-left: 4px solid #003c6b;
    margin: 1.5rem 0;
}

.highlight-box h3 {
    color: #003c6b;
    margin-top: 0;
    margin-bottom: 1rem;
}

.highlight-box p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-content .section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .terms-header h1 {
        font-size: 2rem;
    }
    
    .highlight-box {
        padding: 1rem;
    }
}


/* =====================================
   ACCORDION STYLES - OPTIMIZED FOR EXISTING DESIGN
   ===================================== */

.accordion {
  margin: 25px 0;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  background: white;
}

.accordion-item {
  border-bottom: 1px solid var(--pd-soft-border);
  background: white;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--pd-bg-soft) 0%, #e9ecef 100%);
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}

.accordion-header:hover {
  background: linear-gradient(135deg, #e9ecef 0%, var(--pd-soft-border) 100%);
  transform: translateY(-1px);
}

.accordion-header.active {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 95, 163, 0.3);
}

.accordion-header i {
  transition: transform 0.4s ease;
  font-size: 14px;
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: white;
  border-top: 1px solid var(--pd-bg-soft);
}

.accordion-content.active {
  padding: 24px;
  max-height: 500px;
  animation: accordionFadeIn 0.5s ease;
}

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

.accordion-content h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
}

.accordion-content p {
  margin: 10px 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--pd-bg-soft);
  color: #555;
  line-height: 1.5;
}

.accordion-content p:last-child {
  border-bottom: none;
}

.accordion-content strong {
  color: var(--primary-color);
}

/* =====================================
   REGISTER NOW BUTTON STYLES
   ===================================== */

.register-now-container {
  margin-top: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #f8fff8 0%, #f0fff0 100%);
  border-radius: 10px;
  border-left: 4px solid var(--course-green);
  text-align: center;
  box-shadow: 0 2px 8px rgba(143, 182, 62, 0.15);
}

.register-now-container h4 {
  margin-bottom: 12px;
  color: var(--course-green);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-register-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--course-green) 0%, #7da736 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(143, 182, 62, 0.3);
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.btn-register-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(143, 182, 62, 0.4);
  background: linear-gradient(135deg, #7da736 0%, #6c8f2d 100%);
  color: white;
  text-decoration: none;
}

/* =====================================
   POPUP CONTENT ENHANCEMENTS
   ===================================== */

.popup-content {
  max-height: 85vh;
  overflow-y: auto;
  background: white;
  border-radius: 14px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-content h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 10px;
  font-size: 1.8rem;
  font-weight: 700;
}

.popup-content h3 {
  color: var(--secondary-color);
  margin: 25px 0 15px 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.popup-content ul {
  padding-left: 20px;
  margin: 15px 0;
}

.popup-content li {
  margin: 8px 0;
  color: #555;
  line-height: 1.5;
  position: relative;
}

.popup-content li:before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* =====================================
   RESPONSIVE ADJUSTMENTS
   ===================================== */

@media (max-width: 768px) {
  .accordion-header {
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .accordion-content {
    padding: 0 20px;
  }
  
  .accordion-content.active {
    padding: 20px;
  }
  
  .register-now-container {
    padding: 15px;
    margin-top: 15px;
  }
  
  .btn-register-now {
    padding: 10px 24px;
    font-size: 14px;
  }
  
  .popup-content {
    padding: 20px;
    margin: 10px;
  }
}

@media (max-width: 480px) {
  .accordion-header {
    padding: 12px 16px;
    font-size: 15px;
  }
  
  .accordion-content {
    padding: 0 16px;
  }
  
  .accordion-content.active {
    padding: 16px;
  }
  
  .register-now-container h4 {
    font-size: 14px;
  }
  
  .btn-register-now {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* =====================================
form one grid
   ===================================== */

/* =====================================
   MOBILE FORM RESPONSIVENESS - ENHANCED
   ===================================== */

@media (max-width: 768px) {
  /* Force all form grids to single column */
  .pd-grid,
  .grid-2,
  .form-grid,
  .cols,
  [class*="grid"],
  .form-row,
  .input-row {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  
  .inline-2,
  .inline-3 {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  
  .panel-grid-3 {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  
  /* Force form elements to full width */
  .form-group,
  .form-field,
  .field,
  .lanes-input-text,
  .lanes-input-select,
  .lanes-input-textarea {
    width: 100% !important;
    display: block !important;
  }
  
  /* Remove any flex layouts */
  .form-row,
  .input-row,
  .radio-group {
    display: block !important;
  }
  
  .radio-group {
    padding: 12px;
  }
  
  .radio-group label {
    display: block;
    margin: 8px 0;
  }
}
/* =====================================
   HORIZONTAL COURSE NAVIGATION germany courses
   ===================================== */
/* =====================================
   HORIZONTAL COURSE NAVIGATION - 5 IN A ROW
   ===================================== */


.courses-horizontal {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: center;
    padding: 30px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.course-horizontal-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

/* Gleiche blaue Linie für alle Items */
.course-horizontal-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    bottom: 15px;
    width: 6px;
    background: var(--primary-color);
    border-radius: 0 3px 3px 0;
}

.course-horizontal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.95);
}

.course-horizontal-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    margin-left: 5px; /* Platz für die blaue Linie */
}

/* Course Icon Colors */
.course-horizontal-icon.a1 { 
    background: linear-gradient(135deg, var(--course-green) 0%, #7da736 100%); 
}

.course-horizontal-icon.a2 { 
    background: linear-gradient(135deg, var(--course-blue) 0%, #0091c8 100%); 
}

.course-horizontal-icon.b1 { 
    background: linear-gradient(135deg, var(--course-orange) 0%, #e68900 100%); 
}

.course-horizontal-icon.b2 { 
    background: linear-gradient(135deg, var(--course-red) 0%, #b83d29 100%); 
}

.course-horizontal-icon.c1 { 
    background: linear-gradient(135deg, var(--course-purple) 0%, #7a1f96 100%); 
}

.course-horizontal-text {
    flex: 1;
    min-width: 0;
    overflow: hidden; /* Verhindert Überlauf */
}

.course-horizontal-text h4 {
    margin: 0 0 4px 0;
    color: var(--text-dark);
    font-size: 1em;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-horizontal-text p {
    margin: 0;
    color: #666;
    font-size: 0.8em;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover Effects - Zeigt kompletten Text beim Hover */
.course-horizontal-item:hover .course-horizontal-text h4,
.course-horizontal-item:hover .course-horizontal-text p {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.course-horizontal-item:hover .course-horizontal-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Responsive Design mit angepassten Textgrößen */
@media (max-width: 1200px) {
    .course-horizontal-text h4 {
        font-size: 0.9em;
    }
    
    .course-horizontal-text p {
        font-size: 0.75em;
    }
}

@media (max-width: 1024px) {
    .courses-horizontal {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .course-horizontal-item {
        flex: 0 1 calc(33.333% - 12px);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .courses-horizontal {
        gap: 10px;
        padding: 20px 15px;
    }
    
    .course-horizontal-item {
        flex: 0 1 calc(50% - 10px);
        padding: 12px 15px;
    }
    
    .course-horizontal-item::before {
        top: 12px;
        bottom: 12px;
    }
    
    .course-horizontal-icon {
        margin-right: 12px;
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-left: 3px;
    }
    
    .course-horizontal-text h4 {
        font-size: 0.85em;
    }
    
    .course-horizontal-text p {
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    .course-horizontal-item {
        flex: 0 1 100%;
    }
    
    .courses-horizontal {
        gap: 8px;
    }
    
    .course-horizontal-text h4 {
        font-size: 0.9em;
    }
    
    .course-horizontal-text p {
        font-size: 0.75em;
    }
}

/* Animation */
.course-horizontal-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.course-horizontal-item:nth-child(1) { animation-delay: 0.1s; }
.course-horizontal-item:nth-child(2) { animation-delay: 0.2s; }
.course-horizontal-item:nth-child(3) { animation-delay: 0.3s; }
.course-horizontal-item:nth-child(4) { animation-delay: 0.4s; }
.course-horizontal-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.content-image {
    width: 100%;
    max-width: 1000px; /* maximale Breite, optional */
    margin: 0 auto;
    text-align: center;
}

.responsive-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px; /* optional für rundere Ecken */
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

/*button for the content all buttons */

/* Existing base styles */
.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  flex: 1 1 200px;
  box-sizing: border-box;
}

.button:hover {
  transform: scale(1.05);
}

/* Telc and other button colors */
.button-telc { background-color: #d04931; }
.button-telc:hover { background-color: #b73e29; }

.button-medizinkurs { background-color: #007c91; }
.button-medizinkurs:hover { background-color: #006678; }

.button-integrationskurs { background-color: #00b3f0; }
.button-integrationskurs:hover { background-color: #0095cc; }

.button-beruf { background-color: #8fb63e; }
.button-beruf:hover { background-color: #789c32; }

.button-interne { background-color: #0FBCC1; }
.button-interne:hover { background-color: #0da5a9; }

.button-online { background-color: #C7BF00; }
.button-online:hover { background-color: #a6a000; }

.button-deutschkurs { background-color: #d09910; }
.button-deutschkurs:hover { background-color: #b5820d; }

/* 🔹 New main button */
.button-main { background-color: #03529d; } /* Deep blue */
.button-main:hover { background-color: #023f78; }

/* Responsive behavior */
@media (max-width: 600px) {
  .button {
    width: 100%;
    flex: none;
  }
}
/* Course Dates Styling */
.course-dates-list {
    margin: 10px 0;
}

.course-date-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.course-date-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.date-icon {
    color: #28a745;
    margin-right: 10px;
    font-size: 16px;
    min-width: 16px;
}

.date-text {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.no-dates {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    margin: 0;
}

