: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: system-ui, sans-serif;
    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;
}

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

.participant {
    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;
}

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

.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;
}

.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);
    margin-bottom: 1rem;
}

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

}
.remove {
    background: var(--color-secondary);
    font-size: 0.8rem;
    color:white;
}
.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-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;
}