/* Universal Box-Sizing Reset */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* ======================================= */
/* 1. Globale Stile & Schriftarten         */
/* ======================================= */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400&display=swap');

:root {
    --primary-color: #40c4ff;
    --secondary-color: #f50057;
    --bg-dark: #0a0a1a;
    --bg-light: #141428;
    --text-color: #e0e0e0;
    --border-color: rgba(64, 196, 255, 0.5);
}
body { background-color: var(--bg-dark); color: var(--text-color); font-family: 'Roboto', sans-serif; margin: 0; line-height: 1.6; }
h1, h2, h3, h4, .logo { font-family: 'Orbitron', sans-serif; color: var(--primary-color); text-shadow: 0 0 5px var(--primary-color); }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; }

/* ======================================= */
/* 2. Header & Navigation                  */
/* ======================================= */
header { background: var(--bg-light); border-bottom: 1px solid var(--border-color); padding: 1rem 0; margin-bottom: 2rem; }
header nav { display: flex; justify-content: space-between; align-items: center; }
header .logo { font-size: 1.8rem; margin: 0; }
header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }

/* ======================================= */
/* 3. Allgemeine Komponenten (Formulare, Buttons) */
/* ======================================= */
button {
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 5px;
}

button:hover:not(:disabled) {
    background: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.futuristic-form {
    background: var(--bg-light);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.futuristic-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.futuristic-form input[type="text"],
.futuristic-form input[type="email"],
.futuristic-form input[type="password"],
.futuristic-form textarea,
select {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 4px;
    height: 42px;
}

.futuristic-form textarea {
    height: auto;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.form-checkbox {
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin: 0 0.5rem 0 0;
    height: auto;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid transparent;
}

.alert.error {
    background-color: #441c22;
    border-color: var(--secondary-color);
    color: #ffcdd2;
}

.alert.success {
    background-color: #142c2e;
    border-color: var(--primary-color);
    color: #b2ebf2;
}

.tags .tag {
    background: rgba(64, 196, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

/* ======================================= */
/* 4. Server Liste (index.php) - ÜBERARBEITET */
/* ======================================= */
/* Filter Formular */
.filter-form { display: flex; flex-wrap: wrap; gap: 1rem; background: var(--bg-light); padding: 1rem; border-radius: 8px; margin-bottom: 2rem; border: 1px solid var(--border-color); }
.filter-group { flex-grow: 1; min-width: 150px; display: flex; }
.filter-group input, .filter-group select, .filter-group button { width: 100%; height: 42px; padding: 10px 15px; margin-bottom: 0; border: 1px solid var(--border-color); background: var(--bg-dark); color: var(--text-color); border-radius: 5px; }
.filter-group button { display: flex; align-items: center; justify-content: center; background: var(--primary-color); color: var(--bg-dark); cursor: pointer; }

/* Server Karten Grid */
.server-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

.server-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--border-color);
}
.server-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.server-icon { width: 64px; height: 64px; border-radius: 25%; }
.server-title h2 { margin: 0; font-size: 1.2rem; }
.server-stats { display: flex; gap: 1rem; font-size: 0.85rem; opacity: 0.8; margin-bottom: 0.75rem; align-items: center; }
.server-stats .online { color: #23a55a; }

.server-description {
    flex-grow: 1;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
    transition: opacity 0.3s ease;
}
.server-card .tags {
    margin-top: auto; /* Schiebt die Tags nach unten */
    padding-top: 1rem;
}

/* Neuer Hover-Effekt */
.server-card:hover .server-description {
    opacity: 0.1;
}
.server-card-actions-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(20, 20, 40, 1) 50%, rgba(20, 20, 40, 0));
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.server-card:hover .server-card-actions-overlay {
    opacity: 1;
    transform: translateY(0);
}

.server-card-actions-overlay .action-btn.view {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
}
.server-card-actions-overlay .action-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upvote-section { display: flex; align-items: center; gap: 0.5rem; }
.upvote-section .upvote-btn { background: none; border: 1px solid var(--primary-color); color: var(--primary-color); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.upvote-section .upvote-btn:hover:not(:disabled) { background: var(--primary-color); color: var(--bg-dark); }

/* ======================================= */
/* 5. Server Detailseite (server.php)      */
/* ======================================= */
.server-banner {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: -64px;
    z-index: 1;
}

.server-detail-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 1rem;
}

.server-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.server-icon-large {
    width: 128px;
    height: 128px;
    border-radius: 25%;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.server-title-area h1 {
    margin: 0;
    font-size: 2.5rem;
}

.server-owner {
    opacity: 0.7;
    margin-top: 5px;
}

.server-detail-body h3 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.server-detail-body p {
    line-height: 1.8;
}

.server-actions {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.upvote-section-large {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upvote-section-large .upvote-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.vote-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.vote-count span {
    font-size: 1.8rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
}

.vote-count small {
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0.7;
}

.button-join {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 15px 30px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
}

.button-join:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 0 20px var(--secondary-color);
    transform: scale(1.05);
}

/* ======================================= */
/* 6. Premium & Management Stile           */
/* ======================================= */
.server-management-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.button-premium {
    background: #f1c40f;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    display: block;
}

.button-premium:hover {
    background: #f39c12;
}

.premium-status {
    color: #f1c40f;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.premium-benefits {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #f1c40f;
}

.premium-benefits ul {
    list-style: none;
    padding: 0;
}

.premium-benefits li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-benefits .fa-check-circle {
    color: #2ecc71;
}

.premium-price-box {
    text-align: center;
    margin-top: 2rem;
}

.price {
    font-size: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    color: #f1c40f;
    margin: 0.5rem 0;
}

.button-premium-buy {
    background: #2ecc71;
    color: #fff;
    font-size: 1.2rem;
    padding: 15px 30px;
}

.premium-card {
    border-color: #f1c40f;
    box-shadow: 0 0 25px rgba(241, 196, 15, 0.4);
}

.premium-badge {
    position: absolute;
    top: 10px;
    right: -35px;
    background: #f1c40f;
    color: #fff;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 3;
}

/* ======================================= */
/* 7. Report & Modal Styles                */
/* ======================================= */
.button-report {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 5px 10px;
    font-size: 0.8rem;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: none;
    font-family: 'Roboto', sans-serif;
}

.button-report:hover {
    background: var(--secondary-color);
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--bg-light);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
    }

    to {
        transform: translateY(0);
    }
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content textarea {
    width: 100%;
    height: 120px;
}

/* ======================================= */
/* 8. Paginierung Stile                    */
/* ======================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination a {
    color: var(--text-color);
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

.pagination a.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    font-weight: bold;
}

/* ======================================= */
/* 9. Footer                               */
/* ======================================= */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    opacity: 0.6;
    border-top: 1px solid var(--border-color);
}

/* ======================================= */
/* 10. Review System Stile                 */
/* ======================================= */

.reviews-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.reviews-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.review-form-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.review-form-container h3 {
    margin-top: 0;
}

/* Interaktive Sterne für die Bewertung */
.rating-group {
    margin-bottom: 1rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    /* Wichtiger Trick, damit :hover funktioniert */
    justify-content: flex-end;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating label:before {
    content: '★';
}

.star-rating input[type="radio"]:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #f1c40f;
}

/* Anzeige der Sterne bei Kommentaren */
.review-stars-display {
    color: #f1c40f;
    font-size: 1rem;
}

.review-stars-display:before {
    content: '★★★★★';
    letter-spacing: 3px;
    background: linear-gradient(90deg, #f1c40f var(--rating-percent), #444 var(--rating-percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.review-stars-display[data-rating="1"] {
    --rating-percent: 20%;
}

.review-stars-display[data-rating="2"] {
    --rating-percent: 40%;
}

.review-stars-display[data-rating="3"] {
    --rating-percent: 60%;
}

.review-stars-display[data-rating="4"] {
    --rating-percent: 80%;
}

.review-stars-display[data-rating="5"] {
    --rating-percent: 100%;
}


/* Liste der vorhandenen Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

.review-author {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}

.review-comment {
    margin: 0;
    line-height: 1.7;
}

.review-date {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.6;
    text-align: right;
}

.favorite-btn {
    background: none;
    border: none;
    color: #6c757d;
    /* Grau für "inaktiv" */
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
    transition: color 0.2s, transform 0.2s;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.active {
    color: var(--secondary-color);
    /* Rot für "aktiv" */
}

.favorite-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.server-card-footer .tags {
    display: flex;
    align-items: center;
}

/* ======================================= */
/* 11. Account Page & Header Dropdown      */
/* ======================================= */

.account-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.account-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.account-section h2 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.account-section small {
    display: block;
    margin-top: -0.5rem;
    opacity: 0.6;
}


/* Header Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--bg-light);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-dark);
    color: var(--primary-color);
}

/* Responsive Anpassung für die Account-Seite */
@media (max-width: 900px) {
    .account-container {
        grid-template-columns: 1fr;
    }
}

/* ======================================= */
/* 12. Owner Statistics Stile              */
/* ======================================= */
.server-stats-owner {
    display: flex;
    justify-content: space-around;
    background: var(--bg-dark);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    text-align: center;
}

.stat-item .stat-value {
    display: block;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
}

.stat-item .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ======================================= */
/* 13. Owner Reply Styles                  */
/* ======================================= */

.owner-reply {
    background-color: var(--bg-dark);
    border-left: 3px solid var(--primary-color);
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 0 5px 5px 0;
}

.owner-reply .reply-header {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.owner-reply p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.owner-reply-form-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-toggle-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
}

.reply-toggle-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.owner-reply-form textarea {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* ======================================= */
/* 11. Account Page & Header Dropdown      */
/* ======================================= */
.account-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.account-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.account-section h2 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.account-section small {
    display: block;
    margin-top: -0.5rem;
    opacity: 0.6;
}

@media (max-width: 900px) {
    .account-container {
        grid-template-columns: 1fr;
    }
}

/* Header Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--bg-light);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-dark);
    color: var(--primary-color);
}


/* ======================================= */
/* 12. Public Profile Page Styles          */
/* ======================================= */
.profile-header {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.profile-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.profile-header p {
    margin: 0.5rem 0 0;
    opacity: 0.7;
}

.profile-section {
    margin-bottom: 3rem;
}

.profile-section h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* ======================================= */
/* 13. Owner Reply Styles (ANGEPASST)      */
/* ======================================= */
.owner-reply {
    background-color: var(--bg-dark);
    border-left: 3px solid var(--primary-color);
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 0 5px 5px 0;
}
.owner-reply .reply-header {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.owner-reply p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}
.owner-reply-form-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Standardzustand: Button ist sichtbar, Formular ist versteckt */
.reply-toggle-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block; /* Sicherstellen, dass er sichtbar ist */
}
.reply-toggle-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}
.owner-reply-form {
    display: none; /* Standardmäßig versteckt */
}

/* Zustand, wenn der Container die aktive Klasse hat */
.owner-reply-form-container.reply-form-active .reply-toggle-btn {
    display: none; /* Button verstecken */
}
.owner-reply-form-container.reply-form-active .owner-reply-form {
    display: block; /* Formular anzeigen */
}

.owner-reply-form textarea {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* ======================================= */
/* 14. Fehler-Seiten (z.B. 404)            */
/* ======================================= */

.error-page-container {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.error-page-container h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--secondary-color);
}

.error-page-container p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* ======================================= */
/* 15. Legal Pages (ToS, Privacy)          */
/* ======================================= */
.legal-container {
    background: var(--bg-light);
    padding: 2rem 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.legal-container h1 {
    font-size: 2.5rem;
    margin-top: 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.legal-container h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}
.legal-container p, .legal-container li {
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
}
.legal-container ul {
    padding-left: 20px;
}

/* ======================================= */
/* 16. Premium Options (ANGEPASST)         */
/* ======================================= */
.premium-options-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.premium-price-box {
    display: flex; /* Macht die Box selbst zu einem Flex-Container */
    flex-direction: column; /* Richtet den Inhalt vertikal aus */
    flex-grow: 1;
    flex-basis: 320px; /* Eine Basis-Breite, bevor sie wächst */
    max-width: 400px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.premium-price-box h3 {
    font-size: 1.5rem;
}

.premium-price-box.lifetime {
    border-color: #f1c40f; /* Goldene Farbe für Lifetime */
}

.premium-price-box .price {
    margin-bottom: auto; /* Schiebt den nachfolgenden Inhalt nach unten */
    padding-bottom: 1.5rem; /* Etwas Abstand */
}

#paypal-button-container-monthly,
#paypal-button-container-lifetime {
    margin-top: auto; /* Stellt sicher, dass der Button immer am Boden der Box ist */
}