/* ============================================================
   BUNSENCOMMUNITY — Design System & Styles
   Modern, dark-themed, ambitious design
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --bg-primary: #06060f;
    --bg-secondary: #0c0c1d;
    --bg-tertiary: #12122a;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(12, 12, 29, 0.8);

    --text-primary: #f0f0ff;
    --text-secondary: #a8a8c8;
    --text-muted: #6a6a8a;

    --accent-blue: #4361ee;
    --accent-purple: #7209b7;
    --accent-pink: #f72585;
    --accent-teal: #4cc9f0;
    --accent-green: #06d6a0;
    --accent-orange: #fb8500;

    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    --gradient-warm: linear-gradient(135deg, #f72585 0%, #7209b7 100%);
    --gradient-teal: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    --gradient-hero: linear-gradient(160deg, #06060f 0%, #0c0c1d 30%, #12122a 60%, #0c0c1d 100%);
    --gradient-card: linear-gradient(145deg, rgba(67, 97, 238, 0.08), rgba(114, 9, 183, 0.04));

    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(67, 97, 238, 0.3);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(67, 97, 238, 0.15);

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', var(--font-body);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.3s var(--ease);
    --transition-slow: 0.6s var(--ease);

    --nav-height: 80px;
    --container-max: 1200px;
    --container-narrow: 800px;
}


/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(67, 97, 238, 0.4);
    color: #fff;
}

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

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-blue);
}


/* ---- Container ---- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}


/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }

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

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}


/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3);
}

.btn-primary::before {
    background: linear-gradient(135deg, #5a7bff 0%, #8a2be2 100%);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
    background: rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--accent-teal);
    background: rgba(76, 201, 240, 0.08);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}


/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    text-decoration: none;
    z-index: 1001;
}

.brand-icon {
    font-size: 1.6rem;
}

.brand-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-cta {
    margin-left: 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}


/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(67, 97, 238, 0.15) 0%, transparent 70%);
    animation: heroGlow1 8s ease-in-out infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(114, 9, 183, 0.12) 0%, transparent 70%);
    animation: heroGlow2 10s ease-in-out infinite alternate;
}

@keyframes heroGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

@keyframes heroGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, -5%) scale(1.15); }
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(67, 97, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 97, 238, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-teal);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s var(--ease) both;
}

.hero-badge i {
    font-size: 0.75rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.hero h1 .highlight {
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 30%;
    background: var(--gradient-primary);
    opacity: 0.3;
    border-radius: 4px;
    z-index: -1;
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 640px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero .btn-group {
    justify-content: center;
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    animation: fadeInUp 0.8s var(--ease) 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

.hero-scroll i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
}


/* ---- Page Header (Subpages) ---- */
.page-header {
    position: relative;
    padding: calc(var(--nav-height) + 60px) 0 60px;
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(67, 97, 238, 0.08), transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    margin-bottom: 16px;
    position: relative;
    animation: fadeInUp 0.6s var(--ease) both;
}

.page-header .lead {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s var(--ease) 0.1s both;
}


/* ---- Sections ---- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}


/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(67, 97, 238, 0.15);
}

.card-icon.pink {
    background: rgba(247, 37, 133, 0.1);
    color: var(--accent-pink);
    border-color: rgba(247, 37, 133, 0.15);
}

.card-icon.teal {
    background: rgba(76, 201, 240, 0.1);
    color: var(--accent-teal);
    border-color: rgba(76, 201, 240, 0.15);
}

.card-icon.green {
    background: rgba(6, 214, 160, 0.1);
    color: var(--accent-green);
    border-color: rgba(6, 214, 160, 0.15);
}

.card-icon.orange {
    background: rgba(251, 133, 0, 0.1);
    color: var(--accent-orange);
    border-color: rgba(251, 133, 0, 0.15);
}

.card-icon.purple {
    background: rgba(114, 9, 183, 0.1);
    color: var(--accent-purple);
    border-color: rgba(114, 9, 183, 0.15);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    position: relative;
}

.card p {
    font-size: 0.95rem;
}


/* ---- Grid Layouts ---- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}


/* ---- Project Cards ---- */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.project-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.project-card-image {
    height: 200px;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-card) 100%);
}

.project-card-body {
    padding: 28px;
}

.project-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.project-card-body p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: rgba(67, 97, 238, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(67, 97, 238, 0.15);
}

.tag.pink { background: rgba(247, 37, 133, 0.1); color: var(--accent-pink); border-color: rgba(247, 37, 133, 0.15); }
.tag.teal { background: rgba(76, 201, 240, 0.1); color: var(--accent-teal); border-color: rgba(76, 201, 240, 0.15); }
.tag.green { background: rgba(6, 214, 160, 0.1); color: var(--accent-green); border-color: rgba(6, 214, 160, 0.15); }


/* ---- Blog Cards ---- */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    display: block;
}

.blog-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.blog-card-header {
    height: 180px;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card-meta i {
    margin-right: 4px;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: color var(--transition);
}

.blog-card:hover h3 {
    color: var(--accent-teal);
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* ---- Blog Post Single ---- */
.blog-post-header {
    padding: calc(var(--nav-height) + 60px) 0 40px;
    text-align: center;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.blog-post-meta i {
    margin-right: 6px;
    color: var(--accent-blue);
}

.blog-post-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.blog-post-content h2 {
    margin: 48px 0 20px;
    font-size: 1.8rem;
}

.blog-post-content h3 {
    margin: 36px 0 16px;
    font-size: 1.4rem;
}

.blog-post-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-post-content img {
    border-radius: var(--radius);
    margin: 32px 0;
    border: 1px solid var(--border-color);
}

.blog-post-content blockquote {
    border-left: 3px solid var(--accent-blue);
    padding: 16px 24px;
    margin: 32px 0;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-post-content ul, .blog-post-content ol {
    margin: 16px 0 24px 20px;
    color: var(--text-secondary);
}

.blog-post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-post-content code {
    background: rgba(67, 97, 238, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-teal);
}

.blog-post-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

.blog-post-content a {
    color: var(--accent-teal);
    text-decoration: underline;
    text-decoration-color: rgba(76, 201, 240, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.blog-post-content a:hover {
    text-decoration-color: var(--accent-teal);
}


/* ---- CTA Section ---- */
.cta-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.06;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.cta-box h2 {
    margin-bottom: 16px;
}

.cta-box p {
    max-width: 500px;
    margin: 0 auto 32px;
}


/* ---- Donate Page ---- */
.donate-option {
    text-align: center;
    padding: 40px 28px;
}

.donate-option .card-icon {
    margin: 0 auto 20px;
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
}

.donate-option h3 {
    margin-bottom: 12px;
}


/* ---- Contact Form ---- */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-textarea {
    min-height: 160px;
    resize: vertical;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.alert-success {
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.2);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(247, 37, 133, 0.1);
    border: 1px solid rgba(247, 37, 133, 0.2);
    color: var(--accent-pink);
}


/* ---- Stats ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* ---- Timeline ---- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--accent-blue);
    z-index: 1;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.timeline-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 0.9rem;
}


/* ---- Team ---- */
.team-card {
    text-align: center;
    padding: 32px;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px solid var(--border-color);
}

.team-card h4 {
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 500;
}


/* ---- Legal Pages ---- */
.legal-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 48px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.legal-content h3 {
    font-size: 1.2rem;
    margin: 32px 0 12px;
}

.legal-content p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
    margin: 12px 0 24px 24px;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.legal-content a {
    color: var(--accent-teal);
}


/* ---- Cookie Banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-color);
    animation: slideUp 0.4s var(--ease) both;
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cookie-text p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-muted);
}

.cookie-text a {
    color: var(--accent-teal);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}


/* ---- Footer ---- */
.footer {
    position: relative;
    padding: 80px 0 32px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--gradient-primary);
    filter: blur(0px);
    box-shadow: 0 0 60px rgba(67, 97, 238, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary) !important;
    transition: all var(--transition);
}

.social-link:hover {
    background: rgba(67, 97, 238, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue) !important;
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary) !important;
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 4px 0;
}

.footer-credit {
    font-size: 0.75rem !important;
    color: var(--text-muted);
}

/* ---- Besucherzähler-Widget ---- */
.visitor-counter {
    position: relative;
    margin: 0 auto 24px;
    max-width: 480px;
}

.visitor-counter .vc-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    opacity: 0.35;
    filter: blur(1px);
    z-index: 0;
    transition: opacity 0.4s ease;
}

.visitor-counter:hover .vc-glow {
    opacity: 0.6;
}

.visitor-counter .vc-inner {
    position: relative;
    z-index: 1;
    padding: 16px 20px 14px;
    background: linear-gradient(
        145deg,
        rgba(12, 12, 29, 0.95),
        rgba(6, 6, 15, 0.98)
    );
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.vc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.vc-header i {
    font-size: 0.55rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vcPulse 2s ease-in-out infinite;
}

@keyframes vcPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.vc-grid {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.vc-item {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.vc-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.vc-icon {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.vc-item:hover .vc-icon {
    color: var(--accent-teal);
}

.vc-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.vc-label {
    display: block;
    font-size: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Total item — accent styling */
.vc-total {
    background: linear-gradient(
        145deg,
        rgba(67, 97, 238, 0.1),
        rgba(114, 9, 183, 0.06)
    );
    border-color: rgba(67, 97, 238, 0.15);
}

.vc-total .vc-num {
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vc-total .vc-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vc-total:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.1);
}

@media (max-width: 480px) {
    .visitor-counter {
        max-width: 100%;
    }
    .vc-grid {
        gap: 3px;
    }
    .vc-item {
        padding: 8px 4px;
    }
    .vc-num {
        font-size: 0.95rem;
    }
    .vc-total .vc-num {
        font-size: 1.05rem;
    }
    .vc-icon {
        font-size: 0.5rem;
    }
}


/* ---- Floating shapes (decorative) ---- */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-purple);
    top: 60%;
    right: -3%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-teal);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, 10px) rotate(4deg); }
}


/* ---- Scroll Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ---- Keyframe Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}


/* ---- Admin / Editor Styles ---- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    flex-shrink: 0;
}

.admin-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.editor-container {
    background: #1a1a2e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.ql-toolbar.ql-snow {
    background: var(--bg-tertiary) !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.ql-container.ql-snow {
    border: none !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    color: var(--text-primary) !important;
}

.ql-editor {
    min-height: 400px;
    background: var(--bg-card);
    color: var(--text-primary) !important;
    padding: 24px !important;
}

.ql-editor p, .ql-editor li {
    color: var(--text-secondary);
}

.ql-snow .ql-stroke {
    stroke: var(--text-secondary) !important;
}

.ql-snow .ql-fill {
    fill: var(--text-secondary) !important;
}

.ql-snow .ql-picker-label {
    color: var(--text-secondary) !important;
}

.ql-snow .ql-picker-options {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.status-badge.published {
    background: rgba(6, 214, 160, 0.1);
    color: var(--accent-green);
}

.status-badge.draft {
    background: rgba(251, 133, 0, 0.1);
    color: var(--accent-orange);
}


/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.gap-sm { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }


/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 100px 24px 32px;
        transition: right var(--transition);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        text-align: center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero-stat {
        flex: 1 1 120px;
    }

    .section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .hero {
        padding-bottom: 60px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero .btn-group {
        align-items: center;
    }
}


/* ---- Print ---- */
@media print {
    .navbar, .footer, .cookie-banner, .hero-bg, .floating-shapes {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section {
        padding: 20px 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
