:root {
  --purple: #a34ffb;
  --accent: #0685b9;
  --accent_hover: #43a3c9;
  --blue: #00a9cc;
  --dark: #0c0e1a;
  --white: #ffffff;
  --green: #6eaa4b;
}

/* html { */
/* Browser-internes Hyphen-Feature aktivieren */
/* hyphens: auto;
  -webkit-hyphens: auto; 
  -ms-hyphens: auto;  */
/* } */

html,
body {
  max-width: 100vw;
  overflow-x: hidden !important;
  background-color: var(--dark) !important;
}

.text-green {
  color: var(--green);
}

/* alternative approach: */
.hero .display-3 .accent {
  position: relative;
  z-index: 10;
}

/* Bild-Default beibehalten, z.B.: */
.sphaere-gif {
  position: relative;
  transition: left 0.3s ease, width 0.3s ease;
}

@media (max-width: 770px) {
  .hyphen {
    /* Browser-Hyphenation abschalten, wir machen es manuell */
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    /* Optional: Zeilenumbruch an jeder Soft-Hyphen-Stelle erlauben */
    word-break: break-word;
  }
  .hero-text {
    size: 0.85rem !important;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--dark) !important;
  color: var(--white);
  scroll-behavior: smooth;
  padding-top: 75px;
}

/* p {
  color: var(--white);
} */

/* Navigation */
/* Navbar-Hintergrund und Ecken */
.navbar-custom {
  background-color: #212248 !important;
  /* border-radius: 0.5rem; */
}
/* Link-Farbe und Hover */
.navbar-custom .nav-link {
  color: #fff !important;
}
.navbar-custom .nav-link:hover i,
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  color: #a34ffb !important;
  transition: color 0.3s ease !important;
}
/* Toggler-Icon in heller Variante */
/* .navbar-custom .navbar-toggler-icon {
    filter: invert(1);
} */

.navbar-custom-dropdown {
  opacity: 0.85;
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  background-color: #212248 !important;
}

.navbar-collapse {
  max-width: 100vw !important;
  overflow-x: hidden;
}

/* Goals-Section */
/* Goals-Section (unchanged) */
.goals-section {
  text-align: center;
  padding: 100px 0;
  background-color: var(--dark);
}

.goals-section .section-headline {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 180px;
}

.goals-grid {
  display: grid;
  /* so viele Spalten á min. 250px wie reinpassen,
     maximal 1fr breit, und leere Tracks „gefaltet“ */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;

  /* Jede Karte zentriert in ihrer Zelle */
  justify-items: center;
  align-items: start;

  /* Die gesamte letzte Reihe zentriert im Container */
  justify-content: center;
}

@media (min-width: 901px) {
  .goals-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 gleich breite Spalten */
  }
  /* Wenn nur 1 Karte in der letzten Reihe ist, rücke sie in die Mitte-Spalte */
  .goals-grid > .goal-card:nth-last-child(1):nth-child(3n + 1) {
    /* von Spalte 2 bis Spalte 3 */
    grid-column: 2 / 3;
  }
}

/* ----- Tablet (2 Spalten) ----- */
@media (min-width: 601px) and (max-width: 900px) {
  .goals-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 gleich breite Spalten */
  }
  /* Wenn nur 1 Karte in der letzten Reihe ist, soll sie sich über beide Spalten erstrecken */
  .goals-grid > .goal-card:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1; /* volle Breite */
  }
}

/* ----- Mobile (1 Spalte) bleibt unverändert ----- */
@media (max-width: 600px) {
  .goals-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 412px) {
  .hero-text {
    size: 0.85rem !important;
  }
}

.feature-icon .feature-icon1 .feature-icon2 {
  width: 250px !important;
}

/* ——— Card wrapper ——— */
.goal-card {
  position: relative;
  width: 100%;
  max-width: 250px;
  min-height: 300px;
  min-width: 230px;
  margin: 0 auto;
}

/* ——— Static dashed border ——— */
.goal-card .card--border {
  position: absolute;
  inset: 0; /* top/right/bottom/left: 0 */
  border: 2px dashed var(--purple);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}

/* ——— Movable inner container ——— */
.goal-card .card-inner {
  background-color: #0c0e1a;
  border: 2px solid var(--purple);
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 0 12px rgba(163, 79, 251, 0.2);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  position: relative; /* so z-index stacking works */
  overflow: hidden;

  transition: transform 0.5s ease;
  z-index: 2;
  min-height: inherit;
}

/* ——— Front content ——— */
.goal-card .card-content {
  transition: opacity 0.3s ease;
}

/* ——— Back (hover) content ——— */
.goal-card .hover-info-box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 1.5rem;

  background-color: rgba(12, 14, 26, 0.9);
  padding: 20px 16px;
  border-radius: 12px;
  border: 2px solid var(--purple);
  box-shadow: 0 0 12px rgba(163, 79, 251, 0.4);

  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.3s ease;
  z-index: 3;
}

/* ——— Images & text ——— */
.goal-card img {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  object-fit: contain;
}

.goal-card p {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--white);
  margin: 0;
  text-align: center;
}

.goal-card:hover p {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--white);
  margin: 0;
  text-align: center;
  transition: opacity 0.1s ease;
}

.goal-card:hover a {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--white);
  margin: 0;
  text-align: center;
  transition: opacity 0.1s ease;
}

/* ——— Hover Effects ——— */
/* 1) slide the inner card up & left */
.goal-card:hover .card-inner {
  transform: translate(-30px, -30px);
}

/* 2) fade out front content */
.goal-card:hover .card-content {
  opacity: 0;
}

/* 3) fade in hover panel */
.goal-card:hover .hover-info-box {
  opacity: 1;
  pointer-events: auto;
  border: none;
}

.goal-card .hover-info-box a:hover {
  color: var(--purple);
}

/* Utility classes for text colors */
.accent {
  color: var(--accent);
}

a.accent:hover {
  color: var(--accent_hover) !important;
}

.blue {
  color: var(--blue);
}
.text-accent {
  color: var(--accent) !important;
}
.text-purple {
  color: var(--purple) !important;
}

/* ==== Neue Utility-Klasse: flexibles, umbrechbares Listen-Layout ==== */
.wrap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.wrap-list li {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-bottom: 0.5rem;
}
.wrap-list li > svg,
.wrap-list li > img {
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.wrap-list.stacked {
  flex-direction: column !important;
  gap: 0.5rem 0;
}

/* CTA Section */
/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0;
  background-color: var(--dark);
  text-align: center;
}

.cta-headline {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 60px;
}

/* Flex-Container: oben ausrichten, zentrieren, umbrechen */
.cta-grid {
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: flex-start; /* alle Cards oben anordnen */
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
}

/* Card-Grundstyle + Puffer nach unten */
.cta-card {
  background-color: #1c1a3d;
  border-radius: 20px;
  padding: 40px 30px;
  width: 300px;
  height: 400px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: 1rem; /* Puffer zur nächsten Row */
  overflow: hidden; /* verhindert Überlappen innerer Inhalte */
}

.cta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(163, 79, 251, 0.3);
  /* margin-bottom: 2rem; extra Puffer beim Hover */
}

.cta-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;

  /* Silbentrennung & Zeilenumbruch */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: none;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
}

.cta-card img {
  width: 120px;
  height: auto;
}

/* Sorge dafür, dass Bootstrap-Columns niemals kleiner als 300px werden */
.cta-section .row.justify-content-center > .col-md-4 {
  flex: 0 0 auto; /* nicht schrumpfen, nicht wachsen */
  min-width: 300px; /* exakt so breit wie deine .cta-card */
}

/* Grundstruktur */
.footer {
  position: relative;
  background-color: var(--dark);
  padding: 80px 20px 40px;
  color: var(--white);
  font-size: 0.95rem;
  z-index: 1;
  overflow: hidden;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative; /* damit Inhalt über dem ::before liegt */
  z-index: 1;
}
.footer-bg {
  position: absolute;
  top: 0;
  left: 5%;
  width: 50%;
  max-height: 100%;
  pointer-events: none;
  z-index: 0;
  transform: scale(0.5);
}

.footer-bg-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand img {
  height: 70px;
  max-width: 100%;
}

.footer-contact h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 16px;
}

.footer-contact p {
  line-height: 1.6;
  font-size: 1.05rem;
  font-weight: 500;
}
.footer-contact {
  margin-right: 60px;
}
.footer-contact a {
  color: var(--white);
  text-decoration: none;
}

/* Social Media Icons */
.footer-socials {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  padding: 10px;
  font-size: 1.3rem;
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background-color: var(--purple);
  color: white;
  transform: scale(1.1);
}

/* Link-Navigation */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--purple);
}

/* Unterer Bereich */
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: underline;
  font-size: 0.8rem;
}

/* In deiner main.css o.ä. */
.flex-wrap-reverse {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 1.5rem; /* entspricht gx-5 */
  align-items: flex-start;
}

.text-area {
  flex: 1 1 0;
  min-width: 300px;
  position: relative;
  z-index: 1;
  padding: 1rem; /* entspricht p-3 */
}

.image-area {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.image-area img {
  transform: scale(0.8);
  margin-top: -50px;
}

.list-unstyled li img {
  height: 3rem; /* 1em = Höhe der aktuellen Schriftgröße */
  width: auto; /* Seitenverhältnis bleibt erhalten */
  vertical-align: middle;
}

.btn-outline-purple {
  color: var(--purple) !important;
  border-color: var(--purple) !important;
}

.btn-outline-purple:hover {
  color: #fff !important;
  background-color: var(--purple) !important;
  border-color: var(--purple) !important;
}

h2,
h3 {
  hyphens: auto;
  word-wrap: break-word;
}

.footer-bottom p a:hover {
  color: var(--accent_hover);
  font-size: 1.25rem;
}

.footer-bottom p a {
  color: white;
  font-size: 1.25rem;
}

.no-li-style {
  list-style: none;
  color: white;
}

.no-li-style a {
  color: var(--accent);
}

.no-li-style a:hover {
  color: var(--accent_hover);
}
