/*
Theme Name: ZULAUF | digital
Theme URI: https://wp.zulauf-online.de/
Description: Child-Theme für das Digitalportal ZULAUF.
Author: ZULAUF
Template: twentytwentyfour
Version: 1.0.0
Text Domain: zulauf-digital
*/

/* ZULAUF | digital – Typografie */

body,
button,
input,
textarea,
select {
    font-family: Arial, Helvetica, sans-serif;
    color: #5a5a5a;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-site-title {
    font-family: Arial, Helvetica, sans-serif;
    color: #5a5a5a;
    font-weight: 600;
}

.wp-block-site-title {
    letter-spacing: -0.5px;
}

/* ZULAUF | digital – Einführungsbereich */

.zulauf-hero {
    padding-top: 40px;
    padding-bottom: 40px;
}

.zulauf-hero .wp-block-columns {
    gap: 20px;
}

.zulauf-hero .wp-block-image {
    margin: 0;
}

.zulauf-hero .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 781px) {
    .zulauf-hero {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

/* ZULAUF | digital – Systemstatus */

.zulauf-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.zulauf-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e5e9e7;
    border-radius: 12px;
}

.zulauf-status-dot {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #999999;
}

.zulauf-status--up .zulauf-status-dot {
    background: #9db668;
}

.zulauf-status--down .zulauf-status-dot {
    background: #c84c4c;
}

.zulauf-status-name {
    font-weight: 600;
    color: #5a5a5a;
}

.zulauf-status-label {
    margin-left: auto;
    font-size: 0.85rem;
    color: #777777;
}

.zulauf-status-link {
    margin-top: 20px;
    text-align: right;
}

.zulauf-status-link a {
    color: #1a8292;
    text-decoration: none;
}

.zulauf-status-link a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .zulauf-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .zulauf-status-grid {
        grid-template-columns: 1fr;
    }
}

/* Systemstatus – kompakte, einheitliche Ausrichtung */
.zulauf-status {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 16px 12px;
}

.zulauf-status-name {
    min-width: 0;
    font-size: 0.95rem;
}

.zulauf-status-label {
    margin-left: auto;
    white-space: nowrap;
    font-size: 0.8rem;
}

/* ZULAUF | digital – Navigation */
.wp-block-navigation__container {
    gap: 24px;
}

.wp-block-navigation-item__content {
    color: #5a5a5a;
    text-decoration: none;
}

.wp-block-navigation-item__content:hover {
    color: #1a8292;
}

/* ZULAUF | digital – Footer */
.zulauf-footer {
    border-top: 1px solid #e5e9e7;
    padding-top: 24px;
    font-size: 0.9rem;
    color: #5a5a5a;
}

.zulauf-footer p {
    margin: 0;
}

.zulauf-footer a {
    color: #1a8292;
    text-decoration: none;
}

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

/* ZULAUF | digital – Dienstekacheln */
.zulauf-dienste-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.zulauf-dienste-grid > .zulauf-dienst {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 28px;
    background: #f5f7f7;
    border: 1px solid #e5e9e7;
    border-radius: 12px;
}

.zulauf-dienst h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #073b53;
}

.zulauf-dienst p {
    margin: 0;
}

.zulauf-dienst a {
    color: #1a8292;
    font-weight: 600;
    text-decoration: none;
}

.zulauf-dienst a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .zulauf-dienste-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .zulauf-dienste-grid {
        grid-template-columns: 1fr;
    }
}

/* ZULAUF | digital – Journal */

.zulauf-journal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.zulauf-journal-card {
    min-width: 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e9e7;
    border-radius: 12px;
}

.zulauf-journal-card h3 {
    margin: 0 0 24px;
    font-size: 1.35rem;
}

.zulauf-journal-card h3 a {
    color: #073b53;
    text-decoration: none;
}

.zulauf-journal-card h3 a:hover {
    color: #1a8292;
}

.zulauf-journal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zulauf-journal-list li {
    margin-bottom: 22px;
}

.zulauf-journal-list li:last-child {
    margin-bottom: 0;
}

.zulauf-journal-list time {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: #777777;
}

.zulauf-journal-list li a {
    display: block;
    color: #1a8292;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.zulauf-journal-list li a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .zulauf-journal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .zulauf-journal-grid {
        grid-template-columns: 1fr;
    }
}

/* Verlinkte Dienstüberschriften */
.zulauf-dienst h3 a {
    color: #073b53;
    text-decoration: none;
}

.zulauf-dienst h3 a:hover,
.zulauf-dienst h3 a:focus-visible {
    color: #1a8292;
    text-decoration: underline;
}


/* ZULAUF | digital – Berichtsdesign */

/* Überschriften */
body.single-post .wp-block-post-title,
body.single-post .wp-block-post-content h2,
body.single-post .wp-block-post-content h3 {
    color: #073B53;
}

/* Statistiktabellen */
body.single-post .wp-block-table {
    overflow-x: auto;
}

body.single-post .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

body.single-post .wp-block-table th {
    background: #073B53;
    color: #ffffff;
    font-weight: 600;
    border: 1px solid #073B53;
    padding: 12px 14px;
}

body.single-post .wp-block-table td {
    border: 1px solid #E1E7EA;
    padding: 12px 14px;
}

body.single-post .wp-block-table tbody tr:nth-child(even) {
    background: #f6f8f5;
}

body.single-post .wp-block-table tbody tr:last-child td {
    border-bottom: 2px solid #9DB668;
}


/* ZULAUF | digital – Berichte in Vorbereitung */

.zulauf-bericht-pending .wp-block-image img {
    opacity: 0.65;
    filter: grayscale(55%);
}

.zulauf-bericht-pending > p:last-child {
    color: #64756a;
    font-size: 0.9rem;
}

#berichte {
    color: #073B53;
}


/* ZULAUF | digital – Berichtskacheln Layoutkorrektur */

/* WordPress-Blocklayout für das Raster überschreiben */
body .is-layout-constrained > .zulauf-berichte-grid,
body .zulauf-berichte-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    align-items: stretch;
}

/* WordPress-Standardabstände innerhalb des Rasters neutralisieren */
body .zulauf-berichte-grid > .zulauf-bericht-card {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
}

/* Einheitliche Bilder */
.zulauf-bericht-card .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Zukünftige Berichte mit Weiß aufhellen */
.zulauf-bericht-pending .wp-block-image img {
    opacity: 1;
    filter: none;
}

.zulauf-bericht-pending .wp-block-image {
    position: relative;
}

.zulauf-bericht-pending .wp-block-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

/* Responsive Darstellung */
@media (max-width: 900px) {
    body .is-layout-constrained > .zulauf-berichte-grid,
    body .zulauf-berichte-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    body .is-layout-constrained > .zulauf-berichte-grid,
    body .zulauf-berichte-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ZULAUF | digital – Einheitliche Berichtsbilder */

.zulauf-berichte-grid .zulauf-bericht-card .wp-block-image {
    width: 100%;
    aspect-ratio: 2.35 / 1;
    margin: 0 0 18px;
    overflow: hidden;
    background: #073B53;
}

.zulauf-berichte-grid .zulauf-bericht-card .wp-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ZULAUF | digital – Berichtsbilder ohne künstliche Begrenzung */

body .zulauf-berichte-grid .zulauf-bericht-card .wp-block-image {
    aspect-ratio: auto !important;
    height: auto !important;
    overflow: hidden;
    background: transparent;
}

body .zulauf-berichte-grid .zulauf-bericht-card .wp-block-image img {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: initial !important;
}


/* ZULAUF | digital – Abgerundete Berichtsbilder */

.zulauf-berichte-grid .zulauf-bericht-card .wp-block-image {
    border-radius: 12px;
    overflow: hidden;
}


/* ZULAUF | digital – Einheitliche Startseitenbreite */

/* Nur Startseite 2931 */
body.page-id-2931 .wp-block-post-content > .alignwide {
    width: calc(100% - 32px);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Einführungsbereich */
body.page-id-2931 .zulauf-hero {
    max-width: 1100px;
}


/* ZULAUF | digital – Dienstesymbole */

body.page-id-2931 .zulauf-dienst h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.page-id-2931 .zulauf-dienst h3::before {
    content: "";
    display: inline-block;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

body.page-id-2931 .zulauf-dienst:nth-child(1) h3::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231A8292%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m3%207%209%206%209-6%22%2F%3E%3C%2Fsvg%3E");
}

body.page-id-2931 .zulauf-dienst:nth-child(2) h3::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231A8292%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%2018h11a4%204%200%200%200%20.2-8A6%206%200%200%200%206.5%209%204.5%204.5%200%200%200%207%2018Z%22%2F%3E%3C%2Fsvg%3E");
}

body.page-id-2931 .zulauf-dienst:nth-child(3) h3::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231A8292%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h9l4%204v14H6z%22%2F%3E%3Cpath%20d%3D%22M15%203v5h4M9%2012h7M9%2016h7%22%2F%3E%3C%2Fsvg%3E");
}

body.page-id-2931 .zulauf-dienst:nth-child(4) h3::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231A8292%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m6%209%201.5%201.5L10%208M12%209h6m-12%206%201.5%201.5L10%2014m2%201h6%22%2F%3E%3C%2Fsvg%3E");
}

body.page-id-2931 .zulauf-dienst:nth-child(5) h3::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231A8292%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M3%2012h18M12%203c-5%205-5%2013%200%2018M12%203c5%205%205%2013%200%2018%22%2F%3E%3C%2Fsvg%3E");
}

body.page-id-2931 .zulauf-dienst:nth-child(6) h3::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231A8292%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%206c-3-2-6-2-9-1v14c3-1%206-1%209%201%203-2%206-2%209-1V5c-3-1-6-1-9%201ZM12%206v14%22%2F%3E%3C%2Fsvg%3E");
}


/* ZULAUF | digital – Größere Dienstesymbole */

body.page-id-2931 .zulauf-dienst h3::before {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
}


/* ZULAUF | digital – Dunkler Journalbereich */

body.page-id-2931 .zulauf-journal-section {
    background: #073B53;
    border-radius: 14px;
    padding: 36px;
    margin-top: 32px;
    margin-bottom: 40px;
}

body.page-id-2931 .zulauf-journal-section #journal {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 24px;
}

body.page-id-2931 .zulauf-journal-section .zulauf-journal-grid {
    margin-top: 0;
}

body.page-id-2931 .zulauf-journal-section .zulauf-journal-card {
    background: #10516A;
    border: 1px solid #28667A;
    border-radius: 12px;
}

body.page-id-2931 .zulauf-journal-section .zulauf-journal-card h3,
body.page-id-2931 .zulauf-journal-section .zulauf-journal-card h3 a {
    color: #ffffff;
}

body.page-id-2931 .zulauf-journal-section .zulauf-journal-list time {
    color: #B7CDD5;
}

body.page-id-2931 .zulauf-journal-section .zulauf-journal-list li a {
    color: #C3DC83;
}

body.page-id-2931 .zulauf-journal-section .zulauf-journal-list li a:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    body.page-id-2931 .zulauf-journal-section {
        padding: 20px;
    }
}


/* ZULAUF | digital – Systemstatus-Icons */

body.page-id-2931 .zulauf-status-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.page-id-2931 .zulauf-status-name::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

body.page-id-2931 .zulauf-status:nth-child(1) .zulauf-status-name::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231A8292%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%227%22%20rx%3D%222%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2214%22%20width%3D%2216%22%20height%3D%227%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%206.5h.01M8%2017.5h.01M12%206.5h5M12%2017.5h5%22%2F%3E%3C%2Fsvg%3E");
}

body.page-id-2931 .zulauf-status:nth-child(2) .zulauf-status-name::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231A8292%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m3%207%209%206%209-6%22%2F%3E%3C%2Fsvg%3E");
}

body.page-id-2931 .zulauf-status:nth-child(3) .zulauf-status-name::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231A8292%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m3%207%209%206%209-6%22%2F%3E%3Cpath%20d%3D%22m14%2016%202%202%204-4%22%2F%3E%3C%2Fsvg%3E");
}

body.page-id-2931 .zulauf-status:nth-child(4) .zulauf-status-name::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231A8292%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M3%2012h18M12%203c-5%205-5%2013%200%2018M12%203c5%205%205%2013%200%2018%22%2F%3E%3C%2Fsvg%3E");
}


/* ZULAUF | digital – Dunkler Systemstatus */

body.page-id-2931 .zulauf-status-section {
    background: #073B53;
    border-radius: 14px;
    padding: 36px;
    margin-top: 32px;
    margin-bottom: 40px;
}

body.page-id-2931 .zulauf-status-section #status {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 24px;
}

body.page-id-2931 .zulauf-status-section .zulauf-status-grid {
    margin-top: 0;
}

body.page-id-2931 .zulauf-status-section .zulauf-status {
    background: #10516A;
    border: 1px solid #28667A;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

body.page-id-2931 .zulauf-status-section .zulauf-status:hover,
body.page-id-2931 .zulauf-status-section .zulauf-status:focus-visible {
    background: #17647E;
}

body.page-id-2931 .zulauf-status-section .zulauf-status:focus-visible {
    outline: 2px solid #C3DC83;
    outline-offset: 3px;
}

body.page-id-2931 .zulauf-status-section .zulauf-status-name {
    color: #ffffff;
}

body.page-id-2931 .zulauf-status-section .zulauf-status-label {
    color: #B7CDD5;
}

/* Die SVG-Icons werden bereits per CSS eingebunden.
   Ihre Farbe wird über einen Farbfilter angepasst. */
body.page-id-2931 .zulauf-status-section .zulauf-status-name::before {
    filter: brightness(0) saturate(100%)
            invert(84%) sepia(20%) saturate(594%)
            hue-rotate(31deg) brightness(99%) contrast(90%);
}

@media (max-width: 600px) {
    body.page-id-2931 .zulauf-status-section {
        padding: 20px;
    }
}

/* ==================================================
   ZULAUF | digital – Aktuelles aus WordPress
   ================================================== */

body.page-id-2931 .zulauf-wordpress-updates {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1100px;
    margin: 0 auto 32px;
    padding: 28px 32px;
    background: #f4f6f6;
    border: 1px solid #dfe6e7;
    border-radius: 14px;
}

.zulauf-wordpress-updates-label {
    color: #168b9b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.zulauf-wordpress-update h3 {
    color: #073b53;
    font-size: 28px;
    margin: 0 0 8px;
}

.zulauf-wordpress-update h3 a {
    color: inherit;
    text-decoration: none;
}

.zulauf-wordpress-update time {
    display: block;
    color: #64747b;
    font-size: 14px;
    margin-bottom: 16px;
}

.zulauf-wordpress-update p {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.zulauf-wordpress-update-links a,
.zulauf-wordpress-updates-footer a {
    color: #07899a;
    font-weight: 600;
    text-decoration: underline;
}

.zulauf-wordpress-updates-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #dce5e7;
}

@media (max-width: 600px) {
    body.page-id-2931 .zulauf-wordpress-updates {
        padding: 20px;
    }

    .zulauf-wordpress-update h3 {
        font-size: 23px;
    }
}





/* ZULAUF | digital – Lindgrüner Akzent */

body.page-id-2931 .zulauf-wordpress-updates {
    border-left: 5px solid #9db668;
}


/* ==================================================
   ZULAUF | digital – Kompaktes Updates-Layout
   ================================================== */

body.page-id-2931 .zulauf-wordpress-updates {
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
    padding: 22px 28px;
    border-left: 5px solid #9db668;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    column-gap: 32px;
    align-items: center;
}

body.page-id-2931 .zulauf-wordpress-updates-label {
    grid-column: 1 / -1;
    font-size: 13px;
    margin-bottom: 10px;
}

body.page-id-2931 .zulauf-wordpress-updates-label::before {
    content: none;
}

body.page-id-2931 .zulauf-wordpress-updates-label {
    font-size: 0;
}

body.page-id-2931 .zulauf-wordpress-updates-label::after {
    content: "AKTUELLES & UPDATES";
    font-size: 13px;
}

body.page-id-2931 .zulauf-wordpress-update {
    display: contents;
}

body.page-id-2931 .zulauf-wordpress-update h3 {
    grid-column: 1;
    font-size: 24px;
    margin-bottom: 5px;
}

body.page-id-2931 .zulauf-wordpress-update time {
    grid-column: 1;
    margin-bottom: 8px;
}

body.page-id-2931 .zulauf-wordpress-update p {
    grid-column: 1;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

body.page-id-2931 .zulauf-wordpress-update-links {
    grid-column: 2;
    grid-row: 2 / 5;
    align-self: center;
}

body.page-id-2931 .zulauf-wordpress-update-links a {
    display: block;
    padding: 12px 16px;
    background: #073b53;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
}

body.page-id-2931 .zulauf-wordpress-update-links a:hover {
    background: #9db668;
    color: #073b53;
}

body.page-id-2931 .zulauf-wordpress-updates-footer {
    grid-column: 2;
    grid-row: 5;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 700px) {
    body.page-id-2931 .zulauf-wordpress-updates {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
        row-gap: 8px;
    }

    body.page-id-2931 .zulauf-wordpress-update h3,
    body.page-id-2931 .zulauf-wordpress-update time,
    body.page-id-2931 .zulauf-wordpress-update p,
    body.page-id-2931 .zulauf-wordpress-update-links,
    body.page-id-2931 .zulauf-wordpress-updates-footer {
        grid-column: 1;
        grid-row: auto;
    }

    body.page-id-2931 .zulauf-wordpress-update-links {
        margin-top: 12px;
    }

    body.page-id-2931 .zulauf-wordpress-updates-footer {
        margin-top: 4px;
    }
}


/* ==================================================
   ZULAUF | digital – Updates: finale Aktionsgruppe
   ================================================== */

/* Beschriftung wieder regulär anzeigen */
body.page-id-2931 .zulauf-wordpress-updates-label {
    font-size: 13px;
}

body.page-id-2931 .zulauf-wordpress-updates-label::after {
    content: none;
}

/* Artikelinhalt bleibt Teil des übergeordneten Rasters */
body.page-id-2931 .zulauf-wordpress-update {
    display: contents;
}

/* Beide Links als gemeinsame rechte Spalte */
body.page-id-2931 .zulauf-wordpress-update-actions {
    grid-column: 2;
    grid-row: 2 / 5;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Alte Grid-Zuweisungen der einzelnen Links aufheben */
body.page-id-2931 .zulauf-wordpress-update-actions
.zulauf-wordpress-update-links,
body.page-id-2931 .zulauf-wordpress-update-actions
.zulauf-wordpress-updates-footer {
    grid-column: auto;
    grid-row: auto;
}

/* Zweiter Link direkt unter dem Button */
body.page-id-2931 .zulauf-wordpress-update-actions
.zulauf-wordpress-updates-footer {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: center;
}

/* Mobile Darstellung */
@media (max-width: 700px) {
    body.page-id-2931 .zulauf-wordpress-update-actions {
        grid-column: 1;
        grid-row: auto;
        margin-top: 12px;
    }
}


/* ==================================================
   ZULAUF | digital – WordPress-Kategoriearchiv
   ================================================== */

.zulauf-wordpress-archiv {
    padding-top: 32px;
    padding-bottom: 56px;
}

.zulauf-wordpress-archiv-intro {
    margin-bottom: 32px;
}

.zulauf-wordpress-archiv-intro h1 {
    color: #073b53;
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: 12px;
}

.zulauf-wordpress-archiv-intro p {
    color: #64747b;
    font-size: 17px;
    line-height: 1.6;
}

.zulauf-wordpress-archiv-grid {
    gap: 24px;
}

.zulauf-wordpress-archiv-card {
    box-sizing: border-box;
    height: 100%;
    padding: 24px;
    background: #f4f6f6;
    border: 1px solid #dfe6e7;
    border-top: 5px solid #9db668;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.zulauf-wordpress-archiv-card .wp-block-post-title {
    font-size: 21px;
    line-height: 1.3;
    margin: 0 0 12px;
}

.zulauf-wordpress-archiv-card .wp-block-post-title a {
    color: #073b53;
    text-decoration: none;
}

.zulauf-wordpress-archiv-card .wp-block-post-title a:hover {
    color: #07899a;
}

.zulauf-wordpress-archiv-card .wp-block-post-date {
    color: #64747b;
    font-size: 14px;
    margin-bottom: 14px;
}

.zulauf-wordpress-archiv-card .wp-block-post-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 0;
}

.zulauf-wordpress-archiv-card .wp-block-post-excerpt__more-link {
    color: #07899a;
    font-weight: 700;
    text-decoration: none;
}

.zulauf-wordpress-archiv-query .wp-block-query-pagination {
    margin-top: 32px;
}

@media (max-width: 900px) {
    .zulauf-wordpress-archiv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .zulauf-wordpress-archiv {
        padding-top: 20px;
    }

    .zulauf-wordpress-archiv-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .zulauf-wordpress-archiv-card {
        padding: 20px;
    }
}


/* WordPress-Archiv: kompaktere Karten und engere Datumsanordnung */

.zulauf-wordpress-archiv-card {
    padding: 20px 24px;
    gap: 0;
}

.zulauf-wordpress-archiv-card .wp-block-post-title {
    margin: 0 0 5px;
    line-height: 1.3;
}

.zulauf-wordpress-archiv-card .wp-block-post-date {
    margin: 0 0 14px;
    text-align: left;
    font-size: 13px;
}

.zulauf-wordpress-archiv-card .wp-block-post-excerpt {
    margin: 0;
}

.zulauf-wordpress-archiv-card .wp-block-post-excerpt__excerpt {
    margin-top: 0;
    margin-bottom: 12px;
}

.zulauf-wordpress-archiv-card .wp-block-post-excerpt__more-text {
    margin-top: 0;
}


/* WordPress-Archiv: Datum direkt unter dem Titel links ausrichten */
.zulauf-wordpress-archiv-card .wp-block-post-date,
.zulauf-wordpress-archiv-card .wp-block-post-date time {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    align-self: flex-start;
}


/* WordPress-Archiv: alle Beitragstitel einheitlich linksbündig */
.zulauf-wordpress-archiv-card .wp-block-post-title {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    width: 100%;
}

/* WordPress-Archiv: fortlaufende chronologische Nummerierung */

.zulauf-wordpress-archiv-grid {
    counter-reset: zulauf-beitrag var(--zulauf-archiv-start, 0);
}

.zulauf-wordpress-archiv-grid > .wp-block-post {
    counter-increment: zulauf-beitrag;
}

.zulauf-wordpress-archiv-card::before {
    content: counter(zulauf-beitrag, decimal-leading-zero);
    display: block;
    color: #718a43;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

/* WordPress-Archiv: große Nummer links neben dem Beitragstitel */

.zulauf-wordpress-archiv-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
    align-content: start;
    align-items: start;
}

.zulauf-wordpress-archiv-card::before {
    grid-column: 1;
    grid-row: 1;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #9db668;
    margin: 0;
}

.zulauf-wordpress-archiv-card > .wp-block-post-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 6px !important;
}

.zulauf-wordpress-archiv-card > .wp-block-post-date {
    grid-column: 2;
    grid-row: 2;
}

.zulauf-wordpress-archiv-card > .wp-block-post-excerpt {
    grid-column: 2;
    grid-row: 3;
}


/* WordPress-Archiv: Nummer neben Titel, übriger Inhalt in voller Breite */

.zulauf-wordpress-archiv-card > .wp-block-post-date {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
}

.zulauf-wordpress-archiv-card > .wp-block-post-excerpt {
    grid-column: 1 / -1;
    grid-row: 3;
}

/*
 * ZULAUF | digital
 * Kompakter Beitragskopf für WordPress-Einzelbeiträge
 */

.zulauf-wordpress-single-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px 36px;
    align-items: center;
    max-width: 1000px;
    margin: 32px auto 28px;
}

.zulauf-wordpress-single-title {
    min-width: 0;
}

.zulauf-wordpress-single-title .wp-block-post-title {
    margin-top: 0;
    margin-bottom: 14px;
    color: #073b53;
}

.zulauf-wordpress-single-image {
    width: 100%;
    max-width: 260px;
    margin: 0;
    justify-self: end;
}

.zulauf-wordpress-single-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Darstellung auf Smartphones */
@media (max-width: 700px) {
    .zulauf-wordpress-single-header {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 24px;
    }

    .zulauf-wordpress-single-image {
        grid-row: 1;
        max-width: 150px;
        justify-self: start;
    }
}

/* ==================================================
   ZULAUF | digital – Newsletter im Footer
   ================================================== */

.zulauf-newsletter {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto 32px;
    padding: 28px 32px;
    background: #f3f7f5;
    border: 1px solid #dce5e0;
    border-left: 4px solid #9db668;
    border-radius: 12px;
}

.zulauf-newsletter-inner {
    max-width: 720px;
}

.zulauf-newsletter h2 {
    margin: 0 0 10px;
    color: #073b53;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.25;
}

.zulauf-newsletter p {
    margin: 0 0 22px;
    color: #073b53;
    line-height: 1.6;
}

.zulauf-newsletter-field label {
    display: block;
    margin-bottom: 8px;
    color: #073b53;
    font-weight: 600;
}

.zulauf-newsletter-field input[type="email"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 480px;
    padding: 12px 14px;
    border: 1px solid #b9cbd0;
    border-radius: 6px;
    background: #fff;
    color: #073b53;
    font: inherit;
}

.zulauf-newsletter-field input[type="email"]:focus-visible,
.zulauf-newsletter button:focus-visible,
.zulauf-newsletter input[type="checkbox"]:focus-visible {
    outline: 3px solid #9db668;
    outline-offset: 3px;
}

.zulauf-newsletter-options,
.zulauf-newsletter-privacy {
    margin-top: 16px;
    color: #073b53;
    font-size: 14px;
    line-height: 1.5;
}

.zulauf-newsletter-options label,
.zulauf-newsletter-privacy label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

.zulauf-newsletter input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 4px;
    accent-color: #1a8292;
}

.zulauf-newsletter-privacy a {
    color: #1a8292;
    text-decoration: underline;
}

.zulauf-newsletter button[type="submit"] {
    margin-top: 22px;
    padding: 12px 22px;
    border: 0;
    border-radius: 6px;
    background: #1a8292;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.zulauf-newsletter button[type="submit"]:hover {
    background: #073b53;
}

@media (max-width: 600px) {
    .zulauf-newsletter {
        padding: 22px 18px;
    }

    .zulauf-newsletter button[type="submit"] {
        width: 100%;
    }
}

/* Newsletter-Footer – kompaktere Gestaltung */

.zulauf-newsletter {
    margin-bottom: 20px;
    padding: 20px 28px;
    border-left: 1px solid #dce5e0;
    border-right: 8px solid #9db668;
}

.zulauf-newsletter h2 {
    margin-bottom: 6px;
    font-size: 26px;
}

.zulauf-newsletter p {
    margin-bottom: 14px;
}

.zulauf-newsletter-field input[type="email"] {
    padding: 10px 12px;
}

.zulauf-newsletter-options,
.zulauf-newsletter-privacy {
    margin-top: 10px;
}

.zulauf-newsletter button[type="submit"] {
    margin-top: 14px;
    padding: 10px 18px;
}

@media (max-width: 600px) {
    .zulauf-newsletter {
        padding: 18px;
    }
}


/* ==================================================
   ZULAUF | digital – Newsletter breit und zweispaltig
   ================================================== */

.zulauf-newsletter-wrap {
    width: 100%;
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.zulauf-newsletter-wrap .zulauf-newsletter {
    max-width: none;
    margin-bottom: 16px;
    padding: 18px 28px;
}

.zulauf-newsletter-inner {
    max-width: none;
}

.zulauf-newsletter h2 {
    margin-bottom: 4px;
    font-size: 25px;
}

.zulauf-newsletter p {
    margin-bottom: 12px;
}

.zulauf-newsletter form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
}

.zulauf-newsletter-field {
    grid-column: 1;
    grid-row: 1 / span 3;
}

.zulauf-newsletter-field input[type="email"] {
    max-width: none;
}

.zulauf-newsletter-options {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
}

.zulauf-newsletter-privacy {
    grid-column: 2;
    grid-row: 2;
    margin-top: 8px;
}

.zulauf-newsletter button[type="submit"] {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    margin-top: 10px;
}

@media (max-width: 700px) {
    .zulauf-newsletter-wrap .zulauf-newsletter {
        padding: 18px;
    }

    .zulauf-newsletter form {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 10px;
    }

    .zulauf-newsletter-field,
    .zulauf-newsletter-options,
    .zulauf-newsletter-privacy,
    .zulauf-newsletter button[type="submit"] {
        grid-column: 1;
        grid-row: auto;
    }

    .zulauf-newsletter button[type="submit"] {
        width: 100%;
    }
}

/* Newsletter – Breite an den Startseitenblock anpassen */

body .zulauf-newsletter-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px !important;
}

body .zulauf-newsletter-wrap > .zulauf-newsletter {
    box-sizing: border-box;
    width: 100%;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
}


/* Newsletter: aufklappbare Leiste auf Unterseiten */
.zulauf-newsletter-details {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 16px;
}

.zulauf-newsletter-summary {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: #f3f7f5;
    border: 1px solid #dce5e0;
    border-right: 8px solid #9db668;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.zulauf-newsletter-summary::-webkit-details-marker {
    display: none;
}

.zulauf-newsletter-summary::marker {
    content: "";
}

.zulauf-newsletter-toggle {
    white-space: nowrap;
}

/* Geöffnet: Formular statt zusätzlicher Leiste anzeigen */
.zulauf-newsletter-details[open] > .zulauf-newsletter-summary {
    display: none;
}

.zulauf-newsletter-details[open] > .zulauf-newsletter {
    margin-bottom: 0;
}

.zulauf-newsletter-summary:focus-visible {
    outline: 3px solid #9db668;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .zulauf-newsletter-summary {
        padding: 16px;
        font-size: 0.95rem;
    }
}

/* Unterseiten: Leiste auch bei geöffnetem Formular anzeigen */
body:not(.home) .zulauf-newsletter-details[open] > .zulauf-newsletter-summary {
    display: flex;
    margin-bottom: 12px;
}

/* Unterseiten: beim Öffnen "Schließen" statt "Anzeigen" anzeigen */
body:not(.home) .zulauf-newsletter-details[open] .zulauf-newsletter-toggle {
    font-size: 0;
}

body:not(.home) .zulauf-newsletter-details[open] .zulauf-newsletter-toggle::after {
    content: "Schließen ▴";
    font-size: 1rem;
}

/* Startseite: nur das vollständige Formular anzeigen */
body.home .zulauf-newsletter-details[open] > .zulauf-newsletter-summary {
    display: none;
}

/* ==================================================
   Newsletter – Footerbreite auf allen Unterseiten
   ================================================== */

/* Eingeklappter Newsletter nutzt die volle Footerbreite */
body:not(.home) .zulauf-newsletter-wrap {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1200px !important;
}

body:not(.home) .zulauf-newsletter-details {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Kompakte Newsletter-Leiste */
body:not(.home) .zulauf-newsletter-summary {
    box-sizing: border-box;
    height: 46px;
    min-height: 46px;
    padding: 0 20px;
    font-size: 15px;
}

/* Geöffnetes Formular wieder schmaler und zentriert */
body:not(.home) .zulauf-newsletter-details[open] > .zulauf-newsletter {
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 700px) {
    body:not(.home) .zulauf-newsletter-wrap {
        width: calc(100% - 24px);
    }

    body:not(.home) .zulauf-newsletter-summary {
        padding: 10px 14px;
    }
}


/* WordPress-Übersicht: Abstand vor dem Footer reduzieren */
body .zulauf-wordpress-archiv {
    padding-bottom: 12px;
}

