/* MODERN MUNICIPAL CORPORATE DESIGN */
:root {
    /* Herzberg / Municipal Color Palette */
    --primary-color: #006E4E;
    /* Official Herzberg Green */
    --primary-hover: #005a40;
    --secondary-color: #B12121;
    /* Official Herzberg Red */

    /* Neutral Variables */
    --text-primary: #333333;
    --text-secondary: #4a5568;
    --bg-light: #F5F5F5;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;

    /* Typography */
    --font-family: 'Assistant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing & Layout */
    --header-height: 140px;
    /* Increased from 80px to accommodate larger logo */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Header & Navigation */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.logo-wrapper {
    width: 280px;
    height: 140px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-wrapper {
    width: 280px;
    height: 140px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.project-logo-header {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
    transform: scale(2.4);
    flex-shrink: 0;
}

.project-logo-footer {
    height: 90px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
    filter: invert(1);
    mix-blend-mode: screen;
    transform: scale(2.4);
    flex-shrink: 0;
}

.site-title h1 {
    font-size: 1rem;
    margin: 0;
}

.site-title p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile Nav Styles */
.mobile-nav-toggle {
    display: none;
    background: var(--primary-color);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.mobile-nav-toggle:hover {
    background: var(--primary-hover);
}

/* Sections Global */
.content-section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-heading h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-heading p {
    font-size: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b5e 100%);
    color: var(--bg-white);
    padding: 100px 0 80px;
}

.hero-content {
    text-align: center;
}

.hero-section h2 {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.project-branding {
    margin-bottom: 30px;
}

.project-logo {
    max-height: 120px;
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section .lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 0 10px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.stat-card h3 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
}

/* Grid Cards (Ziele) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(13, 71, 161, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h4 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.card p {
    margin: 0;
    font-size: 0.95rem;
}

/* Accordion (Projektphasen) */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-header {
    background-color: var(--bg-white);
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 24px 24px;
    border-top: 1px solid var(--border-color);
}

.accordion-content p {
    margin-top: 20px;
    margin-bottom: 0;
}

.accordion-tag {
    display: inline-block;
    background-color: rgba(13, 71, 161, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 12px;
}

/* Document List */
.doc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.doc-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.doc-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.doc-preview {
    height: 160px;
    width: 100%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.markdown-preview {
    background-color: #f8fafc;
    padding: 20px;
    align-items: flex-start;
}

.preview-text {
    font-family: monospace;
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* PDF Preview */
.pdf-preview {
    background-color: #f1f5f9;
}

.pdf-document {
    width: 60%;
    height: 75%;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 12px solid #ef4444;
    /* Red top border for PDF aesthetic */
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.pdf-title {
    font-weight: bold;
    font-size: 0.8rem;
    color: #334155;
    margin-bottom: 12px;
    display: block;
}

.pdf-lines {
    height: 6px;
    background-color: #e2e8f0;
    margin-bottom: 8px;
    border-radius: 2px;
    width: 100%;
}

.pdf-lines.short {
    width: 60%;
}

/* Word Preview */
.word-preview {
    background-color: #e0e7ff;
}

.word-document {
    width: 60%;
    height: 75%;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 12px solid #4f46e5;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.word-title {
    font-weight: bold;
    font-size: 0.8rem;
    color: #334155;
    margin-bottom: 12px;
    display: block;
}

.word-lines {
    height: 6px;
    background-color: #e2e8f0;
    margin-bottom: 8px;
    border-radius: 2px;
    width: 100%;
}

.word-lines.short {
    width: 60%;
}

.excel-preview {
    background-color: #f0fdf4;
    background-image:
        linear-gradient(#dcfce7 1px, transparent 1px),
        linear-gradient(90deg, #dcfce7 1px, transparent 1px);
    background-size: 40px 20px;
}

.excel-grid {
    width: 70%;
    height: 50%;
    border: 2px solid #22c55e;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pptx-preview {
    background-color: #fef2f2;
}

.pptx-slide {
    width: 70%;
    height: 70%;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.pptx-slide h4 {
    font-size: 0.8rem;
    color: #b91c1c;
    margin-bottom: 8px;
    border-bottom: 1px solid #fee2e2;
    padding-bottom: 4px;
}

.pptx-slide .chart {
    flex: 1;
    background: linear-gradient(90deg, #fca5a5 30%, #fecaca 30%, #fecaca 60%, #fee2e2 60%);
    border-radius: 2px;
}

.doc-info-wrapper {
    display: flex;
    align-items: center;
    padding: 20px;
}

.doc-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    opacity: 0.9;
}

.doc-info strong {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.doc-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-white);
    padding: 24px 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-details strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-details .role {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.contact-details .task {
    font-size: 0.85rem;
    margin: 0;
}

.contact-email {
    display: inline-block;
    margin-top: auto;
    padding-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    word-break: break-all;
}

@media (max-width: 1100px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background-color: var(--text-primary);
    color: var(--bg-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Calendar Styles */
.calendar-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.calendar-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.weekday {
    background: #edf2f7;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.weekday:last-child {
    border-right: none;
}

.day {
    min-height: 120px;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: white;
    position: relative;
    font-size: 0.9rem;
    color: #a0aec0;
}

.day:nth-child(7n) {
    border-right: none;
}

.day.empty {
    background: #f7fafc;
}

.day.has-event {
    color: var(--text-primary);
    background: #fff;
}

.day-number {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.active-day {
    background: #f0fff4 !important;
}

.active-day .day-number {
    color: var(--primary-color);
    font-weight: 800;
}

.event {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    color: white;
    font-weight: 600;
    line-height: 1.2;
}

.event.green {
    background-color: var(--primary-color);
}

.event.red {
    background-color: var(--secondary-color);
}

.priority-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.priority-item {
    background-color: var(--bg-white);
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.priority-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.priority-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.priority-item:hover::before {
    opacity: 1;
}

.priority-item .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.priority-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.priority-item:hover .priority-icon {
    transform: scale(1.1) rotate(5deg);
}

.priority-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.event.blue {
    background-color: #3182ce;
}

@media (max-width: 900px) {
    .calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .day {
        min-height: 100px;
    }
}

@media (max-width: 600px) {
    .calendar-grid {
        display: block;
    }

    .weekday {
        display: none;
    }

    .day {
        min-height: auto;
        border-right: none;
        padding: 15px;
    }

    .day.empty {
        display: none;
    }

    .day-number {
        font-size: 1rem;
        border-bottom: 1px solid #edf2f7;
        padding-bottom: 5px;
        margin-bottom: 10px;
    }
}

/* Responsive */
/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-section h2 {
        font-size: 2.5rem;
    }

    .priority-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 12px 0;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .logo-area {
        gap: 12px;
    }

    .logo-img {
        height: 50px;
    }

    .site-title h1 {
        font-size: 1rem;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
        background: var(--bg-light);
        padding: 20px;
        border-radius: var(--radius-md);
        box-shadow: inset var(--shadow-sm);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 8px;
    }

    .main-nav a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .main-nav a::after {
        display: none;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .stat-card {
        min-width: 100%;
    }

    .priority-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .doc-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .hero-section h2 {
        font-size: 1.7rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        max-width: 100%;
        width: 100%;
    }

    .priority-list {
        grid-template-columns: 1fr !important;
    }

    .priority-item {
        min-height: auto;
        padding: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .municipal-table th,
    .municipal-table td {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
}
/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    background-color: #991b1b;
    color: white;
}
