/* Ergänzungen zum Montoya-Theme für die neue Homepage (Yii3).
   Theme-Dateien (style.css usw.) bleiben unverändert – alles Neue steht hier. */

/* Rechtstexte und Formulare: Text markierbar (das Theme sperrt user-select seitenweit –
   Impressum und Adressen soll man kopieren können), lesbare Überschriften auf Dunkel. */
.hp-rechtstext,
.hp-rechtstext * {
    -webkit-user-select: text;
    user-select: text;
}

.hp-rechtstext {
    color: #fff;
}

@media screen and (max-width: 1200px) {
    .hp-rechtstext.row_padding_top {
        padding-top: 100px;
    }
}

.hp-rechtstext h2 {
    color: #fff;
    font-size: 1.25rem;
    margin: 2.2em 0 .6em;
}

.hp-rechtstext p,
.hp-rechtstext li {
    color: rgba(255, 255, 255, .85);
    line-height: 1.6;
}

.hp-rechtstext ul {
    padding-left: 1.2em;
}

.hp-rechtstext a {
    color: #e2d4c7;
}

.hp-fassung {
    color: rgba(255, 255, 255, .45);
    font-size: .85em;
}

/* Hinweisbox (Widerruf, Sprachhinweis Datenschutz) – wie bisher .widerruf-hinweis */
.hp-hinweis {
    background: rgba(226, 212, 199, .08);
    border-left: 3px solid #e2d4c7;
    border-radius: 6px;
    color: #fff;
    padding: 16px 18px;
    margin-bottom: 20px;
}

/* Formular (Widerruf) – Farben wie bisher .widerruf-form */
.hp-feld {
    margin-bottom: 1rem;
}

.hp-feld label {
    color: #fff;
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.hp-feld input[type=text],
.hp-feld input[type=email],
.hp-feld select,
.hp-feld textarea {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    color: #fff;
    display: block;
    font: inherit;
    padding: 12px 14px;
    width: 100%;
}

.hp-feld select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.hp-feld select option {
    background: #171717;
    color: #fff;
}

.hp-feld ::placeholder {
    color: rgba(255, 255, 255, .4);
}

.hp-feld input:focus,
.hp-feld select:focus,
.hp-feld textarea:focus {
    background-color: rgba(255, 255, 255, .09);
    border-color: #e2d4c7;
    box-shadow: 0 0 0 3px rgba(226, 212, 199, .15);
    outline: none;
}

.hp-feld [aria-invalid=true] {
    border-color: #ff8a80;
}

.hp-fehler {
    color: #ff8a80;
    font-size: .85rem;
    margin-top: 4px;
}

.hp-haken {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hp-haken label {
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}

.hp-haken input[type=checkbox] {
    accent-color: #e2d4c7;
    height: 18px;
    width: 18px;
}

.hp-haken .hp-fehler {
    flex-basis: 100%;
}

/* Bot-Falle: aus dem Bild, aber nicht display:none (manche Bots überspringen das). */
.hp-falle {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

/* Knopf – wie bisher .widerruf-btn */
.hp-knopf,
a.hp-knopf {
    background: #e2d4c7;
    border: none;
    border-radius: 6px;
    color: #0c0c0c;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    padding: 14px 40px;
    text-decoration: none;
    transition: opacity .2s;
}

.hp-knopf:hover,
.hp-knopf:focus-visible {
    color: #0c0c0c;
    opacity: .82;
}

/* Menü: 13 Sprachen umbrechen statt aus dem Bild laufen */
.hp-nav-sprachen {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: .5em;
}

.hp-fuss {
    pointer-events: initial;
}

/* Sprachwahl (ersetzt das Bootstrap-Modal) */
.hp-dialog {
    background: #171717;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    color: #fff;
    max-width: 560px;
    padding: 20px 24px 24px;
    width: calc(100% - 32px);
}

.hp-dialog::backdrop {
    background: rgba(0, 0, 0, .6);
}

.hp-dialog__kopf {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hp-dialog__kopf h2 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.hp-dialog__kopf button {
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
}

.hp-dialog__sprachen {
    display: grid;
    gap: 6px 16px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 480px) {
    .hp-dialog__sprachen {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-dialog__sprachen a {
    border-radius: 6px;
    color: #fff;
    padding: 6px 8px;
    text-decoration: none;
}

.hp-dialog__sprachen a:hover,
.hp-dialog__sprachen a[aria-current] {
    background: rgba(226, 212, 199, .15);
}

/* Auf den hellen Verlaufsflächen (Kontakt) in Markengrün statt Beige */
a.hp-knopf--dunkel,
.hp-knopf--dunkel {
    background: #013330;
    color: #fff;
}

a.hp-knopf--dunkel:hover,
.hp-knopf--dunkel:focus-visible {
    color: #fff;
}
