/* =========================================================
   SEWOBE Newsletter-Formular 199 – Design Skisport Meerbusch
   Farben: Navy #283050, Dunkelblau #1B348D, Blau #0077AA,
           Eisblau #92D5F6, Orange #F39334, Gletscherweiß #F3F8FC
   Schrift: Open Sans (von SEWOBE gehostet, wie beim Mitgliedsformular)
   ========================================================= */
@import url('https://fonts.sewobe.de/opensans.css');

*, *:after, *:before {
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 17px;
    color: #283050;
    line-height: 1.55;
    background-color: transparent;
}

form, .form {
    width: 100%;
    max-width: 760px;
    padding: 4px 8px;
    overflow: hidden;
    margin: 0 auto;
}

header, nav { width: 100%; display: block; }

/* Überschrift im Formular: dezent, die Seite hat ihre eigene große Überschrift */
header h1 {
    text-align: left;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1B348D;
    padding: 8px 0 4px;
}
h1 { font-size: 22px; font-weight: 800; padding: 8px 0 4px; }
h2 { font-size: 20px; font-weight: 800; padding: 16px 0 8px; color: #1B348D; }
h4 { font-size: 16px; font-weight: 700; padding: 12px 0 4px; color: #283050; }

main, footer { padding: 8px 0; }
section, .alert, .inputs { clear: both; }

/* Einfaches Raster: Vorname und Name nebeneinander */
.inputs { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.inputs > [class*="col-"] { width: 100%; padding: 0 8px; }
@media (min-width: 600px) {
    .inputs > .col-md-6 { width: 50%; }
    .inputs > .col-md-4 { width: 33.333%; }
    .inputs > .col-md-offset-8 { margin-left: 66.666%; }
    .inputs > .col-md-offset-4 { margin-left: 33.333%; }
}

/* Meldungen */
.alert:not(:empty) {
    border-radius: 0;
    padding: 14px 16px;
    font-size: 15px;
}
.alert-danger:not(:empty) { background-color: #E84148; color: #FFFFFF; }
.alert-success:not(:empty) { background-color: #84BE4B; color: #283050; }
.alert-fixed:not(:empty) {
    position: fixed;
    width: calc(100% - 40px);
    top: 50%;
    left: 50%;
    max-width: 640px;
    z-index: 100;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 16px rgba(40, 48, 80, .20);
}
.close { position: absolute; right: 15px; top: 15px; cursor: pointer; }
.close svg { height: 20px; }

.js-live-errormsg { left: 0; background-color: transparent; color: #E84148; top: 46px; font-size: 13px; }
.input-checkbox .js-live-errormsg { top: 0; left: 22px; }
input:not([type='checkbox']).js-live-error, select.js-live-error, textarea.js-live-error { border-color: #E84148; }

/* Eingabefelder wie im Kontaktformular der Website */
.input-field {
    position: relative;
    margin: 14px 0 0;
    padding-bottom: 18px;
    width: 100%;
}
label { line-height: 1.5; margin: 0; padding: 0; }

input, select, textarea {
    border: 1px solid #F39334;
    background-color: #FFFFFF;
    border-radius: 5px;
    margin: 2px 0;
    padding: 8px 12px;
    height: 46px;
    outline: none;
    font-family: inherit;
    font-size: 17px;
    color: #283050;
    width: 100% !important;
}
textarea { height: auto; }
select {
    padding-right: 40px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background: #FFFFFF url(https://www.sewobe.de/fileadmin/download/vArrow1.svg) no-repeat calc(100% - 14px) center;
}

.input-field > input, .input-field > select, .input-field > textarea {
    position: relative;
    z-index: 10;
    background-color: transparent;
    margin-bottom: 0;
}
.input-field > input:focus, .input-field > select:focus, .input-field > textarea:focus {
    border: 2px solid #0077AA;
    padding: 7px 11px;
    box-shadow: none !important;
}

/* Schwebende Beschriftung */
.input-field > label {
    position: absolute;
    top: 0;
    left: 8px;
    line-height: 22px;
    padding: 0 4px;
    color: #4A5470;
    cursor: text;
    transition: transform .2s ease-out, color .2s ease-out;
    transform-origin: 0% 100%;
    transform: translateY(13px);
    z-index: 0;
}
.input-field input ~ label.filled,
.input-field input:focus ~ label,
.input-field select ~ label.filled,
.input-field select:focus ~ label,
.input-field textarea ~ label.filled,
.input-field textarea:focus ~ label {
    transform: translateY(-9px) scale(0.8);
    transform-origin: 0 0;
    z-index: 15;
    background-color: #FFFFFF;
    font-weight: 700;
    color: #1B348D;
}

/* Checkboxen mit Datenschutz-Texten */
.input-checkbox {
    display: block;
    position: relative;
    padding: 14px 16px 14px 46px;
    margin: 14px 0 0;
    cursor: pointer;
    user-select: none;
    font-size: 15px;
    background-color: #F3F8FC;
    border-left: 4px solid #F39334;
}
input[type="checkbox"] { width: 18px !important; height: 18px; }
.input-checkbox > input {
    display: block;
    width: 18px !important;
    height: 18px;
    margin: 0;
    left: 16px;
    top: 17px;
    border: none;
    position: absolute;
    cursor: pointer;
    accent-color: #0077AA;
}

/* Buttons wie auf der Website */
.btn {
    border-radius: 5px;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    padding: 12px 20px;
    margin: 18px 0 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: 100%;
    transition: background-color .2s ease, color .2s ease;
}
.btn svg { height: 14px; margin-left: 6px; vertical-align: -1px; }
.btn:hover, .btn:focus { cursor: pointer; }

.btn-primary, footer a { background-color: #0077AA; color: #FFFFFF; }
.btn-primary:hover, .btn-primary:focus, footer a:hover { background-color: #92D5F6; color: #283050; }
.btn-plain, #zurueck { background-color: transparent; color: #0077AA; border-color: #0077AA; }
.btn-plain:hover, #zurueck:hover { background-color: #F3F8FC; }

a { color: #0077AA; text-decoration: underline; cursor: pointer; }
.newsletter > div { clear: both; }
footer a { text-decoration: none; padding: 12px 20px; border-radius: 5px; }

.nummer { color: #F39334; font-weight: 800; }

/* Newsletter-Auswahl und Hinweis unter den Haken */
.ssm-kat-label { margin-top: 22px; font-weight: 700; color: #1B348D; }
.ssm-kat {
    margin-top: 8px;
    padding: 12px 16px;
    background-color: #F3F8FC;
    border-left: 4px solid #F39334;
    font-size: 16px;
}
.ssm-kat input[type="checkbox"] {
    accent-color: #0077AA;
    margin-right: 10px;
    vertical-align: -3px;
}
.ssm-kat label { cursor: pointer; }
.ssm-hinweis { margin-top: 16px; font-size: 15px; color: #4A5470; }

/* Handy */
@media all and (max-width: 599px) {
    body { font-size: 16px; }
    .inputs > [class*="col-"] { margin-left: 0 !important; }
}
