:root {
    --green: #097E60;
    --green-dark: #065f46;
    --yellow: #ffd166;
    --bg: #f4f6f8;
    --text: #222;
    --muted: #666;
    --white: #fff;
    --danger: #b91c1c;
    --shadow: 0 8px 28px rgba(0,0,0,0.08);
    --radius: 18px;
}

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

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--green);
}

.header {
    background: var(--green);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1500px;
    min-height: 95px;
    margin: auto;
    padding: 16px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}

.header-logo {
    width: 130px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    transition: 0.25s ease;
}

.header-logo img:hover {
    transform: scale(1.04);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn,
.hero-btn,
.submit-btn,
.read-more-btn,
.download-btn {
    display: inline-block;
    background: var(--green);
    color: white;
    border: none;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.login-btn,
.hero-btn {
    background: var(--yellow);
    color: var(--green);
}

.login-btn:hover,
.hero-btn:hover {
    background: #fcbf49;
}

.submit-btn:hover,
.read-more-btn:hover,
.download-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.hero {
    min-height: 78vh;
    background:
        linear-gradient(rgba(22,45,68,0.55), rgba(22,45,68,0.55)),
        url("../fonts/Mitglieder.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px 30px;
}

.hero-content h1 {
    font-size: 56px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.hero-content p {
    font-size: 24px;
    margin-top: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.section {
    max-width: 1200px;
    margin: auto;
    padding: 70px 25px;
}

.section.light {
    max-width: 100%;
    background: white;
}

.section h1,
.section h2 {
    color: var(--green);
}

.section h2 {
    font-size: 34px;
    margin-bottom: 24px;
}

.about-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

.about-card,
.single-post,
.form-box,
.impressum-box {
    background: white;
    padding: 45px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 6px solid var(--green);
}

.section-label {
    display: inline-block;
    color: var(--green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 14px;
}

.about-card h2 {
    font-size: 34px;
    margin-bottom: 25px;
}

.about-card p,
.impressum-box p {
    font-size: 17px;
    margin-bottom: 18px;
}

.about-highlight {
    background: #e8f6f1;
    color: var(--green);
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
    margin: 28px 0;
}

.content-split {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
}

.posts-column h2,
.feedback-column h2 {
    margin-top: 0;
    margin-bottom: 28px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 270px);
    gap: 24px;
    justify-content: start;
    align-items: start;
}

.post-card {
    position: relative;
    width: 260px;
    background: white;
    border-radius: var(--radius);
    border-left: 6px solid var(--green);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: 0.25s ease;
}

.post-card:hover {
    transform: translateY(-3px);
}

.post-preview-image {
    display: block;
    width: 100%;
    height: 135px;
    overflow: hidden;
}

.post-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-preview-content {
    padding: 24px;
}

.post-preview-content h3 {
    min-height: 64px;
    margin-bottom: 12px;
    color: var(--green);
}

.post-title-link {
    color: var(--green);
    text-decoration: none;
}

.post-title-link:hover {
    text-decoration: underline;
}

.post-preview-content small {
    display: block;
    margin-bottom: 18px;
}

.delete-form {
    position: absolute;
    top: 16px;
    right: 16px;
}

.delete-icon-btn {
    background: var(--danger);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-icon-btn:hover {
    background: #7f1d1d;
    transform: scale(1.05);
}

.feedback-column {
    background: var(--bg);
    padding: 28px;
    border-radius: var(--radius);
    border-left: 6px solid var(--green);
    box-shadow: var(--shadow);
    height: 360px;
    overflow: hidden;
    align-self: start;
    margin-top: 70px;
}

.feedback-scroll {
    max-height: 170px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 16px;
}

.feedback-mini-card,
.feedback-card {
    background: white;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.feedback-card {
    padding: 28px;
    border-left: 6px solid var(--green);
}

.feedback-mini-card strong,
.feedback-meta {
    color: var(--green);
    font-weight: bold;
}

.feedback-mini-card p {
    margin: 8px 0;
}

.feedback-mini-card small {
    color: var(--muted);
}

.feedback-list {
    max-width: 1200px;
    margin: 30px auto 0;
    display: grid;
    gap: 20px;
}

.single-post h1 {
    color: var(--green);
    font-size: 42px;
    margin-bottom: 10px;
}

.post-meta {
    color: var(--muted);
    margin-bottom: 30px;
}

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.single-post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.single-post-gallery a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.single-post-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: 0.2s ease;
}

.single-post-gallery img:hover {
    transform: scale(1.04);
}

.gallery-admin-item {
    position: relative;
}

.gallery-delete-form {
    position: absolute;
    top: 10px;
    right: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--green);
    text-decoration: none;
    font-weight: bold;
}

.form-box {
    margin-top: 25px;
}

.form-box form,
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-box input,
.form-box textarea,
.feedback-form input,
.feedback-form textarea,
.login-modal-content input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd6dd;
    border-radius: 8px;
    font-size: 16px;
}

.form-box textarea,
.feedback-form textarea {
    resize: vertical;
}

.edit-post-box {
    margin: 25px 0;
}

.message {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}

.download-card {
    margin-top: 25px;
    background: #f7faf9;
    border-left: 6px solid var(--green);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}

.cover-select-box {
    margin: 25px 0;
}

.cover-select-box > label {
    display: block;
    font-weight: bold;
    margin-bottom: 12px;
}

.cover-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.cover-option {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    background: white;
    transition: 0.2s ease;
}

.cover-option input {
    margin-bottom: 8px;
}

.cover-option img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 8px;
}

.cover-option span {
    font-size: 14px;
    font-weight: bold;
    color: var(--green);
}

.cover-option:has(input:checked) {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(9,126,96,0.15);
}

.login-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.login-modal-content h2 {
    color: #102a43;
    margin-bottom: 20px;
}

.login-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.login-register-link {
    margin-top: 18px;
}

.footer {
    background: var(--green);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: var(--yellow);
}

@media (max-width: 1100px) {
    .content-split {
        grid-template-columns: 1fr;
    }

    .post-grid {
        justify-content: center;
    }

    .feedback-column {
        height: auto;
    }

    .feedback-scroll {
        max-height: 260px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links,
    .nav-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 18px;
    }

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

    .post-card {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .about-card,
    .single-post,
    .form-box,
    .impressum-box {
        padding: 28px;
    }
}

.sponsor-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.sponsor-grid img {
    width: 100%;
    max-width: 250px;
    height: 140px;
    object-fit: contain;

    background: white;
    border-radius: 15px;
    padding: 15px;

    box-shadow: 0 4px 15px rgba(0,0,0,.08);

    transition: .2s ease;
}

.sponsor-grid img:hover {
    transform: translateY(-3px);
}
.event-calendar {
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.event-header h2 {
    margin: 0;
}

.event-edit-btn {
    background: #0088ff;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.next-event {
    background: linear-gradient(135deg, #0088ff, #005fcc);
    color: #fff;
    padding: 30px;
    border-radius: 18px;
    margin-bottom: 25px;
}

.next-label {
    display: inline-block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.next-event h3 {
    font-size: 32px;
    margin: 5px 0 10px;
}

.next-date {
    font-size: 20px;
    font-weight: bold;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: #f5f8fb;
    border-radius: 14px;
}

.event-date-box {
    min-width: 75px;
    padding: 12px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
}

.event-date-box strong {
    display: block;
    font-size: 22px;
}

.event-date-box span {
    font-size: 13px;
    color: #666;
}

.event-info h4 {
    margin: 0 0 5px;
}

.event-info p {
    margin: 0;
    color: #666;
}