/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #81CDBA, #b1529f);
    color: #FFFFFF;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* Glass Effect Background */
.background {
    width: 100%;
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    flex: 1;
    overflow: hidden;  /* Verhindert Scrollen und Überlaufen */
}

/* Formen im Hintergrund für besseren Kontrast */
.background::before,
.background::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.background::before {
    top: 10%;
    left: -10%;
}

.background::after {
    bottom: 10%;
    right: -10%;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Header Content */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Logo Bereich */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-left: 50px;
}

.logo span {
    font-size: 1.5em;
    font-weight: bold;
    color: #81CDBA;
}

/* Navigationsleiste */
.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-links li a:hover {
    color: #81CDBA;
    background: linear-gradient(135deg, #b1529f, #81CDBA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu i {
    font-size: 1.8em;
    color: #FFFFFF;
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
    margin: 20px auto;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
}

.hero h1 {
    font-size: 2.8rem;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s, background 0.3s ease;
}

/* Popup für Brief anzeigen - Visuelles Upgrade */
.letter-popup {
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    z-index: 1001;
    max-width: 600px;
    width: 90%;
    display: none;
    text-align: center;
}

/* Popup für Brief anzeigen - Visuelles Upgrade */
.letter-popup {
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    z-index: 1001;
    max-width: 600px;
    width: 90%;
    display: none;
    text-align: center;
}

/* Aktiviertes Popup sichtbar machen */
.letter-popup.active {
    display: block;
}

/* Popup-Inhalt */
.popup-content {
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #81CDBA;
}

.popup-content p {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Empfänger E-Mail Adresse Input Style */
#recipient-email {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Open Sans', sans-serif;
}

/* Popup Actions - Button Styles */
.popup-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-close {
    padding: 10px 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none;
    font-weight: bold;
}

/* Button für Absenden */
.btn-primary {
    background: linear-gradient(135deg, #b1529f, #81CDBA);
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    opacity: 0.9;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

/* Button für Schließen */
.btn-close {
    background: rgba(255, 0, 0, 0.8);
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.btn-close:hover {
    transform: scale(1.05);
    opacity: 0.9;
    background: rgba(255, 0, 0, 1);
}

/* Sections Container für Desktop */
.sections-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
}

/* Über die Plattform und CTA Section */
.about, .cta {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    padding: 30px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    margin: 20px;
}

.about h2, .cta h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.about p, .cta p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.cta button {
    margin-top: 20px;
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #81CDBA, #b1529f);
    color: #FFFFFF;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.cta button:hover {
    transform: scale(1.05);
    opacity: 0.9;
    background: linear-gradient(135deg, #b1529f, #81CDBA);
}

/* Feedback Banner */
.feedback-banner {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #81CDBA, #FFFFFF);
    padding: 10px 20px;
    border-radius: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    color: #000000;
    writing-mode: vertical-lr;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feedback-banner:hover {
    transform: scale(1.1);
}

/* Sticky Footer */
.fixed-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(128, 128, 128, 0.6);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
}

.footer ul {
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease, background 0.3s ease;
}

.footer ul li a:hover {
    color: #81CDBA;
    background: linear-gradient(135deg, #b1529f, #81CDBA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Letters Section Container */
.letters-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    padding: 40px;
}

/* Letters List Styling */
.letters-list {
    flex: 1;
    max-width: 45%;
}

.letter,
.accordion-item {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    transition: transform 0.2s, opacity 0.2s;
}

.letter:hover,
.accordion-item:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Accordion Headers */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.plus-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #81CDBA;
}

/* Letter Details Styling */
.letter-details {
    flex: 1;
    max-width: 50%;
    padding: 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    text-align: left;
}

/* Accordion Stile */
.accordion-container {
    display: flex;
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
}

.accordion-list {
    flex: 1;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.accordion-item:hover {
    transform: scale(1.02);
}

.accordion-item h4 {
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plus-icon {
    font-size: 1.5em;
    color: #81CDBA;
}

.accordion-item.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Brief Inhalt */
.letter-content-container {
    flex: 2;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    text-align: center;
    position: relative;
}

.more-button {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #b1529f, #81CDBA);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.more-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Optionen-Popup */
.options-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    z-index: 1001;
    display: none;
    width: 300px;
}

.options-popup.active {
    display: block;
}

.options-popup button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: linear-gradient(135deg, #b1529f, #81CDBA);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.options-popup button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.close-popup {
    background: rgba(255, 255, 255, 0.1);
    color: #000;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Breadcrumb Section */
.breadcrumb-section {
    margin-top: 80px;
    text-align: center;
}

.breadcrumb-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.breadcrumb {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
}

.breadcrumb-item {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.breadcrumb-item:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #81CDBA, #b1529f);
}

.breadcrumb-item.active {
    background: linear-gradient(135deg, #b1529f, #81CDBA);
    font-weight: bold;
}

/* Input Section */
.input-section {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.input-container {
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
}

.input-box {
    display: none;
    margin-bottom: 20px;
}

.input-box.active {
    display: block;
}

textarea {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: none;
    resize: vertical;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.navigation-buttons .btn-secondary,
.navigation-buttons .btn-primary {
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navigation-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.navigation-buttons .btn-primary {
    background: linear-gradient(135deg, #b1529f, #81CDBA);
    color: #FFFFFF;
}

.navigation-buttons .btn-secondary:hover,
.navigation-buttons .btn-primary:hover {
    transform: scale(1.05);
    opacity: 0.9;
}


/* Seifenblasen-Animation */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    animation: float 10s infinite;
    opacity: 0;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

.bubble:nth-child(1) {
    width: 50px;
    height: 50px;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 30%;
    animation-duration: 8s;
    animation-delay: 4s;
}

.bubble:nth-child(3) {
    width: 70px;
    height: 70px;
    left: 50%;
    animation-duration: 15s;
    animation-delay: 1s;
}

.bubble:nth-child(4) {
    width: 40px;
    height: 40px;
    left: 70%;
    animation-duration: 10s;
    animation-delay: 5s;
}

.bubble:nth-child(5) {
    width: 80px;
    height: 80px;
    left: 90%;
    animation-duration: 18s;
    animation-delay: 3s;
}

/* Dynamische Blasen hinzufügen */
@keyframes bubbleAppearance {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

        /* Analysis Section Container */
        .analysis-section {
            padding: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }

/* Analyse Header Compact Style */
.analysis-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    max-width: 800px;
    width: 90%;
}

.header-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2%;
}

.header-column {
    flex: 1;
    margin-right: 20px;
}

.header-column1 {
    flex: 1;
    margin: 6px 30px 0 0;
    font-size: 15px;
    font-weight: bold;	
}

.header-column:last-child {
    margin-right: 0;
}

.header-column p {
    margin: 5px 0;
    font-size: 0.9rem;
}

        .analysis-container {
            display: flex;
            gap: 30px;
            justify-content: space-between;
            width: 100%;
            max-width: 1200px;
        }

        .analysis-table {
            flex: 1;
            padding: 30px;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(20px);
            overflow-x: auto;
        }

        .analysis-table table {
            width: 100%;
            border-collapse: collapse;
        }

        .analysis-table th, .analysis-table td {
            padding: 10px;
            text-align: left;
            color: #FFFFFF;
        }

        .analysis-table th {
            background: rgba(255, 255, 255, 0.2);
        }

        .analysis-table tr:nth-child(even) {
            background: rgba(255, 255, 255, 0.05);
        }

        .analysis-chart {
            flex: 1;
            padding: 30px;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(20px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        align-items: center;
        padding-top: 60px;
        gap: 15px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger-menu {
        display: block;
    }
}
