/* Schrift: Montserrat von der eigenen Domain (Pfad nach dem Livegang prüfen) */
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-weight: 400;
    src: url('https://kfz-pannenbecker.com/fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-weight: 600;
    src: url('https://kfz-pannenbecker.com/fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

/* Grundlayout: kein eigener Rand, die Box auf der Website liefert ihn */
html,
body {
    background: transparent;
}

body {
    font-family: 'Montserrat', helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #07141e;
}

body #main {
    padding: 0;
}

body #form1 fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

/* Felder */
body #form1 .form-element {
    margin-bottom: 18px;
}

body #form1 .form-label {
    display: block;
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1900ab;
}

body #form1 .text-input,
body #form1 textarea,
body #form1 select {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 15px;
    border: 2px solid #cfd8e6;
    border-radius: 8px;
    background-color: #fff;
    font-family: 'Montserrat', helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #07141e;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

body #form1 .text-input:hover,
body #form1 textarea:hover,
body #form1 select:hover {
    border-color: #0161b5;
}

body #form1 .text-input:focus,
body #form1 textarea:focus,
body #form1 select:focus {
    border-color: #0161b5;
    box-shadow: 0 0 0 4px rgba(1, 97, 181, 0.15);
}

body #form1 textarea {
    min-height: 160px;
    max-height: 400px;
    resize: vertical;
}

/* Auswahlfeld mit eigenem Pfeil */
body #form1 select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 45px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231900ab' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    cursor: pointer;
}

/* "Ich bin keine Maschine"-Box */
body #form1 #dsasec-container {
    margin: 25px 0;
    border: 2px solid #cfd8e6;
    border-radius: 12px;
    background-color: #eef4fb;
}

body #form1 #dsasec-container:hover {
    border-color: #0161b5;
}

body #form1 #dsasec-msg-box {
    font-size: 14px;
    color: #07141e;
}

/* Datenschutz-Checkbox */
body #form1 #pnl_policy {
    margin: 10px 0 0;
}

body #form1 #pnl_policy label {
    position: relative;
    display: block;
    padding-left: 32px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

body #form1 #pnl_policy input[type="checkbox"] {
    position: absolute;
    top: 1px;
    left: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #1900ab;
    cursor: pointer;
}

body #main a {
    color: #0161b5;
    text-decoration: underline;
}

body #main a:hover {
    color: #1900ab;
}

/* Absenden-Button wie auf der Website */
body #form1 .submit {
    display: inline-block;
    width: auto;
    margin-top: 25px;
    padding: 10px 30px;
    border: 2px solid #1900ab;
    border-radius: 8px;
    background: #1900ab;
    font-family: 'Montserrat', helvetica, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

body #form1 .submit:hover,
body #form1 .submit:focus-visible {
    background: #0161b5;
    border-color: #0161b5;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(7, 20, 30, 0.25);
}

/* Fehler bei der Prüfung */
body #form1 .error,
body #form1 label.error {
    color: #c8102e;
}

body #form1 .text-input.error,
body #form1 textarea.error {
    border-color: #c8102e;
}

/* Status-Meldungen nach dem Absenden */
body #main #status_message_ok,
body #main #status_message_error {
    margin-bottom: 25px;
    border: 0;
    border-radius: 12px;
}

body #main #status_message_ok {
    background: #eef4fb;
    border-left: 5px solid #0161b5;
}

body #main #status_message_error {
    background: #fdecee !important;
    border-left: 5px solid #c8102e;
}

body #main #status_message_ok span,
body #main #status_message_error span {
    padding: 18px 22px;
    font-size: 16px;
    color: #07141e;
}

/* SSL-Leiste unten */
body #main .secure {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin-top: 35px;
    padding: 15px 20px;
    border-radius: 12px;
    background: #1900ab;
}

body #main .secure p {
    width: auto;
    padding: 0;
    font-size: 13px;
    color: #fff;
}

body #main .securelink {
    width: auto;
    min-width: 0;
    padding: 0;
}

body #main .securelink img {
    max-width: 130px;
    filter: none;
}

body #main .secure a.securebutton {
    width: auto;
    padding: 0;
    background: none;
    font-size: 13px;
    color: #fff;
    text-decoration: underline;
}

body #main .secure a.securebutton:hover {
    background: none;
    color: #9fc6ea;
}

@media (max-width: 600px) {
    body #main .secure {
        padding: 12px 15px;
    }
}


/* Handy */
@media (max-width: 600px) {
    body #form1 .submit {
        width: 100%;
    }

    body #main .secure {
        padding: 12px 15px;
    }
}
