/* --- BASE STYLES --- */

html, body {
  font-family: 'NeueMachina', sans-serif;
  margin: 0;
  padding: 0;
  }
  
  * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  }
  
  /* Navbar */
  .navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  }
  
  .navdiv {
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; 
  }
  
  .logo img {
  width: auto;
  height: 50px;
  display: block;
  }
  
  ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  flex-wrap: wrap;
  }
  
  li a {
  color: #4d4d4d;
  font-size: clamp(1rem, calc(0.75rem + 0.5vw), 1.25rem);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
  }
  
  li a:hover {
  color: #01A4AB;
  }
  
  .menu-toggle {
  display: none;
  }
  
  /* Hamburger */
  .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 20px;
  justify-content: space-between;
  position: relative;
  z-index: 1100; 
  }
  
  .nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  }
  
  .nav-links.active {
  display: block;
  }
  
  .hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: black;
  border-radius: 2px;
  transition: all 0.3s ease;
  }
  
  /* Position bars */
  .hamburger span:nth-child(1) {
  top: 6px;
  }
  .hamburger span:nth-child(2) {
  top: 13px;
  }
  .hamburger span:nth-child(3) {
  top: 20px;
  }
  
  /* Hide nav menu by default */
  .nav-menu {
  display: flex;
  gap: 20px;
  }
  
  .menu-toggle {
  display: none;
  }
  
  /* Hero Section */
  .hero {
  position: relative;
  height: 80vh;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  box-sizing: border-box;
  overflow: hidden;
  }
  
  .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: -1;
  }
  
  .hero h1 {
  font-size: clamp(1.8rem, 2vw + 1rem, 4rem);
  color: white;
  margin: 0;
  z-index: 1;
  padding: min(3.125em, 4%);
  }
  
  /* Text Section */
  .text-section {
  display: flex;
  flex-direction: column;
  margin: 150px 30px;
  gap: 50px;
  font-family: 'Lato';
  flex-wrap: wrap;
  }
  
  .text-block {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 40px;
  }
  
  .caption {
  width: 30%;
  font-family: 'NeueMachina', sans-serif;
  color: #01A4AB;
  }
  
  .caption h2 {
  font-size: clamp(1.2rem, 1.2vw + 0.8rem, 1.625rem);
  }
  
  .text-content {
  width: 65%;
  }
  
  .text-content p {
  font-size: clamp(0.9rem, calc(0.8rem + 0.4vw), 1rem);
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
  }
  
  /* PROJEKTZIELE Section */
  .projektziele {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 150px 30px;
  font-family: 'Lato', sans-serif;
  }
  
  .projektziele h2 {
  font-weight: 700;
  font-family: 'NeueMachina';
  margin-bottom: 30px;
  color: #01A4AB;
  font-size: clamp(1.25rem, calc(1rem + 1vw), 1.625rem);
  }
  
  /* Radio Buttons (hidden) */
  .projektziele input[type="radio"] {
  display: none;
  }
  
  .projektziele .buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 30px; 
  margin: 30px auto;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  flex-wrap: nowrap; 
  }
  
  .projektziele .btn {
  display: flex;
  align-items: center;
  justify-content: center; 
  padding: 15px 15px;
  font-size: clamp(0.9rem, calc(0.75rem + 0.5vw), 1rem);
  border-radius: 20px;
  border: 2px solid #01A4AB;
  background-color: transparent;
  color: #01A4AB;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'NeueMachina', sans-serif;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  min-width: 150px;
  flex: 1;
  }
  
  .projektziele .btn:hover {
  background-color: #01A4AB;
  color: white;
  }
  
  /* Active State Styles */
  #ziel1:checked ~ .buttons label[for="ziel1"],
  #ziel2:checked ~ .buttons label[for="ziel2"],
  #ziel3:checked ~ .buttons label[for="ziel3"],
  #ziel4:checked ~ .buttons label[for="ziel4"] {
  background-color: #01A4AB;
  color: white;
  }
  
  /* Cards Container */
  .card-wrapper {
  width: 100%;
  max-width: 650px;
  margin: 20px auto;
  position: relative;
  }
  
  /* All cards hidden by default */
  .card-wrapper .card {
  display: none;
  background: white;
  border: 2px solid #15A2B1;
  border-radius: 8px;
  padding: min(2em, 4vw) min(3em, 6vw) min(5em, 8vw);
  box-sizing: border-box;
  text-align: left;
  }
  
  /* Show card when radio is selected */
  #ziel1:checked ~ .card-wrapper .card1,
  #ziel2:checked ~ .card-wrapper .card2,
  #ziel3:checked ~ .card-wrapper .card3,
  #ziel4:checked ~ .card-wrapper .card4 {
  display: block;
  }
  
  /* Icon Styling */
  .icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  }
  
  .icon-container img {
  width: 100px;
  height: 100px;
  }
  
  /* Text inside the card */
  .card p {
  font-size: clamp(0.9rem, calc(0.75rem + 0.5vw), 1rem);
  line-height: 1.5;
  color: black;
  word-break: break-word;
  hyphens: auto;
  }
  
  /* PROJEKTERGEBNISSE Section */
  .projektergebnisse {
  width: 100%;
  text-align: center;
  margin-top: 0;
  color: #01A4AB;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 0 !important;
  }
  
  .projektergebnisse h2 {
  padding-bottom: 50px;
  color: #01A4AB;
  font-size: clamp(1.2rem, 1.2vw + 0.8rem, 1.625rem);
  }
  
  /* Main visualization container */
  .network-container {
  position: relative;
  min-width: 1000px;
  min-height: 600px;
  height: auto;
  margin: 0 auto;
  background: white;
  overflow: visible;
  z-index: 1;
  }
  
  .network-scale-wrapper {
  width: 100%;
  overflow: visible;
  display: flex;
  justify-content: center;
  }
  
  .network-outer {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  }
  
  .projektergebnisse,
  .network-outer {
  overflow: visible !important;
  }
  
  /* Bubble wrapper anchors each item */
  .bubble-wrapper {
  position: absolute;
  width: 120px;
  height: 120px;
  z-index: 2;
  }
  
  /* Circular bubble */
  .bubble {
  position: absolute;
  width: 120px;
  height: 120px;
  text-align: center;
  top: 0;
  left: 0;
  z-index: 3;
  }
  
  .bubble img {
  width: 100%;
  height: 100%;
  }
  
  /* Info dot inside bubble */
  .bubble-wrapper .info {
  position: absolute;
  bottom: -5px;
  left: 45%;
  background: #15A2B1;
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  transition: z-index 0.3s;
  }
  
  /* Tooltip inside bubble */
  .tooltip {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translate(-50%, 4px);
  background: #333;
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: normal;
  display: none;
  min-width: 500px; /* Optional: gives you a soft cap */
  height: auto;
  }
  
  .tooltip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  }
  
  .tooltip-image {
  width: 100%;
  max-width: 800px;
  padding: 5px 0px;
  object-fit: contain; 
  border-radius: 4px;
  margin-bottom: 0px;
  }

  #bubble3 .tooltip-image {
    width: 200px; 
    height: 300px;
  }

  .image-row {
    display: flex;
    gap: 2px; 
  }
  
  
  .tooltip-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: #ffffff;
  word-wrap: break-word;
  text-align: left;
  }
  
  .bubble:hover .tooltip {
  display: block;
  }
  
  /* Lines connecting bubbles */
  svg.lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0; /* behind everything */
  }
  
  .bubble-wrapper {
  position: absolute;
  width: 120px;
  height: 120px;
  }
  
  .bubble-wrapper:hover {
  z-index: 9999;
  }
  
  .label {
  position: absolute;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: #333;
  width: 200px;
  }
  
  .label.left {
  text-align: right;
  color: #333;
  }
  
  .label.right {
  top: 15%;
  left: 130px;
  transform: translateY(-50%);
  text-align: left;
  line-height: 1.2;
  color: #333;
  max-width: 200px;
  }
  
  .label.left {
  top: 50%;
  right: 100px;
  transform: translateY(-50%);
  text-align: left;
  color: #333;
  max-width: 150px;
  }
  
  .label.bottom {
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #333;
  }
  
  /* GEFAHRENSZENARIEN Section */
  .gefahrenszenarien {
  margin-top: 150px;
  text-align: center;
  }
  
  .gefahrenszenarien h2 {
  color: #01A4AB;
  font-size: clamp(1.2rem, 1.2vw + 0.8rem, 1.625rem);
  margin-bottom: 50px;
  font-family: 'NeueMachina';
  }
  
  .card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  row-gap: 20px;
  column-gap: 50px;
  margin: 0 auto;
  }
  
  .flip-card {
  flex: 1 1 500px; 
  max-width: 600px;
  min-width: 280px;
  min-height: 500px;
  margin: 0;
  background-color: transparent;
  }
  
  .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  }
  
  .flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  background-color: #15A2B1;
  color: white;
  backface-visibility: hidden;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Lato';
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .flip-card-front .card-header {
  display: flex;
  flex-direction: column; /* stack heading and arrow */
  flex-grow: 1;
  justify-content: space-between;
  height: 100%;
  } 
  
  .arrow-icon {
  width: 40px;
  height: 40px;
  align-self: flex-end;
  }
  
  .flip-card-front h3 {
  font-size: 1.375rem;
  margin-bottom: 30px;
  color: white;
  }
  
  .flip-card-front p {
  font-size: clamp(1.25rem, calc(1rem + 1vw), 2rem);
  color: white;
  }
  
  .flip-card-back {
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  }
  
  .card-back-content {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  }
  
  .card-back-body {
  margin-top: 20px; 
  }
  
  .card-back-body p {
  font-size: 1rem;
  line-height: 1.5;
  color: white;
  }
  
  .card-back-content h4 {
  font-size: clamp(1.25rem, calc(1rem + 1vw), 1.625rem);
  color: white;
  }
  
  .card-back-content img {
  width: 80px;
  height: 60px;
  }
  
  .flip-card-back p {
  font-size: clamp(0.9rem, calc(0.75rem + 0.5vw), 1rem);
  line-height: 1.5;
  color: white;
  }
  
  /* FAKTEN Section */
  
  .fakten {
  position: relative;
  width: 100%;
  }
  
  .image-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 100px 0;
  }
  
  .fakten-img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  }
  
  .fakten-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  }
  
  /* Content overlay */
  .fakten-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: white;
  text-align: center;
  padding: 0 20px;
  }
  
  .fakten-content h2 {
  font-size: clamp(1.25rem, calc(1rem + 1vw), 1.625rem);
  font-family: 'NeueMachina', sans-serif;
  padding: 50px;
  }
  
  .icon-row {
  display: flex;
  justify-content: center;
  gap: 200px;
  flex-wrap: wrap;
  width: 100%;
  }
  
  .icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Lato', sans-serif;
  color: white;
  max-width: 400px;
  }
  
  .icon-box img {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
  }
  
  .text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(1rem, calc(0.9rem + 0.5vw), 1.25rem);
  font-weight: bold;
  }
  
  .number {
  font-size: clamp(1rem, calc(0.9rem + 0.5vw), 1.25rem);
  font-weight: bold;
  }
  
  .label {
  font-size: clamp(0.9rem, calc(0.75rem + 0.5vw), 1rem);
  margin: 0;
  color: #fff;
  margin-top: 40px;
  }
  
  /* Aktuelles */
  
  .aktuelles {
  align-items: center;
  }
  
  .aktuelles h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #01A4AB;
  font-size: clamp(1.2rem, 1.2vw + 0.8rem, 1.625rem);
  }
  
  .aktuelles-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  margin-bottom: 100px;
  }
  
  .messe-image {
    width: 400px;   
    height: auto;   
    margin: 10px;   
    object-fit: contain;
  }
  
  
  /* FOOTER */
  
  .footer-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #01A4AB;
  padding:20px 0px;
  padding-left: 20px;
  gap:40px;
  flex-wrap: wrap;
  }
  
  .column-main,
  .column-privacy,
  .column-impressum,
  .column-contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: white;
  min-width: 150px;
  margin-bottom: 20px;
  }
  
  .column-social {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: white;
  min-width: 150px;
  margin-bottom: 20px;
  }
  
  .column-main p,
  .column-privacy p,
  .column-impressum p,
  .column-contact p,
  .column-social p {
  margin: 5px 0;
  word-break: break-all;
  overflow-wrap: anywhere;
  }
  
  
  .column-main {
  flex: 1 1 10%;
  }
  
  .column-privacy,
  .column-impressum {
  flex: 2 1 15%;
  }
  
  .column-contact {
  flex: 1.5 1 20%;
  }
  
  .column-social {
  flex: 2.5 1 15%;
  }
  
  .column-social img {
  height: 15px;
  width: 15px;
  }
  
  /* PARTNER */
  
  .partner-section {
  padding: 40px 0;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
  }
  
  .logo-row-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start; 
  max-width: 700px; /* Optional: contain total width */
  box-sizing: border-box;
  margin-left: 20px;
  padding: 0 !important;
  }
  
  .logo-group {
  flex: 1 1 20%; 
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-left: 0 !important;
  min-width: 200px; 
  }
  
  .caption {
  font-weight: bold;
  font-size: clamp(1rem, 0.4vw + 0.8rem, 1.125rem);
  margin-bottom: 16px;
  color: #01A4AB;
  text-align: left;
  white-space: nowrap;
  }
  
  .logo-row {
  display: flex;
  gap: 20px;
  box-sizing: border-box;
  }
  
  .logo {
  height: auto;
  max-height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
  }
  
  /* Media Queries */
  
  /* PARTNER Section adjustments for tablets and desktops */
  @media (max-width: 1090px) {
  .logo-row-horizontal {
  flex-wrap: wrap;
  justify-content: flex-start;
  }
  
  .logo-group {
  flex: 1 1 55%; 
  min-width: 200px; 
  margin-bottom: 20px;
  }
  }
  
  /* Medium devices (≤ 1024px) */
  @media (max-width: 1024px) {
  
  .network-container {
  max-width: 80%;
  }
  
  .bubble-wrapper {
  transform: scale(0.85);
  transform-origin: top center;
  }
  
  .bubble {
  width: 140px;
  height: 140px;
  }
  
  .label {
  padding-top: 20px;
  }
  
  .tooltip {
  font-size: 14px;
  max-width: 180px;
  }
  
  .info {
  width: 18px;
  height: 18px;
  line-height: 18px;
  }
  }
  
  /* NAVIGATION */
  
  /* Mobile & Tablet (≤ 768px) */
  @media (max-width: 768px) {
  .navdiv {
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
  position: relative;
  }
  
  .logo img {
  width: 150px;
  }
  
  .hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  cursor: pointer;
  position: relative;
  z-index: 1100;
  }
  
  .hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: black;
  border-radius: 2px;
  transition: all 0.3s ease;
  }
  
  /* Position bars */
  .hamburger span:nth-child(1) {
  top: 0;
  }
  
  .hamburger span:nth-child(2) {
  top: 10px;
  }
  
  .hamburger span:nth-child(3) {
  top: 20px;
  }
  
  /* Animate hamburger into X */
  .hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
  }
  
  .hamburger.active span:nth-child(2) {
  opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
  }
  
  .nav-links {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: white;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 20px 0;
  z-index: 1000;
  text-align: center;
  }
  
  .nav-links.active {
  display: flex;
  }
  
  .nav-links ul {
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
  }
  
  /* TEXT */
  .text-block {
  flex-direction: column;
  gap: 20px;
  }
  
  .caption,
  .text-content {
  width: 70%;
  }
  
  .caption h2 {
  padding-bottom: 10px;
  }
  
  .text-section {
  gap: 60px;
  margin: 80px;
  }
  
  /* PROJEKTZIELE */
  .buttons {
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 20px;
  }
  
  .btn {
  width: 100%;
  max-width: 300px;
  }
  
  .projektziele {
  margin: 80px;
  }
  
  .card {
  max-width: 70%; /* scale card down */
  padding: 15px;
  margin: 20px auto 60px auto;
  }
  
  .card p {
  padding: 40px 20px 60px 20px;
  }
  
  /* PROJEKTTEILERGEBNISSE */
  .network-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 200px;
    gap: 0;
    justify-content: center;  /* centers the whole grid */
    align-items: start;
    background: white;
    padding: 0 5px;
    max-width: 420px; /* slightly wider than total columns to allow padding */
    width: 100%; /* optional: make it responsive */
  }
  

  svg.lines {
  display: none;
  }

  .bubble-wrapper {
  position: static;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  }
  
  .bubble {
  position: static;
  width: 120px;
  height: 120px;
  }

  .bubble-wrapper, .bubble {
    margin: 0;
    padding: 0;
  }
  
  .label {
  position: static !important;
  width: 100%;
  max-width: 80%;
  text-align: center;
  transform: none !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal !important;
  font-size: 0.92rem;
  line-height: 1.3;
  padding: 0 10px;
  color: #333;
  }
  .label.left,
  .label.right,
  .label.bottom {
  text-align: center !important;
  overflow: visible;
  }
  .tooltip {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: #333;
  color: white;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: normal;
  display: none;
  z-index: 10;
  height: auto;
  }


  
  .info {
  display: block;
  position: relative;
  top: 110px;
  transform: translateX(40%);
  background: #15A2B1;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  }
  
  /* FAKTEN */
  .image-container {
  height: 650px; /* Increased image height for mobile */
  }
  
  .icon-row {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  }
  
  .icon-box {
  width: 100%;
  max-width: none;
  padding: 0px;
  }
  
  .icon-box img {
  width: 60px;
  margin-bottom: 10px;
  }
  
  .text-group .label {
  font-size: 16px;
  margin-top: 0px;
  margin-bottom: 0px;
  color: #fff;
  }
  
  /* AKTUELLES */
  
  .aktuelles-grid {
  margin-bottom: 100px;
  }
  
  /* FOOTER */
  .footer-section {
  flex-direction: column; /* Stack the columns vertically */
  align-items: center;
  padding: 40px 20px; /* Adjust padding for mobile */
  gap: 20px; /* Add gap between stacked items */
  height: auto; /* Increase height to ensure all content is visible */
  }
  
  .column-main,
  .column-privacy,
  .column-impressum,
  .column-contact,
  .column-social {
  flex: 1 1 100%; /* Make each column take full width */
  align-items: center;
  }
  
  .column-social img {
  height: 20px; /* Increase the size of social icons for better visibility */
  width: 20px;
  }
  
  /* PARTNER */
  .logo-row-horizontal {
  flex-direction: column; /* Stack the logo groups vertically */
  align-items: center; /* Center the groups vertically */
  padding: 20px 0; /* Adjust padding for mobile */
  }
  
  .logo-group {
  flex: 1 1 100%; /* Make each group take full width */
  padding-left: 0; /* Remove padding for better alignment */
  margin-bottom: 20px; /* Add space between the groups */
  }
  
  .logo-row {
  flex-direction: column; 
  gap: 10px; 
  }
  
  .logo {
  max-height: 40px; 
  }
  
  .caption {
  text-align: center; 
  }
  
  /* GEFAHRENSZENARIEN */
  
  .gefahrenszenarien {
  margin: 80px;
  }
  
  .gefahrenszenarien h2 {
  text-align: center;
  }
  
  .card-container {
  gap: 0px;
  }
  
  .flip-card {
  width: 90%;
  height: auto;
  min-height: 400px;
  margin-bottom: 30px;
  }
  
  .flip-card-inner {
  min-height: auto;
  }
  
  .flip-card-front,
  .flip-card-back {
  min-height: 400px;
  padding: 20px;
  }
  
  .arrow-icon {
  margin-top: auto; /* Pfeil unter den Text setzen */
  }
  
  }
  
  /* Smaller devices (≤ 480px) */
  @media only screen and (max-width: 480px) {
  .flip-card {
  width: 90%;
  min-height: 450px; /* Adjust height for very small devices */
  }

  
  /* PROJEKTZIELE */
  .card p {
  text-align: center;
  }
  
  .card {
  max-width: 100%;
  padding: 15px;
  margin: 20px auto 60px auto;
  }
  
  /* PROJEKTTEILERGEBNISSE */
  
  .network-container {
    display: grid;
    grid-template-columns: 1fr; /* one column */
    gap: 20px;
    max-width: 170px; /* bubble width (150) + 20px padding */
    margin: 0 auto; /* center the container */
    padding: 0 10px;
    box-sizing: border-box;
    justify-items: center; /* center items inside the grid cells */
    background: white;
  }

  .network-scale-wrapper {
    background: transparent !important;
    overflow: hidden;  
    max-width: 420px;  /* or match the container max-width */
    margin: 0 auto;
    padding: 0 5px;
    box-sizing: border-box;
  }
  
  
  .bubble {
    width: 150px;
    height: 150px;
    /* margin removed to avoid shifting */
  }

  #bubble3 .tooltip-image {
    width: 100px;
    height: auto;
  
  }
  
  .label {
    text-align: center;
    padding-top: 0;
  }
  
  .tooltip {
    position: absolute;
    top: auto;
    left: 50%;
    bottom: 40%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: #333;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: normal;
    display: none;
    min-width: unset !important;
    max-width: 100vw !important;
    width: max-content;
    word-break: break-word;
  }

  #bubble3 .tooltip-image {
    width: 120px; 
    height: auto;
  }

  .image-row {
    display: flex;
    gap: 2px; 
  }
  
  
  .info {
    top: 140px;
    transform: translateX(50%);
  }

  /*Aktuelles */

  .messe-image {
    width: 250px;  
    height: auto;
    justify-content: center;
   }

  
}  
  
  @media only screen and (max-width: 360px) {
  .label.bottom {
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 90%; 
  line-height: 1.3;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 0 5px;
  }
  }
  
  @media only screen and (max-width: 320px) {
  .label.bottom {
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 70%; 
  line-height: 1.3;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 0 5px;
  }
  }
  
  /* Schriften für große Monitore */
  
  @media (min-width: 1920px) {
  body {
  font-size: 1.125rem;
  }
  
  h1, .hero h1 {
  font-size: 3rem;
  }
  
  h2, .caption h2,
  .projektziele h2,
  .projektergebnisse h2,
  .gefahrenszenarien h2,
  .fakten-content h2,
  .aktuelles h2 {
  font-size: 2rem;
  }
  
  h3, .flip-card-front h3,
  .card-back-content h4 {
  font-size: 1.75rem;
  }
  
  p,
  li,
  a,
  span,
  .text-content p,
  .flip-card-back p,
  .card p,
  .card-back-body p {
  font-size: 1.125rem;
  }
  
  .flip-card-front p {
  font-size: 2rem;
  }
  
  .projektziele .btn {
  font-size: 1.125rem;
  }
  
  .text-group {
  font-size: 1.5rem;
  }
  
  .number {
  font-size: 1.5rem;
  }
  
  .label,
  .label.right,
  .label.left,
  .label.bottom {
  font-size: 1.125rem;
  }
  
  .bubble-wrapper .info {
  font-size: 1rem;
  }
  
  .tooltip {
  font-size: 1rem;
  }
  
  li a {
  font-size: 1.25rem;
  }

  }
  
  
  @media (min-width: 2560px) {
  body {
  font-size: 1.25rem;
  }
  
  h1, .hero h1 {
  font-size: 4rem;
  }
  
  h2, .caption h2,
  .projektziele h2,
  .projektergebnisse h2,
  .gefahrenszenarien h2,
  .fakten-content h2,
  .aktuelles h2 {
  font-size: 2.25rem;
  }
  
  h3, .flip-card-front h3,
  .card-back-content h4 {
  font-size: 1.8rem;
  }
  
  p,
  li,
  a,
  span,
  .text-content p,
  .flip-card-back p,
  .card p,
  .card-back-body p {
  font-size: 1.5rem;
  }
  
  .flip-card-front p {
  font-size: 2rem;
  }
  
  .projektziele .btn {
  font-size: 1.25rem;
  }
  
  .text-group {
  font-size: 1.75rem;
  }
  
  .number {
  font-size: 1.75rem;
  }
  
  .label,
  .label.right,
  .label.left,
  .label.bottom {
  font-size: 1.25rem;
  }
  
  .bubble-wrapper .info {
  font-size: 1.125rem;
  }
  
  .tooltip {
  font-size: 1.125rem;
  }
  
  li a {
  font-size: 1.375rem;
  }
  }
  
  