:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #182338;
    background: #f3f5f9;
    line-height: 1.55;
    --navy: #132745;
    --muted: #4c5c71;
    --blue: #183f83;
    --line: #d9e0eb;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #3676d8; outline-offset: 3px; }

.top {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 0 max(20px, calc((100% - 760px) / 2));
    background: var(--navy);
    border-bottom: 4px solid #e7b554;
}

.top a { color: #fff; text-decoration: none; font-weight: 750; }
.top span { color: #e7b554; padding: 0 .35em; }
.wrap { width: min(760px, calc(100% - 32px)); margin: auto; padding: 20px 0 48px; }
.languages { text-align: right; font-size: .95rem; }
.intro { margin: 27px 0 24px; }
.event { font-weight: 700; color: var(--blue); margin: 0 0 5px; }
h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.12; letter-spacing: -.035em; }
h2 { margin: 0 0 12px; font-size: 1.2rem; }
.intro > p:last-child { color: var(--muted); margin: 12px 0 0; }
.admin-intro form { margin-top: 15px; }

.panel {
    padding: clamp(16px, 4vw, 28px);
    margin-bottom: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 25px #1327450b;
}

.panel > p:first-child { margin-top: 0; }
.panel > p:last-child { margin-bottom: 0; }
label { font-weight: 700; display: block; }
.search > label { margin-bottom: 6px; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; }
input, select, button { font: inherit; }
input:not([type="checkbox"]), select {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #8190a6;
    border-radius: 8px;
    color: inherit;
    background: #fff;
}
input[name="callsign"], input[name="rufzeichen"] { text-transform: uppercase; }
button {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    background: var(--blue);
    color: white;
    font-weight: 700;
    cursor: pointer;
}
button:hover { background: #112e60; }
button.secondary { color: var(--blue); background: #f1f5fc; border-color: var(--line); }
button.secondary:hover { background: #e7edf8; }
button.danger { color: #8a2930; }
.stack { display: grid; gap: 8px; }
.stack > label:not(:first-of-type) { margin-top: 8px; }
.stack > button { justify-self: start; margin-top: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.search + h2, .message { margin-top: 20px; }
.message { padding: 12px 14px; background: #eef3fa; border-radius: 8px; }
.message.error { background: #fcebec; color: #86232e; }
.message.success { background: #e8f5ec; color: #145a34; }
.results { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.search + .results { margin-top: 16px; }
.result, .manage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 9px 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
}
.result { text-decoration: none; font-weight: 700; }
.result:hover { background: #f1f5fc; }
.result > span:last-child { text-decoration: underline; }
.award-name { background: #eaf2ff; color: #1c417b; border-radius: 6px; padding: 4px 9px; }
.award-name.bronze { background: #faede5; color: #793d22; }
.award-name.silber { background: #e8edf3; color: #334357; }
.award-name.gold { background: #fbf0cf; color: #62470b; }

@media (max-width: 450px) {
    .search-row { flex-direction: column; }
    .search-row button { width: 100%; }
}

.footer {
    border-top: 1px solid var(--line);
    padding: 18px max(16px, calc((100% - 760px) / 2));
}
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.legal h2:not(:first-child) { margin-top: 24px; }
.result > span:first-child { overflow-wrap: anywhere; }
