/* work-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/work-sans-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* work-sans-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Work Sans';
    font-style: italic;
    font-weight: 400;
    src: url('assets/fonts/work-sans-v24-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* work-sans-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 500;
    src: url('assets/fonts/work-sans-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* work-sans-500italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Work Sans';
    font-style: italic;
    font-weight: 500;
    src: url('assets/fonts/work-sans-v24-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* work-sans-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 600;
    src: url('assets/fonts/work-sans-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* work-sans-600italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Work Sans';
    font-style: italic;
    font-weight: 600;
    src: url('assets/fonts/work-sans-v24-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


:root {
    --color-primary: #ce192a;
    --color-secondary: #34a853;
    --color-accent: #fbbc05;

    --color-text: #222222;
    --color-text-light: #666666;

    --color-bg: #f6f7f8;
    --color-bg-second: #FFFFFF;
    --color-bg-muted: #eeeeee;

    --color-border: #dddddd;
    --color-error: #d93025;
}
*, *::before, *::after {
    box-sizing: border-box;
}

/* Mobile First */
body {
    font-family: 'Work Sans', system-ui, sans-serif;
    letter-spacing: -0.04em;
    background: var(--color-bg);
    margin: 0;
    padding: 1rem;
}

section, form {
    max-width: 720px;
    margin: auto;
    background: var(--color-bg-second);
    padding: 1rem;
    border-radius: 10px;
}

/* ── Form Header: 2-spaltig (h1 links, Logos rechts) ──────── */
/* Mobile first: gestapelt, Logos oben */
.form-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-header__title {
    font-size: 2rem;
    margin: 0;
    order: 2; /* Mobile: Titel unter den Logos */
}
.form-header__title > span { font-weight: normal; }

.form-header__logos {
    order: 1; /* Mobile: Logos oben */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-header__logos img {
    max-width: 180px;
    width: auto;
    display: block;
}


/* Desktop: nebeneinander, h1 links, Logos rechts */
@media (min-width: 600px) {
    .form-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .form-header__title {
        order: 1; /* Desktop: Titel links */
        flex: 1;
        min-width: 0;
    }

    .form-header__logos {
        order: 2; /* Desktop: Logos rechts */
        flex: 0 0 auto;
        max-width: 200px;
        align-self: flex-end;
        justify-content: flex-end;
    }
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
h1 > span { font-weight:normal; }

.form-error {
    margin: 0.75rem 0;
    padding: 0.75rem;
    border: 1px solid var(--color-error);
    background: #fce8e6;
    color: var(--color-error);
    border-radius: 6px;
    font-size: 0.95rem;
}

[class="field-invalid"], .field-invalid {
    border-color: var(--color-error) !important;
    background: #fff4f4;
}

[hidden] {
    display: none !important;
}

.participant, .resendform {
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:-1rem -1rem 1rem -1rem;padding:0.5rem;font-size:1.2rem;background:var(--color-bg-muted);

    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.participant-header strong {
    font-size: 1.25rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 600px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
}

label {
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-weight:bold;
}

.company-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.company-copy {
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-primary);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    text-align: right;
    white-space: nowrap;
}

.consent {
    font-size: 0.85rem;
}

button {
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.add {
    background: var(--color-bg-muted);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.submit {
    background: var(--color-primary);
    color: white;
    width: 100%;
}
.submit-small {
    background: var(--color-primary);
    color: white;

}
.remove {
    background: var(--color-primary);
    font-size: 1rem;
    color:white;
}
button.remove {
    padding: 0.4rem;
    margin: -0.4rem 0 -0.4rem;
}
.consents {
    margin-top: 0.8rem;
}

.consent {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid #eee;
    padding-left: 0.5rem;
}

.consent label {
    display: inline;
}

.consent-toggle {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.8rem;
    margin-left: 0.4rem;
    padding: 0;
    cursor: pointer;
}

.consent-details {
    display: none;
    margin-left: 1.2rem;
    margin-top: 0.3rem;
    color: #555;
    line-height: 1.3;
}

.consent.open .consent-details {
    display: block;
}
.consent-label {
    display: flex;
    align-items: flex-start; /* wichtig für mehrzeiligen Text */
    gap: 0.5rem;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.15rem; /* optische Feinjustierung */
    flex-shrink: 0;
}

.consent-text {
    display: inline;
    line-height: 1.3;
}


