* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal: #2b8a8a;
  --teal-dark: #1f6b6b;
  --teal-light: #e6f2f2;
  --teal-muted: #7ab8b8;
  --warm-white: #faf9f7;
  --cream: #f5f3ef;
  --sand: #ede9e3;
  --stone-50: #f7f6f4;
  --stone-100: #eeedea;
  --stone-200: #e0ded9;
  --stone-300: #c8c5be;
  --stone-400: #a8a49c;
  --stone-500: #8a857c;
  --stone-600: #6b665e;
  --stone-700: #4d4943;
  --stone-800: #2e2c28;
  --stone-900: #1a1917;
  --terra: #c4704b;
  --terra-light: #f5e6df;
  --sage: #6b8f6b;
  --sage-light: #e8f0e8;
  --navbar: #5f7161;
  --navbar-hover: #4d5d4f;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.2rem;
  color: var(--stone-700);
  background: var(--warm-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.serif {
  font-family: "Roboto", Georgia, serif;
}

/* ========== HEADER ========== */
.site-header {
  background: white;
  border-bottom: 1px solid var(--stone-100);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.logo-icon {
  max-width: 100px;
  height: auto;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--stone-800);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--stone-800);
  line-height: 1.1;
}

/* ========== NAVIGATION ========== */
.main-nav {
  background: var(--navbar);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 16px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  white-space: nowrap;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border-bottom-color: rgba(255, 255, 255, 1);
}

.has-dropdown {
  position: relative;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  list-style: none;
  border: 1px solid var(--stone-100);
  border-top: none;
  z-index: 200;
  pointer-events: none;
}

.dropdown a {
  color: var(--stone-600);
  padding: 12px 24px;
  font-size: 14px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown a:hover {
  color: var(--navbar);
  background: var(--navbar-hover);
}

.dropdown-icon {
  width: 6px;
  height: 6px;
  background: var(--teal-muted);
  border-radius: 50%;
  flex-shrink: 0;
}

.dropdown a:hover .dropdown-icon {
  background: var(--teal);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: white;
  color: var(--teal);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ========== HERO ========== */
.page-hero {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--cream) 50%, var(--sand) 100%);
  background: url(/media/bg_top_2.jpg) top center no-repeat;
  background-size: cover;
  padding: 160px 0 40px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 138, 138, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* Option 2: Card-Style für die Lesbarkeit */
.hero-inner h2,
.hero-inner p {
  /* max-width: 650px; Begrenzt die Breite, damit das Bild rechts sichtbar bleibt */
  background: rgba(0, 0, 0, 0.35); /* Dunkler, semitransparenter Hintergrund */
}

.hero-inner h2 {
  font-size: clamp(32px, 5vw, 48px);
  color: #ffffff; /* Kontrastreicher weißer Text */
  line-height: 1.15;
  margin-bottom: 0;
  padding: 24px 28px 12px 28px;
  border-radius: 12px 12px 0 0; /* Abgerundete Ecken oben */
}

.hero-inner p {
  font-size: clamp(19px, 2.7vw, 28px);
  color: rgba(255, 255, 255, 0.9); /* Leicht abgesoftetes Weiß für den Fließtext */
  line-height: 1.35;
  padding: 0 28px 24px 28px;
  border-radius: 0 0 12px 12px; /* Abgerundete Ecken unten */
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px;
  font-size: 13px;
  color: var(--stone-400);
}

.breadcrumb a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ========== MAIN LAYOUT ========== */
.main-layout {
  max-width: 1280px;
  margin: 1.5rem auto 0 auto;
  padding: 0 32px 80px;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--stone-400);
  font-weight: 600;
  margin-bottom: 16px;
  padding-left: 4px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--stone-600);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
}

.sidebar-nav a:hover {
  background: var(--stone-50);
  color: var(--teal);
}

.sidebar-nav a.active {
  background: var(--teal);
  color: white;
  box-shadow: 0 4px 12px -2px rgba(43, 138, 138, 0.3);
}

.sidebar-nav a.active .nav-dot {
  background: rgba(255, 255, 255, 0.6);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone-300);
  flex-shrink: 0;
}

/* ========== CONTENT ========== */
.content h2 {
  font-size: 32px;
  color: var(--stone-800);
  margin-bottom: 12px;
  font-weight: 600;
}

.content > p {
  color: var(--stone-900);
  font-size: 1.2rem;
  margin-bottom: 40px;
  /* max-width: 640px; */
  line-height: 1.7;
}

b,
strong {
  font-weight: 700;
}

a {
  color: var(--stone-900);
  text-decoration: underline;
}
a:hover {
  color: var(--stone-700);
}

p {
  margin-bottom: 1rem;
}

/* ========== UNIVERSAL GRID ========== */

.gt-universal-grid {
  width: 100%;
  clear: both;
  margin-bottom: 1rem;
}

.gt-wrapper {
  display: block;
}

.gt-column {
  width: 100%;
  margin-bottom: 1rem;
}

/* Bild-Fix: Zwingt Bilder in die Spalte */
.gt-column img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

.gt-column figure {
  width: 100% !important;
  margin: 0 !important;
}

@media (min-width: 600px) {
  .gt-wrapper {
    display: grid !important;
    gap: 1.5rem;
    margin-bottom: 0;
    align-items: stretch !important; /* Alle Spalten einer Zeile werden gleich hoch */
  }

  /* Allgemeine vertikale Zentrierung für ALLE Grid-Spalten (gt-1 bis gt-18) */
  .gt-wrapper > .gt-column {
    margin-bottom: 0;
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* Zentriert den Inhalt vertikal an der Spaltenhöhe */
    height: 100% !important;
  }

  /* Entfernt äußere Margins der ersten und letzten Elemente in einer Spalte */
  .gt-wrapper > .gt-column > *:first-child {
    margin-top: 0 !important;
  }
  .gt-wrapper > .gt-column > *:last-child {
    margin-bottom: 0 !important;
  }

  /* ========== GRID RASTER SCHEMATA ========== */

  .gt-1 .gt-wrapper {
    grid-template-columns: 1fr !important;
  }
  .gt-2 .gt-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .gt-3 .gt-wrapper {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .gt-4 .gt-wrapper {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .gt-5 .gt-wrapper {
    grid-template-columns: repeat(5, 1fr) !important;
  }
  .gt-6 .gt-wrapper {
    grid-template-columns: repeat(6, 1fr) !important;
  }
  .gt-7 .gt-wrapper {
    grid-template-columns: 80% 1fr !important;
  }
  .gt-8 .gt-wrapper {
    grid-template-columns: 20% 1fr !important;
  }
  .gt-9 .gt-wrapper {
    grid-template-columns: 70% 1fr !important;
  }
  .gt-10 .gt-wrapper {
    grid-template-columns: 30% 1fr !important;
  }
  .gt-11 .gt-wrapper {
    grid-template-columns: 60% 1fr !important;
  }
  .gt-12 .gt-wrapper {
    grid-template-columns: 40% 1fr !important;
  }
  .gt-13 .gt-wrapper {
    grid-template-columns: 25% 1fr 25% !important;
  }
  .gt-14 .gt-wrapper {
    grid-template-columns: 1fr 25% 25% !important;
  }
  .gt-15 .gt-wrapper {
    grid-template-columns: 25% 25% 1fr !important;
  }
  .gt-16 .gt-wrapper {
    grid-template-columns: 16.66% 1fr 16.66% !important;
  }
  .gt-17 .gt-wrapper {
    grid-template-columns: 1fr 16.66% 16.66% !important;
  }
  .gt-18 .gt-wrapper {
    grid-template-columns: 16.66% 16.66% 1fr !important;
  }
}

/* ========== COURSE CARDS ========== */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-item {
  display: flex;
  gap: 24px;
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--stone-100);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.course-item:hover {
  border-color: var(--teal-muted);
  box-shadow: 0 12px 32px -8px rgba(43, 138, 138, 0.12);
  transform: translateY(-2px);
}

.course-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.course-icon.pilates {
  background: var(--terra-light);
}
.course-icon.yoga {
  background: var(--sage-light);
}
.course-icon.meditation {
  background: var(--teal-light);
}
.course-icon.relax {
  background: #f0e8f5;
}
.course-icon.sound {
  background: #f5f0e0;
}

.course-info {
  flex: 1;
}

.course-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--stone-800);
  margin-bottom: 6px;
}

.course-info p {
  font-size: 16px;
  color: var(--stone-500);
  line-height: 1.6;
}

.course-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 120px;
}

.course-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.tag-pilates {
  background: var(--terra-light);
  color: var(--terra);
}
.tag-yoga {
  background: var(--sage-light);
  color: var(--sage);
}
.tag-meditation {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.course-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--stone-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-400);
  transition: all 0.2s;
}

.course-item:hover .course-arrow {
  background: var(--teal);
  color: white;
}

/* ========== FEATURED SECTION ========== */
.featured-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 20px;
  padding: 40px;
  color: white;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.featured-section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.featured-section h3 {
  font-size: 24px;
  margin-bottom: 12px;
  position: relative;
}

.featured-section p {
  opacity: 0.85;
  max-width: 500px;
  position: relative;
}

.featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.featured-btn:hover {
  background: white;
  color: var(--teal);
}

/* ========== INFO BOXES ========== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.info-box {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--stone-100);
}

.info-box h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--stone-800);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-box p {
  font-size: 14px;
  color: var(--stone-500);
  line-height: 1.6;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--stone-800);
  color: var(--stone-300);
  padding: 60px 32px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h3 {
  color: white;
  font-size: 20px;
  font-weight: 600;
}
.footer-brand h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone-400);
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: var(--stone-400);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--stone-200);
}

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--stone-500);
}

.footer-bottom a {
  color: var(--stone-500);
  text-decoration: none;
  font-size: 13px;
  /* padding: 6px 0; */
  transition: color 0.2s;
}

/* ========== RESPONSIVE NAV ========== */
/* Hide desktop nav on screens 1024px and below */
@media screen and (max-width: 900px) {
  #desktopNav,
  #desktopCta {
    display: none !important;
  }
  #mobileToggle {
    display: flex !important;
  }
  .nav-inner {
    justify-content: flex-end;
    padding: 0 20px;
  }
  /* Hide dropdown on mobile */
  .dropdown {
    display: none !important;
  }
}

/* Show desktop nav on screens 1025px and above */
@media screen and (min-width: 1025px) {
  #desktopNav {
    display: flex !important;
  }
  #desktopCta {
    display: inline-flex !important;
  }
  #mobileToggle {
    display: none !important;
  }
  /* Dropdown already defined in main CSS, just ensure visibility */
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .content > p {
    font-size: 1rem;
  }
  .main-layout {
    grid-template-columns: 1fr;
    padding: 0 20px 60px;
  }
  .sidebar {
    position: static;
    margin-bottom: 32px;
  }
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sidebar-nav li {
    margin: 0;
  }
  .sidebar-nav a {
    padding: 8px 16px;
    font-size: 13px;
  }
  .sidebar-title {
    display: none;
  }
  .page-hero {
    padding: 48px 0;
  }
  .hero-inner {
    padding: 20px;
  }
  .hero-inner h2 {
    font-size: 32px;
  }
  .hero-inner p {
    font-size: 16px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .header-inner {
    padding: 16px 20px;
  }
}

@media (max-width: 768px) {
  .course-item {
    flex-direction: column;
    gap: 16px;
  }
  .course-meta {
    flex-direction: row;
    align-items: center;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .logo-text h1 {
    font-size: 18px;
  }
  .logo-text span {
    font-size: 12px;
  }
  .logo-icon {
    width: 52px;
    height: 52px;
  }
  .header-inner {
    gap: 16px;
  }
}

/* ========== MOBILE NAV ========== */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--stone-100);
  background: var(--navbar);
}

.drawer-header span {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.drawer-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.drawer-nav {
  list-style: none;
  /* padding: 8px 0; */
}

.drawer-nav li {
  border-bottom: 1px solid var(--stone-50);
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  color: var(--stone-700);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  color: var(--navbar);
  background: rgba(95, 113, 97, 0.165);
}

.drawer-nav a.active .drawer-dot {
  background: var(--navbar);
}

.drawer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone-300);
  flex-shrink: 0;
}

.drawer-sub {
  list-style: none;
  padding: 0 0 8px 46px;
}

.drawer-sub li {
  border-bottom: none;
}

.drawer-sub a {
  padding: 10px 24px 10px 0;
  font-size: 14px;
  color: var(--stone-500);
  font-weight: 400;
}

.drawer-sub a:hover {
  color: var(--navbar);
  background: none;
}

.drawer-cta {
  padding: 24px;
  margin-top: 8px;
}

.drawer-cta .btn-primary {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Hide desktop nav on mobile */
@media (max-width: 900px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .nav-cta {
    display: none;
  }
}

/* Show desktop nav on larger screens */
@media (min-width: 901px) {
  .mobile-overlay,
  .mobile-drawer {
    display: none !important;
  }
}

/* ==========================================================================
   REDAXO COURSE MODULE STYLES (Matching Corporate Design)
   ========================================================================== */

/* ---------- FILTER BAR ---------- */
.course-filter-bar {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--stone-100);
  margin-bottom: 32px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

.filter-group.search-field {
  flex: 1.5;
  min-width: 240px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--stone-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group input[type="text"],
.filter-group select {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--stone-800);
  background-color: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 10px;
  transition: all 0.2s ease;
  outline: none;
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
  background-color: white;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.clear-search {
  position: absolute;
  right: 12px;
  color: var(--stone-400);
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}

.clear-search:hover {
  color: var(--terra);
}

.filter-submit-group {
  flex: 0 0 auto;
  min-width: auto;
}

.btn-filter-submit {
  background: var(--teal);
  color: white;
  border: none;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-filter-submit:hover {
  background: var(--teal-dark);
}

.filter-actions {
  width: 100%;
  /* margin-top: 8px; */
}

.btn-reset-filters {
  font-size: 13px;
  color: var(--terra);
  text-decoration: none;
  font-weight: 500;
}

.btn-reset-filters:hover {
  text-decoration: underline;
}

.course-counter {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--stone-100);
  font-size: 14px;
  color: var(--stone-500);
}

/* ---------- COURSE GRID & CARDS ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.course-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--stone-100);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-color, var(--teal));
}

.course-card:hover {
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
}

.course-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--stone-800);
  margin-bottom: 4px;
}

.course-header h4 {
  font-size: 13px;
  color: var(--stone-400);
  font-weight: 500;
  margin-bottom: 16px;
}

.course-meta-2 {
  /* display: flex; */
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--stone-600);
  margin-bottom: 20px;
  padding: 12px;
  background: var(--stone-50);
  border-radius: 10px;
}

.course-instructors-container {
  margin-bottom: 20px;
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.instructor-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--stone-200);
}

.instructor-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--stone-700);
  margin: 0;
}

.course-footer {
  margin-top: auto;
}

.course-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  background: var(--btn-color, var(--teal));
  color: var(--btn-text-color, white) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: opacity 0.2s ease;
}

.course-btn:hover {
  opacity: 0.9;
}

/* ---------- COURSE DETAIL VIEW ---------- */
.course-detail-view {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  box-shadow: none;
}

.btn-back {
  display: inline-block;
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.btn-back:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.course-detail-header {
  border-bottom: 2px solid var(--stone-100);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.course-detail-header h2 {
  font-size: 28px;
  color: var(--stone-900);
  margin-bottom: 6px;
}

.course-detail-header h4 {
  font-size: 16px;
  color: var(--stone-500);
  font-weight: 500;
}

.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.detail-card {
  background: var(--stone-50);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--stone-100);
}

.detail-card h3 {
  font-size: 18px;
  color: var(--stone-800);
  margin-bottom: 14px;
  font-weight: 600;
}

.detail-card p {
  font-size: 16.8px;
  color: var(--stone-700);
  line-height: 1.6;
  margin-bottom: 8px;
  display: grid;
}

.detail-card p:last-child {
  margin-bottom: 0;
}

.single-instructor {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.detail-instructor-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.instructor-details h4 {
  font-size: 16px;
  color: var(--stone-800);
  margin-bottom: 2px;
}

.instructor-details .quali {
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 8px;
}

.instructor-contact p {
  font-size: 13px;
  color: var(--stone-600);
  margin-bottom: 2px;
  display: block !important;
}

.action-box {
  margin-top: 12px;
}

.btn-register {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: var(--btn-color, var(--teal));
  color: var(--btn-text-color, white) !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-register:hover {
  opacity: 0.9;
}

/* ---------- REGISTRATION FORM ---------- */
.course-registration-wrapper {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  max-width: 100% !important;
  box-shadow: none !important;
}

/* Hauptüberschrift analog Detailseite (h2 + Accent Border) */
.course-registration-wrapper .form-title {
  font-size: 32px;
  font-weight: 700;
  color: #222222;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

/* Die farbige Trennlinie direkt unter dem Titel (wie in der Detailansicht) */
.course-registration-wrapper .form-title-border {
  height: 4px;
  background-color: var(--accent-color, #5f7161);
  border: none;
  margin: 0 0 28px 0;
}

/* Kurs-Zusammenfassung (Exakt wie .detail-card.facts) */
.course-summary-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px 28px;
  border: 1px solid #f0f0f0;
  margin-bottom: 28px;
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.summary-group div {
  font-size: 16.8px;
  font-weight: 400;
  color: #555555;
  line-height: 1.5;
}

.summary-group div strong {
  color: #222222;
  font-weight: 600;
}

/* Formularbereich */
.course-booking-form h3 {
  font-size: 20px;
  font-weight: 700;
  color: #222222;
  margin: 32px 0 20px 0;
  padding-top: 16px;
  /* Trennlinie über der Überschrift in der Kategoriefarbe */
  border-top: 7px solid var(--accent-color, var(--btn-color, #5f7161));
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 16.8px;
  font-weight: 400;
  color: #333333;
  margin-bottom: 6px;
}

/* Eingabefelder in Anlehnung an das cleane Design */
.form-field input[type="text"],
.form-field input[type="password"],
.form-field input[type="email"],
.form-field input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 16.8px;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  outline: none;
}

.form-field input:focus {
  border-color: var(--accent-color, #5f7161);
  box-shadow: 0 0 0 3px rgba(95, 113, 97, 0.15);
}

.field-help-text {
  font-size: 13px;
  color: #777777;
  margin-bottom: 8px;
}

/* Radio & Checkbox Styling */
.radio-options,
.radio-options-vertical {
  display: flex;
  gap: 20px;
  margin-top: 6px;
}

.radio-options-vertical {
  flex-direction: column;
  gap: 10px;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16.8px;
  font-weight: 400;
  color: #333333;
  cursor: pointer;
}

.radio-label input,
.checkbox-label input {
  accent-color: var(--accent-color, #5f7161);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-field a {
  color: #333333;
  text-decoration: underline;
}

.checkbox-field a:hover {
  color: var(--stone-500);
}

/* Absende-Button exakt wie .btn-register / .btn-submit auf der Detailseite */
.form-actions {
  margin-top: 28px;
}

.btn-submit {
  width: 100%;
  /* Nutzt die spezifische Kategoriefarbe für den Button */
  background-color: var(--btn-color, var(--accent-color, #5f7161));
  color: var(--btn-text-color, #ffffff);
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-align: center;
}

.btn-submit:hover {
  opacity: 0.9;
}

/* Alerts */
.alert {
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 16.8px;
  margin-bottom: 24px;
}

.alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 600px) {
  .course-summary-box {
    grid-template-columns: 1fr;
  }
}
