/* =========================================================
   HERR GSCHWIND - OSZ ORPUND COMEBACK INITIATIVE
   Modern Swiss Design System & Aesthetics
   ========================================================= */

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Color Palette */
    --bg-main: #0b0f19;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(26, 34, 54, 0.85);
    --bg-tinted: #0e1424;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(99, 102, 241, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --brand-primary: #6366f1;
    --brand-primary-hover: #4f46e5;
    --brand-accent: #38bdf8;
    --brand-emerald: #10b981;
    --brand-amber: #f59e0b;
    --brand-purple: #a855f7;
    
    --glow-primary: rgba(99, 102, 241, 0.25);
    --glow-emerald: rgba(16, 185, 129, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e7ff;
    padding: 8px 16px;
    font-size: 0.85rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.banner-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #22c55e;
    animation: pulseGlow 1.8s infinite;
}

.banner-cta {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: color var(--transition-fast);
}

.banner-cta:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 38px;
    z-index: 90;
    transition: background var(--transition-fast);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-name span {
    color: var(--brand-accent);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

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

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 18px var(--glow-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.shadow-glow {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 90px 24px 60px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(56, 189, 248, 0.1) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 36px;
    font-weight: 400;
}

.hero-subtitle strong {
    color: #f1f5f9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Counter Card */
.counter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    max-width: 540px;
    margin: 0 auto;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.counter-card:hover {
    border-color: var(--border-active);
}

.counter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.counter-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGlow 1.5s infinite;
}

.status-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #10b981;
}

.counter-goal {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.counter-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.counter-number {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.counter-unit {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.progress-container {
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8 0%, #6366f1 50%, #10b981 100%);
    border-radius: var(--radius-full);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 16px var(--glow-emerald);
}

.counter-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section Common */
.section {
    padding: 90px 24px;
    position: relative;
}

.bg-tinted {
    background-color: var(--bg-tinted);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-container {
    max-width: 1140px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 50px;
}

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

.pill-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-accent);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Feature Grid */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2x2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
    padding: 32px;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.bg-emerald { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.bg-amber { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.bg-blue { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.3); }
.bg-purple { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

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

/* Petition Form & Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.petition-card {
    padding: 40px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}

.form-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.petition-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.9);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #0f172a;
    color: #ffffff;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

.checkbox-group {
    margin: 4px 0 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    color: #cbd5e1;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.form-feedback {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.form-feedback.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

/* Petition Sidebar */
.petition-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.highlight-box {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.quote-icon {
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(99, 102, 241, 0.2);
    font-family: Georgia, serif;
    position: absolute;
    top: 12px;
    right: 20px;
}

.lead-quote {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #f1f5f9;
    font-style: italic;
    margin-bottom: 16px;
}

.quote-author {
    font-size: 0.85rem;
    color: var(--brand-accent);
    font-weight: 600;
}

.quick-facts {
    padding: 28px;
}

.quick-facts h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.facts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.facts-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.fact-bullet {
    color: #10b981;
    font-weight: 800;
    flex-shrink: 0;
}

/* Wall of Support Grid */
.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.message-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    animation: fadeIn 0.4s ease-out;
}

.message-card.new-item {
    border-color: var(--brand-emerald);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.message-text {
    font-size: 0.95rem;
    color: #e2e8f0;
    margin-bottom: 18px;
    font-style: italic;
    line-height: 1.5;
}

.message-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.author-role {
    font-size: 0.75rem;
    color: var(--brand-accent);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
    padding: 70px 24px;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.cta-inner p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Footer (Featuring websrc.ch/impressum and websrc.ch/datenschutz) */
.site-footer {
    background: #070a11;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 24px 30px;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-top {
    text-align: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 580px;
    margin: 0 auto;
}

.footer-divider {
    height: 1px;
    background: var(--border-subtle);
    margin-bottom: 28px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.legal-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.sep {
    color: #475569;
}

.copyright {
    color: #64748b;
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

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

/* Empty state for 0 signatures */
.empty-signatures-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 24px;
    background: rgba(18, 24, 38, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.4s ease-out;
}

.empty-icon {
    font-size: 3.2rem;
    margin-bottom: 4px;
}

.empty-signatures-card h3 {
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 700;
}

.empty-signatures-card p {
    color: var(--text-secondary);
    max-width: 460px;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

/* Signature Card styling */
.signature-num-badge {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.45);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.signer-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* Responsive adjustments */
@media (max-width: 860px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* Keep clean on small screens */
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .counter-card {
        padding: 20px;
    }

    .counter-number {
        font-size: 2.5rem;
    }
}
