/* Ukraine Hilfe Halle – Modern shadcn/ui inspired Design */

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

:root {
    --background: #ffffff;
    --foreground: #09090b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --primary: #0f172a;
    --primary-light: #1e293b;
    --border: #e4e4e7;
    --radius: 0.5rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
    padding: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Close Button (invisible) */
.close-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    cursor: default;
}

/* Menu visible when :target */
#menu:target {
    display: flex !important;
}

/* Burger animation when menu is open */
#menu:target ~ .burger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

#menu:target ~ .burger-menu span:nth-child(2) {
    opacity: 0;
}

#menu:target ~ .burger-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Show close button when menu is open */
#menu:target ~ .close-menu {
    display: block;
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
    color: var(--primary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.05rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

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

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

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

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

.btn-accent:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--muted);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--muted);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

/* ==================== MAIN CONTENT ==================== */
main {
    min-height: calc(100vh - 300px);
    padding: 3rem 0;
}

section {
    padding: 3rem 0;
}

section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

section p {
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* ==================== CARD STYLES ==================== */
.project-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::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;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.project-card:hover::before {
    left: 100%;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.project-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-card h3 a:hover {
    color: var(--accent-color);
}

.post-meta {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.excerpt {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

/* ==================== POST PAGE ==================== */
.post-full {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    padding: 3.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: -1px;
}

.post-content {
    line-height: 1.9;
    margin-bottom: 2.5rem;
    color: var(--foreground);
    font-size: 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.post-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: transparent;
    border-bottom: none;
    padding: 2rem 0;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 0.95rem;
    color: var(--muted-foreground);
}

/* ==================== PROJECTS LIST ==================== */
.projects-list .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* ==================== DONATE SECTION ==================== */
.donate-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 0;
    border-radius: calc(var(--radius) * 2);
    margin: 3rem 0;
}

.donate-section h2 {
    color: white;
}

.donate-section p {
    color: rgba(255, 255, 255, 0.9);
}

.donate-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.donate-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.75rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.donate-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.donate-card h3 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.donate-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* ==================== FLOATING DONATE BUTTON ==================== */
.donate-bar {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    color: var(--primary);
    padding: 1.25rem;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.5s ease;
    border: 1px solid var(--border);
}

@media (max-width: 480px) {
    .donate-bar {
        display: none !important;
        visibility: hidden !important;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.donate-bar-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.donate-bar a {
    background: var(--accent-color);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.donate-bar a:hover {
    background: var(--accent-light);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.site-footer p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        padding: 2rem 1.5rem;
        display: none;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .donate-bar {
        display: none !important;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .post-full {
        padding: 1.5rem;
    }

    .post-header h1 {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .projects-list .container {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {
    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 2rem 0;
    }

    .project-card {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
