/* Reset und Grundeinstellungen 
{% load static %} */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: white;
    z-index: 0;
    background-size: cover;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

body {
    width: 711px;
    height: 400px;
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transform-origin: top left;
}

/* Sidebar Styles */
.sidebar {
    width: 111px;
    min-width: 100px;
    height: 400px;
    margin: 0;
    left: 0;
    top: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    transform: translateX(0);
    transition: transform 0.3s ease;
    z-index: 1;

}

.sidebar.collapsed {
    display: none;
}

.style-logo {
    padding: 5px;
    width: 90px;
    text-align: center;
    overflow: hidden;
    margin: 10 auto; 
    margin-bottom: 29px;  /* Abstand zu den Buttons */
    cursor: pointer;
}

.style-logo img {
    max-width: 100%;
    height: 35px;
    object-fit: contain;
}

/* Style nav wrapper */
.style-nav {
    width: 100%;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}


/* Simple navigation links */
.simple-nav-link {
    display: block;
    color: #808080;
    font-size: 0.6rem;
    padding: 5px 0;
    margin: 3px 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.simple-nav-link:hover {
    color: white;
}

/* Better button icon styles */
.btn-icon {
    margin-right: 8px;
    font-size: 10px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}


.nav-btn {
    position: relative;
    background: transparent;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 15;
    margin: 0;
}


/* Spezifischer Stil für Toggle-Button, falls benötigt */
.toggle-btn {
    right: -150px; /* Position beibehalten */
    margin-top: 10px;
    margin-bottom: 10px;
}


.nav-Pfeil {
    position: fixed;
    top: 160px;
    left: 4px;
    z-index: 15;
    display: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.nav-kringel {
    position: fixed;
    top: 15px;
    left: 2px;
    width: 15px; /* Anpassen je nach Größe des Kringel-Bildes */
    height: 15px; /* Anpassen je nach Größe des Kringel-Bildes */
    margin-bottom: 15px;
    object-fit: contain;
}

/* Schwarzweiß-Filter für Icons in Buttons */
.btn-icon {
    margin-right: 8px;
    font-size: 10px;
    filter: grayscale(50%) brightness(2); /* Grayscale-Filter mit erhöhter Helligkeit */
    transition: filter 0.3s ease;
}



/*-------------------------------- Area ------------------------------------*/
.main-content {
    flex: 1;
    position: relative;
    justify-content: center;
    align-items: center;
    /*background-color: black;*/
    transition: margin-left 0.3s ease, width 0.3s ease;
}

#globeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    height: 400px;
    z-index: 0; /* Place it behind all other elements */
    pointer-events: none;/* Ensures mouse events are captured */
}

/* Area Container */
.area-container {
    position: relative; 
    width: 600px;   
    height: 400px;  
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    transform-origin: top left;
    margin: 0;
    padding: 0;
    overflow: hidden;
    will-change: opacity;
    transform-style: preserve-3d;
    z-index:10;
}

/* Areas */
.area {
    position: absolute;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 7px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    pointer-events: auto;
}

/* Area Images */
.area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clickable .clickable-logo {
    cursor: pointer;
}

.clickable:hover {
    transform: scale(1);
    filter: opacity(95%) brightness(0.85) blur(2px);
    z-index: 99 !important;
}

.element {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.element-text {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    word-wrap: break-word;
    text-align: center;
    pointer-events: auto; /* Wichtig: Erlaubt Textinteraktionen */
    /* Anpassung der Schriftgröße an die Elemente */
    line-height: 1.2;
}

.element-image,
.element-symbol {
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.wrapper {
    display: inline-block; 
    background-color: black;
    width: fit-content;
    text-align: left;
}


.element-text blue {
    display: inline;
    color: blue;
    line-height: inherit;
    vertical-align: baseline;
    height: auto;
    font-size: inherit;
}

.element-text red {
    display: inline;
    color: #e60000;
    line-height: inherit;
    vertical-align: baseline;
    height: auto;
    font-size: inherit;
}

.element-text green {
    display: inline;
    color: #068910;
    line-height: inherit;
    vertical-align: baseline;
    height: auto;
    font-size: inherit;
}


.style-recht-html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh !important;
    z-index: 1;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
body.style-recht-body {
    height: 100vh;
    overflow: auto;
    width: 100vw;
    /* andere erforderliche Eigenschaften */
}

.style-recht-body {
    flex: 1;
    display: block;
    width: 100vw;
    height: 100vh !important;
    margin: 0 auto;
    padding: 0;
    overflow: auto !important;
    background: url('images/simple-globe.png') no-repeat center center;
    background-size: cover;
    color: #474747;
    background-color: white;
}
.style-recht-body h1 {
    margin-top: 1em;
    margin-bottom: 0.2em;
    font-size: 3em;
}
.style-recht-body h2 {
    margin-top: 1em;
    margin-bottom: 0.2em;
    font-size: 2em;
}

.style-recht-body h3 {
    margin-top: 1em;
    margin-bottom: 0.2em;
    font-size: 2em;
}

.style-recht-body h4 {
    margin-top: 1em;
    margin-bottom: 0.2em;
    font-size: 1.5em;
}

.style-recht-body p {
    font-size: 1.5em;
}


.thumbnail-preview {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
    transform-origin: center center;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.thumbnail-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center center;
}

/* Verbesserte Hover-Effekte für Areas */
.area.clickable {
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.area.hovering {
    z-index: 999 !important;
}


/* Navigation Control Styles */
.nav-control {
    width: 90px;
    height: 90px;
    margin: 0;
    position: fixed;
    bottom: 0px;
    margin-left: 5px;
    display: grid;
    grid-template-rows: 20px 20px 20px;
    grid-template-columns: 20px 20px 20px;
    grid-template-areas:
        ". up ."
        "left center right"
        ". down .";
    background-color: None;
    border-radius: 8px;
    padding: 10px;
    z-index: 1500;
}


/* When sidebar is collapsed, adjust position */
.sidebar.collapsed ~ .main-content .nav-control, 
.sidebar.collapsed + .nav-Pfeil + .main-content .nav-control {
    margin-left: -33px;
    grid-template-rows: 20px 20px 20px;
    grid-template-columns: 15px 15px 15px;
}

/* Style for .nav-current when sidebar is collapsed */
.sidebar.collapsed ~ .main-content .nav-current,
.sidebar.collapsed + .nav-Pfeil + .main-content .nav-current {
    width: 15px;
    height: 15px;
}

/* Pfeile innerhalb der Buttons */
.toggle-arrow,
.nav-arrow-up,
.nav-arrow-left,
.nav-arrow-right,
.nav-arrow-down {
    cursor: pointer;
    display: block;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #808080;
    border-left: 1.5px solid #808080;
}

/* Add hover state for arrows */
.toggle-arrow:hover,
.nav-Pfeil:hover .nav-arrow-right,
.nav-btn:hover .nav-arrow-up,
.nav-btn:hover .nav-arrow-left,
.nav-btn:hover .nav-arrow-right,
.nav-btn:hover .nav-arrow-down {
    border-top: 1.5px solid white;
    border-left: 1.5px solid white;
}

/* Spezifische Transformationen für verschiedene Pfeilrichtungen */
.toggle-arrow {
    transform: rotate(-45deg); /* Pfeil nach links */
    margin-left: 90px;
    margin-top: 1px;
    transition: all 0.3s ease;

}

.nav-arrow-up {
    transform: rotate(45deg); /* Pfeil nach oben */
    margin-top: 0px;
}

.nav-arrow-left {
    transform: rotate(-45deg); /* Pfeil nach links */
    margin-left: 0px;
}

.nav-arrow-right {
    transform: rotate(135deg); /* Pfeil nach rechts */
    margin-right: 0px;
}

.nav-arrow-down {
    transform: rotate(225deg); /* Pfeil nach unten */
    margin-top: -0px;
}


.nav-center {
    grid-area: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-right {
    grid-area: right;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-left {
    grid-area: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-up {
    grid-area: up;
    display: flex;
    justify-content: center;
}

.nav-down {
    grid-area: down;
    display: flex;
    justify-content: center;
}

.nav-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: black;
    transform: perspective(100px) rotateX(-2deg) rotateY(-2deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.9;
}

.nav-arrow:hover {
    color: white;
}
/*
.nav-arrow.disabled {
    opacity: 0.5;
    cursor: default;
}

.nav-arrow.disabled:hover {
    background-color: #333;
    transform: none;
}
*/

.nav-current:hover {
    background-color: green;
    transform: scale(1);
}

.nav-current-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6px;
    background-color: #c0c0c0;
    border-radius: 2px;
    color: #808080;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-btn:hover .nav-current-number {
    color: white;
}


/* Style for disabled navigation arrows */
.nav-arrow-disabled {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    color: #808080;
    font-size: 12px;
    cursor: default;
}


/* ---------------------------- Kontaktseite --------------------------------------*/

/* Vorstandsseite Styles */
.vorstand-content {
    flex: 1;
    position: relative;
    color: #d9d9d9;
    overflow-y: auto;
    max-height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: #808080 #1a1a1a;
}

.vorstand-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.vorstand-title {
    margin: 20px 0;
    text-align: center;
    font-size: 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
}

.vorstand-intro {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.vorstand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vorstand-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vorstand-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vorstand-image {
    height: 150px;
    overflow: hidden;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vorstand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2244dd;
    color: white;
    font-size: 2.5rem;
}

.vorstand-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vorstand-info h2 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.vorstand-info h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #bbb;
    font-weight: normal;
}

.vorstand-info p {
    font-size: 0.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
    flex: 1;
}

.vorstand-kontakt {
    margin-top: auto;
    font-size: 0.75rem;
}

.kontakt-item {
    margin-bottom: 5px;
}

.kontakt-label {
    font-weight: bold;
    margin-right: 5px;
    color: #bbb;
}

.kontakt-wert, .kontakt-wert a {
    color: #d9d9d9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kontakt-wert:hover, .kontakt-wert a:hover {
    color: white;
    text-decoration: underline;
}

/* Kontaktbereich */
.kontakt-section {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.kontakt-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .kontakt-info {
        grid-template-columns: 1fr;
    }
}

.allgemeine-kontakt {
    padding-right: 20px;
}

.allgemeine-kontakt h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #bbb;
}

.allgemeine-kontakt p {
    font-size: 0.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.allgemeine-kontakt a {
    color: #d9d9d9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.allgemeine-kontakt a:hover {
    color: white;
    text-decoration: underline;
}

/* Formular */
.kontakt-formular {
    background-color: rgba(17, 17, 17, 0.5);
    padding: 15px;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #bbb;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #333;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #d9d9d9;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #2244dd;
    box-shadow: 0 0 5px rgba(34, 68, 221, 0.5);
}

.form-group.active label {
    color: #2244dd;
}

.submit-button {
    background-color: #2244dd;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #1a36b1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 68, 221, 0.3);
}

/* Scrollbar Styling für Chrome und andere Webkit-Browser */
.vorstand-content::-webkit-scrollbar {
    width: 8px;
}

.vorstand-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.vorstand-content::-webkit-scrollbar-thumb {
    background-color: #808080;
    border-radius: 4px;
}

.vorstand-content::-webkit-scrollbar-thumb:hover {
    background-color: #a0a0a0;
}
