/* ==========================================================================
   olii-mandatori.de – Ergänzungen zum Theme-Stylesheet (stylesheet.css)
   Übernommen aus WordPress (Customizer-CSS + Inline-Styles des Themes)
   und ergänzt um Formular, Meldungen und „Nach oben“-Button.

   WICHTIG: CSS/JS werden 1 Woche im Browser zwischengespeichert. Nach jeder
   Änderung an CSS- oder JS-Dateien in ALLEN Seiten die Versionsnummer
   "?v=20261130" hochzählen (z. B. ?v=20261215), sonst sehen Besucher die
   alte Fassung.
   ========================================================================== */

/* --- aus dem Theme-Header (Inline-Styles) --- */
@media (max-width: 767px) {
    .navbar-brand img {
        height: calc(100% + 50px);
        margin-top: -20px;
    }
}

@media (min-width: 768px) {
    .navbar-default .navbar-brand {
        top: 35px;
    }
}

footer {
    background-color: rgb(53, 81, 52);
}

/* --- aus dem WordPress-Customizer („Zusätzliches CSS“) --- */
.col-lg-12 {
    text-align: center;
}

.btn.btn-default {
    background: #CA1618 !important;
    color: #ffffff !important;
    padding: 18px;
    margin-top: 30px;
    margin-bottom: 100px;
    border-radius: 10px;
}

.control-label p {
    font-size: 12px;
    font-weight: normal;
}

/* --- Banner: Schlagschatten für bessere Lesbarkeit auf hellen Bildstellen --- */
header .intro-text h1,
header .intro-text h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.35);
}

/* --- Überschriften-Ebenen für Google korrigiert, Optik unverändert ---
   Startseite, unteres Banner: war <h1>, jetzt <h2> – sieht weiter aus wie h1.
   Anfrage-Seite: „JETZT BESTELLEN“ war <h2>, jetzt <h1> – sieht weiter aus wie h2. */
header .intro-text h2.wie-h1 {
    font-size: 3.5em;      /* wie h1 im Theme */
    font-weight: 600;
}

.anfrage-grid h1.wie-h2 {
    font-size: 2.6em;      /* wie h2 im Theme */
    font-weight: 500;
    margin-top: 22px;
    margin-bottom: 11px;
}

@media (max-width: 767px) {
    header .intro-text h2.wie-h1 {
        font-size: 1.925em !important;
    }

    .anfrage-grid h1.wie-h2 {
        font-size: 1.43em !important;
    }
}

/* --- Inhaltsseiten (Impressum, Datenschutz, Danke, 404) --- */
.content-page {
    padding-top: 150px;
    padding-bottom: 60px;
    min-height: 70vh;
}

.content-page h1 {
    margin-bottom: 30px;
}

.content-page h2 {
    margin-top: 35px;
}

.content-page h3 {
    margin-top: 25px;
}

/* eRecht24-Texte nutzen h4 für Unterpunkte. Das Theme macht h4 größer als h3
   (mit !important), daher hier ebenfalls !important. */
.content-page h4 {
    margin-top: 20px;
    font-size: 1.05em !important;
    font-weight: 600;
}

/* --- Handy: Banner-Überschriften nicht bis an den Rand laufen lassen --- */
@media (max-width: 767px) {
    .intro-text {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.content-page p,
.content-page li {
    overflow-wrap: break-word;
}

/* --- Anfrageformular (Layout wie bisher mit Caldera Forms) --- */
.anfrage-grid {
    max-width: 1198px;
    min-height: 86vh;   /* nach dem Absenden bleibt der Footer unten */
    margin: 0 auto;
    padding: 150px 29px 0;
}

.anfrage-grid h2,
.anfrage-grid h3 {
    text-align: center;
}

.anfrage-grid .produkt {
    margin-top: 10px;
    margin-bottom: 10px;
}

.anfrage-grid .produkt img {
    max-width: 100%;
    height: auto;
}

.anfrage-grid .produkt .menge .control-label {
    font-weight: bold;
}

.anfrage-grid .produkt .help-block {
    margin-top: 4px;
}

.anfrage-grid textarea.form-control {
    resize: vertical;
}

.anfrage-grid .datenschutz-hinweis {
    margin-top: 5px;
    font-size: 13px;
    text-align: center;
}

/* Honeypot-Feld für Spam-Bots: für Menschen unsichtbar */
.anfrage-grid .hp-feld {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Meldungen nach dem Absenden */
.formular-meldung {
    display: none;
    margin: 30px auto;
    padding: 18px 22px;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.formular-meldung.sichtbar {
    display: block;
}

.formular-meldung.erfolg {
    background: #e7f0e6;
    border: 1px solid #365134;
    color: #253a24;
    margin-top: 60px;
    margin-bottom: 200px;
}

.formular-meldung.fehler {
    background: #fbeaea;
    border: 1px solid #CA1618;
    color: #8a0f10;
}

.formular-meldung ul {
    display: inline-block;
    margin: 8px 0 0;
    padding-left: 18px;
    text-align: left;
}

.btn.btn-default[disabled] {
    opacity: 0.6;
    cursor: wait;
}

/* --- „Nach oben“-Button (war im Theme vorhanden, aber ohne Funktion) --- */
.back-to-top svg {
    width: 28px;
    height: 28px;
    margin-top: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
