/*
 * PureLifeOnWheels – WEBSITE-STYLES
 * Zentrale Designwerte stehen in design.css.
 */

* {
    box-sizing: border-box;
}

body {
    font: var(--font-size-base) var(--font-main);
    line-height: var(--line-height);
    margin: 0;
    color: var(--color-text);
    background: var(--color-background);
}

/* ===== SEITENBREITEN ===== */

header,
main,
footer {
    width: 100%;
    max-width: var(--width-content);
    margin-left: auto;
    margin-right: auto;
    padding: var(--page-padding);
}

/*
 * Blogbeiträge erhalten eine einheitliche Breite.
 * Texte, Bilder, Galerien und Videos bleiben
 * innerhalb derselben Inhaltslinie.
 */

article.post {
    width: 100%;
    max-width: var(--width-reading);
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.post-body,
.post-body > *,
.post-cover,
.post-share,
.post-community,
.editor-meta {
    max-width: 100%;
}

.post-body {
    min-width: 0;
}

.post-body img,
.post-body video,
.post-body iframe,
.post-cover img {
    max-width: 100%;
}

.post-body iframe,
.post-body video {
    display: block;
}

.post-cover {
    margin: 24px 0;
}

.post-cover img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== REISE-DETAILSEITEN ===== */

.journey-cover {
    width: 100%;
    margin: 24px 0 32px;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--color-surface-alt);
}

.journey-cover img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

/* ===== REISEBLOG: EINLEITUNG UND ABONNEMENT ===== */

.blog-intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 850px) minmax(280px, 1fr);
    align-items: start;
    gap: 32px;
    margin: 24px 0 48px;
}

.blog-intro {
    min-width: 0;
    line-height: 1.7;
}

.blog-intro > :first-child {
    margin-top: 0;
}

.blog-intro > :last-child {
    margin-bottom: 0;
}

/*
 * Reiseblog-Abo: weisse Karte mit oberem Akzent.
 * Akzentfarbe stammt aus dem Website-Design im Panel.
 */

.blog-intro-layout .blog-subscribe {
    min-width: 0;
    margin: 0;
    padding: 22px 24px;
    border: 1px solid var(--color-border);
    border-top: 5px solid var(--color-secondary);
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--color-text);
    text-align: left;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.blog-subscribe h2 {
    margin: 0 0 14px;
    color: var(--color-text);
    font-size: 1.15rem;
    line-height: 1.3;
}

.blog-subscribe p {
    margin: 0 0 12px;
    font-size: 0.88rem;
    line-height: 1.55;
}

.blog-subscribe p:last-child {
    margin-bottom: 0;
}

.blog-subscribe-note {
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    font-size: 0.78rem !important;
    opacity: 0.9;
}

/* ===== TYPOGRAFIE ===== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

nav {
    display: flex;
    gap: var(--spacing-medium);
    flex-wrap: wrap;
    margin-top: 18px;
}

a {
    color: var(--color-link);
}

aside {
    background: #fff1c9;
    padding: 16px;
    text-align: center;
}

/* ===== KARTEN UND INHALTE ===== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-medium);
}

article {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: var(--spacing-medium);
}

img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0 0 var(--spacing-medium);
}

figcaption {
    font-size: var(--font-size-small);
    padding: var(--spacing-small);
}

/* ===== FORMULARE UND BUTTONS ===== */

textarea {
    width: 100%;
    font: inherit;
}

input,
select,
textarea {
    background: var(--color-input-background);
    color: var(--color-input-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
}

dialog {
    border: 0;
    border-radius: var(--radius-card);
    max-width: 95vw;
}

dialog img {
    max-height: 75vh;
    display: block;
    margin: auto;
}

dialog::backdrop {
    background: #000b;
}

button {
    padding: 10px;
    font: inherit;
    margin: 5px;
    border-radius: var(--radius-button);
}

footer {
    font-size: var(--font-size-footer);
    color: var(--color-footer-text);
}

/* ===== JUSTIFIED-MOSAIK-FOTOGALERIE ===== */

.gallery {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    gap: var(--gallery-active-gap, 8px);
    margin: 24px 0;
}

.gallery figure {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.gallery figure a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.gallery a:hover img {
    transform: scale(1.04);
}

.gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.7)
    );
    color: white;
    font-size: .85rem;
    pointer-events: none;
}

/*
 * Fallback ohne JavaScript.
 * Wird automatisch deaktiviert, sobald das
 * berechnete Galerie-Layout bereit ist.
 */

.gallery:not(.gallery-ready) {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 220px), 1fr)
    );
    align-items: start;
}

.gallery:not(.gallery-ready) figure {
    width: 100%;
    height: auto;
}

.gallery:not(.gallery-ready) img {
    width: 100%;
    height: auto;
}

/* ===== LIGHTBOX: BILD-GROSSANSICHT ===== */

/*
 * Die Lightbox verwendet dieselben Designvariablen
 * wie die runden Pfeilbuttons der Übersichtskarten.
 *
 * Rahmen:       --color-primary
 * Pfeil:        --color-secondary
 * Hintergrund:  --color-surface
 * Hover:        --color-button
 * Hover-Text:   --color-button-text
 */

dialog.plow-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: rgba(12, 14, 18, 0.96);
    color: #ffffff;
}

dialog.plow-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

dialog.plow-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.plow-lightbox-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 65px 72px 60px;
    touch-action: pan-y;
}

dialog.plow-lightbox .plow-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 155px);
    margin: auto;
    object-fit: contain;
}

.plow-lightbox-caption {
    flex: 0 0 auto;
    max-width: min(800px, 100%);
    margin: 14px auto 0;
    padding: 0 12px;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.plow-lightbox-caption[hidden] {
    display: none;
}

/* Gleiche runde Gestaltung wie bei den Kartenpfeilen */

dialog.plow-lightbox .plow-lightbox-button {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-secondary);
    font: inherit;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

dialog.plow-lightbox .plow-lightbox-button:hover,
dialog.plow-lightbox .plow-lightbox-button:focus-visible {
    background: var(--color-button);
    color: var(--color-button-text);
}

dialog.plow-lightbox .plow-lightbox-button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

dialog.plow-lightbox .plow-lightbox-button[hidden] {
    display: none;
}

.plow-lightbox-button svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

dialog.plow-lightbox .plow-lightbox-prev {
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
}

.plow-lightbox-prev svg {
    transform: rotate(180deg);
}

dialog.plow-lightbox .plow-lightbox-next {
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
}

dialog.plow-lightbox .plow-lightbox-prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

dialog.plow-lightbox .plow-lightbox-next:hover {
    transform: translateY(-50%) translateX(3px);
}

dialog.plow-lightbox .plow-lightbox-close {
    top: 18px;
    right: 18px;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

dialog.plow-lightbox .plow-lightbox-close:hover {
    transform: rotate(90deg);
}

/* ===== NAVIGATION UND SUCHE ===== */

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
    row-gap: 18px;
}

header > strong {
    flex: 0 0 100%;
}

header nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 0;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.site-search-label {
    display: none;
}

.site-search input {
    width: 155px;
    min-width: 0;
    padding: 7px 9px;
    font: inherit;
    font-size: 14px;
}

.site-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    font-size: 16px;
    cursor: pointer;
}

/* ===== RÜCKNAVIGATION: REISEN UND REISEBERICHTE ===== */

/*
 * Einheitliche Textlinks mit SVG-Pfeil.
 * Die Farben stammen aus dem Design-Panel.
 *
 * Standard: --color-link
 * Hover:    --color-secondary
 *
 * Verwendet in post.php und journey.php.
 */

.plow-back-navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
}

.plow-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    color: var(--color-link);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.plow-back-link svg {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.plow-back-link:hover,
.plow-back-link:focus-visible {
    color: var(--color-secondary);
}

.plow-back-link:hover svg,
.plow-back-link:focus-visible svg {
    transform: translateX(-4px);
}

.plow-back-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 2px;
}

.plow-back-navigation-bottom {
    margin-top: 32px;
    margin-bottom: 24px;
}

/* ===== FOOTER ===== */

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.footer-left {
    flex: 0 0 auto;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-footer-link);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    opacity: 0.75;
}

.footer-social svg {
    width: var(--font-size-social-icons);
    height: var(--font-size-social-icons);
    fill: currentColor;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--color-footer-border);
}

.footer-copyright {
    margin: 0;
}

.footer-translation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    text-align: right;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-translation a {
    color: var(--color-footer-link);
    font-weight: 600;
}

.translation-info {
    display: inline-block;
    position: relative;
    margin-left: 3px;
}

.translation-info summary {
    list-style: none;
    cursor: pointer;
    color: var(--color-footer-link);
    font-size: 18px;
    line-height: 1;
}

.translation-info summary::-webkit-details-marker {
    display: none;
}

.translation-tooltip {
    position: absolute;
    z-index: 20;
    top: 28px;
    right: 0;
    width: min(320px, 80vw);
    padding: 12px 14px;
    border: 1px solid var(--color-tooltip-border);
    border-radius: var(--radius-tooltip);
    background: var(--color-tooltip-background);
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    color: var(--color-tooltip-text);
    text-align: left;
    font-size: var(--font-size-tooltip);
    line-height: 1.5;
}

.footer-translation a {
    color: var(--color-footer-link);
    font-weight: 600;
}

/* ===== BLOGBEITRÄGE ===== */

.post-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0 20px;
}

.post-share-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--color-post-share);
    border-radius: var(--radius-post-button);
    background: transparent;
    color: var(--color-post-share);
    font: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.post-share-button:hover {
    background: var(--color-post-share);
    color: var(--color-post-share-hover-text);
}

.post-share-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.post-community {
    margin: 20px 0 36px;
    padding: var(--post-community-padding);
    border: 1px solid var(--color-post-community-border);
    border-radius: var(--radius-post-community);
    background: var(--color-post-community-background);
}

.post-community h2 {
    margin: 0 0 10px;
    font-size: var(--font-size-post-community-heading);
}

.post-community p {
    margin: 0 0 18px;
    line-height: 1.6;
}

.post-community-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post-community-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border: 1px solid var(--color-post-community-link);
    border-radius: var(--radius-post-button);
    color: var(--color-post-community-link);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.post-community-links a:hover {
    background: var(--color-post-community-link);
    color: var(--color-post-share-hover-text);
}

.post-community-links svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.post-community-links a:last-child svg {
    fill: none;
}

/* ===== TABLET ===== */

@media (max-width: 1200px) {

    .blog-intro-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
        gap: 24px;
    }
}

@media (max-width: 1000px) {

    header,
    main,
    footer {
        padding: 20px;
    }

    h1 {
        font-size: clamp(2rem, 5vw, var(--font-size-h1));
    }
}

/* ===== SMARTPHONE ===== */

@media (max-width: 700px) {

    header,
    main,
    footer {
        padding: 16px;
    }

    .journey-cover img {
        height: 220px;
    }

    .blog-intro-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin: 20px 0 40px;
    }

    .blog-intro-layout .blog-subscribe {
        padding: 18px 20px;
    }

    .gallery {
        gap: var(--gallery-active-gap, 4px);
    }

    .gallery:not(.gallery-ready) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Lightbox auf kleinen Bildschirmen */

    .plow-lightbox-stage {
        padding: 62px 12px 76px;
    }

    dialog.plow-lightbox .plow-lightbox-image {
        max-height: calc(100dvh - 175px);
    }

    dialog.plow-lightbox .plow-lightbox-prev {
        top: auto;
        bottom: 17px;
        left: calc(50% - 65px);
        transform: none;
    }

    dialog.plow-lightbox .plow-lightbox-next {
        top: auto;
        bottom: 17px;
        right: calc(50% - 65px);
        transform: none;
    }

    dialog.plow-lightbox .plow-lightbox-prev:hover {
        transform: translateX(-3px);
    }

    dialog.plow-lightbox .plow-lightbox-next:hover {
        transform: translateX(3px);
    }

    dialog.plow-lightbox .plow-lightbox-close {
        top: 14px;
        right: 14px;
    }

    .plow-lightbox-caption {
        font-size: 0.8rem;
    }

    header nav {
        flex: 0 0 100%;
        gap: 12px;
    }

    .site-search {
        flex: 0 0 100%;
        margin-left: 0;
    }

    .site-search input {
        flex: 1;
        width: auto;
    }

    .footer-main {
        flex-direction: column;
    }

    .footer-left {
        width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-translation {
        justify-content: flex-start;
        text-align: left;
    }

    .translation-tooltip {
        right: auto;
        left: 0;
    }

    .post-community {
        padding: 18px;
    }
}

/* ===== EINZELBILDER: GROESSE UND AUSRICHTUNG ===== */

.post-body figure.plow-image-block {
    display: block;
    max-width: 100%;
    margin-bottom: var(--spacing-medium);
}

.post-body figure.plow-image-size-25 { width: 25%; }
.post-body figure.plow-image-size-50 { width: 50%; }
.post-body figure.plow-image-size-75 { width: 75%; }
.post-body figure.plow-image-size-100 { width: 100%; }

.post-body figure.plow-image-align-left {
    margin-left: 0;
    margin-right: auto;
}

.post-body figure.plow-image-align-center {
    margin-left: auto;
    margin-right: auto;
}

.post-body figure.plow-image-align-right {
    margin-left: auto;
    margin-right: 0;
}

.post-body figure.plow-image-block > a,
.post-body figure.plow-image-block > a > img {
    display: block;
    width: 100%;
}

@media (max-width: 700px) {
    .post-body figure.plow-image-block {
        width: 100%;
    }
}

/* ===== TEXT MIT BILD: GROESSE UND TEXTUMFLUSS ===== */

/*
 * Ein zusammenhaengender formatierter Text.
 * Das optionale Bild steht vor dem Text im HTML.
 *
 * Links/Rechts: CSS-Float mit Textumfluss.
 * Mitte: Bild zentriert ohne seitlichen Umfluss.
 * Ohne Bild: normaler formatierter Text.
 */

.post-body .plow-textimage {
    display: flow-root;
    width: 100%;
    max-width: 100%;
}

.post-body .plow-textimage-figure {
    display: block;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: var(--spacing-medium);
}

.post-body .plow-textimage-size-25 {
    width: 25%;
}

.post-body .plow-textimage-size-50 {
    width: 50%;
}

.post-body .plow-textimage-size-75 {
    width: 75%;
}

.post-body .plow-textimage-size-100 {
    width: 100%;
}

/* Bild links, Text rechts und anschliessend darunter */

.post-body .plow-textimage-align-left {
    float: left;
    margin-left: 0;
    margin-right: 20px;
}

/* Bild rechts, Text links und anschliessend darunter */

.post-body .plow-textimage-align-right {
    float: right;
    margin-left: 20px;
    margin-right: 0;
}

/* Bild mittig, Text beginnt darunter */

.post-body .plow-textimage-align-center {
    float: none;
    clear: both;
    margin-left: auto;
    margin-right: auto;
}

/* Bei 100 % Bildbreite kein seitlicher Textumfluss */

.post-body .plow-textimage-size-100 {
    float: none;
    clear: both;
    margin-left: auto;
    margin-right: auto;
}

/* Bild und Lightbox-Link */

.post-body .plow-textimage-figure > a,
.post-body .plow-textimage-figure > a > img {
    display: block;
    width: 100%;
    height: auto;
}

/* Kein unnoetiger oberer Abstand beim ersten Absatz */

.post-body .plow-textimage > p:first-of-type {
    margin-top: 0;
}

/* ===== TEXT MIT BILD: SMARTPHONE ===== */

@media (max-width: 700px) {

    .post-body .plow-textimage-figure {
        float: none;
        clear: both;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: var(--spacing-medium);
    }
}

/* ===== TEXT MIT BILD: AUFZAEHLUNGEN ===== */

/*
 * Listen bilden einen eigenen Bereich neben
 * dem links oder rechts ausgerichteten Bild.
 */

.post-body .plow-textimage ul,
.post-body .plow-textimage ol {
    display: flow-root;
    list-style-position: outside;
    padding-left: 24px;
}

.post-body .plow-textimage li {
    padding-left: 0;
}

/* ===== STANDARDSEITEN: BILDBLOECKE ===== */

/*
 * Zusaetzliche Regeln fuer Standardseiten.
 * Die bestehenden Reisebericht-Regeln
 * bleiben unveraendert.
 */

/* Einzelbilder */

.standard-page-body figure.plow-image-block {
    display: block;
    max-width: 100%;
    margin-bottom: var(--spacing-medium);
}

.standard-page-body figure.plow-image-size-25 { width: 25%; }
.standard-page-body figure.plow-image-size-50 { width: 50%; }
.standard-page-body figure.plow-image-size-75 { width: 75%; }
.standard-page-body figure.plow-image-size-100 { width: 100%; }

.standard-page-body figure.plow-image-align-left {
    margin-left: 0;
    margin-right: auto;
}

.standard-page-body figure.plow-image-align-center {
    margin-left: auto;
    margin-right: auto;
}

.standard-page-body figure.plow-image-align-right {
    margin-left: auto;
    margin-right: 0;
}

.standard-page-body figure.plow-image-block > a,
.standard-page-body figure.plow-image-block > a > img {
    display: block;
    width: 100%;
}

/* Text mit Bild */

.standard-page-body .plow-textimage {
    display: flow-root;
    width: 100%;
    max-width: 100%;
}

.standard-page-body .plow-textimage-figure {
    display: block;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: var(--spacing-medium);
}

.standard-page-body .plow-textimage-size-25 { width: 25%; }
.standard-page-body .plow-textimage-size-50 { width: 50%; }
.standard-page-body .plow-textimage-size-75 { width: 75%; }
.standard-page-body .plow-textimage-size-100 { width: 100%; }

.standard-page-body .plow-textimage-align-left {
    float: left;
    margin-left: 0;
    margin-right: 20px;
}

.standard-page-body .plow-textimage-align-right {
    float: right;
    margin-left: 20px;
    margin-right: 0;
}

.standard-page-body .plow-textimage-align-center {
    float: none;
    clear: both;
    margin-left: auto;
    margin-right: auto;
}

.standard-page-body .plow-textimage-size-100 {
    float: none;
    clear: both;
    margin-left: auto;
    margin-right: auto;
}

.standard-page-body .plow-textimage-figure > a,
.standard-page-body .plow-textimage-figure > a > img {
    display: block;
    width: 100%;
    height: auto;
}

.standard-page-body .plow-textimage > p:first-of-type {
    margin-top: 0;
}

/* Listen neben Bildern */

.standard-page-body .plow-textimage ul,
.standard-page-body .plow-textimage ol {
    display: flow-root;
    list-style-position: outside;
    padding-left: 24px;
}

.standard-page-body .plow-textimage li {
    padding-left: 0;
}

/* Smartphone */

@media (max-width: 700px) {

    .standard-page-body figure.plow-image-block {
        width: 100%;
    }

    .standard-page-body .plow-textimage-figure {
        float: none;
        clear: both;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: var(--spacing-medium);
    }
}

/* ===== INHALTSLISTEN: ABSATZABSTAENDE ===== */

.post-body .formatted-text li > p,
.standard-page-body .formatted-text li > p {
    margin-top: 0;
    margin-bottom: 0;
}

/* ===== KOMPAKTE TEXTABSTAENDE IN BLOG UND TOUREN ===== */

/*
 * Einheitliche Abstände für Inhaltsüberschriften.
 * Gilt für Reiseberichte und Tourdetailseiten.
 * Andere Websitebereiche bleiben unverändert.
 */

.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    margin-top: 20px;
    margin-bottom: 8px;
}

.post-body > h2:first-child,
.post-body > h3:first-child,
.post-body > h4:first-child,
.post-body > h5:first-child,
.post-body > h6:first-child {
    margin-top: 0;
}

.post-body h2 + p,
.post-body h3 + p,
.post-body h4 + p,
.post-body h5 + p,
.post-body h6 + p {
    margin-top: 0;
}

.post-body .formatted-text > p:first-child,
.post-body .plow-textimage > p:first-child {
    margin-top: 0;
}

/* ===== REISEBLOG: ABO-BUTTON ===== */

.blog-subscribe-form button {
    display: inline-block;
    margin: 0;
    padding: 12px 20px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-button);
    background: var(--color-surface);
    color: var(--color-secondary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.blog-subscribe-form button:hover,
.blog-subscribe-form button:focus-visible {
    background: var(--color-button);
    color: var(--color-button-text);
    transform: translateY(-2px);
}

.blog-subscribe-form button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* ===== REISEBLOG: ABSTAND ZUR TRENNLINIE ===== */

.blog-subscribe-note {
    margin-top: 10px !important;
}

/* ===== REISEBLOG: E-MAIL UND ABO-BUTTON NEBENEINANDER ===== */

.blog-subscribe-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.blog-subscribe-form #blog-subscribe-email {
    flex: 1 1 180px;
    width: auto !important; /* Ueberschreibt nur die Inline-Breite des Felds */
    min-width: 0;
}

.blog-subscribe-form > p {
    flex: 0 0 auto;
    margin: 0;
}

.blog-subscribe-form button {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .blog-subscribe-form #blog-subscribe-email {
        flex-basis: 100%;
    }
}

/* ===== ENDE STYLE.CSS ===== */
