/* ######################## Grid - Main ######################## */
.wrapper {
    display: grid;
    grid-template-columns: repeat(12, [col-start] 1fr);
    gap: 3.8vw;
    background-color: black;
}

@font-face {
    font-family: "Breathe Fire II";
    src: url(../fonts/BREATHE-FIRE-II.ttf) format('truetype');

    font-family: "Trebuchet MS";
    src: url(../fonts/trebuc.ttf) format('truetype');

    font-family: "Angars Runes PERSONAL USE ONLY";
    src: url(../fonts/RUNE.ttf) format('truetype');

    font-family: "Viner Hand ITC";
    src: url(../fonts/VINERITC.ttf) format('truetype');
}


/* ############################## GRID - Desktop ############################## */

.logo {grid-column: 1 / span 2; grid-row: 1 / 1;}
.hugin {grid-column: 10 / span 3; grid-row: 1 / span 2;}
.munin {grid-column: 7 / span 3; grid-row: 1 / span 2;}
.menue {grid-column: 1 / span 2; grid-row: 2 / 2;}
.einleitung {grid-column: 4 / span 6; grid-row: 2;}
.unterseitentitel {grid-column: 4 / span 8; grid-row: 1 / span 2;}
.block1 {grid-column: 3 / span 3; grid-row: 2;}
.block2 {grid-column: 5 / span 3; grid-row: 2;}
.block3 {grid-column: 7 / span 3; grid-row: 2;}
.block4 {grid-column: 9 / span 3; grid-row: 2;}
.artikel {grid-column: 3 / span 10; grid-row: 2;}
.bildquellen {grid-column: 3 / span 10; grid-row: 2;}
.urls {grid-column: 3 / span 10; grid-row: 2;}


/* ######################## Body - Desktop ######################## */
body {
    background-color: black;
    margin: 0vw 2.5vw 2.5vw 2.5vw;
    overflow-y: scroll;
}


/* ########## Header ########## */
/* ########## Logo ########## */
.logo img {
    height: auto;
    width: 18vw;
    margin: 3vw 65vw 0vw 0vw;
    position: fixed;
    display: block;
}

.logo-default {
    opacity: 1;
}

.logo-hover {
    opacity: 0;
}

.logo-container:hover .logo-hover {
    opacity: 1;
}


/* ########## Menue ########## */

/* Burger sichtbar */
.burger {
    display: inline-block;
    position: fixed;
    top: 14vw;    /* Exakte Position von oben */
    left: 2.5vw;  /* Optional: exakte Position von links */
    font-size: 2vw;
    color: red;
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: auto;
    height: auto;
    line-height: 1;
    z-index: 9999;
}

/* Menü versteckt */
.menue nav ul {
    background-color: black;
    position: fixed;
    width: 9.7vw;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
    padding: 0;
    margin: 13vw 0 0 0;  /* Abstand nach oben -> unter dem Burger */
    border-radius: 0.5vw;
}

#burger-toggle:checked ~ nav ul {
    display: block;
    max-height: 500px;
}


.menue nav li {
    list-style: none;
    text-decoration: none;
    background-color: black;
    width: 100%;
    left: 0.5vw;
    background-color: #0c0c0c;
    padding: 1vw 1vw 1vw 0.5vw;
    border-bottom: 0.1vw solid white;
}

.menue nav li a {
    color: white;
    text-decoration: none;
    font-family: "Trebuchet MS";
    font-size: 1vw;
    text-align: center;
    padding: 0.8vw;
}

.menue nav li:hover {
    background-color: #252525;
}

.menue nav li:hover a {
    color: red;
}

#burger-toggle {
    display: none;
}

/* Suchfeld Wrapper */
.suchfeld-wrapper {
    display: inline-block;
    position: fixed;
    top: 13.8vw; /* gleiche Höhe wie Burger-Menü */
    left: 6vw;   /* rechts neben dem Burger-Menü */
    z-index: 9998;
}

/* Eingabefeld selbst */
.suchfeld {
    width: 3.8vw;
    padding: 0.5vw 1vw;
    font-size: 1vw;
    border-radius: 0.5vw;
    border: 0.15vw solid red;
    background-color: black;
    color: white;
    font-family: "Trebuchet MS";
    outline: none;
    box-shadow: none;
    caret-color: white; /* Farbe des Cursors */
    transition: width 0.4s ease;
}

.suchfeld::placeholder {
    color: gray;
    font-style: italic;
}

.suchfeld:focus {
    width: 11vw;
}

#results {
    position: static;
    background-color: #0c0c0c;
    border: 0.15vw solid red;
    border-radius: 0.5vw;
    list-style: none;
    padding: 0.5vw;
    margin-top: 0.5vw;
    width: 12vw;
    z-index: 9999;
    max-height: 20vw;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer */
}

#results::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}


#results li {
    padding: 0.5vw;
    font-family: "Trebuchet MS";
}

#results li a {
    color: red;
    text-decoration: none;
}

#results li:hover a {
    color: red;
}

.hidden {
    display: none;
}

/* ########## Index ########## */
.hugin img {
    height: auto;
    width: 15vw;
    padding: 8vw 1vw 2vw 1vw;
}

.munin img {
    height: auto;
    width: 20vw;
    padding-top: 4vw;
}

.einleitung {
    color: white;
    font-family: Trebuchet MS;
    font-size: 1.2vw;
    text-align: justify;
    line-height: 2.2vw;
    hyphens: auto;
    padding-top: 13.4vw;
}


/* ########## Lexikon ########## */
/* ### Überschrift ### */
h1 {
    color: white;
    font-family: "Viner Hand ITC";
    text-align: center;
    font-size: 3vw;
    font-weight: normal;
    padding-top: 8vw;
}

/* ### Ausrichtung ### */
.block1 {
    color: white;
    padding-top: 14vw;
}

.block2 {
    color: white;
    padding-top: 14vw;
}

.block3 {
    color: white;
    padding-top: 14vw;
}

.block4 {
    color: white;
    padding-top: 14vw;
}

/* ### ABCDE... ### */
.stichwortbereiche {
    color: white;
    font-family: "Viner Hand ITC";
    text-align: center;
    font-size: 2vw;
    margin-bottom: 2em;
}

/* ### Stichwörter ### */
.stichwörter {
    padding: 0vw 0vw 0vw 0vw;
}

.stichwörter li {
    list-style: none;
    text-align: center;
 }

.stichwörter li a {
    color: red;
    font-family: "Trebuchet MS";
    display: inline-block;
    text-align: center;
    list-style: none;
    font-size: 1.2vw;
    line-height: 2.2vw;
 }

.stichwörter li a:link {
    color: red;
}

.stichwörter li a:visited {
    color: rgb(170, 110, 110);
}

.referenz {
    font-family: "Trebuchet MS";
    color: white;
    font-size: 1vw;
    line-height: 2.2vw;
    text-decoration: none;  /
}

.artikel p {
    color: white;
    font-family: "Trebuchet MS";
    text-align: justify;
    font-size: 1.2vw;
    padding: 14.3vw 3vw 0vw 5vw;
    hyphens: auto;
    line-height: 2.2vw;
}

.artikel img {
    float: right;
    margin: 0.5vw 0vw 0vw 1.6vw;
    height: 25vw;
}

.bildquellen {
    color: white;
    font-family: "Trebuchet MS";
    text-align: center;
    font-size: 1.2vw;
    line-height: 2.2vw;
    padding: 14.3vw 3vw 0vw 5vw;
}

footer {
    font-family: "Trebuchet MS";
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.6vw;
    background: black;
    padding-top: 1vw;
    font-size: 1vw;
    line-height: 1.5em;
}


/* ############################## GRID - Mobile ############################## */

@media (max-width: 768px) {
    .wrapper {
        grid-template-columns: 1fr;
        gap: 5vw;
    }

    .logo,
    .menue,
    .einleitung,
    .unterseitentitel,
    .block1,
    .block2,
    .block3,
    .block4,
    .artikel,
    .bildquellen,
    .urls {
        grid-column: 1 / -1;
        grid-row: auto;
    }


    /* ######################## Body - Mobile ######################## */

    .hugin, .hugin img,
    .munin, .munin img {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .logo img {
        width: 80%;
        margin: 2vw auto;
        position: static;
    }

    /* Nur Standardlogo anzeigen, Hover-Version ausblenden */
    .logo-container {
        position: static;
        width: 80%;
        margin: 2vw auto;
        text-align: center;
    }

    .logo-default {
        display: block;
        position: static;
        width: 100%;
    }

    .logo-hover {
        display: none !important; /* <- wichtig, um alles zu überstimmen */
        opacity: 0 !important;
        pointer-events: none !important;
        position: static !important;
    }

    .logo-container:hover .logo-hover {
        opacity: 0 !important; /* <- verhindert, dass der Hover sichtbar wird */
    }


    .menue {
        display: flex;
        align-items: center;
        justify-content: space-between; /* oder start/center/… je nach Wunsch */
        flex-wrap: wrap; /* Optional, falls Platz eng wird */
        padding: 2vw;
    }

    .menue-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative; /* wichtig für das Ergebnisfeld */
    }

    .burger-container {
        position: relative; /* Damit es im Fluss ist */
        height: 15vw;        /* Höhe einplanen für fixierten Burger */
    }

    .burger {
        position: static;
        top: 35vw;    /* Wert je nach Logo-Höhe anpassen! */
        left: 5vw;
        font-size: 11vw;
        color: red;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 9999;
    }

    /* Menü bleibt im Fluss */
    .menue nav ul {
        position: static;
        background-color: black;
        width: 100%;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.5s ease;
        padding: 0;
        margin: 0;
        border-radius: 1vw;
    }

    #burger-toggle:checked ~ nav ul {
        display: block;
        max-height: 500px;
    }

    #burger-toggle {
        display: none;
    }

    .menue nav {
        margin: 5vw 0 0 1vw;
        width: 78vw;
    }

    .menue nav ul {
        border-radius: 2vw;
    }

    .menue nav li {
        margin: 0;
        width: 100%;
        border-bottom: 0.15vw solid white;
    }

    .menue nav li a {
        display: block;
        padding: 2vw 3vw;
        font-size: 1.5em;
        text-align: left;
    }

    .menue nav li a:hover {
        background-color: #252525;
        color: red;
    }

    .suchfeld-wrapper {
        position: static;
        width: 90%;
        text-align: left;
        margin: 0 auto 0 1vw;
    }

    .suchfeld {
        width: 20vw;
        font-size: 4vw;
        margin-top: 2vw;
        padding: 2vw;
        border-radius: 2vw;
        border: 0.5vw solid red;
        background: black;
        color: white;
        font-family: "Trebuchet MS";
        transition: width 0.4s ease;
    }

    .suchfeld:focus {
        width: 73vw;
    }

    #results {
        position: static;
        width: 78vw;
        color: red;
        border: 0.5vw solid red;
        border-radius: 2vw;
        padding: 2vw;
        margin-top: 2vw;
        box-sizing: border-box;
        max-height: 40vw;
        overflow-y: auto;
    }

    #results::-webkit-scrollbar {
        display: none;               /* Chrome/Safari */
    }

    #results li {
        color: red;
        text-decoration: none;
        padding: 2vw 0 2vw 0;
    }

    #results li a {
        font-size: 4vw;
    }

    .einleitung {
        font-size: 1.2em;
        padding: 5vw 2vw;
        line-height: 1.5em;
    }

    h1 {
        color: white;
        font-family: "Viner Hand ITC";
        text-align: center;
        font-size: 10vw;
        font-weight: normal;
        padding: 0;
        margin: 0;
    }

    .stichwortbereiche {
        color: white;
        font-family: "Viner Hand ITC";
        text-align: center;
        font-size: 6vw;
        margin-bottom: 0;
    }

    .stichwörter li a {
        color: red;
        font-family: "Trebuchet MS";
        display: inline-block;
        text-align: center;
        list-style: none;
        font-size: 1em;
        line-height: 1.7em;
    }

    .referenz {
        font-family: "Trebuchet MS";
        color: white;
        font-size: 1em;
        line-height: 2em;
        text-decoration: none;  /
    }

    .block1 {
        color: white;
        padding: 0;
    }

    .block2 {
        color: white;
        padding: 0;
    }

    .block3 {
        color: white;
        padding: 0;
    }

    .block4 {
        color: white;
        padding: 0;
    }
    .artikel p {
        font-size: 1em;
        padding: 5vw 2vw;
        line-height: 1.5em;
    }

    .bildquellen {
        color: white;
        font-family: "Trebuchet MS";
        text-align: center;
        font-size: 1em;
        padding: 5vw 2vw;
        line-height: 1.5em;
    }

    .artikel img {
        float: none;
        display: block;
        margin: 5vw auto;
        height: 40vw;
    }

    footer {
        position: static;
        background: black;
        font-size: 1em;
        line-height: 1.5em;
        text-align: center;
    }
}




