* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6fa;
    color: #1f2933;
    line-height: 1.6;
}

a {
    color: #0b5cad;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(135deg, #0b4f8a, #087f5b);
    color: white;
    padding: 24px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.site-header h1 {
    margin: 0;
    font-size: 28px;
}

.site-header p {
    margin: 4px 0 0;
    opacity: 0.9;
}

nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 8px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero {
    background: white;
    padding: 56px 0;
    border-bottom: 1px solid #d8e2ec;
}

.hero h2 {
    font-size: 36px;
    margin: 0 0 16px;
}

.hero p {
    max-width: 720px;
    font-size: 18px;
}

.page {
    padding: 36px 0;
}

.grid-two {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    padding: 36px 0;
}

.card,
.event-card {
    background: white;
    padding: 22px;
    margin-bottom: 18px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.08);
}

.card h3,
.event-card h3 {
    margin-top: 0;
}

.compact {
    padding: 18px;
}

.button,
button {
    display: inline-block;
    background: #0b5cad;
    color: white;
    border: 0;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.button:hover,
button:hover {
    background: #084982;
}

.button.small {
    padding: 8px 12px;
    font-size: 14px;
}

.calendar-list {
    display: grid;
    gap: 16px;
}

.event-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
}

.event-date {
    background: #eef6ff;
    color: #0b4f8a;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    height: fit-content;
}

.event-date strong {
    display: block;
    font-size: 32px;
    line-height: 1;
}

.event-date span {
    text-transform: uppercase;
    font-weight: bold;
}

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

.gallery figure {
    background: white;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.08);
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery figcaption {
    padding: 14px;
    font-weight: bold;
}

.form-card {
    max-width: 560px;
}

label {
    display: block;
    margin-bottom: 18px;
    font-weight: bold;
}

input,
select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
}

.notice {
    max-width: 560px;
    background: #e6f7ed;
    border: 1px solid #8fd3a8;
    color: #14532d;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.site-footer {
    background: #1f2933;
    color: white;
    padding: 22px 0;
    margin-top: 30px;
}

@media (max-width: 800px) {
    .grid-two,
    .gallery {
        grid-template-columns: 1fr;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 28px;
    }
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    resize: vertical;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid #d8e2ec;
    padding: 10px;
    vertical-align: top;
}

th {
    background: #f3f6fa;
}

.notice.error {
    background: #fdecec;
    border-color: #f5a5a5;
    color: #7f1d1d;
}

.admin-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.break {
    word-break: break-all;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 14px;
    }
}

.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
    background: transparent;
}

.actions {
    white-space: nowrap;
}

.button.secondary {
    background: #64748b;
    margin-left: 8px;
}

.button.secondary:hover {
    background: #475569;
}

button.danger,
.danger {
    background: #b91c1c;
    color: white;
}

button.danger:hover,
.danger:hover {
    background: #7f1d1d;
}

button.small,
.button.small {
    width: auto;
    padding: 8px 12px;
    font-size: 14px;
    margin-right: 6px;
}

.inline-form button {
    display: inline-block;
    width: auto;
}


.inline-form button {
    display: inline-block;
    width: auto;
}


.card {
    overflow-x: auto;
}

.actions {
    min-width: 190px;
    white-space: normal;
}

.actions .button,
.actions button {
    display: inline-block;
    width: auto;
    margin: 3px 4px 3px 0;
}

.inline-form {
    display: inline-block;
}


/* Admin-Aktionen sichtbar machen */
.card {
    overflow-x: auto;
}

.actions {
    min-width: 190px;
    white-space: normal;
}

.actions .button,
.actions button {
    display: inline-block;
    width: auto;
    margin: 3px 4px 3px 0;
}

.inline-form {
    display: inline-block;
    margin: 0;
    padding: 0;
    background: transparent;
}

.inline-form button {
    display: inline-block;
    width: auto;
}


/* Sehr einfache Admin-Beitragsverwaltung */
.post-admin-list {
    display: grid;
    gap: 16px;
}

.post-admin-item {
    border: 2px solid #d8e2ec;
    border-radius: 12px;
    padding: 18px;
    background: #ffffff;
}

.post-admin-item h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.post-admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.admin-edit-button,
.admin-delete-button {
    display: inline-block !important;
    width: auto !important;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
}

.admin-edit-button {
    background: #0b5cad;
    color: white;
}

.admin-delete-button {
    background: #b91c1c;
    color: white;
}

.admin-delete-form {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    width: auto !important;
}


/* Sehr einfache Admin-Terminverwaltung */
.event-admin-list {
    display: grid;
    gap: 16px;
}

.event-admin-item {
    border: 2px solid #d8e2ec;
    border-radius: 12px;
    padding: 18px;
    background: #ffffff;
}

.event-admin-item h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
}


/* Admin-Bilderverwaltung */
input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    background: white;
}

.help-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0;
}

.image-admin-list {
    display: grid;
    gap: 16px;
}

.image-admin-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: start;
    border: 2px solid #d8e2ec;
    border-radius: 12px;
    padding: 18px;
    background: #ffffff;
}

.image-admin-item img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    background: #f1f5f9;
}

.image-admin-item h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

@media (max-width: 700px) {
    .image-admin-item {
        grid-template-columns: 1fr;
    }

    .image-admin-item img {
        width: 100%;
        height: 220px;
    }
}


/* Admin Reparatur / Upload */
input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    background: white;
}

.help-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0;
}

.post-admin-list,
.event-admin-list,
.image-admin-list {
    display: grid;
    gap: 16px;
}

.post-admin-item,
.event-admin-item,
.image-admin-item {
    border: 2px solid #d8e2ec;
    border-radius: 12px;
    padding: 18px;
    background: #ffffff;
}

.post-admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.admin-edit-button,
.admin-delete-button {
    display: inline-block !important;
    width: auto !important;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
}

.admin-edit-button {
    background: #0b5cad;
    color: white;
}

.admin-delete-button {
    background: #b91c1c;
    color: white;
}

.admin-delete-form {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    width: auto !important;
}

.image-admin-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: start;
}

.image-admin-item img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    background: #f1f5f9;
}

@media (max-width: 700px) {
    .image-admin-item {
        grid-template-columns: 1fr;
    }

    .image-admin-item img {
        width: 100%;
        height: 220px;
    }
}


/* Reparatur: Admin Bearbeiten/Löschen sichtbar und klickbar */
.admin-section {
    overflow: visible !important;
}

.admin-box-list {
    display: grid !important;
    gap: 16px !important;
}

.admin-box {
    display: block !important;
    border: 2px solid #d8e2ec !important;
    border-radius: 12px !important;
    padding: 18px !important;
    background: #ffffff !important;
}

.admin-box h4 {
    margin: 0 0 8px 0 !important;
    font-size: 20px !important;
}

.admin-action-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 14px !important;
    align-items: center !important;
}

.admin-action-edit,
.admin-action-delete {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
}

.admin-action-edit {
    background: #0b5cad !important;
    color: #ffffff !important;
}

.admin-action-delete {
    background: #b91c1c !important;
    color: #ffffff !important;
}

.admin-action-form {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* Admin-Bedienung direkt auf öffentlichen Seiten */
.frontend-admin-actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #d8e2ec;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.frontend-inline-form {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.frontend-inline-form button {
    display: inline-block !important;
    width: auto !important;
}


/* Bilder in Beiträgen */
.post-image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.post-image-gallery figure {
    margin: 0;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d8e2ec;
}

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

.post-image-gallery figcaption {
    padding: 10px;
    font-size: 14px;
}

.image-category-section {
    margin-top: 34px;
}

.image-category-section h3 {
    border-bottom: 2px solid #d8e2ec;
    padding-bottom: 8px;
}

@media (max-width: 700px) {
    .post-image-gallery {
        grid-template-columns: 1fr;
    }
}


/* Gleiche Button-Größe in Bearbeitungsformularen */
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.form-actions button,
.form-actions .button {
    min-width: 130px;
    height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* Einheitliche Speichern/Abbrechen-Buttons in Editoren */
.form-actions {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin-top: 14px !important;
}

.form-actions .form-button-primary,
.form-actions .form-button-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 44px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.form-actions .form-button-primary {
    background: #0b5cad !important;
    color: #ffffff !important;
    border: 0 !important;
}

.form-actions .form-button-secondary {
    background: #64748b !important;
    color: #ffffff !important;
    border: 0 !important;
}

@media (max-width: 500px) {
    .form-actions .form-button-primary,
    .form-actions .form-button-secondary {
        width: 100% !important;
        max-width: none !important;
    }
}


/* Editor: Speichern und Abbrechen exakt gleich darstellen */
.editor-button-row {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin-top: 16px !important;
}

.editor-button-row .editor-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    height: 56px !important;
    padding: 0 18px !important;
    border-radius: 18px !important;
    border: 0 !important;
    box-sizing: border-box !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.editor-button-row .editor-save-button {
    background: #0b5cad !important;
    color: #ffffff !important;
}

.editor-button-row .editor-cancel-button {
    background: #64748b !important;
    color: #ffffff !important;
}

.editor-button-row .editor-button:hover {
    text-decoration: none !important;
    filter: brightness(0.95);
}

@media (max-width: 500px) {
    .editor-button-row .editor-button {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}


/* Termin-Rückmeldungen */
.registration-box {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #d8e2ec;
    border-radius: 14px;
    background: #f8fafc;
}

.registration-box h4 {
    margin-top: 0;
}

.registration-form {
    max-width: none;
    margin: 0 0 18px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.registration-form label {
    margin-bottom: 12px;
}

.registration-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
}

.registration-form button {
    width: auto;
}

.registration-list {
    margin-top: 18px;
}

.registration-table-wrap {
    overflow-x: auto;
}

.registration-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.registration-table th,
.registration-table td {
    padding: 10px;
    border-bottom: 1px solid #d8e2ec;
    text-align: left;
    vertical-align: top;
}

.status-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 14px;
}

.status-ja {
    background: #dcfce7;
    color: #166534;
}

.status-vielleicht {
    background: #fef3c7;
    color: #92400e;
}

.status-nein {
    background: #fee2e2;
    color: #991b1b;
}


/* Rückmeldungen farbig hinterlegen */
.registration-row.status-ja td {
    background: #dcfce7;
}

.registration-row.status-vielleicht td {
    background: #fef3c7;
}

.registration-row.status-nein td {
    background: #fee2e2;
}

.status-badge.status-ja {
    background: #16a34a;
    color: white;
}

.status-badge.status-vielleicht {
    background: #eab308;
    color: #422006;
}

.status-badge.status-nein {
    background: #dc2626;
    color: white;
}

.registration-actions {
    white-space: nowrap;
}

.registration-actions .button,
.registration-actions button {
    width: auto !important;
    display: inline-block !important;
    margin: 3px 4px 3px 0;
}


/* Zusammenfassung der Termin-Rückmeldungen */
.vote-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 16px 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #d8e2ec;
    border-radius: 12px;
}

.vote-pill {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 14px;
}

.vote-pill-ja {
    background: #dcfce7;
    color: #166534;
}

.vote-pill-vielleicht {
    background: #fef3c7;
    color: #92400e;
}

.vote-pill-nein {
    background: #fee2e2;
    color: #991b1b;
}

.vote-pill-total {
    background: #e2e8f0;
    color: #334155;
}


/* Bild-Kategorien / Alben */
.image-category-section {
    margin-top: 28px;
}

.image-category-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 18px;
}

.image-category-header h3 {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 26px;
}

.image-category-date {
    margin-top: 0;
    color: #64748b;
    font-weight: bold;
}


/* Startseite Redesign */
.home-hero {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 34%),
        linear-gradient(135deg, #0b4f8a, #087f5b);
    color: white;
    padding: 52px 0;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.home-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-text h2 {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
    margin: 0 0 18px 0;
}

.home-hero-text p {
    max-width: 780px;
    font-size: 18px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    font-size: 13px;
    opacity: 0.82;
    margin: 0 0 8px 0;
}

.home-hero-card {
    background: rgba(255,255,255,0.96);
    color: #1f2933;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

.home-hero-card h3 {
    margin-top: 0;
}

.home-event-list {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.home-event-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border: 1px solid #d8e2ec;
    border-radius: 14px;
    background: #f8fafc;
}

.home-event-item:hover {
    background: #eef6ff;
}

.home-event-date {
    background: #0b5cad;
    color: white;
    border-radius: 12px;
    text-align: center;
    padding: 8px 4px;
}

.home-event-date strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.home-event-date span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.home-event-item small {
    display: block;
    color: #64748b;
    margin-top: 3px;
}

.home-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 28px;
    padding: 40px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 32px;
}

.post-grid {
    display: grid;
    gap: 20px;
}

.home-post-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.08);
}

.home-post-image,
.home-post-placeholder {
    width: 100%;
    height: 100%;
    min-height: 230px;
}

.home-post-image {
    object-fit: cover;
    display: block;
}

.home-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6ff;
    color: #0b5cad;
    font-size: 58px;
}

.home-post-body {
    padding: 22px;
}

.home-post-body h3 {
    margin: 6px 0 10px 0;
    font-size: 24px;
}

.home-post-body small {
    color: #64748b;
    font-weight: bold;
}

.image-count {
    font-size: 14px;
    color: #64748b;
    font-weight: bold;
}

.home-sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
}

.info-card h3 {
    margin-top: 0;
}

.full-width-mobile {
    text-align: center;
}

@media (max-width: 900px) {
    .home-hero-inner,
    .home-content,
    .home-post-card {
        grid-template-columns: 1fr;
    }

    .home-post-image,
    .home-post-placeholder {
        min-height: 220px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .home-hero {
        padding: 34px 0;
    }

    .home-hero-card {
        padding: 16px;
    }

    .full-width-mobile {
        width: 100%;
    }
}


/* Admin-Aktionen oben in Startseiten-Beiträgen */
.home-post-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d8e2ec;
    position: relative;
    z-index: 5;
}

.home-post-admin-actions .button,
.home-post-admin-actions button {
    width: auto !important;
    display: inline-block !important;
}


/* Mobile Optimierung */
@media (max-width: 700px) {
    body {
        font-size: 16px;
        overflow-x: hidden;
    }

    .container {
        width: min(100% - 22px, 1100px);
    }

    .site-header {
        padding: 16px 0;
    }

    .header-inner {
        align-items: flex-start;
        gap: 14px;
    }

    .site-header h1 {
        font-size: 22px;
        line-height: 1.2;
    }

    .site-header p {
        font-size: 14px;
    }

    nav {
        width: 100%;
        gap: 8px;
    }

    nav a {
        padding: 9px 10px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        font-size: 14px;
    }

    .home-hero {
        padding: 28px 0;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-hero-text h2 {
        font-size: 32px;
        line-height: 1.08;
    }

    .home-hero-text p {
        font-size: 16px;
    }

    .home-hero-card {
        border-radius: 16px;
        padding: 16px;
    }

    .home-content {
        grid-template-columns: 1fr;
        padding: 26px 0;
        gap: 20px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .home-post-card {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .home-post-image,
    .home-post-placeholder {
        min-height: 190px;
        max-height: 260px;
    }

    .home-post-body {
        padding: 16px;
    }

    .home-post-body h3 {
        font-size: 22px;
    }

    .home-post-admin-actions,
    .frontend-admin-actions {
        gap: 8px;
    }

    .home-post-admin-actions .button,
    .home-post-admin-actions button,
    .frontend-admin-actions .button,
    .frontend-admin-actions button,
    .button.small,
    button.small {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 14px;
    }

    .grid-two {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }

    .page {
        padding: 24px 0;
    }

    .card,
    .event-card {
        padding: 16px;
        border-radius: 14px;
    }

    .event-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .event-date {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: fit-content;
        padding: 10px 14px;
    }

    .event-date strong {
        font-size: 24px;
    }

    .registration-box {
        padding: 14px;
    }

    .vote-summary {
        align-items: flex-start;
        padding: 10px;
    }

    .vote-pill {
        font-size: 13px;
        padding: 5px 8px;
    }

    .registration-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .registration-table {
        min-width: 680px;
        font-size: 14px;
    }

    form,
    .form-card {
        width: 100%;
        max-width: none;
        margin: 18px 0;
        padding: 16px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    input,
    select,
    button,
    textarea {
        max-width: 100%;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery img {
        height: 240px;
    }

    .image-category-header {
        flex-direction: column;
        gap: 10px;
    }

    .image-category-header h3 {
        font-size: 23px;
    }

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

    .home-event-item {
        grid-template-columns: 54px 1fr;
        padding: 9px;
    }

    .home-event-date strong {
        font-size: 22px;
    }

    .home-sidebar {
        gap: 14px;
    }

    table {
        font-size: 14px;
    }
}

/* Sehr kleine iPhones */
@media (max-width: 390px) {
    .site-header h1 {
        font-size: 20px;
    }

    nav a {
        font-size: 13px;
        padding: 8px 9px;
    }

    .home-hero-text h2 {
        font-size: 28px;
    }

    .home-post-body h3 {
        font-size: 20px;
    }

    .button.small,
    button.small {
        font-size: 13px;
        padding: 8px 10px;
    }

    .gallery img {
        height: 210px;
    }
}

/* Mobile: Formularbuttons untereinander, aber gleich groß */
@media (max-width: 520px) {
    .frontend-inline-form {
        display: inline-block !important;
    }

    .registration-actions {
        white-space: normal;
    }

    .registration-actions .button,
    .registration-actions button {
        margin-bottom: 6px;
    }
}


/* Terminseite mobil: Rückmeldungen als Karten statt breite Tabelle */
@media (max-width: 700px) {
    .calendar-list {
        display: grid;
        gap: 18px;
    }

    .event-card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .event-card > div:last-child {
        min-width: 0;
    }

    .registration-box {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .registration-table-wrap {
        overflow: visible !important;
        width: 100%;
    }

    .registration-table {
        min-width: 0 !important;
        width: 100% !important;
        border-collapse: separate;
        border-spacing: 0 12px;
        background: transparent;
    }

    .registration-table thead {
        display: none;
    }

    .registration-table,
    .registration-table tbody,
    .registration-table tr,
    .registration-table td {
        display: block;
        width: 100%;
    }

    .registration-table tr {
        border: 1px solid #d8e2ec;
        border-radius: 14px;
        overflow: hidden;
        background: white;
        box-shadow: 0 4px 14px rgba(31, 41, 51, 0.06);
    }

    .registration-table td {
        display: grid;
        grid-template-columns: 105px 1fr;
        gap: 10px;
        align-items: start;
        padding: 10px 12px !important;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        word-break: break-word;
    }

    .registration-table td:last-child {
        border-bottom: 0;
    }

    .registration-table td::before {
        content: attr(data-label);
        font-weight: 800;
        color: #334155;
    }

    .registration-actions {
        white-space: normal !important;
    }

    .registration-actions .button,
    .registration-actions button {
        width: auto !important;
        display: inline-block !important;
        margin: 0 6px 6px 0;
    }

    .registration-form {
        width: 100%;
        max-width: 100%;
    }

    .registration-form button {
        width: auto !important;
    }
}

/* Sehr schmale Geräte */
@media (max-width: 390px) {
    .registration-table td {
        grid-template-columns: 88px 1fr;
        gap: 8px;
        padding: 9px 10px !important;
    }
}


/* Aktueller Stand immer in einer Zeile */
.vote-summary {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.vote-summary strong,
.vote-summary .vote-pill {
    flex: 0 0 auto;
}

@media (max-width: 700px) {
    .vote-summary {
        padding: 10px;
        gap: 6px;
        scrollbar-width: thin;
    }

    .vote-pill {
        font-size: 12px;
        padding: 5px 8px;
    }
}


/* Bilder verschieben */
.image-move-form {
    margin-top: 12px !important;
    padding: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #d8e2ec !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    max-width: none !important;
}

.image-move-form label {
    margin-bottom: 8px;
    font-size: 14px;
}

.image-move-form select {
    width: 100%;
    margin-top: 4px;
}

.image-move-form button {
    width: auto !important;
}


/* Startseite: neueste Bild-Kategorie */
.latest-gallery-title {
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 2px;
}

.latest-gallery-date {
    color: #64748b;
    font-weight: bold;
    margin-top: 0;
}

.latest-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0 16px;
}

.latest-gallery-grid img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    border-radius: 10px;
    background: #f1f5f9;
}

@media (max-width: 900px) {
    .latest-gallery-grid img {
        height: 150px;
    }
}

@media (max-width: 520px) {
    .latest-gallery-grid img {
        height: 120px;
    }
}


/* Startseite: neueste Bild-Kategorie */
.latest-gallery-title {
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 2px;
}

.latest-gallery-date {
    color: #64748b;
    font-weight: bold;
    margin-top: 0;
}

.latest-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0 16px;
}

.latest-gallery-grid img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    border-radius: 10px;
    background: #f1f5f9;
}

@media (max-width: 900px) {
    .latest-gallery-grid img {
        height: 150px;
    }
}

@media (max-width: 520px) {
    .latest-gallery-grid img {
        height: 120px;
    }
}


/* Startseite: neueste Bilder als eigener Abschnitt */
.latest-gallery-section {
    padding: 34px 0 0;
}

.latest-gallery-wide {
    margin-bottom: 8px;
}

.latest-gallery-wide-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 18px;
}

.latest-gallery-wide-header h3 {
    margin: 0 0 4px 0;
    font-size: 24px;
}

.latest-gallery-wide-header p {
    margin: 0;
    color: #64748b;
    font-weight: bold;
}

.latest-gallery-wide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.latest-gallery-wide-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    background: #f1f5f9;
}

@media (max-width: 900px) {
    .latest-gallery-wide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-gallery-wide-grid img {
        height: 170px;
    }
}

@media (max-width: 520px) {
    .latest-gallery-section {
        padding-top: 24px;
    }

    .latest-gallery-wide-grid {
        grid-template-columns: 1fr;
    }

    .latest-gallery-wide-grid img {
        height: 230px;
    }
}


/* ============================================================
   Sportliches Volleyball-Design: Dunkelblau / Gelb / Weiß
   ============================================================ */

:root {
    --sport-navy: #001b3a;
    --sport-blue: #1e3a8a;
    --sport-yellow: #ffc107;
    --sport-yellow-dark: #e0a800;
    --sport-light: #f2f4f7;
    --sport-dark: #333333;
    --sport-white: #ffffff;
}

/* Grundlayout */
body {
    background: var(--sport-light) !important;
    color: var(--sport-dark) !important;
    font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
}

/* Header / Navigation */
.site-header {
    background: var(--sport-navy) !important;
    color: var(--sport-white) !important;
    padding: 18px 0 !important;
    border-bottom: 4px solid var(--sport-yellow);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.site-header h1 {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 900;
    font-size: 30px;
    line-height: 1;
    margin: 0;
    color: var(--sport-white);
}

.site-header h1::first-letter {
    color: var(--sport-yellow);
}

.site-header p {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 800;
    color: var(--sport-yellow);
    margin-top: 8px;
}

nav {
    align-items: center;
}

nav a {
    color: var(--sport-white) !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.06em;
    font-weight: 900;
    border-radius: 0 !important;
    padding: 10px 12px !important;
    border-bottom: 3px solid transparent;
    background: transparent !important;
}

nav a:hover {
    color: var(--sport-yellow) !important;
    border-bottom-color: var(--sport-yellow);
}

/* Hero Startseite */
.home-hero {
    background:
        linear-gradient(110deg, rgba(0, 27, 58, 0.96), rgba(0, 27, 58, 0.72)),
        radial-gradient(circle at 85% 25%, rgba(255, 193, 7, 0.35), transparent 28%),
        linear-gradient(135deg, var(--sport-navy), var(--sport-blue)) !important;
    color: var(--sport-white) !important;
    position: relative;
    overflow: hidden;
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 320px;
    height: 320px;
    border: 34px solid rgba(255,255,255,0.07);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.home-hero-text h2 {
    text-transform: uppercase;
    font-weight: 950;
    letter-spacing: 0.02em;
    color: var(--sport-white);
    text-shadow: 0 6px 22px rgba(0,0,0,0.3);
}

.home-hero-text h2 strong,
.home-hero-text h2 em {
    color: var(--sport-yellow);
}

.home-hero-text p {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.eyebrow {
    color: var(--sport-yellow) !important;
    opacity: 1 !important;
}

/* Hero Terminkarte */
.home-hero-card {
    background: var(--sport-white) !important;
    border-radius: 4px !important;
    border-top: 6px solid var(--sport-yellow);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35) !important;
}

.home-hero-card h3 {
    text-transform: uppercase;
    font-weight: 950;
    color: var(--sport-navy);
}

/* Buttons */
.button,
button {
    background: var(--sport-yellow) !important;
    color: var(--sport-navy) !important;
    border: 0 !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 950 !important;
    box-shadow: 0 4px 0 var(--sport-yellow-dark);
}

.button:hover,
button:hover {
    background: var(--sport-yellow-dark) !important;
    color: var(--sport-navy) !important;
    transform: translateY(1px);
    box-shadow: 0 3px 0 #b88400;
}

.button.secondary,
.form-button-secondary,
.editor-cancel-button {
    background: var(--sport-navy) !important;
    color: var(--sport-white) !important;
    box-shadow: 0 4px 0 #000b18;
}

.danger,
button.danger,
.admin-delete-button,
.admin-action-delete {
    background: #dc2626 !important;
    color: white !important;
    box-shadow: 0 4px 0 #991b1b !important;
}

/* Karten */
.card,
.home-post-card,
.event-card,
.info-card,
.image-category-section,
.registration-box {
    border-radius: 4px !important;
    border: 1px solid #dde3ea;
    box-shadow: 0 10px 26px rgba(0, 27, 58, 0.10) !important;
}

.card h3,
.home-post-body h3,
.event-card h3,
.image-category-header h3,
.section-heading h2 {
    text-transform: uppercase;
    font-weight: 950;
    color: var(--sport-navy);
    letter-spacing: 0.02em;
}

/* Beiträge */
.home-post-card {
    border-left: 6px solid var(--sport-yellow);
}

.home-post-image,
.home-post-placeholder {
    background: var(--sport-navy) !important;
}

.home-post-placeholder span {
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.35));
}

/* Terminboxen */
.home-event-date,
.event-date {
    background: var(--sport-navy) !important;
    color: var(--sport-white) !important;
    border-radius: 4px !important;
    border-bottom: 5px solid var(--sport-yellow);
}

.home-event-date span,
.event-date span {
    color: var(--sport-yellow);
}

.home-event-item {
    border-radius: 4px !important;
    border-left: 5px solid var(--sport-yellow);
}

.home-event-item:hover {
    background: #fff7db !important;
}

/* Terminseite */
.vote-summary {
    border-radius: 4px !important;
    border-left: 6px solid var(--sport-yellow);
    background: var(--sport-white) !important;
}

.vote-pill {
    border-radius: 4px !important;
    text-transform: uppercase;
}

.registration-box {
    background: #ffffff !important;
    border-top: 5px solid var(--sport-yellow);
}

.registration-table tr {
    border-radius: 4px !important;
}

/* Galerie */
.gallery figure {
    border-radius: 4px !important;
    border: 1px solid #d8e2ec;
    box-shadow: 0 10px 26px rgba(0, 27, 58, 0.12) !important;
}

.gallery figcaption {
    background: var(--sport-white);
    color: var(--sport-navy);
    font-weight: 900;
}

.image-category-header {
    border-bottom: 4px solid var(--sport-yellow);
    padding-bottom: 12px;
}

/* Formulare */
input,
select,
textarea {
    border-radius: 4px !important;
    border: 2px solid #d8e2ec !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--sport-yellow) !important;
    box-shadow: 0 0 0 3px rgba(255,193,7,0.25);
}

/* Footer */
.site-footer {
    background: var(--sport-navy) !important;
    color: var(--sport-white) !important;
    border-top: 4px solid var(--sport-yellow);
}

/* Sportliche Akzentlinie */
.section-heading {
    border-bottom: 4px solid var(--sport-yellow);
    padding-bottom: 12px;
}

/* Mobile Optimierung für neues Design */
@media (max-width: 700px) {
    .site-header h1 {
        font-size: 24px;
    }

    .site-header p {
        font-size: 11px;
    }

    nav a {
        background: rgba(255,255,255,0.08) !important;
        border: 1px solid rgba(255,255,255,0.12);
        border-bottom: 3px solid transparent;
    }

    nav a:hover {
        border-bottom-color: var(--sport-yellow);
    }

    .home-hero-text h2 {
        font-size: 30px;
    }

    .home-hero-card {
        border-top-width: 5px;
    }

    .button,
    button {
        box-shadow: none !important;
    }
}


/* ============================================================
   SPONTAN HILFLOS Brand Design
   ============================================================ */

:root {
    --club-navy: #001b3a;
    --club-navy-2: #061f42;
    --club-blue: #1e3a8a;
    --club-yellow: #ffc107;
    --club-yellow-2: #ffb300;
    --club-white: #ffffff;
    --club-light: #f2f4f7;
    --club-dark: #172033;
}

/* Global moderner */
body {
    background:
        radial-gradient(circle at top left, rgba(255,193,7,0.08), transparent 28%),
        linear-gradient(180deg, #f7f8fb, #eef2f7) !important;
    color: var(--club-dark) !important;
}

/* Header mit Logo */
.site-header {
    background: rgba(0, 27, 58, 0.98) !important;
    color: white !important;
    border-bottom: 5px solid var(--club-yellow) !important;
    padding: 12px 0 !important;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 24px !important;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,0.38));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    font-size: 26px;
    font-weight: 950;
    letter-spacing: 0.04em;
    color: white;
    text-transform: uppercase;
}

.brand-text span {
    margin-top: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--club-yellow);
}

/* Navigation moderner */
nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

nav a {
    color: white !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 950 !important;
    letter-spacing: 0.07em;
    font-size: 12px;
    padding: 11px 13px !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.12);
}

nav a:hover {
    background: var(--club-yellow) !important;
    color: var(--club-navy) !important;
    border-color: var(--club-yellow);
}

/* Hero mehr wie Club-Startseite */
.home-hero {
    background:
        linear-gradient(110deg, rgba(0,27,58,0.98) 0%, rgba(0,27,58,0.88) 46%, rgba(0,27,58,0.55) 100%),
        radial-gradient(circle at 80% 18%, rgba(255,193,7,0.45), transparent 26%),
        linear-gradient(135deg, #001b3a, #0b3b78) !important;
    min-height: 430px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -60px;
    width: 420px;
    height: 420px;
    background: url("/assets/logo.png") center/contain no-repeat;
    opacity: 0.10;
    transform: rotate(-10deg);
}

.home-hero::after {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 42px solid rgba(255,255,255,0.055);
    border-radius: 50%;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
}

.home-hero-text .eyebrow {
    color: var(--club-yellow) !important;
    font-weight: 950;
    letter-spacing: 0.18em;
}

.home-hero-text h2 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 76px) !important;
    line-height: 0.94 !important;
    font-weight: 1000 !important;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    color: white !important;
    text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.home-hero-text h2::after {
    content: "";
    display: block;
    width: 120px;
    height: 8px;
    background: var(--club-yellow);
    margin-top: 20px;
    transform: skewX(-18deg);
}

.home-hero-text p {
    max-width: 720px;
    font-size: 19px !important;
    font-weight: 650;
    color: rgba(255,255,255,0.92) !important;
}

/* Termin-Karte im Hero */
.home-hero-card {
    background: white !important;
    border: 0 !important;
    border-radius: 18px !important;
    border-top: 8px solid var(--club-yellow) !important;
    box-shadow: 0 28px 60px rgba(0,0,0,0.34) !important;
}

.home-hero-card h3 {
    color: var(--club-navy) !important;
    font-size: 22px;
    text-transform: uppercase;
}

/* Buttons wie Brand */
.button,
button {
    border-radius: 10px !important;
    background: var(--club-yellow) !important;
    color: var(--club-navy) !important;
    font-weight: 950 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 0 !important;
    box-shadow: 0 6px 0 #cc9300 !important;
}

.button:hover,
button:hover {
    background: var(--club-yellow-2) !important;
    color: var(--club-navy) !important;
    transform: translateY(2px);
    box-shadow: 0 4px 0 #a87500 !important;
}

.button.secondary {
    background: var(--club-navy) !important;
    color: white !important;
    box-shadow: 0 6px 0 #000814 !important;
}

.danger,
button.danger {
    background: #d62828 !important;
    color: white !important;
    box-shadow: 0 6px 0 #8f1515 !important;
}

/* Karten moderner */
.card,
.home-post-card,
.event-card,
.info-card,
.image-category-section {
    border-radius: 18px !important;
    border: 1px solid rgba(0,27,58,0.08) !important;
    box-shadow: 0 16px 36px rgba(0,27,58,0.10) !important;
    overflow: hidden;
}

.card h3,
.home-post-body h3,
.event-card h3,
.section-heading h2 {
    color: var(--club-navy) !important;
    text-transform: uppercase;
    font-weight: 1000 !important;
}

/* Beitragskarten sportlicher */
.home-post-card {
    border-left: 0 !important;
    position: relative;
}

.home-post-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 100%;
    background: var(--club-yellow);
    z-index: 2;
}

.home-post-image {
    filter: saturate(1.08) contrast(1.04);
}

.home-post-placeholder {
    background:
        radial-gradient(circle, rgba(255,193,7,0.18), transparent 44%),
        var(--club-navy) !important;
}

/* Section Headings */
.section-heading {
    border-bottom: 0 !important;
    position: relative;
    margin-bottom: 24px;
}

.section-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 90px;
    height: 6px;
    background: var(--club-yellow);
    transform: skewX(-18deg);
}

/* Termine */
.home-event-date,
.event-date {
    background: var(--club-navy) !important;
    border-radius: 12px !important;
    border-bottom: 6px solid var(--club-yellow);
}

.home-event-date span,
.event-date span {
    color: var(--club-yellow) !important;
}

.home-event-item {
    border-radius: 14px !important;
    border-left: 5px solid var(--club-yellow) !important;
}

/* Galerie */
.gallery figure {
    border-radius: 18px !important;
    overflow: hidden;
}

.gallery img {
    filter: saturate(1.08) contrast(1.04);
}

.image-category-header {
    border-bottom: 6px solid var(--club-yellow) !important;
}

/* Tabellen / Rückmeldungen */
.vote-summary {
    border-radius: 14px !important;
    border-left: 8px solid var(--club-yellow) !important;
}

/* Mobile */
@media (max-width: 800px) {
    .header-inner {
        align-items: flex-start !important;
    }

    .brand-logo {
        width: 62px;
        height: 62px;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .brand-text span {
        font-size: 10px;
    }

    nav {
        width: 100%;
        margin-top: 8px;
    }

    nav a {
        font-size: 11px;
        padding: 9px 10px !important;
    }

    .home-hero {
        min-height: auto;
        padding: 38px 0 !important;
    }

    .home-hero::before {
        width: 260px;
        height: 260px;
        right: -80px;
        top: -30px;
        opacity: 0.08;
    }

    .home-hero-text h2 {
        font-size: 36px !important;
    }

    .home-hero-text p {
        font-size: 16px !important;
    }

    .home-hero-text h2::after {
        width: 90px;
        height: 6px;
    }
}

@media (max-width: 430px) {
    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 54px;
        height: 54px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text span {
        letter-spacing: 0.08em;
    }

    nav a {
        font-size: 10px;
        padding: 8px 9px !important;
    }

    .home-hero-text h2 {
        font-size: 32px !important;
    }
}


/* ============================================================
   Startseite im Stil der Vorlage: Hero + Quick Cards
   ============================================================ */

.club-hero {
    position: relative;
    background:
        linear-gradient(100deg, rgba(0, 13, 31, 0.98) 0%, rgba(0, 27, 58, 0.94) 45%, rgba(0, 27, 58, 0.72) 100%),
        radial-gradient(circle at 70% 35%, rgba(255, 193, 7, 0.28), transparent 22%),
        linear-gradient(135deg, #001b3a, #061f42);
    color: white;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.club-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 100%),
        radial-gradient(circle at 85% 30%, rgba(255,255,255,0.12), transparent 16%);
    background-size: 34px 34px, auto;
    opacity: 0.35;
}

.club-hero::after {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -220px;
    width: 620px;
    height: 620px;
    border: 56px solid rgba(255,255,255,0.055);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.club-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: center;
    padding: 58px 0 96px;
}

.club-kicker {
    margin: 0 0 16px;
    color: #ffc107;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 0.12em;
}

.club-hero-content h2 {
    margin: 0;
    color: white !important;
    text-transform: uppercase;
    font-weight: 1000;
    letter-spacing: 0.015em;
    line-height: 0.98;
    font-size: clamp(42px, 6vw, 76px);
    text-shadow: 0 12px 36px rgba(0,0,0,0.45);
}

.club-hero-content h2 span {
    color: #ffc107;
}

.club-hero-subline {
    margin: 24px 0 0;
    max-width: 560px;
    color: rgba(255,255,255,0.88);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.7;
}

.club-hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.club-primary-button,
.club-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.club-primary-button {
    background: #ffc107;
    color: #001b3a;
    box-shadow: 0 6px 0 #c89100;
}

.club-primary-button::after {
    content: "→";
    margin-left: 12px;
    font-size: 20px;
}

.club-outline-button {
    color: white;
    border: 2px solid rgba(255,255,255,0.35);
}

.club-outline-button:hover,
.club-primary-button:hover {
    transform: translateY(2px);
}

.club-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.club-hero-visual img {
    width: min(430px, 100%);
    max-height: 430px;
    object-fit: contain;
    filter: drop-shadow(0 24px 34px rgba(0,0,0,0.5));
    transform: rotate(-4deg);
}

/* Quick cards wie unter dem Hero in der Vorlage */
.club-quicklinks {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -64px;
    margin-bottom: 42px;
}

.club-quick-card {
    background: white;
    color: #001b3a;
    text-decoration: none;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 18px 36px rgba(0, 27, 58, 0.16);
    border: 1px solid rgba(0,27,58,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.club-quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 44px rgba(0, 27, 58, 0.22);
}

.club-quick-icon {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 12px;
}

.club-quick-card h3 {
    margin: 0 0 10px;
    text-transform: uppercase;
    color: #001b3a;
    font-size: 18px;
    font-weight: 1000;
}

.club-quick-card p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.club-quick-card span {
    color: #001b3a;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 1000;
    letter-spacing: 0.05em;
}

.club-quick-card:nth-child(2) {
    border-top: 5px solid #ffc107;
}

.club-quick-card:nth-child(1),
.club-quick-card:nth-child(3),
.club-quick-card:nth-child(4) {
    border-top: 5px solid #001b3a;
}

/* Der alte Abstand der home-content-Sektion wird mit den Quickcards harmonisiert */
.home-content {
    padding-top: 10px !important;
}

/* Header noch näher an Vorlage */
.site-header {
    border-bottom: 0 !important;
}

.brand-logo {
    width: 90px !important;
    height: 90px !important;
}

nav a {
    border: 0 !important;
    border-radius: 0 !important;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 3px;
    background: transparent;
}

nav a:hover::after {
    background: #ffc107;
}

/* Mobile */
@media (max-width: 950px) {
    .club-hero-inner {
        grid-template-columns: 1fr;
        padding: 42px 0 88px;
    }

    .club-hero-visual {
        display: none;
    }

    .club-quicklinks {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -48px;
    }
}

@media (max-width: 620px) {
    .club-hero {
        min-height: auto;
    }

    .club-hero-inner {
        padding: 34px 0 64px;
    }

    .club-hero-content h2 {
        font-size: 38px;
    }

    .club-hero-subline {
        font-size: 16px;
    }

    .club-quicklinks {
        grid-template-columns: 1fr;
        margin-top: -34px;
        margin-bottom: 28px;
    }

    .club-quick-card {
        text-align: left;
        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 12px;
        align-items: center;
        padding: 18px;
    }

    .club-quick-icon {
        margin: 0;
        font-size: 34px;
        grid-row: span 3;
    }

    .club-quick-card p {
        margin-bottom: 8px;
    }

    .brand-logo {
        width: 62px !important;
        height: 62px !important;
    }
}


/* ============================================================
   Hero mit echtem Hintergrundbild /assets/hero.jpg
   ============================================================ */

.club-hero {
    position: relative;
    background:
        linear-gradient(90deg, rgba(0, 13, 31, 0.96) 0%, rgba(0, 27, 58, 0.88) 34%, rgba(0, 27, 58, 0.45) 68%, rgba(0, 27, 58, 0.28) 100%),
        url("/assets/hero.jpg") center center / cover no-repeat !important;
    color: white;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.club-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 38%, rgba(255, 193, 7, 0.20), transparent 18%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.10));
    pointer-events: none;
}

.club-hero::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    border: 48px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: rotate(-18deg);
    pointer-events: none;
}

.club-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: end;
    padding: 64px 0 110px;
}

.club-hero-content {
    max-width: 560px;
}

.club-hero-visual {
    display: none !important;
}

.club-kicker {
    margin: 0 0 14px;
    color: #ffc107;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 0.12em;
}

.club-hero-content h2 {
    margin: 0;
    color: white !important;
    text-transform: uppercase;
    font-weight: 1000;
    letter-spacing: 0.01em;
    line-height: 0.96;
    font-size: clamp(44px, 6vw, 80px);
    text-shadow: 0 12px 36px rgba(0,0,0,0.42);
}

.club-hero-content h2 span {
    color: #ffc107;
}

.club-hero-subline {
    margin: 22px 0 0;
    max-width: 520px;
    color: rgba(255,255,255,0.92);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.65;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.club-hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.club-primary-button,
.club-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.club-primary-button {
    background: #ffc107;
    color: #001b3a;
    box-shadow: 0 6px 0 #c89100;
}

.club-primary-button::after {
    content: "→";
    margin-left: 12px;
    font-size: 20px;
}

.club-outline-button {
    color: white;
    border: 2px solid rgba(255,255,255,0.36);
    background: rgba(255,255,255,0.04);
}

.club-outline-button:hover,
.club-primary-button:hover {
    transform: translateY(2px);
}

/* Karten unter dem Hero etwas näher an die Vorlage */
.club-quicklinks {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -74px;
    margin-bottom: 42px;
}

.club-quick-card {
    background: white;
    color: #001b3a;
    text-decoration: none;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 18px 36px rgba(0, 27, 58, 0.16);
    border: 1px solid rgba(0,27,58,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.club-quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 44px rgba(0, 27, 58, 0.22);
}

.club-quick-icon {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 12px;
}

.club-quick-card h3 {
    margin: 0 0 10px;
    text-transform: uppercase;
    color: #001b3a;
    font-size: 18px;
    font-weight: 1000;
}

.club-quick-card p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.club-quick-card span {
    color: #001b3a;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 1000;
    letter-spacing: 0.05em;
}

.club-quick-card:nth-child(2) {
    border-top: 5px solid #ffc107;
}

.club-quick-card:nth-child(1),
.club-quick-card:nth-child(3),
.club-quick-card:nth-child(4) {
    border-top: 5px solid #001b3a;
}

/* Mobile */
@media (max-width: 950px) {
    .club-hero {
        min-height: 560px;
        background:
            linear-gradient(180deg, rgba(0, 13, 31, 0.88) 0%, rgba(0, 27, 58, 0.72) 42%, rgba(0, 27, 58, 0.52) 100%),
            url("/assets/hero.jpg") 62% center / cover no-repeat !important;
    }

    .club-hero-inner {
        padding: 42px 0 84px;
    }

    .club-quicklinks {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -48px;
    }

    .club-hero-content h2 {
        font-size: 42px;
    }
}

@media (max-width: 620px) {
    .club-hero {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(0, 13, 31, 0.86) 0%, rgba(0, 27, 58, 0.74) 50%, rgba(0, 27, 58, 0.60) 100%),
            url("/assets/hero.jpg") 68% center / cover no-repeat !important;
    }

    .club-hero-inner {
        padding: 34px 0 64px;
    }

    .club-hero-content h2 {
        font-size: 36px;
    }

    .club-hero-subline {
        font-size: 16px;
    }

    .club-quicklinks {
        grid-template-columns: 1fr;
        margin-top: -34px;
        margin-bottom: 28px;
    }

    .club-quick-card {
        text-align: left;
        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 12px;
        align-items: center;
        padding: 18px;
    }

    .club-quick-icon {
        margin: 0;
        font-size: 34px;
        grid-row: span 3;
    }

    .club-quick-card p {
        margin-bottom: 8px;
    }
}


/* ============================================================
   Header näher an Vorlage: flach, sportlich, aktiver gelber Strich
   ============================================================ */

.site-header {
    background: #001b3a !important;
    padding: 10px 0 !important;
    border-bottom: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22) !important;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    min-height: 78px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
}

.brand {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    flex: 0 0 auto;
}

.brand-logo {
    width: 96px !important;
    height: 96px !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,0.35));
    margin: -10px 0;
}

.brand-text {
    display: none !important;
}

.main-nav,
nav.main-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
    width: auto !important;
}

.main-nav a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 14px 2px 12px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    box-shadow: none !important;
}

.main-nav a::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 4px !important;
    border-radius: 999px !important;
    background: transparent !important;
    transform: skewX(-18deg);
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffc107 !important;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    background: #ffc107 !important;
}

/* Header soll nicht mehr wie alter Pillen-Nav wirken */
nav a:hover {
    background: transparent !important;
}

/* Hero direkt unter Header etwas bündiger */
.club-hero {
    margin-top: 0 !important;
}

/* Mobile Header */
@media (max-width: 820px) {
    .site-header {
        padding: 10px 0 12px !important;
        position: relative;
    }

    .header-inner {
        min-height: auto;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .brand-logo {
        width: 74px !important;
        height: 74px !important;
        margin: 0;
    }

    .main-nav,
    nav.main-nav {
        width: 100% !important;
        justify-content: flex-start !important;
        gap: 10px 14px !important;
    }

    .main-nav a {
        font-size: 12px !important;
        padding: 10px 0 9px !important;
    }

    .main-nav a::after {
        height: 3px !important;
    }
}

@media (max-width: 430px) {
    .brand-logo {
        width: 64px !important;
        height: 64px !important;
    }

    .main-nav,
    nav.main-nav {
        gap: 8px 12px !important;
    }

    .main-nav a {
        font-size: 11px !important;
        letter-spacing: 0.06em !important;
    }
}


/* Footer Links */
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0;
}

.footer-links a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Datenschutz-Hinweis bei Rückmeldungen */
.privacy-note {
    background: #fff7db;
    border-left: 5px solid #ffc107;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
}

.privacy-note a {
    color: #001b3a;
    font-weight: 900;
}


/* Startseite: sichtbare Impressum/Datenschutz-Leiste */
.home-legal-links {
    background: #001b3a;
    border-top: 4px solid #ffc107;
    padding: 18px 0;
    margin-top: 30px;
}

.home-legal-links .container {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-legal-links a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
}

.home-legal-links a:hover {
    text-decoration: underline;
}


/* Startseite: Rechtliches-Karte */
.legal-card-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.legal-card-links .button {
    width: auto !important;
}


/* ============================================================
   Startseite wieder im schönen Vorlagen-Stil
   ============================================================ */

.club-hero {
    position: relative;
    background:
        linear-gradient(90deg, rgba(0, 13, 31, 0.96) 0%, rgba(0, 27, 58, 0.88) 34%, rgba(0, 27, 58, 0.45) 68%, rgba(0, 27, 58, 0.28) 100%),
        url("/assets/hero.jpg") center center / cover no-repeat !important;
    color: white;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.club-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 38%, rgba(255, 193, 7, 0.20), transparent 18%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.10));
    pointer-events: none;
}

.club-hero::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    border: 48px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: rotate(-18deg);
    pointer-events: none;
}

.club-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: end;
    padding: 64px 0 110px;
}

.club-hero-content {
    max-width: 560px;
}

.club-kicker {
    margin: 0 0 14px;
    color: #ffc107;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 0.12em;
}

.club-hero-content h2 {
    margin: 0;
    color: white !important;
    text-transform: uppercase;
    font-weight: 1000;
    letter-spacing: 0.01em;
    line-height: 0.96;
    font-size: clamp(44px, 6vw, 80px);
    text-shadow: 0 12px 36px rgba(0,0,0,0.42);
}

.club-hero-content h2 span {
    color: #ffc107;
}

.club-hero-subline {
    margin: 22px 0 0;
    max-width: 520px;
    color: rgba(255,255,255,0.92);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.65;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.club-hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.club-primary-button,
.club-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.club-primary-button {
    background: #ffc107;
    color: #001b3a;
    box-shadow: 0 6px 0 #c89100;
}

.club-primary-button::after {
    content: "→";
    margin-left: 12px;
    font-size: 20px;
}

.club-outline-button {
    color: white;
    border: 2px solid rgba(255,255,255,0.36);
    background: rgba(255,255,255,0.04);
}

.club-outline-button:hover,
.club-primary-button:hover {
    transform: translateY(2px);
}

/* Vier Kacheln unter dem Hero */
.club-quicklinks {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -74px;
    margin-bottom: 42px;
}

.club-quick-card {
    background: white;
    color: #001b3a;
    text-decoration: none;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 18px 36px rgba(0, 27, 58, 0.16);
    border: 1px solid rgba(0,27,58,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.club-quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 44px rgba(0, 27, 58, 0.22);
}

.club-quick-icon {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 12px;
}

.club-quick-card h3 {
    margin: 0 0 10px;
    text-transform: uppercase;
    color: #001b3a;
    font-size: 18px;
    font-weight: 1000;
}

.club-quick-card p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.club-quick-card span {
    color: #001b3a;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 1000;
    letter-spacing: 0.05em;
}

.club-quick-card:nth-child(2) {
    border-top: 5px solid #ffc107;
}

.club-quick-card:nth-child(1),
.club-quick-card:nth-child(3),
.club-quick-card:nth-child(4) {
    border-top: 5px solid #001b3a;
}

/* Aktuelles darunter */
.home-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 28px;
    padding: 10px 0 40px;
}

.section-heading {
    position: relative;
    margin-bottom: 24px;
    border-bottom: 0 !important;
}

.section-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 90px;
    height: 6px;
    background: #ffc107;
    transform: skewX(-18deg);
}

.post-grid {
    display: grid;
    gap: 20px;
}

.home-post-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.08);
    position: relative;
}

.home-post-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 100%;
    background: #ffc107;
    z-index: 2;
}

.home-post-image,
.home-post-placeholder {
    width: 100%;
    height: 100%;
    min-height: 230px;
}

.home-post-image {
    object-fit: cover;
    display: block;
}

.home-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle, rgba(255,193,7,0.18), transparent 44%),
        #001b3a !important;
    color: white;
    font-size: 58px;
}

.home-post-body {
    padding: 22px;
}

.home-post-body h3 {
    margin: 6px 0 10px 0;
    font-size: 24px;
    text-transform: uppercase;
}

.home-post-body small {
    color: #64748b;
    font-weight: bold;
}

.image-count {
    font-size: 14px;
    color: #64748b;
    font-weight: bold;
}

/* Admin-Aktionen */
.home-post-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d8e2ec;
    position: relative;
    z-index: 5;
}

.home-post-admin-actions .button,
.home-post-admin-actions button {
    width: auto !important;
    display: inline-block !important;
}

/* Sidebar */
.home-sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
}

.info-card h3 {
    margin-top: 0;
    text-transform: uppercase;
}

.home-event-list {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.home-event-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border: 1px solid #d8e2ec;
    border-radius: 14px;
    background: #f8fafc;
}

.home-event-item:hover {
    background: #eef6ff;
}

.home-event-date {
    background: #001b3a;
    color: white;
    border-radius: 12px;
    text-align: center;
    padding: 8px 4px;
    border-bottom: 5px solid #ffc107;
}

.home-event-date strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.home-event-date span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: #ffc107;
}

.home-event-item small {
    display: block;
    color: #64748b;
    margin-top: 3px;
}

/* Mobile */
@media (max-width: 950px) {
    .club-hero {
        min-height: 560px;
        background:
            linear-gradient(180deg, rgba(0, 13, 31, 0.88) 0%, rgba(0, 27, 58, 0.72) 42%, rgba(0, 27, 58, 0.52) 100%),
            url("/assets/hero.jpg") 62% center / cover no-repeat !important;
    }

    .club-hero-inner {
        padding: 42px 0 84px;
    }

    .club-quicklinks {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -48px;
    }

    .club-hero-content h2 {
        font-size: 42px;
    }

    .home-content,
    .home-post-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .club-hero {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(0, 13, 31, 0.86) 0%, rgba(0, 27, 58, 0.74) 50%, rgba(0, 27, 58, 0.60) 100%),
            url("/assets/hero.jpg") 68% center / cover no-repeat !important;
    }

    .club-hero-inner {
        padding: 34px 0 64px;
    }

    .club-hero-content h2 {
        font-size: 36px;
    }

    .club-hero-subline {
        font-size: 16px;
    }

    .club-quicklinks {
        grid-template-columns: 1fr;
        margin-top: -34px;
        margin-bottom: 28px;
    }

    .club-quick-card {
        text-align: left;
        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 12px;
        align-items: center;
        padding: 18px;
    }

    .club-quick-icon {
        margin: 0;
        font-size: 34px;
        grid-row: span 3;
    }

    .club-quick-card p {
        margin-bottom: 8px;
    }

    .home-post-image,
    .home-post-placeholder {
        min-height: 190px;
        max-height: 260px;
    }

    .home-post-body {
        padding: 16px;
    }

    .home-post-body h3 {
        font-size: 22px;
    }
}


/* Startseite: Aktuelles und Mitmachen optisch auf gleicher Höhe */
@media (min-width: 951px) {
    .home-content {
        align-items: start !important;
    }

    .home-sidebar {
        margin-top: -18px !important;
    }

    .home-sidebar .info-card:first-child h3 {
        margin-top: 0 !important;
    }
}


/* Startseite: Aktuelles und Mitmachen wirklich auf gleiche Höhe bringen */
@media (min-width: 951px) {
    body .home-content {
        align-items: start !important;
    }

    body .home-content .home-sidebar {
        position: relative !important;
        top: -46px !important;
        margin-top: 0 !important;
    }

    body .home-content .home-sidebar .info-card:first-child {
        padding-top: 24px !important;
    }

    body .home-content .home-sidebar .info-card:first-child h3 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}


/* Startseite: Aktuelles und Mitmachen auf gleiche Höhe */
@media (min-width: 951px) {
    .home-content {
        align-items: start !important;
    }

    .home-content .home-sidebar {
        transform: translateY(-46px) !important;
    }

    .home-content .home-main .section-heading {
        margin-top: 0 !important;
    }

    .home-content .home-sidebar .info-card:first-child {
        margin-top: 0 !important;
    }

    .home-content .home-sidebar .info-card:first-child h3 {
        margin-top: 0 !important;
    }
}


/* Korrektur: Sidebar nicht nach oben verschieben */
@media (min-width: 951px) {
    body .home-content .home-sidebar {
        position: static !important;
        top: auto !important;
        margin-top: 0 !important;
        transform: none !important;
    }

    body .home-content .home-sidebar .info-card:first-child {
        padding-top: 10px !important;
    }

    body .home-content .home-sidebar .info-card:first-child h3 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}


/* Startseite ohne rechte Sidebar */
.home-content {
    grid-template-columns: 1fr !important;
    max-width: 980px;
}

.home-main {
    width: 100%;
}

@media (min-width: 951px) {
    .home-content .home-sidebar {
        display: none !important;
    }
}


/* ============================================================
   Terminseite im modernen Club-Design
   ============================================================ */

.page-hero {
    position: relative;
    background:
        linear-gradient(100deg, rgba(0, 13, 31, 0.96), rgba(0, 27, 58, 0.86)),
        radial-gradient(circle at 82% 30%, rgba(255,193,7,0.24), transparent 22%),
        #001b3a;
    color: white;
    padding: 58px 0 72px;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 46px solid rgba(255,255,255,0.055);
    border-radius: 50%;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h2 {
    color: white !important;
    margin: 0;
    text-transform: uppercase;
    font-weight: 1000;
    letter-spacing: 0.02em;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 0.98;
}

.page-hero h2::after {
    content: "";
    display: block;
    width: 110px;
    height: 7px;
    background: #ffc107;
    margin-top: 18px;
    transform: skewX(-18deg);
}

.page-hero p:not(.club-kicker) {
    max-width: 760px;
    color: rgba(255,255,255,0.88);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.6;
    margin-top: 22px;
}

/* Abstand nach Hero */
.terms-page {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

/* Terminkarten */
.calendar-list {
    display: grid;
    gap: 24px;
}

.event-card {
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1px solid rgba(0,27,58,0.08) !important;
    box-shadow: 0 18px 42px rgba(0, 27, 58, 0.12) !important;
    overflow: hidden;
    position: relative;
}

.event-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 100%;
    background: #ffc107;
}

.event-card > div:last-child {
    min-width: 0;
}

.event-card h3 {
    color: #001b3a !important;
    text-transform: uppercase;
    font-weight: 1000 !important;
    font-size: 28px;
    margin-top: 0;
}

.event-date {
    background: #001b3a !important;
    color: white !important;
    border-radius: 14px !important;
    border-bottom: 6px solid #ffc107 !important;
    box-shadow: 0 10px 22px rgba(0,27,58,0.22);
}

.event-date strong {
    font-size: 34px;
}

.event-date span {
    color: #ffc107 !important;
    font-weight: 950;
}

/* Aktueller Stand */
.vote-summary {
    background: #ffffff !important;
    border: 1px solid #d8e2ec !important;
    border-left: 8px solid #ffc107 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 18px rgba(0,27,58,0.06);
}

.vote-summary strong {
    color: #001b3a;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

/* Rückmeldebox */
.registration-box {
    background: #f8fafc !important;
    border: 1px solid #d8e2ec !important;
    border-top: 6px solid #ffc107 !important;
    border-radius: 16px !important;
    margin-top: 22px;
}

.registration-box h4 {
    color: #001b3a;
    text-transform: uppercase;
    font-weight: 1000;
    letter-spacing: 0.02em;
}

/* Rückmeldungstabelle */
.registration-table {
    border-radius: 14px;
    overflow: hidden;
}

.registration-table th {
    background: #001b3a;
    color: white;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.registration-table td {
    font-weight: 600;
}

/* Formular in Terminseite */
.registration-form input,
.registration-form select,
.registration-form textarea {
    background: white !important;
}

.privacy-note {
    background: #fff7db !important;
    border-left: 6px solid #ffc107 !important;
    border-radius: 12px !important;
}

/* Admin-Aktionen unter Terminen */
.event-card .frontend-admin-actions {
    border-top: 1px solid #d8e2ec;
    margin-top: 20px;
    padding-top: 14px;
}

/* Mobile Terminseite */
@media (max-width: 700px) {
    .page-hero {
        padding: 38px 0 54px;
    }

    .page-hero h2 {
        font-size: 34px;
    }

    .page-hero p:not(.club-kicker) {
        font-size: 16px;
    }

    .terms-page {
        margin-top: -24px;
    }

    .event-card h3 {
        font-size: 24px;
    }

    .event-date strong {
        font-size: 26px;
    }

    .registration-box {
        padding: 14px !important;
    }
}


/* ============================================================
   Vereinsseite im modernen Club-Design
   ============================================================ */

.club-info-page {
    margin-top: -36px;
    position: relative;
    z-index: 5;
    display: grid;
    gap: 22px;
}

.club-info-card {
    position: relative;
    border-radius: 18px !important;
    border: 1px solid rgba(0,27,58,0.08) !important;
    box-shadow: 0 18px 42px rgba(0, 27, 58, 0.11) !important;
    overflow: hidden;
    padding: 26px !important;
    background: #ffffff !important;
}

.club-info-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 100%;
    background: #ffc107;
}

.club-info-card h3 {
    color: #001b3a !important;
    text-transform: uppercase;
    font-weight: 1000 !important;
    letter-spacing: 0.02em;
    margin-top: 0;
    font-size: 26px;
}

.club-info-card p {
    font-size: 17px;
    line-height: 1.7;
}

.club-info-card .frontend-admin-actions {
    border-top: 1px solid #d8e2ec;
    padding-top: 14px;
    margin-top: 18px;
}

/* Admin-Button oben auf Vereinsseite */
.club-info-page > .frontend-admin-actions {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(0, 27, 58, 0.10);
}

/* Mobile Vereinsseite */
@media (max-width: 700px) {
    .club-info-page {
        margin-top: -24px;
        gap: 16px;
    }

    .club-info-card {
        padding: 20px !important;
    }

    .club-info-card h3 {
        font-size: 22px;
    }

    .club-info-card p {
        font-size: 16px;
    }
}


/* ============================================================
   Bilderseite im modernen Club-Design
   ============================================================ */

.gallery-page {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.gallery-page > .frontend-admin-actions,
.gallery-page > p.frontend-admin-actions {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(0, 27, 58, 0.10);
    margin-bottom: 22px;
}

.image-category-section {
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1px solid rgba(0,27,58,0.08) !important;
    box-shadow: 0 18px 42px rgba(0, 27, 58, 0.11) !important;
    overflow: hidden;
    padding: 26px !important;
    margin-top: 24px !important;
    position: relative;
}

.image-category-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 100%;
    background: #ffc107;
}

.image-category-header {
    border-bottom: 0 !important;
    padding-bottom: 18px !important;
    margin-bottom: 20px !important;
    position: relative;
}

.image-category-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90px;
    height: 6px;
    background: #ffc107;
    transform: skewX(-18deg);
}

.image-category-header h3 {
    color: #001b3a !important;
    text-transform: uppercase;
    font-weight: 1000 !important;
    letter-spacing: 0.02em;
    margin: 0 0 8px 0 !important;
    font-size: 30px !important;
}

.image-category-date {
    display: inline-block;
    background: #001b3a;
    color: #ffc107 !important;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 950 !important;
    margin: 4px 0 10px !important;
}

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

.gallery figure {
    margin: 0;
    background: #ffffff;
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid #d8e2ec;
    box-shadow: 0 12px 28px rgba(0, 27, 58, 0.10) !important;
}

.gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    filter: saturate(1.08) contrast(1.04);
}

.gallery figcaption {
    padding: 12px;
    color: #001b3a;
    font-weight: 800;
    background: #ffffff;
}

.image-move-form {
    margin-top: 12px !important;
    padding: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #d8e2ec !important;
    border-radius: 12px !important;
}

/* Mobile Bilderseite */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery img {
        height: 220px;
    }
}

@media (max-width: 700px) {
    .gallery-page {
        margin-top: -24px;
    }

    .image-category-section {
        padding: 20px !important;
    }

    .image-category-header h3 {
        font-size: 24px !important;
    }

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

    .gallery img {
        height: 240px;
    }
}


/* ============================================================
   Kompaktere Buttons, besonders mobil
   ============================================================ */

.button,
button,
.club-primary-button,
.club-outline-button {
    min-height: 40px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
}

.button.small,
button.small {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
    line-height: 1.1 !important;
}

.club-primary-button,
.club-outline-button {
    min-height: 44px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
}

.frontend-admin-actions,
.home-post-admin-actions {
    gap: 6px !important;
}

.frontend-admin-actions .button,
.frontend-admin-actions button,
.home-post-admin-actions .button,
.home-post-admin-actions button {
    min-height: 32px !important;
    padding: 6px 9px !important;
    font-size: 12px !important;
}

/* Inline-Editor-Buttons aus den Bearbeitungsseiten */
form button[type="submit"][style],
form a[style] {
    width: 108px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
}

/* Mobile: noch etwas kompakter */
@media (max-width: 700px) {
    .button,
    button,
    .club-primary-button,
    .club-outline-button {
        min-height: 38px !important;
        padding: 0 13px !important;
        font-size: 13px !important;
        box-shadow: none !important;
    }

    .button.small,
    button.small {
        min-height: 31px !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    .frontend-admin-actions,
    .home-post-admin-actions {
        gap: 5px !important;
    }

    .frontend-admin-actions .button,
    .frontend-admin-actions button,
    .home-post-admin-actions .button,
    .home-post-admin-actions button {
        min-height: 30px !important;
        padding: 5px 8px !important;
        font-size: 11px !important;
    }

    form button[type="submit"][style],
    form a[style] {
        width: 100px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 8px !important;
        font-size: 13px !important;
    }

    .registration-actions .button,
    .registration-actions button {
        min-height: 30px !important;
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
}


/* Rückmeldungen: Bearbeiten/Löschen exakt gleich hoch */
.registration-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.registration-actions .button,
.registration-actions button,
.registration-actions a.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

/* Formular um den Löschen-Button darf keine eigene Höhe/Abstände erzeugen */
.registration-actions .frontend-inline-form {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Mobile Kartenansicht: Buttons weiterhin sauber nebeneinander */
@media (max-width: 700px) {
    .registration-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .registration-actions .button,
    .registration-actions button,
    .registration-actions a.button {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
    }
}


/* ============================================================
   Editor-Seiten im Club-Design
   ============================================================ */

.page-hero-editor {
    background:
        linear-gradient(100deg, rgba(0, 13, 31, 0.97), rgba(0, 27, 58, 0.88)),
        radial-gradient(circle at 82% 30%, rgba(255,193,7,0.22), transparent 22%),
        #001b3a !important;
    color: white;
    padding: 46px 0 62px;
    position: relative;
    overflow: hidden;
}

.page-hero-editor::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -170px;
    width: 390px;
    height: 390px;
    border: 42px solid rgba(255,255,255,0.055);
    border-radius: 50%;
}

.page-hero-editor .container {
    position: relative;
    z-index: 2;
}

.page-hero-editor h2 {
    color: white !important;
    margin: 0;
    text-transform: uppercase;
    font-weight: 1000;
    letter-spacing: 0.02em;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
}

.page-hero-editor h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 6px;
    background: #ffc107;
    margin-top: 16px;
    transform: skewX(-18deg);
}

.page-hero-editor p:not(.club-kicker) {
    max-width: 720px;
    color: rgba(255,255,255,0.88);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.6;
    margin-top: 20px;
}

.editor-page {
    margin-top: -32px;
    position: relative;
    z-index: 5;
    max-width: 900px;
}

.editor-card,
.editor-page .card,
.editor-page form.card {
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1px solid rgba(0,27,58,0.08) !important;
    box-shadow: 0 18px 42px rgba(0, 27, 58, 0.12) !important;
    padding: 26px !important;
    position: relative;
    overflow: hidden;
}

.editor-card::before,
.editor-page form.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 100%;
    background: #ffc107;
}

.editor-page label {
    color: #001b3a;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 13px;
}

.editor-page input,
.editor-page select,
.editor-page textarea {
    margin-top: 7px;
    background: #f8fafc !important;
    border: 2px solid #d8e2ec !important;
    border-radius: 10px !important;
    padding: 12px !important;
    font-size: 16px;
}

.editor-page textarea {
    min-height: 180px;
}

.editor-page input:focus,
.editor-page select:focus,
.editor-page textarea:focus {
    background: #ffffff !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 4px rgba(255,193,7,0.22) !important;
}

.editor-page .notice {
    border-radius: 14px;
    border-left: 7px solid #ffc107;
    box-shadow: 0 10px 24px rgba(0,27,58,0.08);
}

.editor-page .notice.error {
    border-left-color: #dc2626;
}

/* Editor-Aktionsbuttons kompakt und gleichmäßig */
.editor-page form button[type="submit"][style],
.editor-page form a[style] {
    width: 108px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

/* Datei-Auswahl schöner */
.editor-page input[type="file"] {
    cursor: pointer;
    background: #ffffff !important;
}

/* Rückmeldung bearbeiten: Löschformular etwas absetzen */
.editor-page form + form {
    margin-top: 18px;
}

/* Mobile Editor-Seiten */
@media (max-width: 700px) {
    .page-hero-editor {
        padding: 34px 0 52px;
    }

    .page-hero-editor h2 {
        font-size: 30px;
    }

    .page-hero-editor p:not(.club-kicker) {
        font-size: 15px;
    }

    .editor-page {
        margin-top: -24px;
        max-width: none;
    }

    .editor-card,
    .editor-page .card,
    .editor-page form.card {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .editor-page label {
        font-size: 12px;
    }

    .editor-page input,
    .editor-page select,
    .editor-page textarea {
        font-size: 16px;
        padding: 11px !important;
    }

    .editor-page textarea {
        min-height: 150px;
    }
}


/* ============================================================
   Aufgeräumter Admin-Bereich
   ============================================================ */

.admin-dashboard-page {
    margin-top: -32px;
    position: relative;
    z-index: 5;
}

.admin-dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-dashboard-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: #001b3a;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0,27,58,0.08);
    box-shadow: 0 16px 36px rgba(0, 27, 58, 0.10);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.admin-dashboard-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 7px;
    height: 100%;
    background: #ffc107;
}

.admin-dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(0, 27, 58, 0.16);
}

.admin-dashboard-card span {
    font-size: 34px;
    line-height: 1;
    text-align: center;
}

.admin-dashboard-card strong {
    display: block;
    text-transform: uppercase;
    font-weight: 1000;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.admin-dashboard-card small {
    display: block;
    color: #475569;
    line-height: 1.45;
}

.admin-backup-card {
    margin-top: 22px;
}

.admin-backup-card h3 {
    margin-top: 0;
}

.admin-backup-card pre {
    background: #001b3a;
    color: #ffc107;
    padding: 14px;
    border-radius: 12px;
    overflow-x: auto;
}

.admin-backup-card code {
    font-family: monospace;
}

@media (max-width: 760px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-card {
        grid-template-columns: 44px 1fr;
        padding: 16px;
    }

    .admin-dashboard-card span {
        font-size: 28px;
    }
}


/* Editierbare Rechtstexte */
.legal-text-card {
    max-width: 900px;
}

.legal-text {
    white-space: normal;
    font-size: 16px;
    line-height: 1.75;
    color: #1f2937;
}

.legal-text strong {
    color: #001b3a;
}

.legal-text-card .frontend-admin-actions {
    border-bottom: 1px solid #d8e2ec;
    padding-bottom: 14px;
    margin-bottom: 18px;
}


/* Startseite: Beitragsbild eleganter und kompakter */
.home-post-card {
    grid-template-columns: 180px 1fr !important;
    align-items: stretch !important;
}

.home-post-image,
.home-post-placeholder {
    min-height: 180px !important;
    height: 180px !important;
    max-height: 180px !important;
}

.home-post-image {
    object-fit: cover !important;
}

.home-post-placeholder {
    font-size: 46px !important;
}

.home-post-body {
    padding: 18px 20px !important;
}

.home-post-body h3 {
    font-size: 22px !important;
    margin: 8px 0 10px 0 !important;
}

.home-post-body p {
    margin: 0 !important;
    line-height: 1.55 !important;
}

/* Etwas großzügiger auf großen Screens */
@media (min-width: 1200px) {
    .home-post-card {
        grid-template-columns: 190px 1fr !important;
    }

    .home-post-image,
    .home-post-placeholder {
        min-height: 185px !important;
        height: 185px !important;
        max-height: 185px !important;
    }
}

/* Mobil weiter sauber */
@media (max-width: 950px) {
    .home-post-card {
        grid-template-columns: 1fr !important;
    }

    .home-post-image,
    .home-post-placeholder {
        min-height: 170px !important;
        height: 170px !important;
        max-height: 220px !important;
    }
}


/* Startseite: Beiträge als elegante News-Zeilen mit kleinem Thumbnail */
.home-post-card {
    grid-template-columns: 96px 1fr !important;
    min-height: 130px !important;
    align-items: stretch !important;
    border-radius: 16px !important;
}

.home-post-card::before {
    width: 6px !important;
}

.home-post-image,
.home-post-placeholder {
    width: 96px !important;
    min-width: 96px !important;
    height: 100% !important;
    min-height: 130px !important;
    max-height: none !important;
    border-radius: 0 !important;
}

.home-post-image {
    object-fit: cover !important;
}

.home-post-placeholder {
    font-size: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.home-post-body {
    padding: 16px 18px !important;
}

.home-post-body small {
    display: block !important;
    font-size: 12px !important;
    margin-bottom: 6px !important;
}

.home-post-body h3 {
    font-size: 21px !important;
    line-height: 1.15 !important;
    margin: 0 0 8px 0 !important;
}

.home-post-body p {
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.post-grid {
    gap: 14px !important;
}

/* Admin-Buttons in News-Karten kompakter */
.home-post-admin-actions {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
}

/* Mobile: Thumbnail bleibt links, aber noch kompakter */
@media (max-width: 620px) {
    .home-post-card {
        grid-template-columns: 76px 1fr !important;
        min-height: 118px !important;
    }

    .home-post-image,
    .home-post-placeholder {
        width: 76px !important;
        min-width: 76px !important;
        min-height: 118px !important;
    }

    .home-post-placeholder {
        font-size: 28px !important;
    }

    .home-post-body {
        padding: 13px 14px !important;
    }

    .home-post-body h3 {
        font-size: 18px !important;
    }

    .home-post-body p {
        font-size: 14px !important;
    }
}

/* Sehr schmal: wenn es eng wird, Thumbnail oben */
@media (max-width: 380px) {
    .home-post-card {
        grid-template-columns: 1fr !important;
    }

    .home-post-image,
    .home-post-placeholder {
        width: 100% !important;
        min-width: 100% !important;
        height: 140px !important;
        min-height: 140px !important;
    }
}


/* Eleganter Platzhalter für Beiträge ohne Bild */
.home-post-placeholder {
    position: relative !important;
    background:
        radial-gradient(circle at center, rgba(255,193,7,0.18), transparent 42%),
        linear-gradient(145deg, #001b3a, #061f42) !important;
    overflow: hidden !important;
}

.home-post-placeholder::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(255,255,255,0.16);
    border-radius: 12px;
}

.home-post-placeholder::after {
    content: "";
    position: absolute;
    left: -20px;
    bottom: -20px;
    width: 70px;
    height: 70px;
    border: 12px solid rgba(255,193,7,0.18);
    border-radius: 50%;
}

.home-post-placeholder span {
    position: relative;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    font-size: 25px !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

/* Mobile etwas kleiner */
@media (max-width: 620px) {
    .home-post-placeholder span {
        width: 38px;
        height: 38px;
        font-size: 21px !important;
    }

    .home-post-placeholder::before {
        inset: 8px;
    }
}


/* ============================================================
   Dokumentenbereich
   ============================================================ */

.documents-page {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.documents-admin-actions {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(0, 27, 58, 0.10);
    margin-bottom: 22px;
}

.documents-grid {
    display: grid;
    gap: 18px;
}

.document-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    align-items: center;
    border-radius: 18px !important;
    border: 1px solid rgba(0,27,58,0.08) !important;
    box-shadow: 0 18px 42px rgba(0, 27, 58, 0.11) !important;
    padding: 22px !important;
    position: relative;
    overflow: hidden;
}

.document-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 100%;
    background: #ffc107;
}

.document-icon {
    width: 70px;
    height: 82px;
    border-radius: 10px;
    background: #001b3a;
    color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 22px rgba(0,27,58,0.18);
}

.document-content h3 {
    margin: 0 0 8px 0;
    color: #001b3a;
    text-transform: uppercase;
    font-weight: 1000;
}

.document-content p {
    margin: 0 0 10px 0;
}

.document-content small {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 14px;
}

.document-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.document-actions .button,
.document-actions button {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
}

@media (max-width: 700px) {
    .documents-page {
        margin-top: -24px;
    }

    .document-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .document-icon {
        width: 62px;
        height: 72px;
    }
}


/* ============================================================
   Bildergalerie Lightbox
   ============================================================ */

.gallery-lightbox-link {
    display: block;
    cursor: zoom-in;
}

.gallery-lightbox-link img {
    transition: transform 0.18s ease, filter 0.18s ease;
}

.gallery-lightbox-link:hover img {
    transform: scale(1.03);
    filter: saturate(1.12) contrast(1.06);
}

.gallery-lightbox {
    display: none;
}

.gallery-lightbox:target {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 28px;
    background: rgba(0, 13, 31, 0.94);
}

.gallery-lightbox:target img {
    max-width: min(96vw, 1300px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
    background: #001b3a;
}

.gallery-lightbox:target p {
    color: #ffffff;
    margin: 14px 0 0;
    font-weight: 800;
    text-align: center;
}

.gallery-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffc107;
    color: #001b3a;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.gallery-lightbox-close:hover {
    background: #ffb300;
    text-decoration: none;
}

@media (max-width: 700px) {
    .gallery-lightbox:target {
        padding: 18px;
    }

    .gallery-lightbox:target img {
        max-width: 96vw;
        max-height: 78vh;
    }

    .gallery-lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}


/* Lightbox: Originalbild wirklich groß anzeigen */
.gallery .gallery-lightbox:target img,
.gallery-lightbox:target img {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 96vw !important;
    max-height: 86vh !important;
    object-fit: contain !important;
    border-radius: 14px !important;
}

.gallery .gallery-lightbox:target {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    padding: 24px !important;
    background: rgba(0, 13, 31, 0.94) !important;
}

.gallery .gallery-lightbox:target p {
    color: #ffffff !important;
    margin-top: 12px !important;
    text-align: center !important;
}


/* Lightbox: Klick auf dunklen Hintergrund schließt */
.gallery-lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    cursor: zoom-out;
}

.gallery-lightbox:target img,
.gallery-lightbox:target p,
.gallery-lightbox-close {
    position: relative;
    z-index: 2;
}

.gallery-lightbox:target img {
    cursor: default;
}

