/* =====================================================
   FDP-ZITAT (Block fdp/quote, inc/quote-block.php)
   FDP Anhalt-Bitterfeld

   Wie auf fdp.de: rundes Bild, großes Anführungszeichen,
   fetter Zitattext, Name mit cyanfarbenem Strich.
   Richtet sich nach der Breite des Inhaltsbereichs
   (Container-Abfrage), nicht nach dem Bildschirm.

   Doppelte Klasse (.fdp-quote.fdp-quote), damit die
   allgemeinen Regeln für Zitate, Bilder und Bildunter-
   schriften in Seiten und Beiträgen nicht greifen.
   Farben mit Ersatzwert für den Editor.
===================================================== */

.fdp-quote.fdp-quote {
    container-type: inline-size;

    box-sizing: border-box;
    width: 100%;

    margin: 56px 0;
    padding: 0;

    border: 0;
}

.fdp-quote.fdp-quote .fdp-quote__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.fdp-quote.fdp-quote.has-image .fdp-quote__inner {
    grid-template-columns: 26% minmax(0, 1fr);
    gap: 0 clamp(28px, 5cqi, 48px);
}


/* Bild */

.fdp-quote.fdp-quote .fdp-quote__image {
    position: relative;

    overflow: hidden;

    aspect-ratio: 1 / 1;

    border-radius: 50%;

    background: #eef1f5;
}

.fdp-quote.fdp-quote .fdp-quote__image img {
    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    margin: 0;

    border-radius: 0;

    object-fit: cover;
    object-position: center top;
}


/* Anführungszeichen + Text + Name */

.fdp-quote.fdp-quote .fdp-quote__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0 clamp(16px, 3.4cqi, 30px);
}

.fdp-quote.fdp-quote .fdp-quote__mark {
    display: block;

    grid-row: 1 / span 2;

    width: clamp(42px, 8cqi, 68px);
    height: auto;

    margin-top: 2px;

    color: var(--fdp-blue, #032d67);
    fill: currentColor;
}

.fdp-quote.fdp-quote .fdp-quote__text {
    margin: 0;
    padding: 0;

    border: 0;

    background: none;
    color: var(--fdp-blue, #032d67);

    font-family: var(--fdp-font, "Public Sans", Arial, sans-serif);
    font-size: clamp(1.2rem, 3.3cqi, 1.75rem);
    font-style: normal;
    font-weight: 800;
    line-height: 1.26;
    letter-spacing: -0.01em;

    quotes: none;

    hyphens: manual;
    -webkit-hyphens: manual;
}

.fdp-quote.fdp-quote .fdp-quote__text::before,
.fdp-quote.fdp-quote .fdp-quote__text::after {
    content: none;
}

.fdp-quote.fdp-quote .fdp-quote__text p {
    width: auto;
    max-width: none;

    margin: 0;

    color: inherit;

    font: inherit;
    letter-spacing: inherit;
}

.fdp-quote.fdp-quote .fdp-quote__text a {
    color: inherit;

    text-decoration: underline;
    text-decoration-color: var(--fdp-cyan, #00a7e7);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.fdp-quote.fdp-quote .fdp-quote__source {
    display: flex;

    grid-column: 2;

    align-items: baseline;
    gap: 14px;

    margin: 22px 0 0;
    padding: 0;

    color: var(--fdp-blue, #032d67);

    font-family: var(--fdp-font, "Public Sans", Arial, sans-serif);
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;

    justify-content: flex-start;
}

.fdp-quote.fdp-quote .fdp-quote__source::before {
    display: block;

    flex: 0 0 34px;

    height: 5px;

    background: var(--fdp-cyan, #00a7e7);

    content: "";

    transform: translateY(-0.28em);
}


/* =====================================================
   SCHMALER INHALTSBEREICH (z. B. Handy)
   Bild oben, darunter Zeichen und Text.
===================================================== */

@container (max-width: 560px) {

    .fdp-quote.fdp-quote.has-image .fdp-quote__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .fdp-quote.fdp-quote .fdp-quote__image {
        width: 128px;
    }

    .fdp-quote.fdp-quote .fdp-quote__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .fdp-quote.fdp-quote .fdp-quote__mark {
        grid-row: auto;

        width: 44px;

        margin: 0 0 12px;
    }

    .fdp-quote.fdp-quote .fdp-quote__text {
        font-size: 1.3rem;
    }

    .fdp-quote.fdp-quote .fdp-quote__source {
        grid-column: auto;

        font-size: 0.85rem;
    }
}

@media (max-width: 767px) {

    .fdp-quote.fdp-quote {
        margin: 42px 0;
    }
}


/* =====================================================
   EDITOR
   Im Editor mittig in der Textspalte wie andere Blöcke.
===================================================== */

.editor-styles-wrapper .fdp-quote.fdp-quote {
    margin-right: auto;
    margin-left: auto;
}

.editor-styles-wrapper .fdp-quote.fdp-quote .fdp-quote__text,
.editor-styles-wrapper .fdp-quote.fdp-quote .fdp-quote__source {
    text-align: left;
}

.fdp-quote-editor .fdp-quote__image--empty {
    display: flex;

    align-items: center;
    justify-content: center;

    border: 2px dashed #c3c4c7;
}

.fdp-quote-editor .fdp-quote__image-actions {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    gap: 6px;

    margin-top: 10px;
}

.fdp-quote-editor .fdp-quote__source-fields {
    display: grid;

    grid-column: 2;

    gap: 6px;

    margin-top: 22px;
}

@container (max-width: 560px) {

    .fdp-quote-editor .fdp-quote__source-fields {
        grid-column: auto;
    }
}

.fdp-quote-editor .fdp-quote__source-fields .fdp-quote__source {
    grid-column: auto;

    margin: 0;
}

.fdp-quote-editor .fdp-quote__source + .fdp-quote__source::before {
    visibility: hidden;
}
