/* ==========================================================================
   Artikelseite, Handy-Ansicht (bis 600px)
   Probleme vorher: Einleitung in riesiger Titel-Schrift mit viel zu enger Zeilenhöhe (Zeilen berühren sich),
   Titelbild auf einen flachen Streifen beschnitten, Texte ohne einheitliche Ränder.
   ========================================================================== */
@media (max-width: 600px) {
    .article-layout { text-align: left; align-items: stretch; }

    /* Titel: groß und fett wie bisher, aber mit ruhiger Zeilenhöhe und Rand */
    .article-title {
        width: auto; max-width: none;
        margin: 22px 16px 14px;
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.08;
        letter-spacing: -.5px;
        word-spacing: 0;
        text-align: left;
    }

    /* Titelbild: volle Breite, Hochformat-nahe Proportion statt flachem Streifen */
    .article-intro-image { margin: 0 0 18px; }
    .article-intro-image figure { margin: 0; }
    .article-intro-image img,
    .article-intro-image video {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }

    /* Einleitung: lesbare Größe statt Überschriften-Schrift */
    .article-introduction {
        width: auto; max-width: none;
        margin: 0 16px 18px;
        font-size: clamp(19px, 5.4vw, 22px);
        line-height: 1.3;
        font-weight: 500;
        text-align: left;
    }
    .article-introduction p,
    .article-introduction h1, .article-introduction h2, .article-introduction h3 {
        margin: 0 0 .6em;
        font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: 0; text-align: left;
    }

    .article-date {
        margin: 0 16px 6px;
        text-align: left;
        font-size: 15px;
    }
    .article-info, .article-people {
        width: auto; max-width: none;
        margin: 0 16px 20px;
        text-align: left;
        font-size: 15px;
        line-height: 1.35;
    }
    .article-content p, .article-content h2 {
        width: auto; max-width: none;
        margin-left: 16px; margin-right: 16px;
        line-height: 1.45;
    }
}

/* ==========================================================================
   Interview-Texte am Handy: nichts läuft mehr über den Rand, Einleitung und Antworten haben Luft links und rechts
   (Antworten sind <blockquote> mit Standard-Einzug von 40 px bei 100 % Breite -> ragten 40 px aus dem Bild)
   ========================================================================== */
@media (max-width: 600px) {
    .article-layout { overflow-x: clip; }
    .article-section, .article-content { box-sizing: border-box; max-width: 100%; }

    /* Einleitung im Interview (Überschrift 3): vorher ganz am Rand, jetzt mit Rand und lesbarer Größe */
    .article-section h3, .article-content h3, .interview h3 {
        width: auto; max-width: none;
        margin: 0 16px 1.2rem;
        padding: 0;
        font-size: clamp(19px, 5.4vw, 22px);
        line-height: 1.3;
        text-align: left;
        overflow-wrap: break-word;
    }

    /* Fragen und normale Absätze */
    .article-section p {
        width: auto; max-width: none;
        margin-left: 16px; margin-right: 16px;
        overflow-wrap: break-word;
    }

    /* Antworten: eingerückt, aber innerhalb des Bildschirms */
    .article-section blockquote {
        width: auto; max-width: none;
        margin: 0 16px 0 32px;
        padding: 0;
        box-sizing: border-box;
    }
    .article-section blockquote p {
        margin-left: 0; margin-right: 0;
        width: auto;
    }
}

/* ==========================================================================
   Feinschliff nach Design-Prüfung (siehe docs/DESIGN-REGELN.md)
   ========================================================================== */
@media (max-width: 600px) {
    /* Lead/Einleitung: Mittelschwer statt Fettdruck über eine ganze Seite, klar vom Titel abgesetzt */
    .article-section h3, .article-content h3, .interview h3 {
        font-weight: 400;
        font-size: 18px;
        line-height: 1.5;
    }
    .article-section h3:first-of-type, .article-content h3:first-of-type, .interview h3:first-of-type { font-weight: 500; }
    /* Frage und Antwort deutlich als Paar erkennbar: nach der Antwort mehr Luft */
    .article-section blockquote { margin-bottom: 16px; }

    /* Datum: Kontrast statt Deckkraft 0,4 (war 2,9:1 auf Weiß) */
    .article-date { opacity: 1; color: #6b6b6b; }

    /* Titelbild: ganzes Bild zeigen, nichts wird angeschnitten (Gesichter!) */
    .article-intro-image img,
    .article-intro-image video {
        aspect-ratio: auto;
        height: auto;
        max-height: 82vh;
        object-fit: contain;
        background: #f2f2f2;
    }

    /* "Related" ohne Rand am Bildschirmrand, kleiner als der Artikeltitel */
    .related-articles h1, .related-products h1 {
        margin: 40px 16px 16px;
        font-size: 24px;
        line-height: 1.2;
        text-align: left;
    }
}

/* Artikel ohne Titelbild: leeren Bildbereich nicht anzeigen (kein Loch unter dem Titel) */
.article-intro-image:not(:has(img, video)) { display: none; }

/* ==========================================================================
   Interview: Fragen (JSF, LAA …) eingerückt, Antworten bündig; überall gleicher, etwas größerer Abstand
   ========================================================================== */
@media (max-width: 600px) {
    .article-section .interview > p,
    .article-section .interview > blockquote {
        margin-top: 0;
        margin-bottom: 26px;
    }
    /* Fragen: deutlich eingerückt */
    .article-section .interview > p {
        margin-left: 44px;
        margin-right: 16px;
    }
    /* Antworten: bündig mit dem übrigen Text */
    .article-section .interview > blockquote {
        margin-left: 16px;
        margin-right: 16px;
    }
    .article-section .interview > blockquote p { margin: 0; }
}

/* Leere "Related"-Bereiche (kein Inhalt gewählt) nehmen keinen Platz mehr weg (vorher je 70 px Leerraum über dem Footer) */
.related-products:not(:has(a)), .related-articles:not(:has(a)) { display: none; }

/* Weniger Leerraum zwischen dem Ende des Textes und dem Footer */
@media (max-width: 1000px) {
    .article-separator { margin-top: 14px; margin-bottom: 0; }
}
