/* Grundlegende Stile und Farbvariablen */
:root {
    /* Hauptfarbpalette - Dunkle Blau-, Violett- und Grautöne */
    --primary-color: #6c5dd3;
    --primary-hover: #5a4db8;
    --secondary-color: #7645d9;
    --accent-color: #4cdfff;
    --success-color: #35c9be;
    --info-color: #3e7fff;
    --warning-color: #ffb648;
    --danger-color: #fe536e;
    --light-color: #e9e9f0;
    --dark-color: #14142b;
    --gray-color: #6f6e84;

    /* Hintergrund und Neumorphismus */
    --background-start: #14142b;
    --background-end: #1e1e2e;
    --card-bg: #1a1a2e;
    --glass-bg: rgba(30, 30, 46, 0.7);
    --glass-border: rgba(72, 71, 138, 0.2);
    
    /* Neumorphische Schatten */
    --shadow-dark: 5px 5px 15px rgba(0, 0, 0, 0.5);
    --shadow-light: -5px -5px 15px rgba(90, 90, 150, 0.05);
    --inner-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5), inset -2px -2px 5px rgba(90, 90, 150, 0.1);
    
    /* Glasmorphismus */
    --glass-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(12px);
    
    /* Fonts */
    --serif-font: 'Playfair Display', Georgia, serif;
    --body-font: 'Poppins', 'Source Sans Pro', sans-serif;
    --monospace-font: 'Fira Code', monospace;
    
    /* Abstände */
    --standard-spacing: 2rem;
    --small-spacing: 1rem;

    /* High contrast colors for elements - Intensivere Farben für besseren Kontrast */
    --primary-bright: #9a7dff;
    --secondary-bright: #bb82ff;
    --accent-bright: #50eaff;
    --success-bright: #50ffe4;
    --warning-bright: #ffe050;
    --danger-bright: #ff5050;
    
    /* Neue verbesserte Glasmorphismus Variablen */
    --glass-navbar-dark: rgba(14, 18, 32, 0.85);
    --glass-navbar-light: rgba(255, 255, 255, 0.85);
    --glass-card-dark: rgba(24, 28, 45, 0.8);
    --glass-card-light: rgba(255, 255, 255, 0.8);
}

/* Basiselemente */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgb(24 24 28 / var(--tw-bg-opacity, 1));
    color: var(--light-color);
    font-family: var(--body-font);
    line-height: 1.6;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

main {
    flex: 1;
    z-index: 1;
    position: relative;
    padding: var(--standard-spacing) 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--small-spacing);
    letter-spacing: 0.02em;
}

p {
    margin-bottom: var(--small-spacing);
}

a {
    text-decoration: none;
    color: var(--accent-bright);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-bright);
    text-shadow: 0 0 8px rgba(154, 125, 255, 0.5);
}

/* Verbesserte Glasmorphismus und Neumorphismus Elemente */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-card-shadow), 0 0 15px rgba(108, 93, 211, 0.2);
    margin-bottom: var(--standard-spacing);
    padding: var(--standard-spacing);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(154, 125, 255, 0.3);
    border: 1px solid rgba(154, 125, 255, 0.3);
}

/* Verbesserte Navbar Styles */
.glass-navbar-dark {
    background: var(--glass-navbar-dark);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.glass-navbar-light {
    background: var(--glass-navbar-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.nav-link {
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.nav-link:hover {
    background: rgba(179, 143, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link-active {
    background: rgba(179, 143, 255, 0.3);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.nav-link-light {
    color: rgba(26, 32, 44, 0.85);
}

.nav-link-light:hover {
    background: rgba(179, 143, 255, 0.15);
    color: rgba(26, 32, 44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-link-light-active {
    background: rgba(179, 143, 255, 0.2);
    color: rgba(26, 32, 44, 1);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link-light-active::after {
    background: linear-gradient(90deg, transparent, rgba(26, 32, 44, 0.5), transparent);
}

/* Neu gestylte Cards mit verbesserten Effekten */
.card {
    background: var(--glass-card-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, 
                rgba(179, 143, 255, 0.05) 0%, 
                rgba(179, 143, 255, 0) 100%);
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0;
    border-radius: 1.25rem 1.25rem 0 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, #b38fff, #58a9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(179, 143, 255, 0.4));
    transition: all 0.3s ease;
}

.card:hover .icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(179, 143, 255, 0.6));
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.card:hover h3 {
    transform: translateY(-2px);
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Light Mode Card Styles */
.light .card {
    background: var(--glass-card-light);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.light .card::before {
    background: linear-gradient(to bottom, 
                rgba(179, 143, 255, 0.03) 0%, 
                rgba(179, 143, 255, 0) 100%);
}

.light .card:hover {
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.light .card h3 {
    color: #1a202c;
    text-shadow: none;
}

.light .card p {
    color: rgba(26, 32, 44, 0.9);
}

/* Verbesserte Feature-Card Variante */
.feature-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: var(--glass-card-dark);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(
        circle at top right,
        rgba(179, 143, 255, 0.15),
        transparent 70%
    );
    top: -25%;
    right: -25%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .icon {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #b38fff, #58a9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(179, 143, 255, 0.6));
    transition: all 0.3s ease;
}

.feature-card:hover .icon {
    transform: scale(1.1) translateY(-3px);
    filter: drop-shadow(0 0 15px rgba(179, 143, 255, 0.8));
}

.feature-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: #ffffff;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.feature-card:hover h3 {
    transform: translateY(-2px);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
}

/* Light Mode Anpassungen für Feature-Cards */
.light .feature-card {
    background: var(--glass-card-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a202c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.light .feature-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.light .feature-card h3 {
    color: #1a202c;
    text-shadow: none;
}

.light .feature-card p {
    color: rgba(26, 32, 44, 0.9);
    text-shadow: none;
}

/* Stilvolle Farbverläufe für Akzente */
.gradient-text {
    background: linear-gradient(135deg, rgba(200, 170, 255, 1), rgba(100, 180, 255, 1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(179, 143, 255, 0.3);
    filter: drop-shadow(0 2px 6px rgba(179, 143, 255, 0.3));
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-bright), var(--secondary-bright));
}

/* Navbar Design - Überarbeitet mit verbessertem Glassmorphismus und Responsivität */
.navbar {
    background: rgba(20, 20, 43, 0.85); /* Etwas weniger transparent */
    backdrop-filter: blur(15px); /* Stärkerer Blur */
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); /* Stärkerer Schatten */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Hellerer Border */
    padding: 0.8rem 0; /* Etwas weniger Padding */
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Inter', sans-serif; /* Konsistente Schriftart */
    font-weight: 800; /* Stärkerer Font */
    font-size: 1.8rem; /* Größerer Font */
    color: white; /* Standardfarbe Weiß */
    letter-spacing: -0.03em; /* Engerer Buchstabenabstand */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Textschatten */
}

.navbar-brand i {
    margin-right: 0.5rem;
    background: linear-gradient(135deg, var(--primary-bright), var(--accent-bright)); /* Hellerer Gradient */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(154, 125, 255, 0.6)); /* Stärkerer Schatten */
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 1); /* Vollständig weißer Text für bessere Lesbarkeit */
    font-weight: 600; /* Fetterer Text */
    padding: 0.6rem 1.2rem; /* Angepasstes Padding */
    border-radius: 12px; /* Größerer Border-Radius */
    transition: all 0.3s ease;
    margin: 0 0.3rem; /* Angepasster Margin */
    backdrop-filter: blur(10px); /* Leichter Blur für Links */
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Textschatten für bessere Lesbarkeit */
    font-size: 1.05rem; /* Etwas größere Schrift */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-bright); /* Hellerer Akzent */
    background: rgba(154, 125, 255, 0.15); /* Hellerer Hintergrund bei Hover/Active */
    box-shadow: 0 0 12px rgba(154, 125, 255, 0.2); /* Leichter Schatten */
    transform: translateY(-2px); /* Leichter Hover-Effekt */
}

.navbar-nav .nav-link i {
    margin-right: 0.4rem; /* Angepasster Margin */
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    transform: translateY(-2px);
    color: var(--accent-bright);
}

/* Dark Mode Anpassungen für Navbar */
.dark .navbar {
    background: rgba(14, 18, 32, 0.9); /* Dunklerer Hintergrund */
    border-bottom-color: rgba(255, 255, 255, 0.08); /* Weniger sichtbarer Border */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.dark .navbar-brand {
    color: white;
}

.dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.dark .navbar-nav .nav-link:hover,
.dark .navbar-nav .nav-link.active {
    color: var(--accent-bright);
    background: rgba(154, 125, 255, 0.1);
    box-shadow: 0 0 10px rgba(154, 125, 255, 0.15);
}

/* Light Mode Anpassungen für Navbar */
.light .navbar {
    background: rgba(240, 244, 248, 0.9); /* Heller Hintergrund */
    border-bottom-color: rgba(0, 0, 0, 0.1); /* Dunklerer Border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.light .navbar-brand {
    color: #1a202c; /* Dunkler Text */
}

.light .navbar-brand i {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); /* Original Gradient */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: none; /* Kein Schatten */
}

.light .navbar-nav .nav-link {
    color: #4a5568; /* Dunklerer Text */
    backdrop-filter: none; /* Kein Blur */
    -webkit-backdrop-filter: none;
}

.light .navbar-nav .nav-link:hover,
.light .navbar-nav .nav-link.active {
    color: var(--primary-color); /* Primärfarbe */
    background: rgba(108, 93, 211, 0.08); /* Leichter Hintergrund */
    box-shadow: none;
}

.light .navbar-nav .nav-link:hover i {
    color: var(--primary-color);
}

/* Responsivität für Navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 0;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        margin: 0.2rem 0;
        text-align: center;
        justify-content: center;
    }
}

/* Buttons */
.btn {
    padding: 0.7rem 1.6rem;
    border-radius: 12px;
    font-weight: 700; /* Fetterer Text */
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem; /* Größere Schrift */
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); /* Stärkerer Textschatten für bessere Lesbarkeit */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Stärkerer Schatten für bessere Sichtbarkeit */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--light-color);
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(108, 93, 211, 0.6);
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2); /* Sichtbarer Rand */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 93, 211, 0.6);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--light-color);
    box-shadow: var(--shadow-dark), var(--shadow-light);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Glass-effect für UI-Komponenten */
.glass-effect {
    background: rgba(30, 30, 46, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(72, 71, 138, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Gradient-Hintergrund, der über gesamte Seite geht */
.full-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    z-index: -10;
}

.full-page-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at top right,
        rgba(118, 69, 217, 0.1),
        transparent 40%
    ), 
    radial-gradient(
        circle at bottom left,
        rgba(76, 223, 255, 0.05),
        transparent 40%
    );
    z-index: -5;
}

/* Überarbeitungen für benutzerdefinierte Stile */
.btn-primary {
    border-radius: 12px !important;
    font-weight: 600 !important;
}

.btn-outline {
    border-radius: 12px !important;
    border: 1px solid rgba(76, 223, 255, 0.5) !important;
    background: transparent !important;
    color: var(--accent-bright) !important;
    transition: all 0.3s ease !important;
}

.btn-outline:hover {
    background: rgba(76, 223, 255, 0.1) !important;
    border-color: var(--accent-bright) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Bessere Lesbarkeit für Buttons */
button, .btn, a.btn {
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    font-size: 1rem !important;
}

/* Farbschema für Dark/Light Mode strikt trennen */
.dark body {
    background: var(--dark-color);
    color: white;
}

.light body {
    background: #f8f9fa;
    color: #333;
}

.light .card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(230, 230, 250, 0.3);
    color: #333;
}

.light .glass-effect {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(230, 230, 250, 0.3);
}

.light .feature-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(230, 230, 250, 0.3);
}

.light .feature-card h3 {
    color: #333;
}

.light .feature-card p {
    color: #555;
}

.light .card-header {
    background: rgba(245, 245, 255, 0.7);
    border-bottom: 1px solid rgba(230, 230, 250, 0.5);
}

.light .card-footer {
    background: rgba(245, 245, 255, 0.7);
    border-top: 1px solid rgba(230, 230, 250, 0.5);
}

.light .full-page-bg {
    background: #f0f2f5;
}

.light .full-page-bg::before {
    background: radial-gradient(
        circle at top right,
        rgba(118, 69, 217, 0.05),
        transparent 40%
    ), 
    radial-gradient(
        circle at bottom left,
        rgba(76, 223, 255, 0.03),
        transparent 40%
    );
}

/* Verbesserter Kontrast für Text in Light-Mode */
.light h1, .light h2, .light h3, .light h4, .light h5, .light h6 {
    color: #222;
}

.light p, .light span, .light div {
    color: #444;
}

.light a {
    color: var(--primary-color);
}

.light a:hover {
    color: var(--primary-hover);
}

/* Spezielle Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    .card, .feature-card, .glass-effect {
        border-radius: 14px;
    }
    
    .card-header {
        border-radius: 14px 14px 0 0;
    }
    
    .card-footer {
        border-radius: 0 0 14px 14px;
    }
}

@media (max-width: 576px) {
    .card, .feature-card, .glass-effect {
        border-radius: 12px;
    }
    
    .card-header {
        border-radius: 12px 12px 0 0;
    }
    
    .card-footer {
        border-radius: 0 0 12px 12px;
    }
}

/* Gemeinsame Stile für alle Modi */
.thought-card {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(80, 80, 160, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thought-card:hover {
    transform: translateY(-5px);
    border-color: rgba(154, 125, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(154, 125, 255, 0.15);
}

.thought-card .card-header {
    background: rgba(20, 20, 40, 0.7);
    padding: 1rem 1.25rem;
}

.thought-card .card-body {
    padding: 1.25rem;
}

.thought-card .metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 0.5rem;
    gap: 1rem;
}

.thought-card .keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Keywords & Tags */
.keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(120deg, rgba(154, 125, 255, 0.2), rgba(80, 234, 255, 0.2));
    border: 1px solid rgba(154, 125, 255, 0.2);
    color: var(--primary-bright);
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.keyword-tag:hover {
    background: linear-gradient(120deg, rgba(154, 125, 255, 0.3), rgba(80, 234, 255, 0.3));
    border-color: rgba(154, 125, 255, 0.4);
    color: var(--accent-bright);
}

/* Verbesserte Relation-Badges */
.relation-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.relation-badge:hover {
    transform: translateY(-2px);
}

.relation-supports {
    background: rgba(53, 201, 190, 0.15);
    color: var(--success-bright);
    border: 1px solid rgba(53, 201, 190, 0.3);
}

.relation-contradicts {
    background: rgba(254, 83, 110, 0.15);
    color: var(--danger-bright);
    border: 1px solid rgba(254, 83, 110, 0.3);
}

.relation-builds-upon {
    background: rgba(62, 127, 255, 0.15);
    color: var(--info-color);
    border: 1px solid rgba(62, 127, 255, 0.3);
}

.relation-generalizes {
    background: rgba(255, 182, 72, 0.15);
    color: var(--warning-bright);
    border: 1px solid rgba(255, 182, 72, 0.3);
}

.relation-specifies {
    background: rgba(154, 125, 255, 0.15);
    color: var(--primary-bright);
    border: 1px solid rgba(154, 125, 255, 0.3);
}

.relation-inspires {
    background: rgba(118, 69, 217, 0.15);
    color: var(--secondary-bright);
    border: 1px solid rgba(118, 69, 217, 0.3);
}

/* Formulare */
.form-control, .form-select {
    background: rgba(20, 20, 43, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--light-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: var(--small-spacing);
    font-family: var(--body-font);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(30, 30, 60, 0.7);
    color: var(--light-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(108, 93, 211, 0.25), var(--inner-shadow);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-label {
    color: var(--light-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.input-group-text {
    background: rgba(108, 93, 211, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px 0 0 12px;
}

/* Bewertungs-Sterne */
.rating {
    color: var(--warning-color);
    font-size: 1.2rem;
    display: flex;
    margin-bottom: var(--small-spacing);
}

.rating i {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    margin-right: 0.4rem;
}

.rating i:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-color);
}

/* Suchformular */
.search-form {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: var(--standard-spacing);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-card-shadow);
    margin-bottom: var(--standard-spacing);
}

.search-form .input-group {
    background: rgba(20, 20, 43, 0.5);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--small-spacing);
    box-shadow: var(--inner-shadow);
}

.search-form .form-control {
    border: none;
    background: transparent;
    margin-bottom: 0;
    box-shadow: none;
}

.search-form .btn {
    border-radius: 0 12px 12px 0;
}

/* Mindmap-Visualisierung */
.mindmap-container {
    height: 600px;
    width: 100%;
    border-radius: 16px;
    background: rgba(20, 20, 43, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(72, 71, 138, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Filter-Sidebar */
.filter-sidebar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-card-shadow);
    margin-bottom: var(--standard-spacing);
}

.filter-sidebar .form-check-label {
    color: var(--light-color);
}

/* Tabellen */
.table {
    color: var(--light-color);
    margin-bottom: var(--standard-spacing);
}

.table thead th {
    background: rgba(20, 20, 43, 0.7);
    border-color: var(--glass-border);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 1.2rem 1rem;
}

.table tbody td {
    border-color: var(--glass-border);
    vertical-align: middle;
    padding: 1.2rem 1rem;
    background: rgba(30, 30, 60, 0.3);
}

/* Modals */
.modal-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-card-shadow);
    color: var(--light-color);
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    background: rgba(20, 20, 43, 0.7);
    padding: 1.2rem 1.5rem;
    border-radius: 16px 16px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(20, 20, 43, 0.5);
    padding: 1.2rem 1.5rem;
    border-radius: 0 0 16px 16px;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    color: #000;
    margin-bottom: var(--standard-spacing);
    padding: 1rem 1.5rem;
    backdrop-filter: var(--glass-blur);
}

.alert-success {
    background: rgba(53, 201, 190, 0.8);
}

.alert-danger {
    background: rgba(254, 83, 110, 0.8);
    color: #fff;
}

.alert-warning {
    background: rgba(255, 182, 72, 0.8);
}

.alert-info {
    background: rgba(62, 127, 255, 0.8);
    color: #fff;
}

/* Kommentare */
.comment-item {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    background: rgba(30, 30, 60, 0.3);
    border-radius: 12px;
}

.comment-item:last-child {
    border-bottom: none;
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(108, 93, 211, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(108, 93, 211, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(108, 93, 211, 0.5);
    }
}

.pulse-glow {
    animation: pulseGlow 3s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Organische Formen */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.5;
}

.shape-1 {
    background: var(--primary-color);
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    background: var(--secondary-color);
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -200px;
}

.shape-3 {
    background: var(--accent-color);
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
}

/* Hintergrund-Effekte */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    width: 100%;
    height: 100%;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    50% { opacity: 0.5; }
    100% { opacity: 0.2; }
}

/* Abstrakte Datenvisualisierungen */
.data-viz {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    border-radius: 16px;
}

.data-point {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.7;
}

.data-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

/* Footer - Überarbeitet mit verbessertem Glassmorphismus und Responsivität */
footer {
    background: rgba(20, 20, 43, 0.85); /* Etwas weniger transparent */
    backdrop-filter: blur(15px); /* Stärkerer Blur */
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4); /* Schatten nach oben */
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Hellerer Border */
    padding: 1.5rem 0;
    color: rgba(255, 255, 255, 0.9); /* Hellerer Text */
    margin-top: 4rem; /* Konsistenter Abstand */
    transition: all 0.3s ease;
}

.dark footer {
    background: rgba(14, 18, 32, 0.9); /* Dunklerer Hintergrund */
    border-top-color: rgba(255, 255, 255, 0.08); /* Weniger sichtbarer Border */
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
}

.light footer {
    background: rgba(240, 244, 248, 0.9); /* Heller Hintergrund */
    border-top-color: rgba(0, 0, 0, 0.1); /* Dunklerer Border */
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    color: #4a5568; /* Dunklerer Text */
}

/* Responsivität für Footer */
@media (max-width: 768px) {
    footer {
        padding: 1rem 0;
    }
}

/* Icon-Stilisierung */
.icon-3d {
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.icon-3d:hover {
    filter: drop-shadow(4px 4px 4px rgba(108, 93, 211, 0.8));
    transform: translateY(-2px) scale(1.1);
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    :root {
        --standard-spacing: 1.5rem;
        --small-spacing: 0.75rem;
    }
    
    .mindmap-container {
        height: 500px;
    }
    
    .shape {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --standard-spacing: 1.25rem;
        --small-spacing: 0.6rem;
    }
    
    .mindmap-container {
        height: 400px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    :root {
        --standard-spacing: 1rem;
        --small-spacing: 0.5rem;
    }
    
    .glass, .card, .neumorph {
        padding: 1rem;
    }
    
    .card-header, .card-body, .card-footer {
        padding: 1rem;
    }
}

/* Barrierefreiheit */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Druckanpassungen */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .navbar,
    .filter-sidebar,
    .rating i,
    .bg-animation,
    .shape {
        display: none;
    }
    
    .glass, .card, .mindmap-container, .search-form, .filter-sidebar, .neumorph {
        background: white !important;
        box-shadow: none;
        border: 1px solid #ddd;
        color: black;
    }
    
    .card-header, .btn-primary {
        background: #eee !important;
        color: black;
    }
    
    .table {
        color: black;
    }
    
    .form-control, .form-select {
        background: white;
        color: black;
        border-color: #ddd;
    }
    
    .thought-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Fix for dark background not extending over the entire page */
html, body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    background-attachment: fixed;
}

/* Sticky navbar */
.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Light Mode Optimierungen für wichtige UI-Komponenten */

/* Buttons im Light Mode */
.btn-primary:not(.dark-mode .btn-primary) {
  background-color: var(--light-primary, #3b82f6);
  color: white;
  border: none;
  font-weight: 500;
}

.btn-primary:not(.dark-mode .btn-primary):hover {
  background-color: var(--light-primary-hover, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:not(.dark-mode .btn-secondary) {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  font-weight: 500;
}

.btn-secondary:not(.dark-mode .btn-secondary):hover {
  background-color: #e5e7eb;
}

/* Navbar im Light Mode */
.navbar:not(.dark-mode .navbar),
.nav:not(.dark-mode .nav) {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar:not(.dark-mode .navbar) .nav-link,
.nav:not(.dark-mode .nav) .nav-link {
  color: #1e3a8a;
  font-weight: 500;
}

.navbar:not(.dark-mode .navbar) .nav-link:hover,
.nav:not(.dark-mode .nav) .nav-link:hover {
  color: #4f46e5;
}

.navbar:not(.dark-mode .navbar) .navbar-brand,
.nav:not(.dark-mode .nav) .navbar-brand {
  color: #0f172a;
  font-weight: 700;
}

/* Dropdown Menüs im Light Mode */
.dropdown-menu:not(.dark-mode .dropdown-menu) {
  background-color: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
}

.dropdown-item:not(.dark-mode .dropdown-item) {
  color: #1e293b;
  padding: 0.5rem 1rem;
}

.dropdown-item:not(.dark-mode .dropdown-item):hover {
  background-color: #f1f5f9;
  color: #4f46e5;
}

/* Karten im Light Mode */
.card:not(.dark-mode .card) {
  background-color: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-header:not(.dark-mode .card-header) {
  background-color: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
}

.card-footer:not(.dark-mode .card-footer) {
  background-color: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

/* Formulare im Light Mode */
.form-control:not(.dark-mode .form-control) {
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: #1e293b;
}

.form-control:not(.dark-mode .form-control):focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Tabs im Light Mode */
.nav-tabs:not(.dark-mode .nav-tabs) {
  border-bottom-color: #e5e7eb;
}

.nav-tabs:not(.dark-mode .nav-tabs) .nav-link {
  color: #64748b;
  border: 1px solid transparent;
}

.nav-tabs:not(.dark-mode .nav-tabs) .nav-link:hover {
  border-color: #e5e7eb #e5e7eb #e5e7eb;
  color: #3b82f6;
}

.nav-tabs:not(.dark-mode .nav-tabs) .nav-link.active {
  color: #0f172a;
  background-color: white;
  border-color: #e5e7eb #e5e7eb white;
  font-weight: 500;
}

/* Alerts im Light Mode */
.alert:not(.dark-mode .alert) {
  border-radius: 0.5rem;
  border: 1px solid transparent;
}

.alert-primary:not(.dark-mode .alert-primary) {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.alert-success:not(.dark-mode .alert-success) {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-warning:not(.dark-mode .alert-warning) {
  background-color: #fffbeb;
  border-color: #fef3c7;
  color: #92400e;
}

.alert-danger:not(.dark-mode .alert-danger) {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* Badges im Light Mode */
.badge:not(.dark-mode .badge) {
  font-weight: 500;
  padding: 0.25em 0.6em;
  border-radius: 0.375rem;
}

.badge-primary:not(.dark-mode .badge-primary) {
  background-color: #3b82f6;
  color: white;
}

.badge-secondary:not(.dark-mode .badge-secondary) {
  background-color: #f3f4f6;
  color: #1f2937;
}

/* Tabellen im Light Mode */
table:not(.dark-mode table) {
  background-color: white;
  border-collapse: collapse;
  width: 100%;
}

table:not(.dark-mode table) th {
  background-color: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  color: #0f172a;
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
}

table:not(.dark-mode table) td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem;
  color: #1e293b;
}

table:not(.dark-mode table) tr:hover {
  background-color: #f8fafc;
} 