body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Zentriert den Inhalt nach oben */
    align-items: center;
}

.navbar {
    z-index: 10;
}

.main {
    display: flex;
    flex-direction: column; /* Ordnet die Elemente in einer Spalte an */
    justify-content: flex-start; /* Platziert die Elemente am oberen Rand */
    align-items: center;
    width: 100%; /* Stellt sicher, dass der Hauptbereich die ganze Breite einnimmt */
    padding-top: 30px; /* Etwas Platz nach oben */
}

.rahmen {
    margin-left: -20%;
    margin-top: -1%;
    width: 40vw;
    height: 45vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    z-index: 5;
}

.rahmen.portrait img {
    width: auto;
    height: 90%;
}

.rahmen.landscape img {
    width: 90%;
    height: auto;
}

.rahmen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    position: absolute;
}

.parallelogram {
    width: 65%;
    height: 55%;
    background-color: orange;
    z-index: 0;
    position: absolute;
    top: 52vh;
    left: 50%;
    transform: translate(-50%, -50%) skew(-20deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.content {
    flex: 1;
    margin-left: 40%;
    margin-top: -35%;
    padding: 2rem;
    color: #222;
    display: flex;
    flex-direction: column;
    justify-content: left;
    max-width:400px;
    z-index: 1;
}

.content h1 {
    margin-left: 0%;
    font-size: 2em;
    margin-bottom: 0.5rem;
    text-align: left;
}

.content p {
    margin: 0.5rem 0;
    line-height: 1.5;
    text-align: left;
}

.content #info {
    margin: 0.5rem 0;
    line-height: 1.5;
    text-align: left;
    font-size: small;
}

.arrow-left button, .arrow-right button {
    background: none;        /* Entfernt den Hintergrund */
    border: none;
    cursor: pointer;
}

.arrow-left, .arrow-right {
    width: 55px;
    height: 55px;
    background-color: #222;
    border-radius: 50%;
    position: absolute;
    top: 47vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.arrow-left {
    left: 15vh;
    z-index: 10;
}

.arrow-right {
    right: 15vh;
    z-index: 10;
}

.arrow-left:hover, .arrow-right:hover,
.chat-icon:hover, .like-icon:hover {
    background-color: #444;
}

.arrow-left img, .arrow-right img,
.chat-icon img, .like-icon img {
    height: 35px;
    display: block;
}

/* Chat und Like Button*/

.chat-icon, .like-icon {
    width: 55px;
    height: 55px;
    background-color: #222;
    border-radius: 50%;
    position: absolute;
    top: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 8;
}

/*Chat Button*/
.chat-icon {
    right: 65vh;
}

@keyframes clickAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.chat-icon.clicked {
    animation: clickAnimation 0.3s ease;
}

/*Like Button*/
.like-icon {
    right: 55vh;
}

.like-wrapper input[type="checkbox"] {
    display: none;
}

.heart-icon {
    height: 35px;
    transition: transform 0.4s linear;
}

@keyframes bounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes unlikeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.75); }
}

/* Kommentare */
.comment-box {
    margin-top: 40%;
    margin-bottom: 10%;
    width: 90%;
    max-width: 1200px;
    padding: 50px;
    background-color: whitesmoke;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
    color: #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Einzelner Kommentar */
.comment {
    background-color: orange;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    margin: 1% 5%;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: skew(-20deg);
}

/* Kommentar-Header */
.comment-header {
    transform: skew(20deg);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #444;
    font-weight: bold;
}

.comment-author {
    color: #222;
}

.timestamp {
    font-weight: normal;
    color: #666;
    font-size: 0.8em;
}

/* Kommentartext */
.comment-text {
    transform: skew(20deg);
    font-size: 1.1em;
    line-height: 1.4;
    background-color: darkorange;
    padding: 12px;
    border-radius: 8px;
    color: #111;
}

/* Formular */
.comment-form {
    margin-top: 30px;
}

/* Kommentar-Textarea */
#kommentar {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    box-sizing: border-box;
    resize: none;
    border: 1px solid #ccc;
}

.comment {
    padding: 10px;
    background-color: white;
    border-left: 4px solid #ff9900;
    font-size: 0.95rem;
    white-space: pre-wrap;    /* Erlaubt Zeilenumbrüche und behält Leerzeichen */
    word-wrap: break-word;    /* Bricht lange Wörter um */
    overflow-wrap: break-word; /* Standard für Wortumbruch */
    max-width: 100%;          /* Beschränkt die Breite auf den Container */
}

/* Kommentar-Liste */
.comment-list {
    max-height: 600px;       /* Maximale Höhe für die Liste */
    overflow-y: auto;        /* Ermöglicht das Scrollen, wenn Kommentare zu lang werden */
    margin-top: 20px;
    display: flex;
    flex-direction: column;  /* Kommentare werden untereinander angezeigt */
    gap: 15px;               /* Abstand zwischen den einzelnen Kommentaren */
}

/* Absende-Button */
.comment-submit {
    margin-top: 15px;
    padding: 12px 25px;
    font-size: 1em;
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.25);
}

.comment-submit:hover {
    background-color: #e67300;
    box-shadow: 0 6px 14px rgba(230, 115, 0, 0.4);
}

/* Barrierefreiheit */
.visually-hidden {
    position: absolute;
    left: -9999px;
}


/* Animationen */
/* Slide-Out: rechts oder links */
@keyframes slide-out-left {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}

@keyframes slide-out-right {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Slide-In: von rechts oder links */
@keyframes slide-in-left {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Slide-Utility-Klassen */
.slide-out-left {
    animation: slide-out-left 0.8s forwards;
}

.slide-out-left-fast {
    animation: slide-out-left 0.8s forwards;
}

.slide-out-right {
    animation: slide-out-right 0.8s forwards;
}

.slide-in-left {
    animation: slide-in-left 0.8s forwards;
}


.slide-in-right {
    animation: slide-in-right 0.8s forwards;
}

/* Lichtbild über gesamten Bildschirm, initial unsichtbar */
#licht {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0; /* Start bei 0% Sichtbarkeit */
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    z-index: 3;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Schalter-Button */
#lichtButton {
    position: absolute;
    top: 70%;
    left: 85%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease, opacity 0.3s ease;
}



/* Responsives Design */


/* Tablets / mittlere Bildschirme */
@media (max-width: 1024px) {
    .content {
        margin-left: 30%;
        margin-top: -20%;
        max-width: 350px;
    }
    .parallelogram {
        top: 48vh;
        width: 70%;
        height: 50%;
    }
    .arrow-left {
        left: 10vh;
    }
    .arrow-right {
        right: 10vh;
    }
    .chat-icon {
        right: 55vh;
        top: 70vh;
    }
    .like-icon {
        right: 45vh;
        top: 70vh;
    }
}

/* Tablets / größere Smartphones */
@media (max-width: 768px) {
    .main {
        padding-top: 20px;
    }
    .rahmen {
        width: 60vw;
        height: 70vw;
        margin-left: 0;
        margin-top: 0;
    }
    .content {
        margin: 1rem 0 0 0;
        max-width: 90vw;
        margin-left: 0;
        margin-top: 0;
        padding: 1.5rem;
        text-align: center;
    }
    .content h1 {
        font-size: 1.7em;
    }
    .content p, .content #info {
        font-size: 1em;
        text-align: center;
    }
    .parallelogram {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: 150px;
        margin: 1rem 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    /* Pfeile ausblenden auf kleineren Geräten (optional) */
    .arrow-left, .arrow-right {
        position: static;
        margin: 1rem 15px;
        width: 45px;
        height: 45px;
        box-shadow: none;
    }
    .arrow-left img, .arrow-right img {
        height: 25px;
    }
    /* Chat & Like Buttons unten fixieren */
    .chat-icon, .like-icon {
        position: fixed;
        top: auto;
        bottom: 15vh;
        right: auto;
        left: auto;
        margin: 0 15px;
        width: 50px;
        height: 50px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 20;
    }
    .chat-icon {
        left: 15vw;
    }
    .like-icon {
        left: 25vw;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .rahmen {
        width: 90vw;
        height: 90vw;
    }
    .content {
        max-width: 100vw;
        padding: 1rem;
        margin: 1rem 0;
    }
    .content h1 {
        font-size: 1.4em;
    }
    .arrow-left, .arrow-right {
        display: none; /* Pfeile ausblenden auf kleinen Bildschirmen */
    }
    .chat-icon, .like-icon {
        bottom: 10vh;
        left: 10vw;
        width: 45px;
        height: 45px;
    }
    .like-icon {
        left: 20vw;
    }
}