body {
    margin: 0;
    position: relative;
    background-color: rgb(109, 69, 9);
    color: rgb(245, 233, 212);
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
    font-family: 'Raleway', sans-serif;
    cursor: default;
    user-select: none; 
    -webkit-user-select: none;
}

.swiss, .wild {
    font-family: 'Raleway', sans-serif;
    font-size: 4vw;
    font-weight: bold;
}

.titel {
    display: flex;
    text-align: center;
    padding-top: 5px;
    align-items: center;
    flex-direction: column;
    grid-column: 4 / 5;
    grid-row: 1 / 3;
}

.titel-text {
    display: flex;
    justify-content: center;
}

.swiss { color: rgb(245, 233, 212); }
.wild { color: rgb(201, 154, 93); }

.titelbanner {
    margin-top: -7vw;
    pointer-events: none;
}
.titelbild {
    width: 32.2vw; 
    height: 18.2vw;
}

.grid {
    display: grid;
    height: 11vw;
    grid-template-columns: 12% 7% 17% 31% 9% 12% 12%;
    grid-template-rows: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgb(109, 69, 9);
    margin: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease;
    border-bottom: 0.3vw solid black;
}

.tiere, .startseite, .lebensräume, .quiz_navigator, .unter_navigator, .quiz_row {
    transition: font-weight 0.3s ease, font-size 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.tiere, .startseite, .lebensräume {
    display: flex;
    justify-content: flex-end;
    height: 11vw;
    text-align: left;
    padding-left: 2%;
    text-decoration: none;
    color: rgb(245, 233, 212);
    font-size: 2.4vw;
    position: relative;
}

.startseite {
    grid-column: 1 / 2; 
    flex-direction: column;
    justify-content: flex-end;
}
.tiere {
    grid-column: 2 / 3; 
    flex-direction: column;
    justify-content: flex-end;
}
.lebensräume {
    grid-column: 3 / 4; 
    flex-direction: column;
    justify-content: flex-end;
}

.startseite:hover, .tiere:hover, .lebensräume:hover, .quiz_navigator:hover {
    font-weight: bold;
    font-size: 2.5vw;
}

.theme-toggle {
    grid-column: 7 / 8;
    border: 0.16vw solid rgba(245, 233, 212, 0.4);
    height: 3vw;
    width: 3vw;
    position: absolute;
    top: 1vw;
    left: 6vw;
    cursor: pointer;
    border-radius: 1.3vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 2vw;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.quiz_navigator {
    grid-column: 5 / 6;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-left: 2%;
    color: rgb(245, 233, 212);
    font-size: 2.4vw;
    position: relative;
    cursor: pointer;
}

.dropdown_box {
    display: none;
    position: absolute;
    top: 11vw;
    left: -4vw;
    background-color: rgb(109, 69, 9);
    border: black solid 0.3vw;
    width: 13vw;
    white-space: nowrap;
    border-radius: 0 0 2vw 2vw;
    padding-left: 1vw;
    z-index: 100;
    font-weight: normal;
}

.quiz_navigator:hover .dropdown_box { display: block; }

.unter_navigator {
    font-size: 2.3vw;
    margin: 10px 0;
    color: rgb(245, 233, 212);
    display: block;
    text-decoration: none;
}

.unter_navigator:hover { font-weight: bold; }

.search {
    display: flex;
    justify-content: flex-start;
    align-items: end;
    grid-column: 6 / 7;
    height: 99%;
}

.search input {
    width: 17vw;
    padding-right: 5vw;
    border: 0.16vw solid #000;
    border-radius: 1vw;
    padding: 0.2vw;
    height: 2vw;
    font-size: 2vw;
}

.search input:focus {
    outline: none;
}
.search button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5vw;
    border-radius: 1vw;
    cursor: pointer;
    padding: 0.2vw;
    transition: background-color 0.3s;
    height: 2.7vw;
    font-size: 1.5vw;
    border-bottom: 0.28vw solid black;
    border-right: 0.28vw solid black;
    border-top: 0.28vw solid gray;
    border-left: 0.28vw solid gray;
}

.search button:hover { background-color: lightblue; }

.schweizerkarte {
    margin-top: 11vw;
    border: 0.3vw solid black;
    width: 98.5vw;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.content-wrapper {
    padding-top: 13vw;
    padding-bottom: 5vw;
    max-width: 1200px;
    margin: 0 auto;
}

.tier-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6vw;
    padding: 3vw;
}

.tier-card {
    position: relative;
    border: 2px solid rgb(201, 154, 93);
    border-radius: 12px;
    padding-top: 12.5px;
    padding-bottom: 12.5px;
    text-align: center;
    font-size: 2.4vw;
    height: 25vw;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.4); 
    scroll-margin-top: 15vw; 
}

.tier-card:hover {
    transform: translateY(-8px);
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.2);
    border-color: rgb(245, 233, 212);
}

.highlight-search {
    transform: translateY(-8px);
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.2);
    border-color: rgb(245, 233, 212) !important;
    outline: 0.4vw solid rgb(201, 154, 93);
}

.tier-card h2, .tier-card p {
    position: relative;
    z-index: 2;
    margin: 5px 0;
}

.tier-titel {
    text-align: center;
    font-size: 5vw;
}

.quiz_all {
    margin-top: -3.3vw;
    font-size: 2.9vw;
}

.quiz {
    display: flex;
    justify-content: center;
    color: #1b1a17;
}

.quiz_table {
    background-color: rgb(112, 79, 36);
    width: 100%;
    display: flex;
    height: 15vw;
    margin-top: -0.3vw;
}

.quiz_row {
    text-decoration: none;
    color: rgb(245, 233, 212);
    border: 0.3vw solid #3b1f0f;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.quiz_row:hover {
    font-weight: bold;
    font-size: 3vw;
    background-color: rgba(255, 255, 255, 0.1);
}

footer {
    text-align: center;
    background-color: rgb(189, 168, 132);
    color: rgb(11, 97, 11);
    padding: 10vw;
    font-size: 2.5vw;
    text-decoration: none;
}

.einzelnes-tier-body {
    margin: 0;
    overflow: hidden;
    background-color: black;
}

.tier-image {
    margin-top: 11vw;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.steckbrief {
    margin-top: 11vw;
    position: fixed;
    left: 0;
    top: 0;
    width: 33vw;
    height: 100vh;
    background-color: rgba(25, 18, 10, 0.93);
    backdrop-filter: blur(6px);
    color: rgb(245, 233, 212);
    z-index: 100;
    padding: 2vw;
    box-sizing: border-box;
    transition: left 0.4s ease;
    overflow-y: auto;
    border-right: 0.2vw solid
    rgb(201, 154, 93);
}



.steckbrief h1 {

    font-size: 3vw;

    margin-bottom: 0;
}



.steckbrief h2 {

    font-size: 1.5vw;

    color: rgb(201, 154, 93);

    margin-top: 0;

    font-style: italic;

    margin-bottom: 3vw;
}



.steckbrief p {

    font-size: 1.5vw;

    line-height: 2.8vw;
}



.toggle-btn {
    position: absolute;
    right: 1vw;
    top: 1vw;
    font-size: 2.3vw;
    cursor: pointer;
    user-select: none;
    background-color: rgba(255,255,255,0.1);
    width: 2.5vw;
    height: 2.5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.6vw;
    transition: background-color 0.2s ease;
}

.toggle-btn:hover {

    background-color: rgba(255,255,255,0.2);
}

body.light-theme { background-color: #d2b48c; color: #333; }
body.light-theme .grid, body.light-theme .dropdown_box { background-color: #d2b48c; }
body.light-theme .tier-card h2, body.light-theme .tier-card p { color: white; text-shadow: 1px 1px 3px black; }
body.light-theme .quiz_table { background-color: #e2c49c; }
body.light-theme .unter_navigator, body.light-theme .quiz_row, body.light-theme .tiere, body.light-theme .lebensräume, body.light-theme .startseite, body.light-theme .quiz_navigator { color: #382a15; }
body.light-theme footer { background-color: rgb(245, 233, 212); }
body.light-theme .steckbrief{ background-color: rgba(245, 236, 226, 0.93); color: black;}
body.light-theme .toggle-btn{background-color: rgba(0, 0, 0, 0.1);}