body {
    margin: 0;
    background-color: black;
    background-image: url('bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: black;
    background-image: url('bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

#headersvg {
      position:absolute;
      top:0;
      left:0;
    z-index: 10;
}

#rtcornersvg {
    position: absolute;
    height: 1px;
    overflow: visible;
    top: 0;
    right: 0;
    height: 1px;
    overflow: visible;
    z-index: 10;
}


.headerhex {
    stroke: yellowgreen;
    stroke-width: 5px;
    stroke-linejoin: round;
    fill: rgba(0,0,0,0.5)
}

.fg {
    stroke: yellowgreen;
    stroke-width: 5px;
    stroke-linejoin: round;
    fill: rgba(0,0,0,0.5);
    transform: rotateY(-20deg) rotateX(15deg);
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.nav_elem {
    fill: orange;
    transform: rotateY(20deg) rotateX(15deg);
    transform-style: preserve-3d;
    transition: transform 0.5s;
    background-color: rgba(0, 0, 0, 0.5); /* Halbdurchsichtiger schwarzer Hintergrund */
    backdrop-filter: blur(15px); /* Unscharfer Hintergrundeffekt */
    padding: 10px; /* Polsterung für besseren Abstand zum Text */
    border-radius: 15px; /* Leichte Abrundung für einen moderneren Look */
}

.nav_elem:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

#headerhexfield {
    transform: rotateY(20deg) rotateX(15deg);
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

content {
    margin-left: 0;
    margin-top: 400px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    perspective: 1000px;
    transform-style: preserve-3d;

    /* Leichtes Kippen und Wölben für den AR-Effekt */
    transform-origin: center;
    transition: transform 1s ease-out;
}

.container, .sh-container {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    overflow: hidden;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 120%;
}

.container img,.sh-text img {
    float: left; /* Bild links positionieren */
    width: 150px; /* Breite des Bildes */
    height: auto; /* Höhe proportional zur Breite */
    margin-right: 20px; /* Abstand zwischen Bild und Text */
    border-radius: 5px; /* Leichte Abrundung des Bildes */
}

.container h1 {
    margin-top: 0; /* Überschrift direkt neben dem Bild platzieren */
}

.container p {
    text-align: justify; /* Text ausrichten, um einen sauberen Fluss um das Bild herum zu erzeugen */
}

.sh-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 20px;
    z-index: 20;
}

/* Bei größeren Bildschirmen: 2 Spalten */
@media (min-width: 940px) {
    .sh-container {
        width: calc(100% - 300px);
    }

    .container {
        flex: 1 1 calc(50% - 20px); /* 2 Spalten */
    }

    .container:hover {
        transform: translateZ(5px) translateX(-5px) rotateX(0.1deg) rotateY(0deg) scale(1.0);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
        z-index: 999;
    }


    #headersvg {
        position:fixed;
        top:0;
        left:0;
    }

    #rtcornersvg {
        position:fixed;
        top:0;
        right:0;
    }

    content {
        margin-left: 220px;
        margin-top: 200px;
        margin-right: 1em;
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        perspective: 1000px;
        transform-style: preserve-3d;

        transform-origin: center;
        transition: transform 1s ease-out;
    }
}

/* Bei noch größeren Bildschirmen: 3 Spalten */
@media (min-width: 1860px) {
    .container {
        flex: 1 1 calc(33.33% - 20px); /* 3 Spalten */
    }
}

.searchdiv {
    width: 100%;
}

.searchdiv input {
    font-size: 120%;
    background-color: rgba(255, 255, 255, 0.2); /* Leicht dunkler für besseren Kontrast */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Hellerer Rahmen */
    color: white; /* Textfarbe anpassen */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    caret-color: white; /* Ändere die Farbe des Cursors */
}

.sh-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 20px;
}

.sh-sidebar {
    flex-basis: 100%;
    padding: 20px;
}

.sh-comments {
    /*flex-basis: 30%;*/
    min-width: 250px; /* Mindestbreite für die Kommentare */
    padding: 20px;
    order: 2;
}

.sh-content {
    flex-basis: 100%;
    padding: 20px;
    order: 3; /* PDF-Inhalt soll nach den Kommentaren erscheinen */
}

.sh-embed-container {
    width: 100%;
    aspect-ratio: 210 / 297; /* DIN A4 Verhältnis 210mm x 297mm */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* optionaler Schatten */
    margin-bottom: 20px;
}

.sh-embed-content {
    width: 100%;
    height: 100%;
    border: none; /* Keine Rahmen, optional */
}

.sh-download-link {
    margin-bottom: 20px;
}

@media (max-width: 1800px) {
    .sh-content, .sh-comments {
        flex-basis: 100%; /* Kommentare und Inhalt sollen jeweils volle Breite einnehmen */
    }
}

/* Layout-Anpassung bei kleinerem Bildschirm */
@media (max-width: 940px) {
    .sh-content, .sh-comments {
        flex-basis: 100%; /* Kommentare und Inhalt sollen jeweils volle Breite einnehmen */
    }

    .sh-comments {
        order: 2; /* Kommentare sollen unter dem PDF-Inhalt stehen */
    }

    content{
        /*margin-left: 50px;*/
        margin-top: 425px;
    }

    #headersvg {
        position: absolute;
    }

    #rtcornersvg {
        position: absolute;
    }
}

sub {
    display: block;
    width: 100%;
    text-align: right;
    font-size: 75%;
}

.dl-button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 60px;
    background: linear-gradient(135deg, #00eaff, #0077ff);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
    transform: perspective(500px) rotateX(10deg);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.dl-button:hover {
    transform: perspective(500px) rotateX(0deg);
}

.dl-button span {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dl-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    transform: skewX(-30deg);
    transition: left 0.5s ease;
}

.dl-button:hover::before {
    left: 200%;
}

.dl-icon {
    margin-right: 10px;
}

.dl-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}