:root {
    --bg: #C6B98C;
    --surface: #f7f2e4;
    --text: #2b2418;
    --accent: maroon;
    --border: #b3a574;
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--bg);
}

/* Feste Breite: unabhängig vom Inhalt */
body {
    width: min(56rem, 100% - 2rem);
    margin: 2rem auto;
    font-family: system-ui, sans-serif;
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Jeder Block direkt im body ist eine Karte */
body > div {
    margin: 0 0 1rem;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.6em;
}

h1 {
    margin: 0;
    font-size: 1.5em;
    text-align: center;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

/* Suchzeile */
.search {
    display: flex;
    gap: 0.5rem;
}

input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 0.8em 1em;
    font: inherit;
    font-size: 1.2em;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.5em;
}

input[type="text"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

button,
input[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.2em;
    font: inherit;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 0.5em;
    cursor: pointer;
}
 
button:hover,
input[type="submit"]:hover {
    filter: brightness(1.2);
}
 
button svg {
    width: 1.3em;
    height: 1.3em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* Link rechts neben der Suche */
.search a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.2em;
    color: #fff;
    background: var(--accent);
    border-radius: 0.5em;
}

.search a:hover,
.search a:focus-visible {
    filter: brightness(1.2);
    text-decoration: none;
}


/* Optionen: zwei Gruppen, je eine Zeile */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    margin-top: 0.8rem;
}

label {
    cursor: pointer;
}

input[type="radio"] {
    accent-color: var(--accent);
}

/* Ergebnisse */
table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

td,
th {
    padding: 0.4em 0.6em;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

/* Erste Spalte (ID) schmal, Rest teilt sich den Platz */
th:first-child,
td:first-child {
    width: 4.5rem;
}

/* Vierte Spalte (Word Class) breiter */
th:nth-child(4),
td:nth-child(4) {
    width: 35%;
}


th {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--accent);
}

tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover td {
    background: rgba(0, 0, 0, 0.04);
}
