.preferences_container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
}
.input_container {
    position: relative;
}

.input_icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: rgba(68, 84, 106, 0.5);
    font-size: 16px;
    pointer-events: none;
}

.lexikon_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
    text-align: left;
    margin-top: 30px;
    th {
        position: sticky;
        top: 50px;
        padding: 5px 10px 5px 10px;
        font-weight: normal;
        background-color: rgba(68, 84, 106, 0.9);
        color: white;
        text-wrap: nowrap;
    }
    tr:first-child th {
        border-radius: 10px 10px 0 0;
    }
    tr:nth-child(2) {
        position: sticky;
        top: 0;
        background-color: rgba(68, 84, 106, 0.9);
        color: white;
        z-index: 10;
    }
    tr:nth-child(2) {
        position: sticky;
        top: 102px;
        background-color: rgba(68, 84, 106, 0.9);
        color: white;
        z-index: 10;
    }
    td {
        background-color: white;
        padding: 5px 10px 5px 10px;
        vertical-align: top;
        .begriff {
            margin-top: 0;
            margin-bottom: 0;
            font-weight: bold;
        }
    }
}
.search_head {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    input, select {
        background-color: rgba(255, 255, 255, 0.7);
    }
}
.synonyme, .beschreibung .kategorie {
    margin-top: 0;
    margin-bottom: 0;
    color: rgba(68, 84, 106, 0.5);
}
.beschreibung p {
    margin-top: 0;
    margin-bottom: 0;
    text-align: justify;
    hyphens: auto;
    color: black;
}
.beschreibung .responsive {
    display: none;
}

.image_container {
    float: right;
    margin-top: 10px;
    margin-left: 20px;
    max-width: 50%;
    .bilder {
        width: 100%;
        margin: 0;
        cursor: pointer;
        transition: box-shadow 0.1s ease-in-out, transform 0.1s ease-in-out;
        border-radius: 5px;
    }
    .bilder:hover {
        box-shadow: 0 0 20px rgba(0,0,0,0.4);
        transform: scale(1.01);
    }
    .image_info {
        color: rgba(31, 37, 49, 0.7);
        margin: 0;
        margin-bottom: 10px;
        font-size: 75%;
    }
}

.download_container {
    background-color: rgba(68, 84, 106, 0.05);
    font-size: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
    color: rgba(68, 84, 106, 0.9);
    transition: box-shadow 0.1s ease-in-out, transform 0.1s ease-in-out;;
}
.download_container:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    transform: scale(1.01);
    a {
        color: rgb(var(--blau));
    }
}
.download_container_icon {
    display: flex;
    align-items: center; /* Vertikale Zentrierung */
    justify-content: center; /* Horizontale Zentrierung (optional) */
    padding: 10px;
    background-color: rgba(68, 84, 106, 0.9);
    border-radius: 5px 0 0 5px;
    color: white;
    font-size: 150%;
}
.download_container_content {
    padding: 5px;
}
.highlight {
    background-color: rgba(var(--blau), 0.4); /* dein Blau als Fallback */
    padding: 0;
    margin: 0;
}
.openai {
    position: relative; /* Ermöglicht die Positionierung des Pseudo-Elements */
    font-size: 1em;
}

.openai i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
}

.openai::after {
    position: absolute;
    content: "AI";
    color: #5F6D7F;
    font-size: 0.5em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.ai_container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(68, 84, 106, 1);
}
.create_onepager {
    margin-top: 5px;
    opacity: 0.5;
    cursor: pointer;
    color: rgba(68, 84, 106, 1);
    font-size: 125%;
}
.create_onepager:hover {
    opacity: 1;
}

/* --- PDF Ausgabe ------------------------------------- */
/* --- Header ---  */
#pdf_preview {
    position: fixed;
    background-color: white;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
    border: 1px solid silver;
    border-radius: 10px;
    width: calc(90vh / 1.5);
    height: 90vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    padding: 0;
    margin: 0;
    z-index: 99;
    font-family: Tahoma, sans-serif;
}
#pdf_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 18cm;
    height: 25.5cm;
    color: black;
    margin: 2cm 0 2cm 2cm;
    padding: 0;
    font-size: 10pt;
    overflow-y: auto; /* Scrollbalken bei Überlauf vertikal */
    box-sizing: border-box; /* Damit padding/margin in der Größe berücksichtigt werden */
}

/* --- Footer --- */
#pdf_content footer {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    bottom: 0;
    color: grey;
}
#pdf_content footer div {
    margin: 0;
    padding: 0;
}
#pdf_content footer p {
    position: relative;
    margin: 0;
}
#pdf_content footer i {
    position: absolute;
    left: 0;
    top: 50%;
    width: 15px;
    transform: translateY(-50%);
    font-style: normal;
    text-align: center;
}
#pdf_content footer span {
    font-size: 7pt;
    color: grey;
}

/* --- Inhalt --- */
#pdf_content #inhalt {
    position: absolute;
    top: 2cm;
    left: 0;
    right: 0;
    hyphens: auto;
    margin-right: 1cm;
}
#pdf_content #inhalt h1 {
    font-size: 24pt;
    width: 100%;
    margin: 0;
    border-bottom: 1pt solid black;
    color: black;
}
#pdf_content #inhalt h2 {
    font-size: 1.5em;
    width: 100%;
    margin: 0;
    padding: 0.5cm 0 0 0;
    color: black;
    border-bottom: 1pt solid rgba(68, 84, 106, 0.9);;
}
#pdf_content #inhalt .rahmenbedingungen {
    margin: 0;
    color: rgba(68, 84, 106, 0.9);
}
#pdf_content #inhalt .ki_hinweis {
    margin: 0 0 0.5cm 0;
    color: rgba(68, 84, 106, 0.9);
    i {
        color: rgba(200, 0, 0, 0.9);
    }
}
#pdf_content #inhalt .synonyme, #pdf_content #inhalt .kategorie {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.5em;
    color: rgba(68, 84, 106, 0.7);
}
#pdf_content #inhalt p {
    margin: 0.2cm 0 0 0;
}
#pdf_content #inhalt p span {
    left: 3cm;
    margin: 0;
}
#pdf_content #inhalt ol, #pdf_content #inhalt ul {
    margin: 0;
    padding: 0 0 0 0.5cm;
}
#pdf_content #inhalt li {
    margin: 0;
}

@media (max-width:1200px) {
    .lexikon_table tr:nth-child(2) {
        top: 98px;
    }
}

@media (max-width:712px) {
    .lexikon_table tr:nth-child(2) {
        top: 132px;
    }
}

@media (max-width:650px) {
    .wide {
        display: none;
    }
    .beschreibung .responsive {
        display: block;
    }
    .image_container {
        float: right;
        max-width: 100%;
        margin-left: 0;
    }
}
