:root {
    --grau: #708090;
    --grün: #90C226;
    --orange: #FFA500;
    --weiß: #F0F0F0;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--grau);
    font-family: "embarcadero-mvb-pro-condense", sans-serif;
    font-weight: 400;
    font-style: normal;
    scroll-behavior: smooth;
    scroll-padding-top: 160px;
    transition: all 0.5s ease;
    box-sizing: border-box;
    min-height: 200vh;
    /* Für Demo-Zwecke */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.übertopbar {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.topbar {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    padding: 0.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom-left-radius: 2vw;
    border-bottom-right-radius: 2vw;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.topbar.collapsed {
    padding: 0.3rem 2rem;
}

.topbar-first-line {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    flex-wrap: nowrap;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.topbar.collapsed .topbar-first-line {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.topbar-first-line .back-button {
    margin-left: auto;
    padding: 0.5vw 1vw;
    font-size: clamp(1rem, 2.6vh, 3.8rem);
    color: var(--grün);
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    border-radius: 2vw;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: 0.5s;
    font-weight: bold;
}

.topbar-first-line .back-button:hover {
    color: var(--orange);
    transform: scale(1.05);
}

.topbar-title {
    width: 100%;
    text-align: center;
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
    color: var(--grün);
    white-space: normal;
    /* Allow wrapping */
    margin: 0.5rem 0;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    border-radius: 2vw;
    transition: all 0.3s ease;
    overflow: hidden;
}

.topbar.collapsed .topbar-title {
    font-size: clamp(0.9rem, 1.4vw, 1.4vw);
    /* Prevent tiny text on mobile */
    margin: 0.2rem 0 1rem 0;
    padding: 0.3rem 1rem;
}

.topbar-meta {
    width: 99%;
    text-align: center;
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 2vw;
    font-size: 1.6vh;
    color: var(--weiß);
    transition: all 0.3s ease;
    overflow: hidden;
}

.topbar.collapsed .topbar-meta {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.meta-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.meta-right {
    display: flex;
    align-items: center;
    overflow: visible;
    gap: 1.5rem;
}

.category {
    color: var(--grün);
}

.views {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--weiß);
}

.eye-icon {
    width: 1.2em;
    height: 1.2em;
    fill: var(--grün);
}

.share {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    cursor: pointer;
    color: var(--weiß);
}

.share-icon {
    width: 1.4em;
    height: 1.4em;
    stroke: var(--grün);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.5s, transform 0.5s;
}

.share:hover .share-icon {
    stroke: var(--orange);
    transform: scale(1.2);
}

.topbar-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.topbar-nav .nav-links ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar-nav .nav-links ul li {
    background-color: var(--grau);
    border-radius: 2vw;
    margin: 0 6px;
}

.topbar-nav .nav-links ul li a {
    color: var(--grün);
    font-size: 1.6vh;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    display: flex;
    align-items: center;
    position: relative;
}

.topbar-nav .nav-links ul li a:hover {
    color: var(--orange);
}

.topbar-second-line {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 0.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
}

.hamburger .bar {
    width: 30px;
    height: 4px;
    background-color: var(--grün);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hamburger:hover .bar {
    background-color: var(--orange);
}

.logo {
    display: flex;
    align-items: center;
    background-color: transparent;
}

@keyframes shutterClick {
    0% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }

    30% {
        transform: scale(0.9) rotate(-3deg);
        filter: brightness(0.8);
    }

    45% {
        transform: scale(0.95) rotate(-3deg);
        filter: brightness(2) drop-shadow(0 0 15px white);
    }

    60% {
        transform: scale(1.05) rotate(1deg);
        filter: brightness(1.1);
    }

    80% {
        transform: scale(0.98) rotate(0);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.logo img {
    height: 6vh;
    background-color: transparent;
    display: block;
}

.logo>img:hover {
    animation: shutterClick 0.6s ease-in-out forwards;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 10px;
}

.logo-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 145px;
}

.logo-images {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: 1.8rem;
    position: relative;
    margin-left: -1px;
    margin-bottom: -1px;
}

.logo-images img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.33;
    animation: fadeInCycle 9s infinite;
    height: 100%;
    width: auto;
}

.logo-images img:nth-child(1) {
    animation-delay: 0s;
}

.logo-images img:nth-child(2) {
    animation-delay: 3s;
}

.logo-images img:nth-child(3) {
    animation-delay: 6s;
}

@keyframes fadeInCycle {
    0% {
        opacity: 0;
    }

    33% {
        opacity: 1;
    }

    66% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--grün);
    line-height: 1;
    text-align: left;
}

.logo-slogan {
    font-size: 1rem;
    color: var(--weiß);
    margin-top: 4px;
    margin-right: 40px;
    text-align: left;
}

.topbar-spacer {
    height: 28vh;
    background-color: transparent;
}

@media screen and (max-width: 768px) {

    .topbar-first-line {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        transform: scale(0.75);
        transform-origin: center top;
        margin-bottom: -20px;
        flex-shrink: 0;
    }

    .logo-text,
    .logo-slogan {
        white-space: nowrap;
    }

    .topbar-first-line {
        overflow: visible;
        /* Fix clipping */
        padding-bottom: 10px;
        /* Give space for button */
    }

    .topbar-first-line .back-button {
        position: static;
        margin-top: 10px;
        /* Generic styling fixes */
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        z-index: 10;
        margin-bottom: 5px;
        /* Extra breathing room */
    }

    .topbar-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .topbar-meta .meta-left {
        order: 1;
        flex-basis: 100%;
        text-align: left;
    }

    .topbar-meta .meta-right {
        order: 2;
        flex-basis: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
        gap: 1rem;
    }

    .hamburger {
        position: absolute;
        bottom: 0.5rem;
        right: 0.5rem;
        display: flex;
        align-items: center;
    }

    .hamburger .bar {
        width: 25px;
        height: 3px;
    }

    .meta-left span {
        max-width: 60%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.95);
        padding: 1rem;
        border-radius: 1rem;
        width: 95%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0.8rem;
    }

    .nav-links ul li a {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    .topbar-spacer {
        height: 31vh;
    }
}

.parent-container {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
    margin-bottom: 40px;
}

.text-containerb {
    position: relative;
    overflow: hidden;
    width: 94%;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 2vw;
    color: var(--weiß);
    box-sizing: border-box;
    text-align: left;
    transition: 0.3s;
    padding: 0 2.5%;
    z-index: 3;
}

.text-containerb p {
    margin: 10px 0;
    font-size: 2.8vh;
}

@media (max-width: 480px) {
    .text-containerb {
        font-size: 1vh;
    }
}

@media (max-width: 768px) {
    .text-containerb {
        font-size: 1.6vh;
    }
}

@media (max-width: 1024px) {
    .text-containerb {
        font-size: 2.2vh;
    }
}

.zwischenbilder {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 50px;
    margin: 20px 0;
}

.zwischenbilder img {
    height: 35vh;
    border-radius: 1vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

@media (max-width: 768px) {
    .zwischenbilder .image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.image-wrapper {
    position: relative;
    width: 75%;
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 2vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.like-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 2vw;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    pointer-events: auto;
}

.like-overlay button {
    background: transparent;
    border: none;
    color: var(--grün);
    font-size: 1.6em;
    cursor: pointer;
    padding: 0;
}

.like-overlay button::after {
    content: '\2661';
    display: inline-block;
}

.like-overlay button:hover:not(.liked) {
    color: var(--orange);
}

.like-overlay button.liked {
    color: var(--orange);
    cursor: default;
}

.like-overlay button.liked::after {
    content: '\2665';
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse2 {
    0% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(0.9);
    }
}

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(2vw);
        background-color: rgba(0, 0, 0, 0.8);
        color: var(--orange);
        border-radius: 0;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        background-color: transparent;
        color: var(--grün);
        border-radius: 3vw;
    }
}

.überlogo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 94%;
    z-index: 3;
    margin: 0 auto;
}

.logo-bar.visible {
    animation: fadeInSlideUp 3s forwards;
}

.logo-bar.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.logo-bar {
    text-align: center;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    height: 21vh;
    width: 100%;
    padding: 1vh;
    box-sizing: border-box;
    white-space: nowrap;
}

.fade-img {
    position: absolute;
    opacity: 0.33;
    max-height: 50%;
    max-width: 50%;
}

@keyframes subtle-emphasis {

    0%,
    100% {
        opacity: 0.33;
    }

    33.33% {
        opacity: 1;
    }

    66.67% {
        opacity: 0.33;
    }
}

.logo-bar img:nth-child(1) {
    animation: subtle-emphasis 8s ease-in-out infinite;
}

.logo-bar img:nth-child(2) {
    animation: subtle-emphasis 8s ease-in-out infinite 3s;
}

.logo-bar img:nth-child(3) {
    animation: subtle-emphasis 8s ease-in-out infinite 6s;
}

.heading {
    font-size: clamp(1rem, 2.6vh, 3.8rem);
    color: var(--grün);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 2vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    padding: 0.5vw 1vw;
    display: inline-block;
    text-align: center;
    transition: 0.5s;
    font-weight: bold;
}

.subheading {
    font-size: clamp(0.8rem, 2.2vh, 3rem);
    color: var(--grün);
    font-weight: bold;
    padding-top: 40px;
    padding-bottom: 0.5em;
}

p.small-text {
    font-size: 1.2em;
}

@media (max-width: 768px) {
    p.small-text {
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    p.small-text {
        font-size: 0.8em;
    }
}

@media screen and (max-width: 360px) {
    p.small-text {
        font-size: 0.6em;
    }
}

@keyframes pulse3 {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.8);
    }

    100% {
        transform: scale(0.8);
    }
}

.link {
    color: var(--grün);
    text-decoration: none !important;
    transition: color 0.5s;
}

.link:hover {
    color: var(--orange);
}

.ücontainer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1600px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 2vw;
    padding: 1px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.timeline-container {
    margin: 15px 0;
}

.day-row {
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px var(--grau);
    border-left: 5px solid var(--grün);
}

.day-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.day-number {
    background: var(--grün);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 0.9em;
}

.day-info h3 {
    color: var(--white);
    font-size: 1.2em;
    margin-bottom: 3px;
}

.day-info p {
    color: var(--white);
    font-size: 1.2em;
}

.time-axis {
    display: flex;
    justify-content: space-between;
    margin: 0 5px;
    font-size: 1.2em;
    color: var(--white);
}

.time-axis span {
    position: relative;
}

.time-axis span::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: #bdc3c7;
}

.timeline-bar {
    position: relative;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 7px;
    overflow: visible;
    margin: 100px 0;
    /* Noch mehr Platz für 6 Ebenen */
    box-shadow: inset 0 2px 10px var(--grau);
}

.time-segment {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 500;
    font-size: 0.75em;
    border-radius: 25px;
    overflow: visible;
}

.time-segment .label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 1.1em;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    bottom: 140%;
}

.day-row:nth-child(4) .time-segment:nth-child(odd) .label,
.day-row:nth-child(5) .time-segment:nth-child(odd) .label {
    bottom: 140%;
}

.day-row:nth-child(4) .time-segment:nth-child(even) .label,
.day-row:nth-child(5) .time-segment:nth-child(even) .label {
    top: 140%;
    bottom: auto;
}

.day-row:nth-child(1) .time-segment:nth-child(1) .label {
    bottom: 140%;
}

.day-row:nth-child(1) .time-segment:nth-child(2) .label {
    top: 140%;
    bottom: auto;
}

.day-row:nth-child(1) .time-segment:nth-child(3) .label {
    bottom: 220%;
}

.day-row:nth-child(1) .time-segment:nth-child(4) .label {
    top: 220%;
    bottom: auto;
}

.day-row:nth-child(1) .time-segment:nth-child(5) .label {
    bottom: 140%;
}

.day-row:nth-child(1) .time-segment:nth-child(6) .label {
    top: 140%;
    bottom: auto;
}

.day-row:nth-child(2) .time-segment:nth-child(1) .label {
    bottom: 140%;
}

.day-row:nth-child(2) .time-segment:nth-child(2) .label {
    top: 140%;
    bottom: auto;
}

.day-row:nth-child(2) .time-segment:nth-child(3) .label {
    bottom: 220%;
}

.day-row:nth-child(2) .time-segment:nth-child(4) .label {
    top: 220%;
    bottom: auto;
}

.day-row:nth-child(2) .time-segment:nth-child(5) .label {
    bottom: 140%;
}

.day-row:nth-child(2) .time-segment:nth-child(6) .label {
    top: 140%;
    bottom: auto;
}

.day-row:nth-child(2) .time-segment:nth-child(7) .label {
    bottom: 220%;
}

.day-row:nth-child(3) .time-segment:nth-child(1) .label {
    bottom: 140%;
}

.day-row:nth-child(3) .time-segment:nth-child(2) .label {
    top: 140%;
    bottom: auto;
}

.day-row:nth-child(3) .time-segment:nth-child(3) .label {
    bottom: 220%;
}

.day-row:nth-child(3) .time-segment:nth-child(4) .label {
    top: 220%;
    bottom: auto;
}

.day-row:nth-child(3) .time-segment:nth-child(5) .label {
    bottom: 300%;
}

.day-row:nth-child(3) .time-segment:nth-child(6) .label {
    top: 300%;
    bottom: auto;
}

.day-row:nth-child(3) .time-segment:nth-child(7) .label {
    bottom: 140%;
}

.day-row:nth-child(3) .time-segment:nth-child(8) .label {
    top: 140%;
    bottom: auto;
}

.day-row:nth-child(3) .time-segment:nth-child(9) .label {
    bottom: 220%;
}

.day-row:nth-child(3) .time-segment:nth-child(10) .label {
    top: 220%;
    bottom: auto;
}

.day-row:nth-child(3) .time-segment:nth-child(11) .label {
    bottom: 300%;
}

.day-row:nth-child(3) .time-segment:nth-child(12) .label {
    top: 300%;
    bottom: auto;
}

.time-segment .label::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%);
    top: 100%;
    height: 15px;
}

.day-row:nth-child(4) .time-segment:nth-child(even) .label::after,
.day-row:nth-child(5) .time-segment:nth-child(even) .label::after {
    bottom: 100%;
    top: auto;
    height: 15px;
}

.day-row:nth-child(1) .time-segment:nth-child(2) .label::after,
.day-row:nth-child(1) .time-segment:nth-child(4) .label::after,
.day-row:nth-child(1) .time-segment:nth-child(6) .label::after,
.day-row:nth-child(2) .time-segment:nth-child(2) .label::after,
.day-row:nth-child(2) .time-segment:nth-child(4) .label::after,
.day-row:nth-child(2) .time-segment:nth-child(6) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(2) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(4) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(6) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(8) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(10) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(12) .label::after {
    bottom: 100%;
    top: auto;
    height: 15px;
}

.day-row:nth-child(1) .time-segment:nth-child(3) .label::after,
.day-row:nth-child(2) .time-segment:nth-child(3) .label::after,
.day-row:nth-child(2) .time-segment:nth-child(7) .label::after,
.day-row:nth-child(2) .time-segment:nth-child(4) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(3) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(9) .label::after {
    height: 40px;
}

.day-row:nth-child(1) .time-segment:nth-child(4) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(4) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(10) .label::after {
    height: 40px;
}

.day-row:nth-child(3) .time-segment:nth-child(5) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(11) .label::after {
    height: 60px;
}

.day-row:nth-child(3) .time-segment:nth-child(6) .label::after,
.day-row:nth-child(3) .time-segment:nth-child(12) .label::after {
    height: 60px;
}

.travel-car {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.travel-bike {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.travel-walk {
    background: linear-gradient(135deg, #16a085, #1abc9c);
}

.photo-session {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.meal-break {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.mystery-pause {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.evening-session {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 1.1em;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
    .container {
        padding: 1px 10px;
        border-radius: 15px;
    }

    .day-row {
        padding: 15px;
        margin-bottom: 20px;
    }

    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .day-number {
        width: 35px;
        height: 35px;
        font-size: 0.6em;
    }

    .day-info h3 {
        font-size: 0.9em;
    }

    .day-info p {
        font-size: 0.7em;
    }

    .time-axis {
        font-size: 0.9em;
        margin: 0 2px;
    }

    .timeline-bar {
        margin: 120px 0;
    }

    .day-row:nth-child(3) .timeline-bar {
        margin: 160px 0;
    }

    .time-segment .label {
        font-size: 0.8em;
        padding: 3px 6px;
    }

    .legend {
        flex-direction: column;
        gap: 10px;
    }

    .legend-item {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 1px 5px;
        border-radius: 10px;
    }

    .day-row {
        padding: 10px;
        margin-bottom: 15px;
    }

    .day-number {
        width: 30px;
        height: 30px;
        font-size: 0.5em;
    }

    .day-info h3 {
        font-size: 0.8em;
    }

    .day-info p {
        font-size: 0.6em;
    }

    .time-axis {
        font-size: 0.7em;
    }

    .timeline-bar {
        margin: 100px 0;
    }

    .day-row:nth-child(3) .timeline-bar {
        margin: 140px 0;
    }

    .time-segment .label {
        font-size: 0.7em;
        padding: 2px 4px;
    }

    .legend-item {
        font-size: 0.8em;
    }

    .legend-color {
        width: 16px;
        height: 16px;
    }
}

.global-wrapper {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-content-wrapper {
    max-width: 1600px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 2vw;
    padding: 1px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.schedule-wrapper {
    margin: 15px 0;
}

.daily-schedule-block {
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px var(--grau);
    border-left: 5px solid var(--grün);
}

.daily-title-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.circular-day-badge {
    background: var(--grün);
    color: var(--weiß);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 0.9em;
}

.date-description-block h3 {
    color: var(--weiß);
    font-size: 1.2em;
    margin-bottom: 3px;
}

.date-description-block p {
    color: var(--weiß);
    font-size: 1.2em;
}

.hourly-scale-markers {
    display: flex;
    justify-content: space-between;
    margin: 0 5px;
    font-size: 1.2em;
    color: var(--weiß);
}

.hourly-scale-markers span {
    position: relative;
}

.hourly-scale-markers span::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: #bdc3c7;
}

.horizontal-timeline-track {
    position: relative;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 7px;
    overflow: visible;
    margin: 100px 0;
    box-shadow: inset 0 2px 10px var(--grau);
}

.activity-time-block {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--weiß);
    font-weight: 500;
    font-size: 0.75em;
    border-radius: 25px;
    overflow: visible;
}

.activity-time-block .floating-activity-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--weiß);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 1.1em;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    bottom: 140%;
}

/* Label positioning for Day 1 */
.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(1) .floating-activity-label {
    bottom: 140%;
}

.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(2) .floating-activity-label {
    top: 140%;
    bottom: auto;
}

.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(3) .floating-activity-label {
    bottom: 220%;
}

.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(4) .floating-activity-label {
    top: 220%;
    bottom: auto;
}

.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(5) .floating-activity-label {
    bottom: 140%;
}

.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(6) .floating-activity-label {
    top: 140%;
    bottom: auto;
}

.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(7) .floating-activity-label {
    bottom: 220%;
}

.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(8) .floating-activity-label {
    top: 220%;
    bottom: auto;
}

.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(9) .floating-activity-label {
    bottom: 300%;
}

/* Label positioning for Day 2 */
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(1) .floating-activity-label {
    bottom: 140%;
}

.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(2) .floating-activity-label {
    top: 140%;
    bottom: auto;
}

.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(3) .floating-activity-label {
    bottom: 220%;
}

.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(4) .floating-activity-label {
    top: 220%;
    bottom: auto;
}

.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(5) .floating-activity-label {
    bottom: 300%;
}

.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(6) .floating-activity-label {
    top: 300%;
    bottom: auto;
}

.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(7) .floating-activity-label {
    bottom: 140%;
}

.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(8) .floating-activity-label {
    top: 140%;
    bottom: auto;
}

.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(9) .floating-activity-label {
    bottom: 220%;
}

.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(10) .floating-activity-label {
    top: 220%;
    bottom: auto;
}

.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(11) .floating-activity-label {
    bottom: 300%;
}

/* Label positioning for Day 3 */
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(1) .floating-activity-label {
    bottom: 140%;
}

.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(2) .floating-activity-label {
    top: 140%;
    bottom: auto;
}

.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(3) .floating-activity-label {
    bottom: 220%;
}

.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(4) .floating-activity-label {
    top: 220%;
    bottom: auto;
}

.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(5) .floating-activity-label {
    bottom: 300%;
}

.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(6) .floating-activity-label {
    top: 300%;
    bottom: auto;
}

.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(7) .floating-activity-label {
    bottom: 140%;
}

.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(8) .floating-activity-label {
    top: 140%;
    bottom: auto;
}

.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(9) .floating-activity-label {
    bottom: 220%;
}

.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(10) .floating-activity-label {
    top: 220%;
    bottom: auto;
}

.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(11) .floating-activity-label {
    bottom: 300%;
}

.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(12) .floating-activity-label {
    top: 300%;
    bottom: auto;
}

/* Label positioning for Day 4 */
.daily-schedule-block:nth-child(4) .activity-time-block:nth-child(1) .floating-activity-label {
    bottom: 140%;
}

.daily-schedule-block:nth-child(4) .activity-time-block:nth-child(2) .floating-activity-label {
    top: 140%;
    bottom: auto;
}

.daily-schedule-block:nth-child(4) .activity-time-block:nth-child(3) .floating-activity-label {
    bottom: 220%;
}

.daily-schedule-block:nth-child(4) .activity-time-block:nth-child(4) .floating-activity-label {
    top: 220%;
    bottom: auto;
}

.activity-time-block .floating-activity-label::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%);
    top: 100%;
    height: 15px;
}

/* Connector line adjustments for alternating labels */
.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(2) .floating-activity-label::after,
.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(4) .floating-activity-label::after,
.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(6) .floating-activity-label::after,
.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(8) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(2) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(4) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(6) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(8) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(10) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(2) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(4) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(6) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(8) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(10) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(12) .floating-activity-label::after,
.daily-schedule-block:nth-child(4) .activity-time-block:nth-child(2) .floating-activity-label::after,
.daily-schedule-block:nth-child(4) .activity-time-block:nth-child(4) .floating-activity-label::after {
    bottom: 100%;
    top: auto;
    height: 15px;
}

.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(3) .floating-activity-label::after,
.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(7) .floating-activity-label::after,
.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(9) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(3) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(9) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(11) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(3) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(9) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(11) .floating-activity-label::after,
.daily-schedule-block:nth-child(4) .activity-time-block:nth-child(3) .floating-activity-label::after {
    height: 40px;
}

.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(4) .floating-activity-label::after,
.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(8) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(4) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(10) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(4) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(10) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(12) .floating-activity-label::after,
.daily-schedule-block:nth-child(4) .activity-time-block:nth-child(4) .floating-activity-label::after {
    height: 40px;
}

.daily-schedule-block:nth-child(1) .activity-time-block:nth-child(9) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(5) .floating-activity-label::after,
.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(11) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(5) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(11) .floating-activity-label::after {
    height: 60px;
}

.daily-schedule-block:nth-child(2) .activity-time-block:nth-child(6) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(6) .floating-activity-label::after,
.daily-schedule-block:nth-child(3) .activity-time-block:nth-child(12) .floating-activity-label::after {
    height: 60px;
}

.vehicle-transport-style {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.pedestrian-movement-style {
    background: linear-gradient(135deg, #16a085, #1abc9c);
}

.location-scouting-style {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.photography-shooting-style {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.dining-rest-style {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.sleeping-rest-style {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.shopping-errands-style {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.activity-legend-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-entry-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--weiß);
    font-size: 1.1em;
}

.legend-color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .main-content-wrapper {
        max-width: 95%;
        padding: 1px 10px;
        border-radius: 1.5vw;
    }

    .daily-schedule-block {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 25px;
    }

    .circular-day-badge {
        width: 35px;
        height: 35px;
        font-size: 0.8em;
        margin-right: 12px;
        min-width: 35px;
        flex-shrink: 0;
    }

    .date-description-block h3 {
        font-size: 1em;
    }

    .date-description-block p {
        font-size: 0.95em;
    }

    .hourly-scale-markers {
        font-size: 0.95em;
    }

    .horizontal-timeline-track {
        margin: 100px 0;
    }

    .activity-time-block .floating-activity-label {
        font-size: 0.85em;
        padding: 3px 8px;
    }

    .activity-legend-section {
        padding: 12px;
        gap: 12px;
    }

    .legend-entry-item {
        font-size: 1em;
    }

    .legend-color-indicator {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .main-content-wrapper {
        max-width: 98%;
        padding: 1px 8px;
        border-radius: 1vw;
    }

    .daily-schedule-block {
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .circular-day-badge {
        width: 30px;
        height: 30px;
        font-size: 0.7em;
        margin-right: 10px;
        min-width: 30px;
        flex-shrink: 0;
    }

    .date-description-block h3 {
        font-size: 0.9em;
    }

    .date-description-block p {
        font-size: 0.8em;
    }

    .hourly-scale-markers {
        font-size: 0.8em;
        margin: 0 2px;
    }

    .horizontal-timeline-track {
        margin: 80px 0;
        height: 25px;
    }

    .activity-time-block .floating-activity-label {
        font-size: 0.75em;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .activity-legend-section {
        padding: 10px;
        gap: 10px;
    }

    .legend-entry-item {
        font-size: 0.9em;
        gap: 6px;
    }

    .legend-color-indicator {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 320px) {
    .main-content-wrapper {
        max-width: 99%;
        padding: 1px 5px;
        border-radius: 0.5vw;
    }

    .daily-schedule-block {
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .circular-day-badge {
        width: 25px;
        height: 25px;
        font-size: 0.6em;
        margin-right: 8px;
        min-width: 25px;
        flex-shrink: 0;
    }

    .date-description-block h3 {
        font-size: 0.8em;
    }

    .date-description-block p {
        font-size: 0.7em;
    }

    .hourly-scale-markers {
        font-size: 0.7em;
        margin: 0 1px;
    }

    .horizontal-timeline-track {
        margin: 70px 0;
        height: 20px;
    }

    .activity-time-block .floating-activity-label {
        font-size: 0.65em;
        padding: 1px 4px;
        border-radius: 3px;
    }

    .activity-legend-section {
        padding: 8px;
        gap: 8px;
    }

    .legend-entry-item {
        font-size: 0.8em;
        gap: 4px;
    }

    .legend-color-indicator {
        width: 14px;
        height: 14px;
    }
}

.section-year {
    font-weight: bold;
}

.stats-table,
.stats-table th,
.stats-table td {
    font-size: 2.8vh;
    font-weight: normal;
}

.stats-table {
    width: 65%;
    table-layout: fixed;
}

.indented-list ul {
    list-style: disc outside;
    padding-left: 1.5em;
    margin: 0.5em 0;
    font-size: 2.8vh;
}

@media (max-width: 768px) {

    .stats-table,
    .section-year,
    .stats-table th,
    .stats-table td {
        font-size: 2.2vh;
    }

    .stats-table {
        width: 90%;
    }

    .indented-list ul {
        font-size: 2.2vh;
    }
}

@media (max-width: 480px) {

    .stats-table,
    .stats-table th,
    .section-year,
    .stats-table td {
        font-size: 1.9vh;
    }

    .stats-table {
        width: 100%;
    }

    .indented-list ul {
        font-size: 1.9vh;
    }
}

@media (max-width: 360px) {

    .stats-table,
    .section-year,
    .stats-table th,
    .stats-table td {
        font-size: 1.5vh;
    }

    .stats-table {
        width: 100%;
    }

    .indented-list ul {
        font-size: 1.5vh;
    }
}

.timetable-list {
    list-style: disc inside;
    margin: 10px 0;
    font-size: 1.3vw;
    padding-left: 0;
}

.timetable-sublist {
    list-style: circle inside;
    margin: 5px 0 0 20px;
    font-size: 1.3vw;
    padding-left: 0;
}

@media (max-width: 768px) {

    .timetable-list,
    .timetable-sublist {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {

    .timetable-list,
    .timetable-sublist {
        font-size: 1em;
    }
}

@media (max-width: 360px) {

    .timetable-list,
    .timetable-sublist {
        font-size: 0.95em;
    }
}