/* =======================================================
   JUBILÄUMS-KOCHBUCH – Rezept-Einsendeformular
   Wird nur auf der Kochbuch-Seite geladen
   (templates/kochbuch.html.twig) und greift ausschliesslich
   innerhalb von .kochbuch, damit die uebrigen Formulare der
   Seite unveraendert bleiben.
   Farben und Abstaende kommen aus den Variablen in style.css.
======================================================= */

/* Abschnittsueberschriften im Formular (Feldtyp "spacer") */
.kochbuch .form-spacer {
    margin: 40px 0 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.kochbuch .form-spacer:first-child {
    margin-top: 10px;
    padding-top: 0;
    border-top: none;
}

.kochbuch .form-spacer h3 {
    margin: 0 0 4px;
    color: var(--color-primary);
}

.kochbuch .form-spacer p {
    margin: 0;
    color: var(--text-muted);
}

/* Pflichtfeld-Sternchen */
.kochbuch .form-field label .required {
    color: var(--color-primary);
    margin-left: 3px;
}

/* Hinweistexte unter einem Feld (Feld-Eigenschaft "description") */
.kochbuch .form-description {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-muted);
}

/* Grosse Textfelder in der Schrift der Seite statt in Schreibmaschinenschrift
   (Browser-Standard fuer <textarea>). Bewusst nur hier, damit sich Kontakt-
   und Adventskalender-Formular nicht veraendern. */
.kochbuch .form-field textarea {
    font-family: inherit;
    line-height: 1.5;
}

/* Einwilligungen: Text neben der Checkbox lesbar umbrechen */
.kochbuch .form-field.checkbox label,
.kochbuch .form-field input[type="checkbox"] + label {
    font-size: 17px;
    line-height: 1.45;
}

/* Fehlermeldungen etwas ruhiger einbetten */
.kochbuch .form-errors,
.kochbuch .form-message {
    font-size: 17px;
    line-height: 1.45;
}

/* Hochgeladene Dateien (Dropzone des Form-Plugins) */
.kochbuch .dropzone-wrapper,
.kochbuch .dz-preview {
    max-width: 100%;
}

/* Schmale Bildschirme */
@media (max-width: 700px) {
    .kochbuch .form-spacer {
        margin-top: 30px;
    }

    .kochbuch .form-field label {
        font-size: 17px;
    }

    .kochbuch .form-description {
        font-size: 14px;
    }
}

/* =======================================================
   FOTO-UPLOAD (Dropzone des form-Plugins)
   Das Theme macht Datei-Eingabefelder sichtbar
   (style.css, Abschnitt FILE UPLOAD). Innerhalb der
   Dropzone ist das doppelt gemoppelt: dort uebernimmt das
   JavaScript des form-Plugins. Deshalb hier nur fuer die
   Kochbuch-Seite das rohe Eingabefeld ausblenden und die
   Ablageflaeche freundlich gestalten.
======================================================= */

.kochbuch .form-field .dropzone > input[type="file"] {
    display: none;
}

.kochbuch .form-field .dropzone {
    border: 2px dashed var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    padding: 26px 18px;
    min-height: 120px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.kochbuch .form-field .dropzone:hover,
.kochbuch .form-field .dropzone.dz-drag-hover {
    border-color: var(--color-primary);
    background: var(--bg-hover);
}

.kochbuch .form-field .dropzone .dz-message,
.kochbuch .form-field .dropzone .dz-message span {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-muted);
}

.kochbuch .form-field .dropzone .dz-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.kochbuch .form-field .dropzone .dz-message strong {
    color: var(--color-primary);
}

/* Vorschaubilder der hochgeladenen Fotos */
.kochbuch .form-field .dropzone .dz-preview {
    margin: 14px 10px 0;
}

.kochbuch .form-field .dropzone .dz-preview .dz-filename span,
.kochbuch .form-field .dropzone .dz-preview .dz-size span {
    background: none;
    border: none;
}

@media (max-width: 700px) {
    .kochbuch .form-field .dropzone {
        padding: 20px 12px;
    }

    .kochbuch .form-field .dropzone .dz-message {
        font-size: 16px;
    }
}
