/*
===========================================
FARBSCHEMA AUSWAHL - Einfach auskommentieren/einkommentieren
===========================================
*/

/* OPTION 1: Lila-Blau (Standard) */
:root {
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --accent-color: #48bb78;
    --accent-dark: #38a169;
}

/* OPTION 2: Professionelles Blau
:root {
    --bg-gradient-start: #2193b0;
    --bg-gradient-end: #6dd5ed;
    --primary-color: #2193b0;
    --primary-dark: #1a7a8f;
    --accent-color: #3b82f6;
    --accent-dark: #2563eb;
}
*/

/* OPTION 3: Dunkles Nacht-Blau
:root {
    --bg-gradient-start: #0f2027;
    --bg-gradient-end: #2c5364;
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --accent-color: #10b981;
    --accent-dark: #059669;
}
*/

/* OPTION 4: Frisches Grün
:root {
    --bg-gradient-start: #11998e;
    --bg-gradient-end: #38ef7d;
    --primary-color: #059669;
    --primary-dark: #047857;
    --accent-color: #10b981;
    --accent-dark: #059669;
}
*/

/* OPTION 5: Warmes Orange-Rot
:root {
    --bg-gradient-start: #f12711;
    --bg-gradient-end: #f5af19;
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
}
*/

/* OPTION 6: Minimalistisches Grau
:root {
    --bg-gradient-start: #434343;
    --bg-gradient-end: #000000;
    --primary-color: #374151;
    --primary-dark: #1f2937;
    --accent-color: #6366f1;
    --accent-dark: #4f46e5;
}
*/

/* OPTION 7: Rosa-Violett
:root {
    --bg-gradient-start: #c31432;
    --bg-gradient-end: #240b36;
    --primary-color: #be185d;
    --primary-dark: #9f1239;
    --accent-color: #ec4899;
    --accent-dark: #db2777;
}
*/

/* OPTION 8: Cyan-Türkis
:root {
    --bg-gradient-start: #0099f7;
    --bg-gradient-end: #f11712;
    --primary-color: #0891b2;
    --primary-dark: #0e7490;
    --accent-color: #06b6d4;
    --accent-dark: #0891b2;
}
*/

/* Global Styles */
body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.08),
                inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--primary-color) 0%,
        var(--accent-color) 50%,
        var(--primary-dark) 100%);
    opacity: 0.6;
    z-index: 2;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
    filter: brightness(1.02);
}

.card-header {
    opacity: 1 !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border-bottom: none;
}

.card-body {
    padding: 1.5rem;
}

/* Section Labels */
.card-body p {
    font-weight: 600;
    color: #4a5568;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 12px;
}

.card-body p:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.card-body p:first-child {
    margin-top: 0;
}

/* Button List Styles */
.default-btn-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.default-btn-list .list-inline-item {
    margin-bottom: 0;
    margin-right: 0;
}

/* Button Styles */
.default-btn-list li a {
    min-width: 150px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.default-btn-list li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.default-btn-list li a:hover {
    box-shadow: 0 6px 16px var(--primary-color);
    filter: brightness(1.15);
}

.default-btn-list li a:hover::before {
    left: 100%;
}

.default-btn-list li a:active {
    filter: brightness(0.95);
}

.default-btn-list li a[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.default-btn-list li a[disabled]:hover {
    box-shadow: none;
    filter: grayscale(1);
}

/* Organization Card - Accent Color Buttons */
.row:first-child .card .default-btn-list li a {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
}

.row:first-child .card .default-btn-list li a:hover {
    box-shadow: 0 6px 16px var(--accent-color);
}

/* Header Styles */
header .navbar {
    background: rgba(26, 32, 44, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    border-bottom-color: rgba(102, 126, 234, 0.3);
}

header .navbar-brand {
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

header .navbar-brand:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Organization Card Special Styling */
.row:first-child .card {
    border-color: var(--accent-color);
}

.row:first-child .card::before {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    opacity: 0.15;
}

.row:first-child .card::after {
    background: linear-gradient(90deg,
        var(--accent-color) 0%,
        var(--primary-color) 50%,
        var(--accent-dark) 100%);
}

.row:first-child .card-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
}

/* Footer Styles */
.footer-custom {
    background-color: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 3rem;
    border-top: 2px solid rgba(102, 126, 234, 0.3);
}

.footer-custom .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 2px;
    padding: 0.5rem 1.5rem;
}

.footer-custom .btn:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
    filter: brightness(1.1);
}

.footer-custom small {
    opacity: 0.8;
}

/* Theme Selector Styles */
.theme-selector {
    display: flex;
    align-items: center;
    position: relative;
}

.theme-selector label {
    font-size: 0.9rem;
    white-space: nowrap;
}

.theme-dropdown {
    min-width: 200px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.theme-dropdown:hover {
    border-color: var(--primary-color);
    background-color: white;
}

/* Feature Hint Tooltip Styles */
.feature-hint {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    min-width: 320px;
    max-width: 400px;
    z-index: 99999;
    animation: slideInDown 0.5s ease-out, pulse 2s ease-in-out 0.5s;
    backdrop-filter: blur(10px);
}

.feature-hint::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--primary-color);
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

.feature-hint-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-hint-close:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.feature-hint-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.feature-hint strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.feature-hint p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.95;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.3);
    }
}

/* Autismus Theme - EXTREME EFFECTS */
body.autismus-theme {
    animation: rainbowBackground 10s linear infinite !important;
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3) !important;
    background-size: 400% 400% !important;
}

@keyframes rainbowBackground {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

body.autismus-theme .card {
    animation: cardPulse 1s ease-in-out infinite, cardRotate 5s linear infinite !important;
    border: 3px solid;
    border-image: linear-gradient(45deg, red, yellow, lime, cyan, blue, magenta, red) 1 !important;
}

@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 0, 0.8), 0 0 60px rgba(255, 0, 0, 0.6);
    }
}

@keyframes cardRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

body.autismus-theme .card-header {
    animation: headerBlink 0.5s ease-in-out infinite, rainbowText 3s linear infinite !important;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff !important;
}

@keyframes headerBlink {
    0%, 49%, 100% { opacity: 1; }
    50%, 99% { opacity: 0.5; }
}

@keyframes rainbowText {
    0% { color: #ff0000; }
    16% { color: #ff7f00; }
    32% { color: #ffff00; }
    48% { color: #00ff00; }
    64% { color: #0000ff; }
    80% { color: #4b0082; }
    100% { color: #9400d3; }
}

body.autismus-theme .default-btn-list li a {
    animation: buttonSpin 3s linear infinite, buttonGlow 1s ease-in-out infinite, buttonColorCycle 2s linear infinite !important;
    border: 3px solid !important;
    border-image: linear-gradient(45deg, red, yellow, lime, cyan, blue, magenta, red) 1 !important;
}

@keyframes buttonSpin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-5deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000;
        filter: brightness(1);
    }
    25% {
        box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
        filter: brightness(1.3);
    }
    50% {
        box-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff, 0 0 30px #0000ff;
        filter: brightness(1);
    }
    75% {
        box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00, 0 0 30px #ffff00;
        filter: brightness(1.3);
    }
}

@keyframes buttonColorCycle {
    0% { background: linear-gradient(135deg, #ff0000, #ff7f00); }
    16% { background: linear-gradient(135deg, #ff7f00, #ffff00); }
    32% { background: linear-gradient(135deg, #ffff00, #00ff00); }
    48% { background: linear-gradient(135deg, #00ff00, #0000ff); }
    64% { background: linear-gradient(135deg, #0000ff, #4b0082); }
    80% { background: linear-gradient(135deg, #4b0082, #9400d3); }
    100% { background: linear-gradient(135deg, #9400d3, #ff0000); }
}

body.autismus-theme .card-body p {
    animation: textShake 0.3s ease-in-out infinite, textColorFlash 1s linear infinite !important;
}

@keyframes textShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes textColorFlash {
    0%, 100% { color: #ff0000; }
    20% { color: #ffff00; }
    40% { color: #00ff00; }
    60% { color: #00ffff; }
    80% { color: #ff00ff; }
}

body.autismus-theme header .navbar {
    animation: headerRainbow 5s linear infinite !important;
    border-bottom: 5px solid !important;
    border-image: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red) 1 !important;
}

@keyframes headerRainbow {
    0% { background: rgba(255, 0, 0, 0.95) !important; }
    14% { background: rgba(255, 127, 0, 0.95) !important; }
    28% { background: rgba(255, 255, 0, 0.95) !important; }
    42% { background: rgba(0, 255, 0, 0.95) !important; }
    56% { background: rgba(0, 0, 255, 0.95) !important; }
    70% { background: rgba(75, 0, 130, 0.95) !important; }
    84% { background: rgba(148, 0, 211, 0.95) !important; }
    100% { background: rgba(255, 0, 0, 0.95) !important; }
}

body.autismus-theme .navbar-brand strong {
    animation: logoJump 0.5s ease-in-out infinite, rainbowText 2s linear infinite !important;
}

@keyframes logoJump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

body.autismus-theme .footer-custom {
    animation: footerWave 3s ease-in-out infinite !important;
    background: linear-gradient(90deg, #ff0000, #00ff00, #0000ff, #ff0000) !important;
    background-size: 200% 200% !important;
}

@keyframes footerWave {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

body.autismus-theme .theme-dropdown {
    animation: dropdownPulse 1.5s ease-in-out infinite !important;
    border: 3px solid !important;
    border-image: linear-gradient(45deg, red, yellow, lime, cyan, blue, magenta, red) 1 !important;
}

@keyframes dropdownPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(0, 255, 0, 0.8);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header {
        font-size: 1rem;
    }

    .default-btn-list li a {
        min-width: 120px;
        font-size: 0.85rem;
    }

    .theme-selector {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.3rem;
    }

    .theme-selector label {
        font-size: 0.75rem;
    }

    .theme-dropdown {
        min-width: 150px;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .footer-custom .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-custom .btn {
        width: 100%;
        max-width: 250px;
    }

    .feature-hint {
        min-width: 280px;
        max-width: 90vw;
        right: 10px;
        left: 10px;
        font-size: 0.85rem;
    }

    .feature-hint::before {
        right: 30px;
    }

    .feature-hint strong {
        font-size: 1rem;
    }

    .feature-hint p {
        font-size: 0.85rem;
    }
}