/* =========================================================
   Blauer Panther - custom.css
   Screenbased Studio - Overrides & Content-Typo.
   Wird via functions.php nach der Child-style.css enqueued
   (Handle: screenbased-custom, dep: cinerama-edge-child-style).
   Cache-Bust automatisch ueber filemtime().
   ========================================================= */

/* ---------------------------------------------------------
   Content-Typo (WPBakery-Body, site-weit)
   Scope .wpb_text_column -> trifft nur echte Text-Blocke,
   nicht Nav / Widgets / Footer / Icon-Listen / Akkordeons.
   --------------------------------------------------------- */

.wpb_text_column ul {
    padding-left: 1.2em;
    margin-left: 0;
    list-style-position: outside;
}

.wpb_text_column ul li {
    margin-bottom: .25em;
}

.wpb_text_column h4 {
    font-weight: 400;
}

/* ---------------------------------------------------------
   TotalPoll - Fehlermeldungen

   Zwei Sorten, die das Plugin unterschiedlich rendert:
   .totalpoll-message-error          Formularebene
                                     ("mindestens 1 Wahl-
                                     moeglichkeit")
   .totalpoll-form-field-errors      pro Feld (E-Mail, AGB)

   Die Formularmeldung ist im Markup das ERSTE Kind des
   <form> und stand damit weit oberhalb der Auswahl -
   ausserhalb des Sichtbereichs des Nutzers, der gerade auf
   "Abstimmen" geklickt hat. Per Flex-Order wandert sie
   direkt ueber den Button.

   Beide Sorten bekommen dieselbe Optik: Pink aus dem
   Verlauf des Abstimmen-Buttons (#ff00de), 10% als Flaeche,
   voll als Rahmen.

   Zugehoerig: inc/totalpoll.php (unterdrueckt das
   Hochscrollen im Fehlerfall).
   --------------------------------------------------------- */

#blauerpanther .totalpoll-form {
    display: flex !important;
    flex-direction: column;
}

#blauerpanther .totalpoll-form > .totalpoll-message-error {
    order: 98;
    margin: 0 0 1.25em;
}

#blauerpanther .totalpoll-form > .totalpoll-buttons {
    order: 99;
}

#blauerpanther .totalpoll-message-error,
#blauerpanther .totalpoll-form-field-errors {
    background-color: rgba(255, 0, 222, .10) !important;
    border: 1px solid #ff00de !important;
    border-radius: 0 !important;
    color: #f7f7f7 !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}

#blauerpanther .totalpoll-form-field-errors-item {
    color: #f7f7f7 !important;
    font-size: 16px !important;
}

/* The error containers are rendered for every field and sit
   empty until a validation fails - without this they would
   show up as empty pink boxes. */
#blauerpanther .totalpoll-form-field-errors:empty {
    display: none !important;
    border: 0 !important;
    padding: 0 !important;
}
