/* ---------------------------------------------------------------------------
   ACTROM – Druckansicht für Beiträge
   Eigenständiges Blatt ohne Navigation. Über den Druckdialog des Browsers
   entsteht daraus die PDF-Datei.
--------------------------------------------------------------------------- */
:root {
    --olive: #788303;
    --olive-dark: #5f6802;
    --text: #333;
    --line: #d7dbc9;
}

* { box-sizing: border-box; }

body.druck {
    margin: 0;
    padding: 0 0 40px;
    background: #eef0e8;
    color: var(--text);
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

/* Bedienleiste – nur am Bildschirm */
.druck__leiste {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
}
.druck__btn {
    display: inline-block;
    background: var(--olive);
    color: #fff;
    border: 1px solid var(--olive);
    border-radius: 3px;
    padding: 10px 18px;
    font: inherit;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}
.druck__btn:hover { background: var(--olive-dark); border-color: var(--olive-dark); }
.druck__btn--hell { background: transparent; color: var(--olive); }
.druck__btn--hell:hover { background: var(--olive); color: #fff; }

/* Das eigentliche Blatt */
.druck__blatt {
    max-width: 820px;
    margin: 26px auto;
    padding: 40px 46px 30px;
    background: #fff;
    box-shadow: 0 6px 26px rgba(0, 0, 0, .12);
}

.druck__kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    margin-bottom: 26px;
    border-bottom: 2px solid var(--olive);
}
.druck__logo { width: 175px; height: auto; }
.druck__marke {
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--olive);
}

.druck__datum { font-size: 15px; margin: 0 0 6px; }
.druck__titel {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--olive);
    margin: 0 0 22px;
}
.druck__bild { margin: 0 0 24px; }
.druck__bild img { width: 100%; height: auto; display: block; }

.druck__video {
    margin: 26px 0 0;
    padding: 12px 14px;
    background: #f5f6ef;
    border-left: 3px solid #c00;
    font-size: 15px;
    word-break: break-all;
}

.druck__fuss {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    margin-top: 34px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: #6d7364;
}

/* ------------------------------------------------------- Beitragsinhalt */
.content h2, .content h3, .content h4, .content h5 {
    color: var(--olive);
    font-weight: 500;
    line-height: 1.25;
    margin: 1.5em 0 .5em;
}
.content h2 { font-size: 24px; }
.content h3 { font-size: 21px; }
.content h4 { font-size: 19px; }
.content h5 { font-size: 17px; }
.content p { margin: 0 0 1em; }
.content ul, .content ol { margin: 0 0 1em; padding-left: 1.4em; }
.content li { margin-bottom: .35em; }
.content a { color: var(--olive); }
.content img { max-width: 100%; height: auto; margin: 1.2rem 0; }
.content img.bild--gross  { display: block; width: 100%; }
.content img.bild--mittel { display: block; width: 100%; max-width: 520px; }
.content img.bild--klein  { display: block; width: 100%; max-width: 280px; }
.content figure { margin: 1.2rem 0; }
.content figcaption { font-size: 14px; margin-top: .4rem; }
.content blockquote {
    margin: 1.2em 0;
    padding: .3em 0 .3em 1em;
    border-left: 3px solid var(--olive);
    font-style: italic;
}
.content hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 15px; }
.content th, .content td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.content th { background: #f4f5ef; }

/* Spaltenblöcke aus dem Editor */
.content .spalten { display: grid; grid-template-columns: 1fr; gap: 20px 28px; margin: 1.4rem 0; }
.content .spalten--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content .spalten--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content .spalte { min-width: 0; }
.content .spalte > *:first-child { margin-top: 0; }
.content .spalte > *:last-child { margin-bottom: 0; }

@media (max-width: 620px) {
    .druck__blatt { padding: 24px 20px; margin: 12px; }
    .content .spalten--2, .content .spalten--3 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- Ausdruck */
@page { margin: 16mm 14mm; }

@media print {
    body.druck { background: #fff; padding: 0; font-size: 11pt; }
    .druck__leiste { display: none; }
    .druck__blatt {
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    .druck__logo { width: 145px; }
    .druck__titel { font-size: 20pt; }
    .druck__fuss { position: static; }

    a { color: inherit; text-decoration: none; }
    .content h2, .content h3, .content h4, .content h5 { break-after: avoid; page-break-after: avoid; }
    .content p, .content li, .content blockquote { orphans: 3; widows: 3; }
    .content img, .content figure, .content table, .druck__bild { break-inside: avoid; page-break-inside: avoid; }
    .content .spalte { break-inside: avoid; page-break-inside: avoid; }
}
