/* Enhanced Support for phpBB Advertisement Management: https://www.phpbb.com/customise/db/extension/ads/ */
.phpbb-ads-center img {
	max-width: 100%;
}
/* Posting-Bereich als Flex-Layout */
#postingbox fieldset.fields1 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

/* Alles, was über dem Editor stehen soll, volle Breite */
#postingbox fieldset.fields1 > dl,
#postingbox fieldset.fields1 > #colour_palette,
#postingbox fieldset.fields1 > #format-buttons,
#postingbox fieldset.fields1 > #abbc3_buttons,
#postingbox fieldset.fields1 > #bbcode_wizard {
    flex: 0 0 100%;
}

/* Textfeld links, Smileys rechts */
#postingbox #message-box {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}
#postingbox #smiley-box {
    order: 2;
    flex: 0 0 220px;
    max-height: 340px;
    float: none;
    width: auto;
    margin: 0;
}
#postingbox #smiley-box .smiley-scroll {
    max-height: 260px;
    overflow-y: auto;
}
#postingbox #message-box textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Mobil: Smileys wieder darunter */
@media (max-width: 700px) {
    #postingbox #message-box,
    #postingbox #smiley-box {
        flex: 0 0 100%;
        order: initial;
    }
}

/* ABBC3-Zeilen: alles in einer Reihe, umbrechen nur wenn nötig */
#abbc3_buttons .abbc3_buttons_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

/* Schriftgröße-Dropdown kompakt, kein Blockumbruch */
#abbc3_buttons .abbc3_dropdown_menu_btn {
    display: inline-block;
    float: none;
    width: auto;
    margin: 0;
}
#abbc3_buttons .abbc3_dropdown_menu_btn > a.button {
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    margin: 0;
}

/* Spoiler-Button wie die übrigen ABBC3-Buttons */
#abbc3_buttons button.bbcode-spoiler.abbc3_button {
    display: inline-block;
    float: none;
    width: 36px;
    height: 36px;
    margin: 0;
    flex: 0 0 auto;
}