@import "./fonts.css";
@import "./variables.css";

@import "./icons.css";
@import "./tables.css";
@import "./buttons.css";

@import "./footer.css";

@import "./scrollToTop.css";

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color: var(--color-black);
    background: #fff;
    overflow-x: hidden;
}
body p.align-center,
.ce-headline-center {
    text-align: center;
}

video.video-embed-item {
    width: 100%;
    min-height: 250px;
    object-fit: cover;
}

h1,
h2,
h3,
h4,
h5,
h5 {
    margin: 0px;
    font-weight: normal;
    font-family: var(--font-serif);
}

h1 {
    font-size: 2.25rem;
    padding-bottom: 2rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 800;
}
h2 {
    font-size: 1.5rem;
    padding-bottom: 1rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}
h3 {
    font-size: 1.5rem;
    padding-bottom: 1rem;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}
h4 {
    margin: 0;
    padding-bottom: 15px;
    font-size: 1.3rem;
    line-height: 24px;
}

a,
.gaOptout {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    color: var(--color-black);
}
a:focus,
.gaOptout:focus {
    outline: none;
    outline-offset: 0;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}
a:hover,
.gaOptout:hover {
    color: var(--color-black);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.clearer {
    clear: both;
    float: none;
}

.ce-border img {
    border: 1px solid var(--color-black);
}

::-moz-selection {
    color: var(--color-black);
    background-color: var(--color-yellow);
}
::selection {
    color: var(--color-black);
    background-color: var(--color-yellow);
}

.frame-space-before-extra-small {
    padding-top: 1rem;
    margin-top: 0;
}
.frame-space-before-small {
    padding-top: 2rem;
    margin-top: 0;
}
.frame-space-before-medium {
    padding-top: 3rem;
    margin-top: 0;
}
.frame-space-before-large {
    padding-top: 4rem;
    margin-top: 0;
}
.frame-space-before-extra-large {
    padding-top: 5rem;
    margin-top: 0;
}
.frame-space-after-extra-small {
    padding-bottom: 1rem;
    margin: 0;
}
.frame-space-after-small {
    padding-bottom: 2rem;
    margin-bottom: 0;
}
.frame-space-after-medium {
    padding-bottom: 3rem;
    margin-bottom: 0;
}
.frame-space-after-large {
    padding-bottom: 4rem;
    margin-bottom: 0;
}
.frame-space-after-extra-large {
    padding-bottom: 5rem;
    margin-bottom: 0;
}

.frame-type-felogin_login fieldset label {
    margin-bottom: 0.5rem;
}
.frame-type-felogin_login fieldset legend {
    display: none;
}
.frame-type-felogin_login fieldset label span {
    display: block;
    padding-bottom: 0.2rem;
}
.frame-type-felogin_login input[type="submit"] {
    margin-top: 0.5rem;
}
.frame-type-felogin_login input[type="text"],
.frame-type-felogin_login input[type="password"] {
    padding: 0.5rem 1rem;
}

.telefon,
.fax,
.email,
.website {
    display: inline-flex;
    gap: 0.5rem;
}

.telefon:before {
    content: "\f095";
    font-family: "Font Awesome\ 6 Pro";
    text-decoration: inherit;
    list-style: none;
    position: relative;
    font-size: 1rem;
    line-height: 1.8;
    top: 0px;
    color: #4a4a49;
    padding: 0;
    font-weight: 300;
}
.fax:before {
    content: "\f1ac";
    font-family: "Font Awesome\ 6 Pro";
    text-decoration: inherit;
    list-style: none;
    position: relative;
    font-size: 1rem;
    line-height: 1.8;
    top: 0px;
    color: #4a4a49;
    padding: 0;
    font-weight: 300;
}
.email:before {
    content: "\f0e0";
    font-family: "Font Awesome\ 6 Pro";
    text-decoration: inherit;
    list-style: none;
    position: relative;
    font-size: 1rem;
    line-height: 1.8;
    top: 0px;
    color: #4a4a49;
    padding: 0;
    font-weight: 300;
}
.website:before {
    content: "\f0ac";
    font-family: "Font Awesome\ 6 Pro";
    text-decoration: inherit;
    list-style: none;
    position: relative;
    font-size: 1rem;
    line-height: 1.8;
    top: 0px;
    color: #4a4a49;
    padding: 0;
    font-weight: 300;
}
.extlink:after {
    content: "\f08e";
    font-family: "Font Awesome\ 6 Pro";
    text-decoration: inherit;
    list-style: none;
    position: relative;
    font-size: 1rem;
    line-height: 1.8;
    top: 0px;
    color: #4a4a49;
    padding: 0;
    font-weight: 300;
    transition: all 0.2s ease-in-out;
}
.extlink:hover:after {
    color: #005a63;
    transition: all 0.2s ease-in-out;
}
.intlink:before {
    content: "\f0da";
    font-family: "Font Awesome\ 6 Pro";
    text-decoration: inherit;
    list-style: none;
    position: absolute;
    margin-top: 1px;
    margin-right: 0px;
    font-size: 1.2rem1;
    margin-left: -10px;
    color: #fff;
    padding: 0;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}
.extlink {
    text-decoration: none !important;
}
.intlink:hover:before {
    color: #fff;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}
.intlink {
    margin-left: 10px;
}

.justify-content-between {
    justify-content: space-between !important;
    --bs-gutter-x: 4.5rem;
    --bs-gutter-y: 2rem;
}

#header {
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    position: fixed;
    top: 0;
    height: 100vh;
    z-index: 1;
    float: left;
    width: 25%;
}
.header-inner {
    top: 0;
    left: 0;
    z-index: 10;
    position: sticky;
    height: 100vh;
    background: var(--color-yellow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: auto;
}
#header p {
    margin: 0;
}

.logo {
    position: relative;
}
.logo a {
    display: block;
}
.logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    transition: all 0.5s ease-in-out;
}

ul.navigation {
    list-style: none;
    padding: 0;
}
.nav-link {
    padding: 0.5rem 0;
    font-weight: 600;
}
.mainnav a {
    color: var(--color-black);
}
.mainnav a:hover,
.mainnav .active a {
    color: var(--color-darkred);
}
.navbar {
    display: block;
    padding-top: 1.5rem;
}
.navbar ul.sub {
    position: relative;
    list-style: none;
    display: none;
    padding: 0;
    list-style: none;
    left: 0rem;
    z-index: 2;
    padding-left: 2rem;
}
.navbar ul.sub a.nav-link,
.navbar ul.subsub a.nav-link {
    margin-right: 0;
    display: block;
    color: var(--color-black);
    border-radius: 0;
    text-transform: none;
    font-weight: 500;
}
.nav-link:focus,
.nav-link:hover {
    color: var(--color-black);
}
.navbar ul.sub a.nav-link:hover,
.navbar ul.sub .active a.nav-link {
    color: var(--color-darkred);
}
.navbar a.nav-link:hover svg path,
.navbar .active a.nav-link svg path {
    fill: var(--color-darkred);
}
.navbar .dropdown > a {
    padding-right: 1.2rem;
}
.navbar .dropdown > a:after {
    content: "\f107";
    font-family: "Font Awesome\ 6 Pro";
    text-decoration: inherit;
    list-style: none;
    position: absolute;
    font-size: 1rem;
    padding: 0;
    font-weight: 600;
    right: 0rem;
    top: 0.5rem;
}
ul.subsub {
    list-style: none;
    padding-left: 1rem;
}
.navbar .active ul.subsub a.nav-link {
    color: var(--color-black);
}
.navbar ul.subsub a.nav-link:hover,
.navbar ul.subsub .active a.nav-link {
    color: var(--color-darkred);
}
.navbar .bg {
    display: flex;
    gap: 0.5rem;
    align-items: cenetr;
}
.navbar .bg svg {
    display: flex;
}

.frame-layout-1 {
    background: var(--color-yellow);
}

.frame-type-ce_columns2 .frame-layout-1 {
    padding: 1.5rem;
}

.login {
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: end;
}
.mobileheader .login {
    height: auto;
    flex-direction: row;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.login a {
    display: flex;
    gap: 0.5rem;
    color: var(--color-black);
    font-weight: bold;
}
.login a:before {
    content: "";
    background: var(--icon-login);
    width: 22px;
    top: 1px;
    position: relative;
}

ul.ce-uploads {
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.ce-uploads li {
    flex: auto;
    margin-bottom: 0.5rem;
}
ul.ce-uploads a {
    color: #2a2623;
    display: inline-flex;
    gap: 0.3rem;
    text-decoration: none;
}

section#maincontent {
    width: 75%;
    float: right;
}
.content {
    padding: 1.5rem;
    height: 100%;
}
.content a {
    text-decoration: underline;
}

@media (max-width: 991px) {
    #header {
        height: auto;
        z-index: 10;
        width: 100%;
    }
    section#maincontent {
        margin: 5rem 0;
        width: 100%;
    }

    .offcanvas-end {
        background: var(--color-yellow);
    }
    .navbar {
        padding-top: 0;
    }
    .mobileheader {
        background: var(--color-yellow);
        padding: 1rem;
        position: sticky;
        top: 0;
    }
    .mobileheader button {
        background: transparent;
        display: flex;
        border: none;
        padding: 0;
        font-size: 2rem;
    }
    .mobileheader button:before {
        content: "";
        background: var(--icon-menu);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        width: 2rem;
        height: 2rem;
        top: 0;
        position: relative;
    }
    .offcanvas-header .btn-close {
        padding: 0;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
    }
    .offcanvas-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        justify-content: end;
    }
    .offcanvas-body {
        flex-grow: 1;
        padding: 0 1.5rem;
        overflow-y: auto;
    }
    .btn-close {
        opacity: 1;
    }
    .content {
        padding: 1rem;
    }
    h1 {
        font-size: 1.6rem;
    }
    h2 {
        font-size: 1.4rem;
    }
}

.viewslide {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: fixed;
    bottom: 2rem;
}

::-webkit-scrollbar {
    width: 12px;
    background: #eee;
}
::-webkit-scrollbar-thumb {
    border: 2px solid #eee;
    border-radius: 10px;
    background: var(--color-black);
}
::-webkit-scrollbar-thumb:active {
    background: var(--color-black);
}

/* Stil für Löschen-Link */

.modal-overlay {
    display: none; /* Versteckt das Overlay standardmäßig */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(
        0,
        0,
        0,
        0.7
    ); /* Transparenter schwarzer Hintergrund */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: var(--bw-border-radius-100);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

.badge.badge-0 {
    background-color: var(--color-lightblue);
}

/* In Bearbeitung */
.badge.badge-1 {
    background-color: var(--color-darkblue);
    color: var(--color-white);
}
/* In Prüfung */
.badge.badge-2 {
    background-color: var(--color-lightgreen);
}
/* Abgeschlossen */
.badge.badge-3 {
    background-color: var(--color-darkgreen);
    color: var(--color-white);
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    font-family: Arial, sans-serif;
    color: #000;
    width: 100%;
}

.project-details dt,
.project-details dd {
    box-sizing: border-box;
    padding: 10px;
}

.project-details dt {
    font-weight: bold;
    /* Feste Breite für die Beschreibungen */
    flex: 0 0 35%;
}

.project-details dd {
    /* Nimmt den restlichen Platz ein, ohne umzubrechen */
    flex: 1 1 65%;
    word-wrap: break-word; /* Lange Wörter brechen um */
}

/* Trennlinien zwischen den Zeilen */
.project-details dd:not(:last-child) {
    border-bottom: 1px solid #ddd;
}

/* Responsivität für kleinere Bildschirme (Mobile) */
@media (max-width: 768px) {
    .project-details dt,
    .project-details dd {
        /* Spalten nehmen die volle Breite ein und werden untereinander gestapelt */
        flex: 0 0 100%;
    }

    /* Trennlinie nur unter der Überschrift im mobilen Modus */
    .project-details dt {
        border-bottom: 1px solid #ddd;
    }

    .project-details dd {
        border-bottom: none;
    }
}

.table-diff {
    background-color: #fffc00;
}

/* Styling für den gesamten Tabs-Container */
.tabs-wrapper {
    margin-top: 20px;
}

/* Styling für die Reiter-Navigation */
.tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0; /* Dezente, helle Trennlinie */
    margin-bottom: 15px;
}

.tab-link {
    padding: 12px 20px; /* Mehr Innenabstand für eine luftigere Optik */
    cursor: pointer;
    background-color: transparent; /* Kein Hintergrund für inaktive Tabs */
    border: none; /* Keine äußeren Rahmen */
    border-bottom: 2px solid transparent; /* Für den Hover-Effekt */
    text-decoration: none !important;
    color: #000; /* Ein weicheres, dunkleres Grau für den Text */
    font-size: 1rem;
    font-weight: 500; /* Mittlere Schriftstärke */
    transition: color 0.3s ease-in-out, border-bottom-color 0.3s ease-in-out;
}


.tab-link:hover {
    color: #000; /* Dunklerer Text beim Hover */
    font-weight: 800; /* Mittlere Schriftstärke */
    border-bottom-color: #fffc00;; /* Eine subtile graue Linie beim Hover */
}

.tab-link.active {
    color: #000; /* Eine elegante, blaue Farbe für den aktiven Tab */
    border-bottom: 2px solid var(--color-yellow); /* Ein klarer blauer Unterstrich */
    font-weight: 800; /* Leicht fette Schrift für den aktiven Tab */
}

/* Styling für den Inhalt der Tabs */
.tab-content {
    display: none;
    padding: 20px;
    border-radius: var(--bw-border-radius-100);;
}



/* Styling für die Tab-Inhalte */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.main-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

@media (min-width: 768px) {
    .main-heading {
        font-size: 1.875rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0.5rem;
}
.form-group-4 {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 3fr 1fr 2fr 1fr;
    align-items: center;
    gap: 0.5rem;
}

.formGroupHead{
    border-bottom: 1px solid var(--bs-dark);
}

@media (min-width: 768px) {
    .form-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .form-group-4{
         grid-template-columns: 4fr 1fr 2fr 1fr;
    }
}

.form-label {
    font-weight: 500;
    color: #4b5563;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: var(--bw-border-radius-100);
    font-size: 0.875rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
    border-color: #3b82f6;
}

.section-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #374151;
}

hr {
    border-top: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.disabled-input {
    background-color: #f3f4f6;
    cursor: not-allowed;
    color: #9ca3af;
}

.status-text {
    color: #1f2937;
    font-weight: 600;
}

.button-container {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.save-button {
    background-color: #2563eb;
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--bw-border-radius-100);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.save-button:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.save-button svg {
    height: 1.25rem;
    width: 1.25rem;
    margin-right: 0.5rem;
}

.typo3-messages {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInAndSlideDown 0.5s ease-out forwards;
}

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





/* Styling für die Datenliste im Modal-Fenster */
.data-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;

}

/* Stil für jede einzelne Datenzeile */
.data-list li {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  
  flex-wrap: wrap;
}

/* Stil für das Label (z.B. "Kundenname") mit Hintergrundfarbe */
.label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #000; /* Dunkleres Grau für besseren Kontrast auf dem Hintergrund */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin-right: 2rem;
  flex-basis: 150px;
  
  padding: 1rem 1.2rem; /* Leichter Innenabstand für den Hintergrund */
  background-color: #f7fafc; /* Sehr helles, dezentes Grau als Hintergrund */
}

/* Stil für den Wert (z.B. "cokuna2") */
.value {
  font-size: 1rem;
  color: #000;
  font-weight: 600;
  text-align: left;
  flex-grow: 1;
padding: 1rem 1.2rem;
  word-break: break-word;
}

/* Stil für Links innerhalb der Wert-Spalte */
.value a {
  color: #4299e1;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease-in-out;
}

.value a:hover {
  border-bottom-color: #4299e1;
}

/* Stil für leere Felder */
.value:empty::before {
  content: "Unbekannt";
  color: #cbd5e0;
  font-style: italic;
  font-weight: 400;
}
/* Generelles Styling für alle Flash-Nachrichten */
.alert {
  padding: 0.8rem;
 
  font-family: Arial, sans-serif;
  border-radius: var(--bw-border-radius-100);
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 1rem;

  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; /* Für sanftes Ausblenden */
  opacity: 1;

}

/* Stil für das ausgeblendete Element */
.alert.hide {
  opacity: 0;
  transform: translateY(-20px); /* Optional: Lässt die Meldung leicht nach oben gleiten */
}

/* Spezifisches Styling für die OK-Nachricht */
.alert.alert-success {
  background-color: transparent;
  border-color: none;
  color:var(--bs-success-rgb);
  margin: 0;
  padding: 0.9rem;

}

.alert.alert-error {
  background-color: transparent;
  border-color: none; 
  color:var(--bs-danger-rgb);
  margin: 0;
  padding: 0.9rem;

}

.alert.alert-success:before {
    content: "\f00c";
    font-family: "Font Awesome\ 6 Pro";
    text-decoration: inherit;
    list-style: none;
    
    line-height:0.5rem;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    margin-left: -10px;
    color: var(--bs-success-rgb);
    padding: 0;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.alert.alert-error:before {
    content: "\f057";
    font-family: "Font Awesome\ 6 Pro";
    text-decoration: inherit;
    list-style: none;
    
    line-height:0.5rem;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    margin-left: -10px;
    color: var(--bs-danger-rgb);
    padding: 0;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

/* Styling für Titel und Text */
.alert h4 {
    display:none;
  font-size: 1rem;
  font-weight: 700;
  color: #1a511a;
  padding:0;
  margin: 0;
  line-height:0;
}

.alert.alert-success p {
  color: var(--bs-success-rgb);
}

.alert p {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
  padding-bottom: 0;
  line-height:5px;
}



.global-actions {
  display: flex; /* Aktiviert Flexbox für die Kindelemente */
  justify-content: space-between; /* Verteilt den verfügbaren Platz zwischen den Elementen */
  align-items: flex-start; /* Richtet die Elemente oben aus, falls sie unterschiedliche Höhen haben */
  gap: 20px; /* Fügt einen Abstand zwischen den Containern hinzu */
  margin-bottom: 1rem;
}

/* Styling für den Buttons-Container */
.global-buttons {
  flex-shrink: 0; /* Verhindert, dass der Button-Container schrumpft */
}

/* Styling für den Messages-Container */
.global-messages {
  flex-grow: 1; /* Lässt den Messages-Container den restlichen Platz einnehmen */
  /* Zusätzliches Styling für die Messages */
}

.global-messages .typo3-messages{
    margin:0;
    padding:0;
}

/* Settings-Bereich */
.settings-main-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.settings-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.settings-nav-link {
    display: block; /* Füllt die gesamte Breite aus */
    padding: 20px;
    text-decoration: none !important;
    color: #333;
    border-bottom: 1px solid #eee;
}

.settings-nav-link:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.settings-nav-link.active {
    background-color: #f5f5f5;
    border-left: 5px solid var(--color-yellow); /* Blauer Balken für aktiven Tab */
    padding-left: 15px; /* Anpassung des Paddings wegen des Balkens */
}

.settings-nav-title {
    color: var(--bs-dark);
    margin: 0 0 5px 0;
    font-size: 1em;
    font-family: var(--font-serif) !important;
}

.settings-nav-text {
    margin: 0;
    color: #000;
    line-height: 1.5;
}

/* Rechte Spalte: Tab-Inhalte */
.settings-right-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

/* Tab-Menü oben */
.settings-tabs, .db-tabs, .bau-tabs, .faktoren-tabs, .nakr1-tabs, .nakr2-tabs, .nakr3-tabs, .nakr4-tabs, .nakr5-tabs, .nakr6-tabs, .nakr7-tabs, .nakr8-tabs, .nakr9-tabs, .nakr10-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.settings-tab-link, .db-tab-link, .bau-tab-link, .faktoren-tab-link, .nakr1-tab-link, .nakr2-tab-link, .nakr3-tab-link, .nakr4-tab-link, .nakr5-tab-link, .nakr6-tab-link, .nakr7-tab-link, .nakr8-tab-link, .nakr9-tab-link, .nakr10-tab-link {
    padding: 10px 15px;
    text-decoration: none;
    color: #6c757d;
    font-weight: bold;
    cursor: pointer;
}

.settings-tab-link.active, .db-tab-link.active, .bau-tab-link.active, .faktoren-tab-link.active, .nakr1-tab-link.active, .nakr2-tab-link.active, .nakr3-tab-link.active, .nakr4-tab-link.active, .nakr5-tab-link.active, .nakr6-tab-link.active, .nakr7-tab-link.active, .nakr8-tab-link.active, .nakr9-tab-link.active, .nakr10-tab-link.active {
    color: #000;
}

/* Tab-Inhalte */
.settings-tab-content, .db-tab-content, .bau-tab-content, .faktoren-tab-content, .nakr1-tab-content, .nakr2-tab-content, .nakr3-tab-content, .nakr4-tab-content, .nakr5-tab-content, .nakr6-tab-content, .nakr7-tab-content, .nakr8-tab-content, .nakr9-tab-content, .nakr10-tab-content  {
    display: none;
}

.settings-tab-content.active, .db-tab-content.active, .bau-tab-content.active, .faktoren-tab-content.active, .nakr1-tab-content.active, .nakr2-tab-content.active, .nakr3-tab-content.active, .nakr4-tab-content.active, .nakr5-tab-content.active, .nakr6-tab-content.active, .nakr7-tab-content.active, .nakr8-tab-content.active, .nakr9-tab-content.active, .nakr10-tab-content.active   {
    display: block;
}

/* Platzhalter-Container und -Formen */
.settings-image-container {
    background-color: #d3d3d3;
    width: 100%;
    aspect-ratio: 16 / 12;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.settings-placeholder-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.settings-circle {
    background-color: #fff;
    border-radius: 50%;
    width: 20%;
    height: 20%;
    position: absolute;
    top: 20%;
    left: 20%;
}

.settings-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 200px solid #808080;
    position: absolute;
    left: 20%;
    bottom: 0;
}

.settings-triangle-large {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 250px solid #555;
    position: absolute;
    right: 20%;
    bottom: 0;
}

@media (max-width: 768px) {
    /* Ändert das Layout für Bildschirme kleiner oder gleich 768px */
    .settings-main-container {
        flex-direction: column; /* Stapelt die Spalten vertikal */
    }

    .settings-left-column {
        flex-direction: row; /* Ändert die Navigations-Links zu einer horizontalen Leiste */
        overflow-x: auto; /* Ermöglicht horizontales Scrollen bei vielen Links */
        white-space: nowrap; /* Verhindert Zeilenumbruch der Links */
        border-bottom: 1px solid #eee;
    }

    .settings-nav-link {
        flex-shrink: 0; /* Verhindert, dass die Links schrumpfen */
        border-left: none; /* Entfernt den linken blauen Balken */
        border-bottom: 3px solid transparent; /* Fügt eine untere Linie hinzu */
        padding: 15px 10px;
    }
    
    .settings-nav-link.active {
        border-left: none;
        border-bottom-color: #007bff; /* Zeigt die blaue Linie unten */
    }

    .settings-right-column {
        padding: 10px;
    }

    .settings-nav-title, .nav-text {
        text-align: center; /* Zentriert den Text im mobilen Menü */
    }

    /* Optional: Versteckt den Text unter dem Titel in der mobilen Ansicht */
    .settings-nav-text {
        display: none;
    }
}

/* Accordions im Tab - Content*/
/* Styling für die Akkordeon-Komponente */
.settings-accordion {
    border: 1px solid #ccc;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden; /* Stellt sicher, dass keine Inhalte überlaufen */
}

/* Header des Akkordeons */
.settings-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f7f7f7;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    transition: background-color 0.3s ease;
}

.settings-accordion-header:hover {
    background-color: #ededed;
}

.settings-accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Icon (Dreieck) im Header */
.settings-accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Dreht das Icon, wenn das Akkordeon aktiv ist */
.settings-accordion.active .accordion-icon {
    transform: rotate(180deg);
}

/* Inhalt des Akkordeons */
.settings-accordion-content {
    padding: 20px;
    display: none; /* Standardmäßig ausgeblendet */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

/* Zeigt den Inhalt, wenn das Akkordeon aktiv ist */
.settings-accordion.active .settings-accordion-content {
    display: block; /* Stattdessen wird die Höhe animiert, siehe JS-Hinweis unten */
    max-height: 2500px; /* Ein Wert, der groß genug für den Inhalt ist */
}

/* Checkboxen */

.switch{ 
    width: 147px;
    align-items: center;
    display: inline-flex;
    gap: 8px;
    position: relative;
}

.switch__checkbox{
    margin-left: 0;
    margin-top: 0;
    position: absolute;
    opacity: .01;
}

.switch__handle{
    border-radius: 24px;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    height: 32px;
    overflow: hidden;
    position: relative;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: 64px;
    transition: background .2s ease-in-out;
    background-color: rgba(var(--bs-primary), 1);
}

.switch__handle:before {
    background-color: rgba(var(--bs-light), 1);
    border-radius: 50%;
    box-shadow: rgba(var(--bs-dark), 0.4) 0 0 2px 0;
    content: "";
    display: block;
    height: 24px;
    left: 4px;
    position: absolute;
    top: 4px;
    transition: all .2s ease-in-out;
    width: 24px;
}

.switch__checkbox:checked+.switch__handle:before {
    left: 100%;
    transform: translateX(-100%) translateX(-4px);
}

.switch__checkbox:checked+.switch__handle .switch__icon {
    left: 7px;
}

.switch__icon {
    color: rgba(var(--bs-primary), 1);
    font-size: 24px;
    left: -24px;
    line-height: 24px;
    position: absolute;
    text-align: center;
    transform: translateY(-50%);
    transition: left .2s ease-in-out;
    top: 50%;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.switch__icon:before {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    speak: none;
    text-decoration: none;
    text-transform: none;
    font-family: "mdspcssregular" !important;
    content: "\f00c";
}

/*Versionsswitcher */

/* Container und Label */
.version-switcher-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Abstand zwischen Label und Menu */
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.version-switcher-label {
    font-weight: bold;
    color: #333;
    white-space: nowrap; /* Verhindert Zeilenumbruch des Labels */
}

/* Das Menü (Die Button-Gruppe) */
.version-switcher-menu {
    display: inline-flex;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden; /* Wichtig für abgerundete Ecken */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Einzelner Versions-Link */
.version-switcher-item {
    padding: 8px 15px;
    text-decoration: none;
    color: #555;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    border-right: 1px solid #ccc; /* Trennlinie zwischen Buttons */
    white-space: nowrap;
}

/* Letztes Element im Menü: entfernt die rechte Trennlinie */
.version-switcher-menu .version-switcher-item:last-child {
    border-right: none;
}

/* Hover-Effekt */
.version-switcher-item:hover {
    background-color: #e0e0e0;
    color: #111;
}

/* Aktives Element (Wichtig!) */
.version-switcher-item.is-active {
    background-color: var(--bs-primary); /* Beispiel: Blau für Aktiv */
    color: var(--bs-dark);
    font-weight: bold;
    cursor: default; /* Zeigt an, dass dies der aktuelle Zustand ist */
    pointer-events: none; /* Deaktiviert Klick auf die aktive Version */
}

/* Responsivität für kleine Bildschirme (optional) */
@media (max-width: 600px) {
    .version-switcher-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* NAKRs Styling*/

/* * 1. Block-Abgrenzung und Container-Stil
 * Gibt den Haupt-Panels einen Rahmen und Abstand
 */
.panel-group > .panel-default {
    /* Klarer Rahmen für den Block */
    border: 1px solid #ddd;
    /* Deutlicher Abstand zum nächsten Block */
    margin-bottom: 25px;
    /* Leichte Abrundung der Ecken */
    border-radius: 4px;
    /* Schatten für modernen "Block"-Look (optional) */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* * 2. Gestaltung der Hauptüberschriften (z.B. "1. Gebäudedaten")
 */
.panel-default > .panel-heading {
    /* Hintergrundfarbe für den Header */
    background-color: #f7f7f7;
    /* Leichter Rahmen unten, um den Body abzugrenzen */
    border-bottom: 1px solid #ddd;
    /* Innenabstand */
    padding: 10px 15px;
}

.panel-default > .panel-heading .panel-title {
    /* Starke Hervorhebung der Hauptüberschrift */
    font-weight: 600; /* Halb-fett */
    font-size: 1.2em;
    color: #333;
}

/* * 3. Gestaltung der Unter-Panels (z.B. ".sub1" für "Gebäudespezifische Daten")
 * Diese Panels erhalten einen etwas subtileren Rahmen/Stil.
 */
.panel-body > .panel-default.sub1 {
    /* Rahmen um den Sub-Block */
    border: 1px solid #eee;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 3px;
}

.panel-default.sub1 > .panel-heading {
    /* Subtiler Hintergrund */
    background-color: #fafafa; 
    border-bottom: 1px solid #eee;
}

.panel-default.sub1 > .panel-heading .panel-title span {
    /* Subtile Schrift für Untertitel */
    font-weight: 400; /* Normal */
    font-size: 1em;
    color: #666;
}

/* * 4. Kleiner Helfer-Klasse aus dem Original-HTML (Bootstrap Row Fix)
 */
.form-group.row .clearer {
    clear: both;
}