/* FARBEINSTELLUNGEN */
:root {
    --main-bc: rgb(40, 40, 40);
    --main-fc: rgb(200, 200, 200);
    --footer-bc: #174D99;
    --link-fc: rgb(150, 150, 150);
    --link-hover: rgb(0, 229, 255);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a:link,
a:visited,
a:hover,
a:active {
    color: var(--link-fc);
    outline: none;
    /* box-shadow: none; */
}

a:focus {
    outline: none;
    /* box-shadow: none; */
}


html,
body {
    width: 100%;
    height: 100%;
    background-color: var(--main-bc);
    color: var(--main-fc);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
}

/* ============================================== */
/*    M  A  I  N  -  C  O  N  T  A  I  N  E  R    */
/* ============================================== */
#wrapper {
    /* self */
    width: 100%;
    height: 100vh;

    /* content */
    display: flex;
}

/* ============================================== */
/*    L  O  G  O  
/* ============================================== */
#logo {
    flex: 1;
    background-color: #000;
    background-image: url(../img/bg-logo.png);
    background-repeat: no-repeat;
    background-size: auto 100%;
}

#logo #title {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(-10%, -10%);
    font-family: "Gruppo", sans-serif;
    font-size: clamp(1em, 6vw, 8em);
    line-height: 1.1;
    white-space: nowrap;
}

/* TITEL-ANIMATION ::::::::::::::::::::: */

/* Spans übereinander legen, ohne zusätzliche Translation */
#logo #title span.slide {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(-10%, -10%);
    opacity: 0;
}

/* Erster Titel: 12 s sichtbar, 3 s ausblenden, 2 s einblenden */
#logo #title span.slide:nth-child(1) {
    animation: firstDisplay 22s infinite;
}

/* Zweiter Titel: 2 s einblenden, 3 s sichtbar, 2 s ausblenden */
#logo #title span.slide:nth-child(2) {
    animation: secondDisplay 22s infinite;
    font-size: 4vw;
    line-height: 1.6;
}

/* Animationsablauf für den ersten Titel */
@keyframes firstDisplay {

    0%,
    55% {
        opacity: 1;
    }

    /* 0–12 s sichtbar */
    68% {
        opacity: 0;
    }

    /* 12–15 s ausblenden */
    91% {
        opacity: 0;
    }

    /* 15–20 s verborgen */
    100% {
        opacity: 1;
    }

    /* 20–22 s einblenden */
}

/* Animationsablauf für den zweiten Titel */
@keyframes secondDisplay {

    0%,
    60% {
        opacity: 0;
    }

    /* 0–15 s verborgen */
    77% {
        opacity: 1;
    }

    /* 15–17 s einblenden */
    91% {
        opacity: 1;
    }

    /* 17–20 s sichtbar */
    100% {
        opacity: 0;
    }

    /* 20–22 s ausblenden */
}

/* ENDE TITEL-ANIMATION ::::::::::::::::::::*/

#logo #snavi {
    position: absolute;
    top: 3%;
    right: 5%;
    font-family: "Raleway", sans-serif;
    font-size: 0.8em;
    font-style: normal;
}

#logo #snavi ul {
    list-style: none;
}

#logo #snavi ul li {
    display: inline-block;
}

#logo #snavi a {
    color: var(--link-fc);
    text-decoration: none;
    margin-right: 24px;
    transition: color 1s ease;
}

#logo #snavi a:hover {
    color: var(--link-hover);
}



/* ============================================== */
/*    C  O  N  T  E  N  T  
/* ============================================== */
#content {
    /* self */
    border-right: 1px dotted #557e9f;
    box-shadow: inset 0px 0px 60px rgba(0, 0, 0, 0.6);

    /* content */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 48px;
}

.flex-item-content {
    height: 30%;
    width: fit-content;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    align-self: flex-start;
    overflow: hidden;
    border: 1px solid #444;
    border-radius: 24px;
}

.flex-item-content:hover {
    border: 2px dotted var(--link-hover);
}

.imgshow {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.imgshow img {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    left: 0;

    /* Zeitwert muss <= REMOVAL_DELAY in der imgshow.js sein */
    transition: opacity 3s ease-in-out;
}


/* ============================================== */
/*    F  O  O  T  E  R  
/* ============================================== */
#footer {
    /* self */
    border-top: 1px dotted #555;
    background-color: var(--footer-bc);
    box-shadow: inset 0 20px 20px rgba(0, 0, 0, 0.3);

    /* content */
    display: flex;
    flex-wrap: nowrap;
    padding: 2em 0 2em;
}

.flex-item-footer {
    /* border: 1px solid red; */
    color: rgb(165, 228, 247);
    justify-items: center;
}

#info,
#karte,
#hinweis-text {
    flex: 1 1 30%;
    min-width: 300px;
}

/* Links -------------- */
#info {
    display: flex;
    justify-content: center;
    background: none;
    border: none;
}

#info table {
    max-width: 80%;
    width: 80%;
    text-indent: 0.4em;
    transition: width 1s ease, background-color 2s ease;
    letter-spacing: 0.5px;
    padding: 8px;
    overflow: hidden;
    font-size: 1em;
    line-height: 1.5;
}

#info table th {
    text-align: left;
}

#info table:hover {
    opacity: 1;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    border: 2px dotted var(--link-hover);
    width: 65%;
}

#info a,
#info a:link,
#info a:visited,
#info a:active {
    font-style: italic;
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: color 1s ease;
}

#info a:hover {
    font-style: normal;
    color: var(--link-hover);
}

.top-space {
    padding-top: 1em;
}

/* Mitte -------------- */
#hinweis-text {
    display: flex;
    justify-content: center;
    background: none;
    border: none;
}

#hinweis-text p {
    width: 90%;
    padding: 0.8em;
    color: #9db7c6;
    background-color: rgba(1, 19, 28, 0.3);
    border: 1px dashed rgb(102, 136, 165);
    border-radius: 1em;
    transition:color 2s ease, background-color 2s ease, border 2s ease-in-out;
}

#hinweis-text .text-rechts {
    display: block;
    text-align: right;
}

#hinweis-text p:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px dashed var(--link-hover);
}

/* Rechts -------------- */
#karte {
    display: flex;
    justify-content: center;
    align-items: center;
}

#karte iframe {
    display: block;
    transition: width 1s ease;
    /* text-align: center; */
    /* margin: 0 auto; */
}

.map-iframe {
    border-radius: 15px;
    width: 50%;
    height: 100%;
}

.map-iframe:hover {
    border: 2px dotted var(--link-hover);
    width: 70%;
}

/* Unten -------------- */
#footer-logos {
    display: flex;
    flex: 1 1 50%;
    justify-content: space-around;
    padding: 1.1em 0 1em;
    background-color: #1954a7;
    border-top: 1px solid #555;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.1);
}

.eulogo {
    height: 3em;
    width: auto;
    border: 1px dotted #588092;
    border-radius: 3px;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.1);
}

.mwlogo {
    height: 3em;
    width: auto;
    border-radius: 3px;
    border: 4px solid white;
    transition: box-shadow 0.5s ease;
}

.mwlogo:hover {
    box-shadow: 0 0 60px rgb(223, 252, 254);
}

/* Chromium-Scrollbar-Style */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(223, 10, 109, 1);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}