
html, body {
    width: 100%;

}

/* ==========================================================================
   1. GRUNDEINSTELLUNGEN & VARIABLEN
   ========================================================================== */

:root {
  --green-primary: #25b16a;
  --green-dark: #1a7f4e;
  --background-light: #f9fdfb;
  --background-section-alt: #eef7f2;
  --text-dark: #232323;
  --text-light: #5f5f5f;
  --white: #ffffff;
  --card-bg: var(--white);
  --border-color: #e0e0e0;
  --green: var(--green-primary);

  --hero-gradient-start: #eef7f2;
  --hero-gradient-end: #f0f9f4;

  --footer-gradient-start: #1a7f4e;
  --footer-gradient-end: #16834a;

  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);

  --radius-normal: 12px;
  --radius-large: 20px;

  --max-width: 1400px;

  --transition-fast: all 0.2s ease-in-out;
}

.animate-on-scroll {
    opacity: 0; /* Startet komplett unsichtbar */
    transform: translateY(30px); /* Startet 30px nach unten verschoben */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Definiert die Animation */
}

/* Stil, der hinzugefügt wird, wenn das Element sichtbar wird */
.animate-on-scroll.is-visible {
    opacity: 1; /* Wird komplett sichtbar */
    transform: translateY(0); /* Bewegt sich an die finale Position */
}

.status-text {
    transition: color 0.3s ease; /* Sanfter Farbübergang */
    font-weight: 600; /* Etwas fetter für bessere Lesbarkeit */
}

/* Farben basierend auf dem Status */
.status-text.ok {
    color: #2ecc71; /* Grün */
}

.status-text.warning {
    color: #f1c40f; /* Gelb/Orange */
}

.status-text.down {
    color: #e74c3c; /* Rot */
}

/* ==========================================================================
    DARK MODE THEME
   ========================================================================== */

body.dark-mode {
  --green-primary: #29c778;
  --green-dark: #25b16a;
  --background-light: #121212;
  --background-section-alt: #1e1e1e;
  --text-dark: #e8e6e3;
  --text-light: #a8a29a;
  --white: #1e1e1e;
  --card-bg: #1e1e1e;
  --border-color: #3a3a3a;
  --green: var(--green-primary);
  --hero-gradient-start: #1e1e1e;
  --hero-gradient-end: #2a2a2a;
  --footer-gradient-start: #121212;
  --footer-gradient-end: #1a1a1a;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.3);
  background-image: radial-gradient(var(--border-color) 0.5px, transparent 0.5px);
}

/* DARKMODE TRANSITION */
.site-header,
.news-card,
.feature-card,
.team-card,
.auth-container,
.content-container,
.dropdown-menu,
.notifications-panel,
.faq-item,
.content-box-alt {
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, transform 0.3s ease, box-shadow 0.3s ease;
}

.form-group input {
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* ==========================================================================
   1. Header
   ========================================================================== */

body.dark-mode .dropdown-menu .logout-link {
    color: #ff8a8a;
}
body.dark-mode .dropdown-menu .logout-link i {
    color: inherit; 
}

body.dark-mode .dropdown-menu .logout-link:hover {
    background-color: rgba(239, 58, 58, 0.15);
    color: #ff5252;
}
body.dark-mode .dropdown-menu .logout-link:hover i {
    color: inherit;
}

/* ==========================================================================
   3. Startseite
   ========================================================================== */

body.dark-mode .content-box-alt {
    background-color: var(--card-bg); 
}

/*
 * 2. Die Texte innerhalb des Containers anpassen
 */
body.dark-mode .content-box-alt h3,
body.dark-mode .detail-feature-content h4 {
    color: var(--text-dark);
}

body.dark-mode .detail-feature-content p {
    color: var(--text-light);
}

/*
 * 3. Die Icon-Hintergründe anpassen
 */
body.dark-mode .detail-feature-icon {
    background-color: rgba(41, 199, 120, 0.15);
}

body.dark-mode .detail-feature-icon svg {
    color: var(--green-primary);
}


/*
 * 4. Das "Bald verfügbar"-Badge
 */
body.dark-mode .status-badge {
    background-color: rgba(41, 199, 120, 0.15);
    color: #adebad; 
}


/* ==========================================================================
   4. Login/Register
   ========================================================================== */

body.dark-mode .auth-container h2,
body.dark-mode .auth-container .form-group label {
    color: var(--text-dark);
}
body.dark-mode .auth-container .auth-subtitle,
body.dark-mode .auth-container .divider {
    color: var(--text-light);
}

/* 2. Styling für Eingabefelder */
body.dark-mode .form-group input {
    background-color: rgba(255, 255, 255, 0.05);
    color: #E6E6E6;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: none; 
    caret-color: var(--green-primary); 
}
body.dark-mode .form-group input::placeholder {
    color: #a8a29a;
}

/* 3. Normaler Fokus-Zustand */
body.dark-mode .form-group input:focus {
    background-color: #1e1e1e !important;
    border-color: var(--green-primary) !important;
    box-shadow: 0 0 0 3px rgba(41, 199, 120, 0.3) !important;
}

/* 4. Autofill-Zustand */
body.dark-mode input:-webkit-autofill,
body.dark-mode input:-webkit-autofill:hover,
body.dark-mode input:-webkit-autofill:focus,
body.dark-mode input:-webkit-autofill:active {
    -webkit-text-fill-color: #E6E6E6 !important;
    border-color: var(--green-primary) !important;
    -webkit-box-shadow: 0 0 0 3px rgba(41, 199, 120, 0.3),
                        0 0 0 30px #1e1e1e inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 5. Styling für den "Anmelden"-Button */
body.dark-mode .auth-submit.btn--primary,
body.dark-mode .auth-submit.btn--secondary {
    background-color: var(--green-primary);
    border-color: var(--green-primary);
    color: #0c2e1c;
}
body.dark-mode .auth-submit.btn--primary:hover,
body.dark-mode .auth-submit.btn--secondary:hover {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    color: #0c2e1c;
}


body.dark-mode .form-message.success {
    background-color: rgba(41, 199, 120, 0.15);  
    border-color: rgba(41, 199, 120, 0.4);       
    color: #adebad;                         
}
body.dark-mode .form-message.success i {
    color: #adebad;
}


/*
 * 2. Fehler-Nachricht
 */
body.dark-mode .form-message.error {
    background-color: rgba(239, 58, 58, 0.15); 
    border-color: rgba(239, 58, 58, 0.4);  
    color: #ff8a8a;                     
}
body.dark-mode .form-message.error i {
    color: #ff8a8a;
}





body.dark-mode .pre-access-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* 2. Icon-Hintergrund */
body.dark-mode .pre-access-card .icon-wrapper {
    background-color: rgba(41, 199, 120, 0.15);
    color: var(--green-primary);
}

/* 3. Info-Box */
body.dark-mode .pre-access-card .release-box-inline {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}
/* Textfarbe Info-Box */
body.dark-mode .pre-access-card .release-box-inline span {
    color: var(--text-light); 
}

body.dark-mode .pre-access-card hr {
    border-color: var(--border-color);
}

/* 5. ALLE Texte */
body.dark-mode .pre-access-card h1,
body.dark-mode .pre-access-card .benefits-list strong,
body.dark-mode .pre-access-card .benefits-headline,  
body.dark-mode .pre-access-card .card-form h4 { 
    color: var(--text-dark);
}
body.dark-mode .pre-access-card p,
body.dark-mode .pre-access-card .benefits-list span,
body.dark-mode .pre-access-card .agb-line label {
    color: var(--text-light);
}


body.dark-mode .pre-access-card .btn[disabled] {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4); 
    border-color: transparent;
}

body.dark-mode .pre-access-card .confirmation-box h3,
body.dark-mode .pre-access-card .confirmation-box p {
    color: var(--text-dark);
}

body.dark-mode .pre-access-card .confirmation-box.is-success h3,
body.dark-mode .pre-access-card .confirmation-box.is-success i {
    color: var(--green-primary);
}






body.dark-mode .notification-item.is-unread {
    background-color: rgba(41, 199, 120, 0.1);
}

body.dark-mode .notification-item.is-unread:hover {
    background-color: rgba(41, 199, 120, 0.18);
}
/* ==========================================================================
   2. BASIS-STYLING
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  zoom: 0.9;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: var(--background-light); 
  
  background-image: radial-gradient(var(--border-color) 0.5px, transparent 0.5px);
  background-size: 15px 15px;

  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh; 

  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


h1, h2, h3 {
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.3s ease-in-out;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--green-dark);
}



#theme-toggle.header-icon-btn {
    padding: 0.75rem; 
    border-radius: 999px; 
    border: 2px solid var(--border-color);
    background: transparent;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}

#theme-toggle.header-icon-btn i {
    font-size: 1.1rem; 
}

#theme-toggle.header-icon-btn:hover {
    background: var(--background-light);
    border-color: var(--text-dark);
}

body.dark-mode #theme-toggle.header-icon-btn {
    border-color: var(--border-color);
}

body.dark-mode #theme-toggle.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-dark);
}

/* ==========================================================================
   3. LAYOUT-KOMPONENTEN (HEADER, FOOTER, MAIN, SECTIONS)
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;  
    padding-right: 1.5rem; 
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;  
        padding-right: 1rem; 
    }
}

main.page-content {
    flex-grow: 1;
    width: 100%;
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}


/* --- Header --- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height, 80px); 
}

.header-inner-container {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    width: 100%;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Linker Teil: Logo */
.header-brand {
    flex-shrink: 0; 
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-img {
    width: 48px;
    height: 48px;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Rechter Teil: Navigation und User-Aktionen */
.header-main-content {
    display: flex;
    align-items: center;
    gap: 2.5rem; 
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

.main-nav a.active, 
.main-nav a:hover {
    color: var(--green-primary);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobiler Button */
.mobile-nav-toggle {
    display: none;
}

/* --- User-Icons & Dropdowns--- */
.header-user-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* =========================================
   NEWS SEKTION
   ========================================= */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.news-container {
    overflow-x: auto; 
    padding-bottom: 1.5rem; 
    -webkit-overflow-scrolling: touch; 
}

.news-container::-webkit-scrollbar {
    display: none; 
}

.news-scroller {
    display: flex;
    gap: 1.5rem; 
    width: max-content; 
}

.news-card {
    display: flex;
    flex-direction: column;
    width: 300px;
    flex-shrink: 0;
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.news-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover; 
    flex-shrink: 0;  
}

.news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.news-card-tag {
    display: inline-block;
    background-color: var(--background-section-alt);
    color: var(--green-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.news-card-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-card-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.news-card-link {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    transition: color 0.2s;
}

.news-card-link:hover {
    color: var(--green-dark);
}

body.dark-mode .news-card {
    border: 1px solid var(--border-color); 
}

body.dark-mode .news-card-tag {
    background-color: rgba(41, 199, 120, 0.15); 
    color: #adebad; 
    border: 1px solid rgba(41, 199, 120, 0.3);
}

body.dark-mode .news-card-title {
    color: var(--text-dark); 
}

body.dark-mode .news-card-description {
    color: var(--text-light); 
}

body.dark-mode .news-card-link {
    color: var(--green-primary); 
}

body.dark-mode .news-card-link:hover {
    color: #ffffff; 
}

body.dark-mode .news-card-date {
    color: var(--text-light);
}

@media (max-width: 500px) {
    .section-header {
        justify-content: center;
    }
    .section-header .section-title {
        text-align: center;
        width: 100%;
    }
}

/* --- Sections --- */
.section {
    padding: 5rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto; 
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* ==========================================================================
   4. WIEDERVERWENDBARE KOMPONENTEN
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 0.75rem 1.5rem;
  border-radius: 999px; font-weight: 700; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: var(--transition-fast);
}
.btn--primary { background: var(--green-primary); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.btn--secondary { background: transparent; color: var(--text-dark); border-color: var(--border-color); }
.btn--secondary:hover { background: var(--background-light); border-color: var(--text-dark); }
.btn--danger { background: #ef3a3a; color: var(--white); border-color: #ef3a3a; }
.btn--danger:hover { background: #c0392b; border-color: #c0392b; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(239, 58, 58, 0.3); }
.btn--large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* --- Navigation & Header-Icons --- */
.main-nav { display: flex; gap: 1.5rem; align-items: center; flex-shrink: 0;}
.main-nav a { color: var(--text-light); font-weight: 600; }
.main-nav a.active, .main-nav a:hover { color: var(--green-primary); }

.mobile-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: none; 
    z-index: 101; 
}

.mobile-nav-toggle .line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
}

.mobile-nav-toggle.is-open .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.is-open .line:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.is-open .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-user-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-icon-btn {
    background: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem; 
    padding: 0.5rem;
    position: relative;
    color: var(--text-light);
    transition: all 0.2s ease-in-out;
}

.profile-dropdown,
.notifications-dropdown {
    position: relative; 
}

.header-icon-btn:hover,
.header-icon-btn[aria-expanded="true"] {
    color: var(--text-dark);
    background-color: var(--background-section-alt);
}

.notification-btn .fa-bell {
    font-size: 1.53rem;
    line-height: 1;
}

.profile-btn {
    padding: 0.5rem 0.8rem;
}

.profile-avatar {
    font-size: 1.5rem;
    line-height: 1;
}

.profile-username {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.chevron-down {
    width: 16px;
    height: 16px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.header-icon-btn[aria-expanded="true"] .chevron-down {
    transform: rotate(180deg);
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6x;
    width: 9px;
    height: 9px;
    background-color: #ef3a3a;
    border-radius: 50%;
    border: 1.5px solid var(--white);
}

@media (max-width: 768px) {
    .header-user-menu {
        gap: 0.2rem;
    }
    
    .profile-username, .chevron-down {
        display: none;
    }

    .header-icon-btn,
    .profile-btn {
        padding: 0.6rem; 
    }
    
    .profile-avatar, 
    .notification-btn .fa-bell {
        font-size: 1.35rem; 
    }

    .mobile-nav-toggle { display: flex; }
}

/* --- Dropdown-Menü --- */
.profile-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 110;
  width: 240px; background-color: var(--white);
  border-radius: var(--radius-normal); box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color); padding: 0.75rem 0;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { padding: 0.5rem 1.5rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.dropdown-header .username { font-weight: 700; color: var(--text-dark); margin: 0; }
.dropdown-header .email { font-size: 0.85rem; color: var(--text-light); margin: 0; word-break: break-all; }
.dropdown-menu a { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.5rem; font-size: 0.95rem; color: var(--text-light); font-weight: 500; }
.dropdown-menu a:hover { background-color: var(--background-section-alt); color: var(--text-dark); }
.dropdown-menu a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-light); 
    transition: color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:hover i {
    background-color: var(--background-section-alt);
    color: var(--text-dark);
}

.dropdown-divider { height: 1px; margin: 0.75rem 0; background-color: var(--border-color); }
.dropdown-menu .logout-link { color: #e74c3c; }
.dropdown-menu .logout-link:hover { background-color: #fbecec; color: #c0392b; }
.dropdown-menu .logout-link i {
    color: #e74c3c;
}
.dropdown-menu .logout-link:hover i {
    color: #c0392b;
}

/* --- FAQ --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.faq-question {
  width: 100%; padding: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; font-size: 1.1rem; font-weight: 600;
  background: none; border: none; cursor: pointer;
  text-align: left; color: var(--text-dark);
}
.faq-question:hover { color: var(--green-primary); }
.faq-icon {
  position: relative; width: 20px; height: 20px; flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 2px;
  background-color: var(--text-light);
  transition: transform 0.3s ease-out, background-color 0.2s ease;
}
.faq-icon::before { transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-question:hover .faq-icon::before,
.faq-question:hover .faq-icon::after { background-color: var(--green-primary); }
.faq-item.open .faq-question { color: var(--green-primary); }
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background-color: var(--green-primary); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.faq-answer p {
  padding: 0 1.5rem 1.5rem 1.5rem; margin: 0;
  color: var(--text-light); line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 500px; }

.form-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-normal);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-message i {
  font-size: 1.2rem;
  flex-shrink: 0; 
}

.form-message.success {
  color: var(--green-dark);
  background-color: #e2f5ec;
  border-color: #a3d9c1;
}

.form-message.success i {
  color: var(--green-dark);
}

.form-message.error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.form-message.error i {
  color: #721c24;
}

/* ==========================================================================
   5. SEITEN-SPEZIFISCHE STYLES
   ========================================================================== */

/* --- Hero Section --- */
.hero {
    background-color: var(--background-section-alt);
    background-image: 
        linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%),
        radial-gradient(var(--border-color) 0.5px, transparent 0.5px);
    background-size: cover, 15px 15px;
    padding: 5rem 2rem; 
    border-bottom: 1px solid var(--border-color);
}
.hero-content .subtitle { font-size: 1.25rem; margin: 1.5rem 0 2.5rem 0; }
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}
.hero-figure {
    margin: 0;
    text-align: center;
}
.hero-figure img { max-width: 400px; filter: drop-shadow(0 20px 25px rgba(0,0,0,0.15)); }

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto; 
}

.app-store-buttons {
    margin-top: 1.5rem;
}

.app-store-badges a {
    display: inline-block;
    transition: transform 0.2s ease-out; 
}

.app-store-badges a:hover {
    transform: scale(1.03); 
}

.app-store-badges img {
    height: 48px;
    width: auto;
}

/* --- Feature Sections & Cards --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.feature-card { background: var(--card-bg); border-radius: var(--radius-large); box-shadow: var(--shadow-light); padding: 2rem; text-align: center; transition: var(--transition-fast); }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.feature-icon { font-size: 3rem; line-height: 1; margin-bottom: 1rem; }

.content-box-alt { padding: 4rem; background-color: var(--background-section-alt); border-radius: var(--radius-large); margin-top: 5rem; }
.detail-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem 3rem;
}

.detail-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.detail-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: #eef7f2;
    color: var(--green-dark);
}

.detail-feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.detail-feature-content h4 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

.detail-feature-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Status Badge --- */
.status-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-dark);
  background-color: #d4ffe6;
  border-radius: 999px;
  white-space: nowrap;
}

/* --- Auth Pages (Login, Register) --- */
body.centered-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.centered-content main {
    flex-grow: 1; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    padding: 2rem 1rem; 
}

.auth-container {
  max-width: 420px; width: 100%; padding: 2.5rem;
  background: var(--white); border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium); text-align: center;
}
.auth-logo-link {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; margin-bottom: 0.5rem; text-decoration: none;
}
.auth-logo-link img { width: 60px; }
.auth-logo-link h2 { margin: 0; color: var(--text-dark); font-size: 1.8rem; }
.auth-subtitle { color: var(--text-light); margin-bottom: 2rem; font-size: 0.95rem; }
.social-login-group { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.btn-social {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius-normal);
  font-weight: 600; text-decoration: none; border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}
.btn-social:hover { background-color: var(--background-light); }
.divider {
  display: flex; align-items: center; text-align: center;
  color: var(--text-light); font-size: 0.8rem; font-weight: 600; margin: 1.5rem 0;
}
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.divider span { padding: 0 1rem; }
.auth-form { text-align: left; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-group input[type="email"], .form-group input[type="password"], .form-group input[type="text"] {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border-color);
  border-radius: var(--radius-normal); font-size: 1rem; transition: var(--transition-fast);
}
.form-group input:focus { outline: none; border-color: var(--green-primary); box-shadow: 0 0 0 3px rgba(37, 177, 106, 0.2); }
.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { padding-right: 40px !important; }
.password-toggle {
  position: absolute; right: 1px; top: 1px; bottom: 1px;
  width: 40px; background: transparent; border: none;
  cursor: pointer; color: var(--text-light); font-size: 1rem;
}
.password-toggle:hover { color: var(--text-dark); }
.form-group-inline { display: flex; align-items: flex-start; gap: 0.75rem; margin: 1.5rem 0; }
.form-group-inline input[type="checkbox"] { margin-top: 5px; }
.form-group-inline label { font-weight: 500; font-size: 0.9rem; line-height: 1.5; }
.auth-submit { width: 100%; }
.auth-footer-link { margin-top: 2rem; font-size: 0.9rem; text-align: center; }
.g-recaptcha { margin: 1.5rem 0; display: flex; justify-content: center; }

.google-btn-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
}

.content-container, .maintenance-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
}
.maintenance-container {
    text-align: center;
}
.content-container {
    text-align: left;
}
.content-container h1, .content-container h2 {
    color: var(--text-dark);
}
.content-container h1 { font-size: 2.2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 2rem; }
.content-container h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.content-container p, .content-container li { line-height: 1.8; }
.content-container ul { list-style: disc; padding-left: 25px; }
.content-container a { text-decoration: underline; text-decoration-color: var(--green-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.content-container a:hover { color: var(--green-dark); }

.maintenance-icon { font-size: 3rem; color: var(--green-primary); margin-bottom: 20px; }
.maintenance-container h1 { font-size: clamp(2rem, 5vw, 2.5rem); margin: 0 0 15px 0; }
.maintenance-container p { font-size: 1.1rem; margin-bottom: 30px; }
.social-links-maintenance { display: flex; justify-content: center; gap: 20px; }
.social-links-maintenance a { color: var(--green-primary); font-size: 1.5rem; }
.social-links-maintenance a:hover { color: var(--green-dark); }
.button-group-403 { display: flex; gap: 15px; justify-content: center; margin: 25px 0; }

.error-box-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto 25px auto; 
}

/* ============================================= */
/* == STYLES FOR PRE-ACCESS & NEWSLETTER PAGE == */
/* ============================================= */

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.card-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-content-wrapper p {
    flex-grow: 1;
}

.inline-form {
    margin-top: auto; 
    padding-top: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
}

.inline-form .recaptcha-container {
    transform: scale(0.9);
    transform-origin: center;
}

.inline-form .agb-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.confirmation-box {
    margin-top: auto; 
    padding-top: 1.5rem;
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.confirmation-box h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.confirmation-box p {
    font-size: 1rem;
    font-weight: 500;
}

.confirmation-box.is-success h4 {
    color: var(--green-dark);
}
.confirmation-box.is-error h4 {
    color: #c0392b;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}


/* ==========================================================================
   5.5 SEITEN-SPEZIFISCH: "ÜBER UNS"
   ========================================================================== */

.about-hero .hero-content {
    text-align: left;
}
.about-hero .section-title {
    margin-bottom: 1rem;
}
.about-hero .subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    color: var(--text-light);
}
.hero-figure img {
    max-width: 400px;
    filter: drop-shadow(0 20px 25px rgba(0,0,0,0.15));
}

.about-mission-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}
.about-mission-box p {
    font-size: 1.1rem;
}
.about-mission-box strong {
    color: var(--green-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-light);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-fast);
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.team-name {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}
.team-role {
    font-size: 0.9rem;
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}
.team-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.avatar-notice {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-light);
}
.avatar-notice a {
    text-decoration: underline;
}

/* ========================================= */
/* =========== RESPONSIVE STILE ============ */
/* ========================================= */

@media (max-width: 992px) {
   .news-scroller {
        display: flex;
        flex-direction: column;
        width: auto;
        gap: 1.5rem;
    }
  
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .footer-about {
        grid-column: 1 / -1; 
        align-items: center;
        text-align: center;
    }
    .footer-nav-links {
        grid-column: 1 / -1;
        justify-content: center;
        justify-items: center;
    }
}

/* ==========================================================================
   STYLING FÜR DAS BENACHRICHTIGUNGS-PANEL
   ========================================================================== */

.notifications-panel {
    position: absolute;
    top: calc(100% + 10px); 
    right: 0;
    width: 360px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-large, 0 10px 35px rgba(0, 0, 0, 0.1));
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s ease-out;
}

.notifications-panel.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.panel-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark); 
}

.panel-body {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item:hover {
    background-color: var(--background-light);
}

.notification-item.is-unread {
    background-color: var(--green-primary-light, #eef7f2); 
}
.notification-item.is-unread:hover {
    background-color: #e0f2e9; 
}

.item-icon {
    font-size: 1.2rem;
    color: var(--text-light);
    flex-shrink: 0;
    padding-top: 0.2rem;
}

.item-content p {
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}
.item-content time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.panel-footer {
    padding: 0.75rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-light);
    border-bottom-left-radius: var(--radius-large);
    border-bottom-right-radius: var(--radius-large);
}
.panel-footer a {
    color: var(--green-primary);
    font-weight: 600;
    text-decoration: none;
}
.panel-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .notifications-panel {
        /* Die Breite an den Bildschirm anpassen, mit etwas Rand (z.B. 16px links/rechts) */
        width: calc(100vw - 32px); 

        /* Den Container horizontal zentrieren */
        left: 50%;
        right: auto; /* Wichtig: Die Ausrichtung an 'right' aufheben */

        /* Den Container um seine halbe Breite zurückschieben, um ihn perfekt zu zentrieren */
        /* Wir müssen die bestehende translateY Animation beibehalten */
        transform: translateY(10px) scale(0.98) translateX(-50%);

        /* Den Ursprung der Animation anpassen, da der Container jetzt mittig ist */
        transform-origin: top center;
    }

    /* Die Transformation auch für den sichtbaren Zustand anpassen */
    .notifications-panel.is-visible {
        transform: translateY(0) scale(1) translateX(-50%);
    }

    /* Die alte Regel für .notifications-panel kann entfernt werden, falls sie nur width und right enthielt */
}

html, body {
    width: 100%;
}

.page-content {
    overflow-x: hidden;
}

/* 2. KONSOLIDIERTE LAYOUT-ANPASSUNGEN FÜR TABLETS & HANDYS (bis 992px)
   ========================================================================== */
@media (max-width: 992px) {

    html, body {
        overflow-x: hidden;
    }

    html {
        font-size: 15px; 
    }

    .section {
        padding: 3.5rem 1.5rem;
    }
}


/* 2. ANPASSUNGEN FÜR TABLETS & GRÖSSERE SMARTPHONES (bis 992px)
   ========================================================================== */
@media (max-width: 992px) {
    html {
        font-size: 15px; 
    }
    .section {
        padding: 3rem 1.5rem; 
    }
    .content-box-alt {
        padding: 2rem;
    }

    /* -- STARTSEITE -- */
	.hero-figure img {
        max-width: 220px; /* Reduziert die Logo-Größe für sehr kleine Bildschirme */
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-content { order: 2; }
    .hero-figure { order: 1; margin: 0 auto; }
    .hero-figure img { max-width: 280px; } 
    .hero-cta { align-items: center; }

    .features-grid, .detail-features-grid {
        grid-template-columns: 1fr;
    }

    .news-container { overflow-x: hidden; }
    .news-scroller {
        display: flex;
        flex-direction: column;
        width: auto;
        gap: 1.5rem;
        align-items: center;
    }
}


/* 2. SPEZIFISCHE ANPASSUNGEN NUR FÜR SMARTPHONES (bis 768px)
   ========================================================================== */
@media (max-width: 768px) {
    html {
        font-size: 14.5px;
    }
    .container, .header-inner-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .user-actions {
        gap: 0.4rem;
    }
    .logo-title {
        display: none; 
    }

    .main-nav { display: none; }
    .mobile-nav-toggle { display: flex; }
    
    .profile-username, .chevron-down {
        display: none;
    }
}

@media (max-width: 768px) {
    
    /* Schritt 1: Das Elternelement soll auf Mobilgeräten kein Positionierungs-
       kontext mehr sein. Dadurch orientiert sich das Panel am Header. */
    .notifications-dropdown {
        position: static;
    }

    /* Schritt 2: Das Panel neu positionieren. Es richtet sich jetzt am Header aus
       (dem nächsten Container mit einer "position"-Eigenschaft). */
    .notifications-panel {
        /* Das Panel links und rechts am Bildschirm "festpinnen" (mit etwas Abstand) */
        left: 16px;
        right: 16px;
        
        /* Die Breite wird dadurch automatisch und flexibel */
        width: auto;

        /* Die Animation für das Aufklappen anpassen */
        transform-origin: top center; /* Animation aus der Mitte starten lassen */
        
        /* Die alte translateX-Transformation entfernen, da wir sie nicht mehr brauchen */
        transform: translateY(10px) scale(0.98);
    }

    /* Auch hier die Transformation für den sichtbaren Zustand anpassen */
    .notifications-panel.is-visible {
        transform: translateY(0) scale(1);
    }
}

/* 4. ANPASSUNGEN FÜR SEHR SCHMALE BILDSCHIRME (bis 480px)
   ========================================================================== */
@media (max-width: 480px) {

    /* --- FOOTER --- */
    .footer-nav-links {
        grid-template-columns: 1fr;
    }

    .status-tooltip {
        max-width: calc(100vw - 40px); 
        white-space: normal;
    }

    .auth-container {
        padding: 2rem 1.5rem;
    }
  
    .hero-figure img {
        max-width: 220px; /* Reduziert die Logo-Größe für sehr kleine Bildschirme */
    }
}