@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- Theme Variables --- */
:root {
    --bg-primary: #05070a;
    --bg-secondary: #0c1017;
    --bg-header: #000000;
    --accent-glow: #00f2fe; /* Bioluminescent cyan */
    --accent-blue: #0072ff; /* Deep ocean blue */
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(12, 16, 23, 0.7);
    --glass-blur: blur(16px);
    
    /* Warning/Danger Colors */
    --warning-red: #ef4444;
    --warning-red-glow: rgba(239, 68, 68, 0.2);
    --warning-gradient: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    
    /* Transition speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 114, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-white);
}

a {
    color: var(--text-white);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-muted);
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--accent-glow);
    border-bottom-color: var(--accent-glow);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

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

.brand-logo {
    height: 54px;
    width: auto;
    transition: transform var(--transition-normal);
}

.brand:hover .brand-logo {
    transform: rotate(-5deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, #ffffff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-white);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Main Navigation Menu --- */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-glow), var(--accent-blue));
    border-radius: 3px 3px 0 0;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-white);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition-normal);
}

.menu-toggle span:nth-child(1) { top: 6px; }
.menu-toggle span:nth-child(2) { top: 14px; }
.menu-toggle span:nth-child(3) { top: 22px; }

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 14px;
}
.menu-toggle.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 14px;
}

/* --- Main Layout --- */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.search-bar-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

.search-form {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
}

/* --- Dynamic Grid / Blog View --- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Card Styling */
.blog-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .blog-card {
        flex-direction: row;
        min-height: 250px;
    }
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 242, 254, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 242, 254, 0.2);
}

/* Card Image Area */
.card-image-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    height: 200px;
}

@media (min-width: 768px) {
    .card-image-wrap {
        width: 320px;
        height: auto;
        min-height: 100%;
    }
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .card-image {
    transform: scale(1.05);
}

.card-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

/* Card Text Area */
.card-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.blog-card:hover .card-title {
    color: var(--text-white);
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-white);
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-expanded-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), opacity var(--transition-slow), margin-top var(--transition-slow);
}

/* When the card is expanded */
.blog-card.expanded {
    cursor: default;
}

.blog-card.expanded .card-expanded-content {
    max-height: 2000px; /* Large fallback */
    opacity: 1;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.blog-card.expanded .card-summary {
    display: none;
}

/* Markdown formatting in expanded card */
.card-body-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.card-body-text p {
    margin-bottom: 1rem;
}

.card-body-text p:last-child {
    margin-bottom: 0;
}

.card-body-text ul, .card-body-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.card-body-text li {
    margin-bottom: 0.4rem;
}

/* Buttons in card */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-glow) 0%, var(--accent-blue) 100%);
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 242, 254, 0.35);
    color: #000000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-toggle {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--transition-fast);
}

.btn-toggle:hover {
    color: var(--text-white);
}

.btn-toggle-icon {
    width: 10px;
    height: 10px;
    fill: currentColor;
    transition: transform var(--transition-normal);
}

.blog-card.expanded .btn-toggle-icon {
    transform: rotate(180deg);
}

/* --- Static Markdown Pages --- */
.markdown-page {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.markdown-page h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
}

.markdown-page h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.markdown-page h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.markdown-page p {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.markdown-page ul, .markdown-page ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.markdown-page li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.markdown-page blockquote {
    border-left: 4px solid var(--accent-glow);
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.markdown-page blockquote p {
    margin-bottom: 0;
    font-style: italic;
}

.markdown-page hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 2.5rem 0;
}

/* Twint / Paypal Buttons on Unterstuetzen Page */
.markdown-page a[href*="twint"], 
.markdown-page a[href*="paypal"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin-right: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all var(--transition-fast);
}

.markdown-page a[href*="twint"] {
    background: #000000;
    color: #ffffff;
    border: 2px solid #5d1049; /* Twint deep purple theme */
}

.markdown-page a[href*="twint"]:hover {
    background: #5d1049;
    box-shadow: 0 6px 16px rgba(93, 16, 73, 0.35);
}

.markdown-page a[href*="paypal"] {
    background: #0070ba; /* Paypal blue */
    color: #ffffff;
}

.markdown-page a[href*="paypal"]:hover {
    background: #005ea6;
    box-shadow: 0 6px 16px rgba(0, 112, 186, 0.35);
}

/* --- Search Results Page --- */
.search-results-info {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.search-results-info strong {
    color: var(--text-white);
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.no-results p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* --- Academy (Under Construction) --- */
.academy-container {
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.academy-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.1)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.4)); }
}

.academy-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ffffff 0%, var(--accent-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.academy-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
    }
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-white);
}

/* --- Custom Warning Dialog Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 4, 6, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-secondary);
    border: 2px solid var(--warning-red);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    transform: scale(0.9);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.3);
    transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-header {
    background: var(--warning-gradient);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-warning-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-body {
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-confirm {
    background: var(--warning-red);
    color: #ffffff;
}

.btn-confirm:hover {
    background: #dc2626;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* --- Mobile Styling Adjustments --- */
@media (max-width: 991px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-normal);
        z-index: 105;
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 0.75rem 1rem;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .search-bar-container {
        justify-content: center;
    }
    
    .search-form {
        max-width: 100%;
    }
}

/* --- Embedded Markdown Content Images --- */
.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-normal);
}

.content-image:hover {
    transform: scale(1.01);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 24, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    padding: 1.25rem 2rem;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-banner-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-white, #ffffff);
    text-align: left;
}

.cookie-banner-countdown-wrap {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1.25rem;
    }
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .cookie-banner-countdown-wrap {
        align-self: flex-end;
    }
}

/* --- Footer Social Buttons --- */
.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.social-button svg {
    transition: transform var(--transition-fast);
}

.social-button:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.social-button.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
}

.social-button.spotify:hover {
    background: #1DB954;
    border-color: #1DB954;
}

@media (max-width: 768px) {
    .footer-socials {
        justify-content: center;
        width: 100%;
    }
}

