/* === START: Basis-CSS === */

/* --- Globale Stile & Reset --- */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Body bekommt den HINTERGRUND, aber mit Standard-Scrollverhalten */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding-top: 80px;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url("bilder/hintergrund.webp");
    background-position: center center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Standardverhalten (scrollt mit) */
    /*background-color: #ffffffc5 !important; /* Fallback-Farbe */
    background-blend-mode: overlay;
    position: static; /* Zurückgesetzt */
    z-index: auto;    /* Zurückgesetzt */
  }

  html {
    scroll-behavior: smooth;
  }
  
  main {
    overflow-y: auto;
  }
  
  
  
  /* ::before Regel ist entfernt */
  
  /* Section bleibt transparent, braucht keine spezielle Positionierung mehr */
  section {
    padding: 60px 20px;
    border-top: 1px solid #ffffff;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: static; /* Zurückgesetzt */
    z-index: auto;    /* Zurückgesetzt */
    background: transparent; /* WICHTIG: Bleibt transparent */
  }
  
  section:first-of-type {
    border-top: none;
    padding-top: 20px;
    min-height: calc(100vh - 80px);
  }
  
  h1,
  h2,
  h3 {
    margin-bottom: 1.5rem;
    color: #000000;
  }
  
  h1 {
    font-size: 2.8em;
    line-height: 1.2;
    text-align: center;
  }
  
  h2 {
    font-size: 2.2em;
  }
  
  h3 {
    font-size: 1.8em;
  }
  
  p {
    margin-bottom: 1rem;
    text-align: center;
  }
  
  a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  a:hover {
    color: #444444;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  ol,
  ul {
    padding-left: 20px;
    margin-bottom: 1rem;
  }
  
  /* --- Header & Navigation --- */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 80px;
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
  }
  
  .logo-img {
    max-height: 60px;
    width: auto;
  }
  
  nav {
    display: flex;
    align-items: center;
  }
  
  .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
  }
  
  .nav-links li {
    margin: 0 5px;
    position: relative;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: 1px solid transparent;
    white-space: nowrap;
  }
  
  .nav-links a:hover,
  .nav-links a:focus {
    background-color: #fff100;
    color: #333;
    border: 1px solid #e0d400;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: 2px solid transparent;
    outline-offset: 2px;
  }
  
  .nav-links a:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 241, 0, 0.5);
  }
  
  .burger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    margin-left: 15px;
  }
  
  .burger i {
    font-size: 24px;
    color: #000000;
  }
  
  /* --- Buttons --- */
  .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  
  .button,
  button,
  input[type="submit"],
  a.button {
    display: inline-block;
    background-color: #333;
    color: #fff100;
    border: 1px solid #333;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.1s ease, box-shadow 0.2s ease;
    white-space: nowrap;
  }
  
  .button:hover,
  button:hover,
  input[type="submit"]:hover,
  a.button:hover {
    background-color: #fff100;
    color: #333;
    border: 1px solid #e0d400;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  }
  
  .button:focus,
  button:focus,
  input[type="submit"]:focus,
  a.button:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
  }
  
  .button:focus-visible,
  button:focus-visible,
  input[type="submit"]:focus-visible,
  a.button:focus-visible {
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.4);
  }
  
  .button-secondary,
  a.button-secondary {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
  }
  
  .button-secondary:hover,
  a.button-secondary:hover {
    background-color: #fff100;
    color: #333;
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  }
  
  .button-secondary:focus-visible,
  a.button-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(204, 204, 204, 0.6);
  }
  
  /* --- Hero Section --- */
  .hero {
    color: #000000;
    text-align: center;
    padding: 40px 15px;
    background: none;
    min-height: auto;
    border-radius: 0;
    border: none;
  }
  
  .hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
  }
  
  .hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* --- Feature Items Grid --- */
  .features-grid {
    /* Container kann leer bleiben */
  }
  
  .feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Hover-Schatten angepasst */
    background-color: #fff100;
  }
  
  .feature-item i {
    font-size: 3.5em;
    color: #333;
    margin-bottom: 20px;
  }
  
  .feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #212529;
  }
  
  .feature-item p {
    font-size: 1em;
    color: #555;
  }
  
  /* --- Product Grids (Hauptseite) --- */
  .product-grid-container {
    margin: 30px auto;
    max-width: 1200px;
    width: 95%;
  }
  
  .product-grid-boxed {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    padding: 20px;
    background-color: #ffffffd5;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  @media (min-width: 768px) {
    .product-grid-boxed {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      padding: 25px;
    }
  }
  
  @media (min-width: 1024px) {
    .product-grid-boxed {
      grid-template-columns: repeat(4, 1fr);
      gap: 25px;
    }
  }
  
  .product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 8px;
    padding: 25px 15px;
    font-size: 1em;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
  }
  
  .product-item:hover,
  .product-item:focus {
    background-color: #fff100;
    color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    outline: none;
  }
  
  .product-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 241, 0, 0.6);
  }
  
  .product-item i {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #444;
    transition: color 0.3s ease;
  }
  
  .product-item:hover i,
  .product-item:focus i {
    color: #000;
  }
  
  .product-item p {
    font-size: 1.1em;
    color: inherit;
    font-weight: 600;
    margin-bottom: 0;
  }
  
  .grid-info {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95em;
    color: #444;
  }
  
  /* --- Container für Lesbarkeit --- */
  .content-background-box {
    background-color: #ffffffd5;
    padding: 40px 15px;
    border-radius: 8px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: static; /* Zurückgesetzt */
    z-index: auto;    /* Zurückgesetzt */
    overflow-wrap: break-word;
  }
  
  .content-background-box h2,
  .content-background-box h3 {
    text-align: center;
  }
  
  .content-background-box ol.process-list {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* --- Beratung Section --- */
  #beratung ol.process-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
  }
  
  #beratung ol.process-list li {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 10px;
    padding: 20px 25px 20px 50px;
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    counter-increment: process-counter;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
  }
  
  #beratung ol.process-list li::before {
    content: counter(process-counter);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff100;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  #beratung ol.process-list li:hover {
    background-color: #fff100;
    color: #333;
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  }
  
  /* --- Kontakt Section & Formular --- */
  #kontakt .kontakt-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    margin: 30px auto;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
  
  .kontakt-formular,
  .kontaktdaten {
    flex: 1;
    min-width: 300px;
  }
  
  #kontakt form div {
    margin-bottom: 20px;
  }
  
  #kontakt label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
  }
  
  #kontakt input[type="text"],
  #kontakt input[type="email"],
  #kontakt input[type="tel"],
  #kontakt textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.5;
  }
  
  #kontakt input[type="text"]:focus,
  #kontakt input[type="email"]:focus,
  #kontakt input[type="tel"]:focus,
  #kontakt textarea:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
  }
  
  #kontakt textarea {
    resize: vertical;
    min-height: 130px;
  }
  
  #kontakt .form-actions {
    text-align: center;
  }
  
  #kontakt button[type="submit"] {
    margin-top: 10px;
  }
  
  #form-status {
    margin-top: 15px;
    font-weight: bold;
    min-height: 1.5em;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
  }
  
  #form-status.success {
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
  }
  
  #form-status.error {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
  }
  
  .kontaktdaten p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
  }
  
  .kontaktdaten strong {
    color: #333;
  }
  
  .kontaktdaten iframe {
    max-width: 100%;
    border-radius: 8px;
  }
  
  /* --- Footer --- */
  footer {
    background-color: #e9ecef;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9em;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
  }
  
  footer a {
    color: #000000;
    font-weight: 500;
  }
  
  footer a:hover {
    color: #000000;
  }
  
  /* --- Floating Window --- */
  .floating-window-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1040;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  
  .floating-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8f9fa;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    width: 90%;
    max-width: 950px;
    max-height: 96vh;
    min-height: 50vh;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .floating-window-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 96vh;
  }
  
  .floating-content {
    padding: 20px 25px;
    overflow-y: auto;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
    background-color: #ffffff;
  }
  
  .close-button {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 400;
    background-color: #f1f3f5;
    color: #6c757d;
    border: none;
    padding: 2px 8px;
    line-height: 1.2;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 10;
  }
  
  .close-button:hover,
  .close-button:focus {
    background-color: #fff100;
    color: #333;
    transform: none;
    outline: 2px solid transparent;
    outline-offset: 2px;
  }
  
  .close-button:focus-visible {
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.4);
  }
  
  /* --- Back to Top Button --- */
  #back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: rgba(51, 51, 51, 0.8);
    color: #fff100;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5em;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
    display: none; /* Initial ausgeblendet durch JS */
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  }
  
  #back-to-top:hover,
  #back-to-top:focus {
    opacity: 1;
    background-color: rgba(51, 51, 51, 1);
    transform: scale(1.05);
    outline: none;
  }
  
  #back-to-top i {
    line-height: 1;
  }
  
  /* --- Hilfsklassen --- */
  .skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
    background-color: #fff100;
    color: #333;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
  }
  
  .skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: 1100;
    border: 2px solid #333;
  }
  
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  /* --- Stile für Popup-Inhalt --- */
  .popup-layout {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
  }
  
  .popup-layout .popup-header {
    text-align: center;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 2px solid #333;
    background-color: #fff100;
    border-radius: 8px;
  }
  
  .popup-layout .popup-header h1 {
    font-size: 1.5em;
    color: #333;
    margin: 0;
    line-height: 1.3;
  }
  
  .popup-layout .popup-header .popup-header-icon {
    margin-bottom: 8px;
  }
  
  .popup-layout .popup-header .popup-header-icon .fa-2x {
    font-size: 2.3em;
    color: #333;
  }
  
  .popup-layout .popup-subheader {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .popup-layout .popup-subheader .popup-tagline {
    font-size: 1em;
    color: #555;
    margin-bottom: 8px;
  }
  
  .popup-layout .popup-subheader .popup-description-text {
    font-size: 0.9em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
  }
  
  .popup-layout .popup-benefits {
    margin-bottom: 25px;
  }
  
  .popup-layout .benefits-box-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
  }
  
  .popup-layout .benefit-box-simple {
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    padding: 18px 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 500;
    color: #000000;
    transition: color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .popup-layout .benefit-box-simple:hover {
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .popup-layout .benefit-box-icon {
    display: block;
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.2s ease;
  }
  
  .popup-layout .benefit-box-simple:hover .benefit-box-icon {
    color: #000;
  }
  
  .popup-layout .benefit-box-text {
    display: block;
    font-size: 0.9em;
  }
  
  .popup-layout .popup-cta {
    margin-bottom: 30px;
  }
  
  .popup-layout .popup-cta .button-container {
    margin-top: 0;
  }
  
  .popup-layout .popup-leistungen-title {
    font-size: 1.4em;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #333;
  }
  
  .popup-layout .popup-leistungen-title::after {
    display: none;
  }
  
  .popup-layout .popup-tab-controls {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: none;
  }
  
  .popup-layout .popup-tab-controls.single-tab {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .popup-layout .popup-tab-controls.two-tabs {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .popup-layout .popup-tab-controls.five-tabs {
    grid-template-columns: repeat(5, 1fr);
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  
  .popup-layout .popup-tab-controls:not(.single-tab):not(.two-tabs):not(.five-tabs) {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .popup-layout .popup-tab-button {
    padding: 12px 10px;
    font-size: 0.90em;
    font-weight: 600;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .popup-layout .popup-tab-button small {
    font-size: 0.8em;
    display: block;
    line-height: 1;
    margin-top: 2px;
    opacity: 0.8;
  }
  
  .popup-layout .popup-tab-button:hover {
    color: #000;
    background-color: #f8f9fa;
    border-color: #aaa;
  }
  
  .popup-layout .popup-tab-button:focus {
    outline: none;
  }
  
  .popup-layout .popup-tab-button:focus-visible {
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.4);
  }
  
  .popup-layout .popup-tab-button.active {
    color: #333;
    background-color: #fff100;
    border-color: #e0d400;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  }
  
  .popup-layout .popup-tab-content {
    padding-top: 0;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    min-height: 250px;
    background-color: #fff;
    margin-bottom: 15px;
  }
  
  .popup-layout .popup-tab-panel {
    padding: 20px;
    animation: fadeInPopupLayout 0.4s ease;
  }
  
  .popup-layout .tab-panel-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
  }
  
  .popup-layout .popup-tab-panel:not(.active) {
    display: none;
  }
  
  @keyframes fadeInPopupLayout {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .popup-layout .leistungsarten-tabelle {
    width: 100%;
    margin-top: 0;
    font-size: 0.9em;
    border: none;
    border-radius: 0;
    border-collapse: collapse;
    border-spacing: 0;
    overflow: hidden;
  }
  
  .popup-layout .leistungsarten-tabelle th,
  .popup-layout .leistungsarten-tabelle td {
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
  }
  
  .popup-layout .leistungsarten-tabelle tr:last-child td {
    border-bottom: none;
  }
  
  .popup-layout .leistungsarten-tabelle thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.95em;
  }
  
  .popup-layout .leistungsarten-tabelle tbody tr:nth-child(even) td {
    background-color: #e9ecef;
  }
  
  .popup-layout .leistungsarten-tabelle tbody tr:hover td {
    background-color: #d4dadf;
  }
  
  .popup-layout .leistungsarten-tabelle small {
    font-size: 0.85em;
    color: #6c757d;
    display: inline-block;
  }
  
  /* --- Vergleichstabelle (3 Schichten) --- */
  .comparison-table {
    margin-top: 15px;
    border: 1px solid #dee2e6;
    border-collapse: collapse;
    width: 100%;
  }
  
  .comparison-table th,
  .comparison-table td {
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    font-size: 0.88em;
    line-height: 1.5;
  }
  
  .comparison-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-align: center;
    vertical-align: middle;
  }
  
  .comparison-table tbody th,
  .comparison-table tbody td:first-child {
    font-weight: 600;
    background-color: #f8f9fa;
  }
  
  .comparison-table ul {
    margin: 0;
    padding-left: 18px;
    font-size: 1em;
  }
  
  .comparison-table ul li {
    margin-bottom: 4px;
  }
  
  .table-responsive-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
  }
  
  /* --- FAQ Anpassungen im Popup --- */
  .popup-layout .faq-bullet-item {
    margin-bottom: 0.7em;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    text-align: left;
  }
  
  .popup-layout .faq-bullet-item i {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    margin-right: 10px;
    margin-top: 0.1em;
    color: #007bff;
  }
  
  .popup-layout .faq-cta-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  
  /* --- Media Queries (Basis) --- */
  @media (max-width: 1024px) {
    #startseite-heading {
      font-size: 2em; /* Kleinere Schriftgröße für Handys */
      line-height: 1.3;
    }
    h2 {
      font-size: 1.9em; /* War 2.2em */
    }
    h3 {
      font-size: 1.6em; /* War 1.8em */
    }
    /* Mobile Navigation Styles */
    .nav-links {
      display: none;
      position: absolute;
      top: 80px;
      left: 0;
      width: 100%;
      background-color: #ffffff;
      flex-direction: column;
      align-items: center;
      padding: 15px 0;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
      border-top: 1px solid #eee;
      z-index: 999;
    }
    .nav-links.active {
      display: flex;
    }
    .nav-links li {
      margin: 8px 0;
      width: 100%;
      text-align: center;
    }
    .nav-links a {
      padding: 12px 20px;
      display: block;
      width: 90%;
      margin: 0 auto;
      border: 1px solid transparent;
    }
    .nav-links a:hover,
    .nav-links a:focus {
      background-color: #f0f0f0;
      color: #333;
      border: 1px solid #ddd;
    }
    .burger {
      display: block;
    }
    .hero h1 {
      font-size: 2.8em;
    }
    /* Mobile Dropdown Anpassungen */
    .nav-links.active li.has-dropdown > a {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 90%;
      margin: 0 auto;
    }
    .nav-links.active li.has-dropdown > a .dropdown-icon {
      margin-left: 8px;
    }
    .nav-links.active .dropdown-menu {
      display: none;
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      box-shadow: none;
      border: none;
      background-color: #f8f9fa;
      padding: 5px 0 10px 0;
      margin-top: 5px;
      border-top: 1px solid #eee;
      border-bottom: 1px solid #eee;
      border-radius: 0;
    }
    .nav-links.active li.has-dropdown.dropdown-open > .dropdown-menu {
      display: block;
    }
    .nav-links.active .dropdown-menu li a {
      padding: 10px 20px;
      text-align: center;
      font-weight: normal;
      color: #555;
    }
    .nav-links.active .dropdown-menu li a:hover,
    .nav-links.active .dropdown-menu li a:focus {
      background-color: #f0f0f0;
      color: #000;
    }
    .nav-links.active .dropdown-menu li a:focus-visible {
      background-color: #e0e0e0;
    }
    /* Social Icons Mobile */
    .nav-links.active .social-nav-item {
      margin: 5px 0;
      width: 90%;
      margin-left: auto;
      margin-right: auto;
    }
    .nav-links.active .social-nav-item a {
      padding: 10px 20px;
      display: block;
      font-size: 1.4em;
      text-align: center;
    }
    .nav-links.active .social-nav-item a i {
      color: #333;
      transform: none;
    }
    .nav-links.active .social-nav-item a:hover i,
    .nav-links.active .social-nav-item a:focus i {
      color: #000;
    }
    .nav-links.active .social-nav-item a:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px rgba(204, 204, 204, 0.6);
    }
  }
  
  .show-team-photo-link {
    display: none;
  }

  @media (max-width: 768px) {
    h2 {
      font-size: 1.7em;
    }
    h3 {
      font-size: 1.4em;
    }
    #startseite-heading {
      font-size: 2em; /* Kleinere Schriftgröße für Handys */
      line-height: 1.3;
    }
    .popup-layout .benefits-box-grid-simple {
      grid-template-columns: repeat(2, 1fr);
    }
    .popup-layout .popup-tab-controls {
      grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
      font-size: 2.4em;
      line-height: 1.3;
    }
    .hero p {
      font-size: 1.15em;
    }
    /* Hintergrund für Mobile (optional) */
    /* section { background: #f8f9fa; } */ /* Entfernt, um Body-Hintergrund durchzulassen */
    /* Team Foto Mobile */
    .team-photo-container img.team-photo-thumbnail {
      display: none;
    }
   
    .show-team-photo-link {
      display: inline-block;
      margin-top: 15px;
      padding: 8px 15px;
      border: 1px solid #ccc;
      background-color: #f8f9fa;
      color: #333;
      border-radius: 5px;
      text-decoration: none;
      font-size: 0.9em;
      font-weight: 600;
      transition: background-color 0.2s ease, border-color 0.2s ease;
      cursor: pointer;

    }
    .show-team-photo-link:hover,
    .show-team-photo-link:focus {
      background-color: #e9ecef;
      border-color: #bbb;
      color: #333;
      text-decoration: none;
      outline: none;
    }
    .show-team-photo-link:focus-visible {
      box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.4);
    }
    .show-team-photo-link i {
      margin-right: 5px;
    }
  }
  
  @media (max-width: 480px) {
    #startseite-heading {
      font-size: 1.8em; /* Noch kleinere Schriftgröße */
      line-height: 1.35;
    }
    h2 {
      font-size: 1.5em;
    }
    h3 {
      font-size: 1.3em;
    }

    .popup-layout .benefits-box-grid-simple {
      grid-template-columns: repeat(2, 1fr);
    }
    .popup-layout .popup-tab-controls {
      grid-template-columns: repeat(2, 1fr);
    }
    .popup-layout .popup-tab-button {
      font-size: 0.85em;
      padding: 8px 5px;
    }
    .popup-layout .leistungsarten-tabelle {
      font-size: 0.8em;
    }
    .popup-layout .leistungsarten-tabelle th,
    .popup-layout .leistungsarten-tabelle td {
      padding: 8px 10px;
    }
    .hero h1 {
      font-size: 1.9em;
      line-height: 1.35;
    }
    .hero p {
      font-size: 1.05em;
    }
    /* Swiper Mobile */
    #news h2 {
      font-size: 1.6em;
      padding-left: 5px;
      padding-right: 5px;
    }
    #news .content-background-box {
      padding-left: 0;
      padding-right: 0;
    }
    #news-feed-container.swiper {
      padding-left: 0;
      padding-right: 0;
    }
    .news-slider .swiper-button-prev,
    .news-slider .swiper-button-next {
      width: 35px;
      height: 35px;
      background: #0000007e;
    }
    .news-slider .swiper-button-prev { left: 2px; }
    .news-slider .swiper-button-next { right: 2px; }
    .news-slider .swiper-button-prev::after,
    .news-slider .swiper-button-next::after {
      font-size: 0.9em;
    }
    #news-feed-container.swiper .swiper-slide {
      width: 100% !important;
      box-sizing: border-box !important;
      flex-shrink: 0 !important;
    }
    .news-item {
      padding: 15px;
      min-height: 200px;
      width: 100%;
    }
    .news-item h3 { font-size: 1em; }
    .news-item .news-meta { font-size: 0.75em; }
    .news-item .news-excerpt { font-size: 0.85em; line-height: 1.45; }
    .news-item .news-source { font-size: 0.7em; }
  }
  
  /* --- Bild-Modal Spezifisches Styling --- */
  .floating-window.image-modal .floating-content {
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }
  
  .floating-window.image-modal .close-button {
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
  }
  
  .floating-window.image-modal .close-button:hover {
    background-color: rgba(255, 255, 255, 1);
  }
  
  /* --- Teamfoto & Bildungsverlauf --- */
  .team-photo-container {
    margin: 40px 0;
    padding: 0 20px;
    text-align: center;
  }
  
  .team-photo-thumbnail {
    max-width: 300px;
    height: auto;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    display: inline-block;
    vertical-align: middle;
  }
  
  .team-photo-thumbnail:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  }
  
  .education-image-container {
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  .education-image {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .education-image:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  }
  
  /* --- FAQ Styling --- */
  .faq-container {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .faq-container details {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
    overflow: hidden;
  }
  
  details[open] {
    background-color: #f8f9fa;
  }
  
  details summary {
    padding: 15px 20px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    outline: none;
    display: block;
    position: relative;
  }
  
  details summary::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    color: #888;
  }
  
  details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
  }
  
  summary:focus-visible {
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.4);
    border-radius: 3px;
  }
  
  .faq-antwort {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    text-align: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    border-top: 1px solid #eee;
    margin-top: 10px;
  }
  
  .faq-bullet-item {
    margin-bottom: 0.7em;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    text-align: left;
  }
  
  .faq-bullet-item i {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    margin-right: 10px;
    margin-top: 0.1em;
    color: #007bff;
  }
  
  .faq-bullet-item .fa-check { color: #28a745; }
  .faq-bullet-item .fa-car-crash { color: #dc3545; }
  .faq-bullet-item .fa-file-contract { color: #17a2b8; }
  
  /* --- Social Media Icons in Header --- */
  .nav-links .social-nav-item a {
    padding: 10px 8px;
    font-size: 1.3em;
    line-height: 1;
    background-color: transparent; /* Korrigiert: !important entfernt */
    border-color: transparent;    /* Korrigiert: !important entfernt */
    box-shadow: none;             /* Korrigiert: !important entfernt */
    transition: background-color 0.3s ease, color 0.3s ease; /* Transition hinzugefügt */
  }
  
  .nav-links .social-nav-item a i {
    color: #333;
    transition: color 0.2s ease, transform 0.2s ease;
    vertical-align: middle;
    display: inline-block;
  }
  
  /* Korrigierte Hover-Regel für den Link selbst */
  .nav-links .social-nav-item a:hover,
  .nav-links .social-nav-item a:focus {
      background-color: #fff100; /* Gelber Hintergrund */
      outline: none;
  }
  
  /* Bestehende Hover/Fokus-Regel für das Icon (macht Icon schwarz) */
  .nav-links .social-nav-item a:hover i,
  .nav-links .social-nav-item a:focus i {
    color: #000; /* Icon wird schwarz */
    transform: scale(1.15);
  }
  
  /* Korrigiertes Fokus-Styling */
  .nav-links .social-nav-item a:focus-visible {
       box-shadow: 0 0 0 3px rgba(255, 241, 0, 0.5); /* Gelber Fokus-Ring */
       outline: none;
  }
  
  
  /* --- News Feed (Swiper) --- */
  #news h2 {
    text-align: center !important;
    font-size: 2.2em;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  #news .content-background-box {
    position: relative;
    padding: 25px 30px;
  }
  
  #news-feed-container.swiper {
    margin-top: 20px;
    padding-left: 5px;
    padding-right: 5px;
    overflow: hidden;
    position: relative;
  }
  
  .news-slider .swiper-button-prev,
  .news-slider .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    margin-top: 0;
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }
  
  .news-slider .swiper-button-prev:hover,
  .news-slider .swiper-button-next:hover {
    background-color: #fff100;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .news-slider .swiper-button-prev:focus,
  .news-slider .swiper-button-next:focus {
    outline: none;
  }
  
  .news-slider .swiper-button-prev:focus-visible,
  .news-slider .swiper-button-next:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 241, 0, 0.6);
  }
  
  .news-slider .swiper-button-prev::after,
  .news-slider .swiper-button-next::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1em;
    color: inherit;
  }
  
  .news-slider .swiper-button-prev::after { content: '\f053'; }
  .news-slider .swiper-button-next::after { content: '\f054'; }
  .news-slider .swiper-button-prev { left: 10px; }
  .news-slider .swiper-button-next { right: 10px; }
  
  .news-slider .swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
  }
  
  .news-slider .swiper-slide {
    height: auto;
    display: flex;
  }
  
  .news-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 250px;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
  }
  
  .news-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  }
  
  .news-item h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #333;
  }
  
  .news-item h3 a {
    color: inherit;
    text-decoration: none;
  }
  
  .news-item h3 a:hover {
    text-decoration: underline;
    color: #0056b3;
  }
  
  .news-item .news-meta {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 12px;
  }
  
  .news-item .news-excerpt {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 15px;
  }
  
  .news-item .news-source {
    font-size: 0.75em;
    color: #888;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
  }
  
  .news-item .news-source small {
    font-size: inherit;
  }
  
  /* Fallback Swiper */
  .swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    overflow-x: auto;
    padding-bottom: 15px;
  }
  
  .swiper:not(.swiper-initialized) .swiper-slide {
    flex-shrink: 0;
    width: 80%;
    margin-right: 15px;
  }
  
  @media (min-width: 600px) {
    .swiper:not(.swiper-initialized) .swiper-slide { width: 45%; }
  }
  
  @media (min-width: 992px) {
    .swiper:not(.swiper-initialized) .swiper-slide { width: 30%; }
  }
  
  .swiper:not(.swiper-initialized) .swiper-button-prev,
  .swiper:not(.swiper-initialized) .swiper-button-next {
    display: none;
  }
  
  /* --- Dropdown Navigation --- */
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }
  
  .dropdown-menu li {
    margin: 0;
    width: 100%;
  }
  
  .dropdown-menu li a {
    display: block;
    padding: 9px 20px;
    color: #333;
    font-weight: normal;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  
  .dropdown-menu li a:hover,
  .dropdown-menu li a:focus {
    background-color: #fff100;
    color: #333;
    text-decoration: none;
    outline: none;
  }
  
  .dropdown-menu li a:focus-visible {
    background-color: #e0d400;
  }
  
  .nav-links li.has-dropdown:hover > .dropdown-menu,
  .nav-links li.has-dropdown:focus-within > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-links .has-dropdown > a .dropdown-icon {
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
  }
  
  .nav-links li.has-dropdown:hover > a .dropdown-icon,
  .nav-links li.has-dropdown:focus-within > a .dropdown-icon,
  .nav-links li.has-dropdown.dropdown-open > a .dropdown-icon {
    transform: rotate(180deg);
  }

  #startseite-heading {
    /* Mögliche bestehende Stile hier */
    overflow-wrap: break-word; /* Ermöglicht den Umbruch langer Wörter, falls nötig */
    word-wrap: break-word; /* Alternative für ältere Browser */
    hyphens: auto; /* Fügt Trennstriche hinzu, um den Umbruch zu verbessern (optional) */
  }
  /* --- Ende Styling --- */