/* =========================================================
   R+S Asbest Sanierung - SUVA Anmeldung
   Einfaches Rot/Weiss Design + Sanierer mit cursor-tracking
   ========================================================= */

:root {
    --rs-red: #C8102E;
    --rs-red-dark: #9E0D24;
    --rs-red-light: #f7d5db;
    --rs-white: #ffffff;
    --rs-bg: #f4f4f5;
    --rs-text: #1a1a1a;
    --rs-text-muted: #555;
    --rs-border: #d4d4d8;
    --rs-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--rs-text);
    background: var(--rs-bg);
}

/* ============ Header mit Sanierer ============ */
header {
    background: var(--rs-white);
    border-bottom: 6px solid var(--rs-red);
    padding: 32px 40px;
    box-shadow: var(--rs-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

header .header-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--rs-red);
    letter-spacing: 1px;
    text-align: center;
    flex: 1;
}

/* Sanierer-Charakter im Header - gross und prominent */
.worker-character {
    width: 400px;
    height: 400px;
    flex-shrink: 0;
}
.worker-character svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

.header-spacer {
    width: 400px;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .worker-character { width: 320px; height: 320px; }
    .header-spacer { width: 320px; }
}

@media (max-width: 900px) {
    header { flex-direction: column; gap: 16px; padding: 20px; }
    header .header-title { font-size: 36px; }
    .worker-character { width: 280px; height: 280px; }
    .header-spacer { display: none; }
}

@media (max-width: 500px) {
    .worker-character { width: 220px; height: 220px; }
    header .header-title { font-size: 28px; }
}

/* ============ Container ============ */
.container {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 20px;
}

h1 {
    color: var(--rs-red);
    font-size: 38px;
    font-weight: 900;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.intro {
    color: var(--rs-text-muted);
    font-size: 20px;
    margin: 0 0 32px 0;
}

/* ============ Sektionen ============ */
.section {
    background: var(--rs-white);
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--rs-shadow);
    border-left: 6px solid var(--rs-red);
}

.section h2 {
    color: var(--rs-red);
    font-size: 26px;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rs-red-light);
    font-weight: 800;
}

.sub-heading {
    color: var(--rs-red);
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0 8px 0;
}

.section-hint {
    color: var(--rs-text-muted);
    font-size: 16px;
    margin-top: -10px;
    margin-bottom: 16px;
    font-style: italic;
}

/* ============ Form-Elemente ============ */
label {
    display: block;
    font-weight: 700;
    font-size: 18px;
    color: var(--rs-text);
    margin-bottom: 8px;
    margin-top: 16px;
}

input[type="text"], input[type="number"], input[type="email"],
input[type="date"], input[type="tel"], textarea, select {
    width: 100%;
    padding: 16px 18px;
    font-size: 20px;
    font-family: inherit;
    border: 2px solid var(--rs-border);
    border-radius: 8px;
    background: var(--rs-white);
    color: var(--rs-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--rs-red);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.15);
}

textarea { min-height: 110px; resize: vertical; line-height: 1.5; }

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='%23C8102E' d='M4 6l4 4 4-4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* ============ Checkboxen / Radios ============ */
.checkbox-group, .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.checkbox-item, .radio-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--rs-bg);
    border: 2px solid var(--rs-border);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.checkbox-item:hover, .radio-item:hover {
    border-color: var(--rs-red);
    background: var(--rs-red-light);
}

.checkbox-item input, .radio-item input {
    width: 24px;
    height: 24px;
    accent-color: var(--rs-red);
    cursor: pointer;
    margin: 0;
}

.checkbox-item:has(input:checked), .radio-item:has(input:checked) {
    border-color: var(--rs-red);
    background: var(--rs-red);
    color: var(--rs-white);
}

.radio-label-inline {
    font-weight: 700;
    margin-right: 8px;
    margin-top: 16px;
    display: block;
}

/* ============ Grid-Layouts ============ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px 24px;
}

@media (max-width: 700px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ============ Submit-Button ============ */
.submit-wrap { text-align: center; margin: 40px 0; }

button[type="submit"] {
    background: var(--rs-red);
    color: var(--rs-white);
    border: none;
    padding: 22px 48px;
    font-size: 22px;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
    transition: all 0.15s ease;
    width: 100%;
    max-width: 600px;
}

button[type="submit"]:hover {
    background: var(--rs-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.45);
}

button[type="submit"]:active { transform: translateY(0); }

/* ============ Footer ============ */
footer {
    text-align: center;
    color: var(--rs-text-muted);
    font-size: 15px;
    padding: 24px 20px 40px 20px;
    border-top: 1px solid var(--rs-border);
    margin-top: 40px;
    background: var(--rs-white);
}

footer strong { color: var(--rs-red); }

.required { color: var(--rs-red); font-weight: 900; }

.message {
    background: var(--rs-red-light);
    border-left: 6px solid var(--rs-red);
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-weight: 600;
}
