/* ==========================================================================
   Einzelne Blogbeiträge – modernes Layout
   Greift nur auf Seiten mit <body class="… beitrag">; wird nach main.css geladen.
   Aufbau: .beitrag-hero (Titelbild + Überschrift) → Textblöcke (#landingpage,
   .lightgrey, .weiss) → .beitrag-ende (Weiterlesen) → Kontakt/Footer wie gehabt.
   ========================================================================== */

.beitrag {
    --b-red: #cc2123;
    --b-dark: #3c3c3b;
    --b-ink: #1f1f1e;
    --b-muted: #6b6b69;
    --b-line: #e2e0dc;
    --b-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Hero ---------- */

.beitrag .beitrag-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background-color: var(--b-ink);
}

.beitrag .beitrag-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 20, 20, .9) 0%, rgba(20, 20, 20, .72) 38%, rgba(20, 20, 20, .15) 72%, rgba(20, 20, 20, 0) 100%);
    pointer-events: none;
}

.beitrag .beitrag-hero {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Bildnachweis (Adobe Stock) klein unten rechts auf dem Titelbild */
.beitrag-credit {
    position: absolute;
    right: 24px;
    bottom: 16px;
    z-index: 1;
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .7);
}

.beitrag-credit a {
    color: inherit !important;
    text-decoration: none !important;
}

.beitrag-credit a:hover {
    color: #fff !important;
}

.beitrag-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.beitrag-back {
    display: flex;
    text-decoration: none !important;
    width: max-content;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    font: 600 12px/1 'Open Sans', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8) !important;
    transition: color .3s;
}

.beitrag-back svg {
    width: 18px;
    height: 10px;
    transition: transform .3s var(--b-ease);
}

.beitrag-back:hover,
.beitrag-back:focus-visible {
    color: #fff !important;
}

.beitrag-back:hover svg {
    transform: translateX(-5px);
}

.beitrag .news-tag {
    display: inline-block;
    padding: 4px 14px 5px;
    font: 600 11px/1.2 'Open Sans', sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--b-red);
    color: #fff;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.beitrag .beitrag-hero h1 {
    margin: 18px 0 22px;
    font: italic 400 50px/1.05 Goldman, sans-serif;
    text-transform: uppercase;
    color: #fff;
    hyphens: manual;
    -webkit-hyphens: manual;
}

.beitrag .beitrag-hero--lang h1 {
    font-size: 38px;
}

.beitrag .beitrag-hero h1 .headline {
    display: block;
    margin-top: 10px;
    font: italic 400 26px/1.3 'Open Sans', sans-serif;
    text-transform: none;
    color: rgba(255, 255, 255, .88);
}

.beitrag-hero__lead {
    max-width: 52ch;
    font-size: 17px;
    line-height: 27px;
    color: rgba(255, 255, 255, .85);
}

.beitrag-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font: 600 12px/1.4 'Open Sans', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.beitrag-meta span + span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 14px 1px 0;
    background: var(--b-red);
    transform: skewX(-15deg);
}

/* ---------- Lesetext ---------- */

.beitrag #landingpage p,
.beitrag .lightgrey p,
.beitrag .weiss p {
    font-size: 16px;
    line-height: 27px;
    margin: 0 0 18px;
}

/* Abstände kommen aus den Absätzen, nicht aus <br> */
.beitrag #landingpage p + br,
.beitrag .lightgrey p + br,
.beitrag .weiss p + br,
.beitrag .h-box h2 > br {
    display: none;
}

/* Zwischenüberschriften: Schriften wie auf der übrigen Website (main.css), nur Abstände */
.beitrag #landingpage h2,
.beitrag #landingpage h3,
.beitrag #landingpage h4,
.beitrag .lightgrey h2,
.beitrag .lightgrey h3,
.beitrag .lightgrey h4,
.beitrag .weiss h2,
.beitrag .weiss h3,
.beitrag .weiss h4 {
    margin: 36px 0 12px;
}

.beitrag .flex > div > h2:first-child,
.beitrag .flex > div > h3:first-child,
.beitrag .flex > div > h4:first-child {
    margin-top: 0;
}

.beitrag .beitrag-bild {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin: 0 0 24px;
}

.beitrag .h-box .list {
    margin: 0 0 18px;
}

.beitrag .h-box .list li {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 6px;
}

.beitrag .h-box p a.red {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ---------- Abschluss: Weiterlesen ---------- */

.beitrag-ende {
    position: relative;
    background: var(--b-ink);
    color: rgba(255, 255, 255, .8);
}

.beitrag-ende__eyebrow {
    display: block;
    margin-bottom: 14px;
    font: italic 600 13px/1 'Open Sans', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--b-red);
}

.beitrag-ende h2 {
    margin: 0 0 28px;
    font: italic 400 34px/1.1 Goldman, sans-serif;
    text-transform: uppercase;
    color: #fff;
}

.beitrag-ende__card {
    display: block;
    text-decoration: none !important;
    background: #fff;
    color: var(--b-dark) !important;
    margin-bottom: 28px;
    position: relative;
}

.beitrag-ende__card figure {
    margin: 0;
    height: 190px;
    overflow: hidden;
    background: #d9d7d3;
}

.beitrag-ende__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--b-ease);
}

.beitrag-ende__card:hover img {
    transform: scale(1.05);
}

.beitrag-ende__card div {
    padding: 18px 20px 20px;
}

.beitrag-ende__card small {
    display: block;
    margin-bottom: 6px;
    font: 600 11px/1.2 'Open Sans', sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--b-red);
}

.beitrag-ende__card strong {
    display: block;
    font: 700 16px/1.4 'Open Sans', sans-serif;
    color: var(--b-ink);
}

.beitrag-ende__card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--b-red);
    transition: width .4s var(--b-ease);
}

.beitrag-ende__card:hover::after {
    width: 100%;
}

.beitrag-ende__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 28px 12px;
    font: 700 13px/1 'Open Sans', sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--b-red);
    color: #fff !important;
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
    transition: background .3s;
}

.beitrag-ende__btn:hover {
    background: #a8191b;
}

.beitrag-ende__btn svg {
    width: 18px;
    height: 10px;
}

/* ==========================================================================
   Desktop: horizontal (>= 1200px)
   ========================================================================== */

@media screen and (min-width: 1200px) {
    .beitrag .beitrag-hero {
        flex: 0 0 auto;
        min-width: calc(100vw - 105px);
        height: 100vh;
        padding: 0 8% 88px;
    }

    /* Textblöcke: lesefreundliche Spaltenbreite statt halber Bildschirm */
    .beitrag #landingpage,
    .beitrag .lightgrey,
    .beitrag .weiss {
        flex: 0 0 auto;
        min-width: 0;
        width: auto;
        padding: 120px 96px;
    }

    .beitrag #landingpage .flex,
    .beitrag .lightgrey .flex,
    .beitrag .weiss .flex {
        gap: 80px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .beitrag #landingpage .col,
    .beitrag .lightgrey .flex > div,
    .beitrag .weiss .flex > div {
        flex: 0 0 auto;
        width: 520px;
    }

    .beitrag-ende {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 520px;
        min-width: 0;
        padding: 120px 72px;
    }
}

/* Niedrige Bildschirme */
@media screen and (min-width: 1200px) and (max-height: 820px) {
    .beitrag .beitrag-hero { padding-bottom: 56px; }
    .beitrag .beitrag-hero h1 { font-size: 40px; }
    .beitrag .beitrag-hero--lang h1 { font-size: 32px; }
    .beitrag .beitrag-hero h1 .headline { font-size: 22px; }
    .beitrag-back { margin-bottom: 24px; }
    .beitrag-meta { margin-top: 20px; padding-top: 14px; }
    .beitrag #landingpage,
    .beitrag .lightgrey,
    .beitrag .weiss { padding-top: 80px; padding-bottom: 60px; }
    .beitrag #landingpage p,
    .beitrag .lightgrey p,
    .beitrag .weiss p { font-size: 15px; line-height: 25px; margin-bottom: 14px; }
    .beitrag-ende__card figure { height: 150px; }
    .beitrag #landingpage .col,
    .beitrag .lightgrey .flex > div,
    .beitrag .weiss .flex > div { width: 570px; }
}

/* ==========================================================================
   Mobil / Tablet (< 1200px)
   ========================================================================== */

@media screen and (max-width: 1199px) {
    /* Titelbild sitzt im Hero, nicht mehr im Seitenkopf */
    .beitrag header {
        background: none !important;
        height: auto !important;
    }

    .beitrag .beitrag-hero {
        min-height: 88vh;
        padding: 160px 6% 56px;
        background-size: cover !important;
        background-position: center !important;
    }

    .beitrag .beitrag-hero::before {
        background: linear-gradient(180deg, rgba(20, 20, 20, .25) 0%, rgba(20, 20, 20, .55) 40%, rgba(20, 20, 20, .92) 100%);
    }

    .beitrag .img-box-arrow { display: none; }

    .beitrag #landingpage .col,
    .beitrag .lightgrey .flex > div,
    .beitrag .weiss .flex > div {
        max-width: 680px;
    }

    .beitrag-ende {
        padding: 72px 6%;
    }

    .beitrag-ende__card { max-width: 420px; }
}

@media screen and (max-width: 768px) {
    .beitrag .beitrag-hero { padding: 140px 20px 44px; }
    .beitrag .beitrag-hero h1 { font-size: 32px; }
    .beitrag .beitrag-hero--lang h1 { font-size: 26px; }
    .beitrag .beitrag-hero h1 .headline { font-size: 20px; }
    .beitrag-hero__lead { font-size: 16px; line-height: 25px; }
    .beitrag-back { margin-bottom: 24px; }
    .beitrag-ende { padding: 56px 20px; }
    .beitrag-ende h2 { font-size: 26px; }
}
