* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f3f3f3;
    color: #111;
}

header {
    background: #111;
    color: white;
    padding: 14px;
}

header h1 {
    margin: 0 0 6px 0;
}

header form {
    margin-top: 8px;
}

header button {
    width: auto;
}

main {
    padding: 12px;
    max-width: 1200px;
    margin: auto;
}

.box {
    background: white;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 8px;
}

.tabs {
    display: flex;
    overflow-x: auto;
    background: #222;
    position: sticky;
    top: 0;
    z-index: 20;
}

.tabs a {
    color: white;
    text-decoration: none;
    padding: 14px;
    white-space: nowrap;
    border-right: 1px solid #444;
}

.tabs a.active {
    background: #0b74de;
}

input,
select,
button,
textarea {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    margin: 5px 0 12px 0;
}

textarea {
    min-height: 140px;
}

button {
    border: 1px solid #888;
    border-radius: 6px;
    background: #eee;
    cursor: pointer;
}

button.primary {
    background: #0b74de;
    color: white;
    border-color: #0b74de;
}

button.danger {
    background: #b00020;
    color: white;
    border-color: #b00020;
}

.bigbutton {
    font-size: 20px;
    padding: 16px;
    margin-bottom: 8px;
}

.statusbox {
    background: #f2f7ff;
    border: 1px solid #bcd8ff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 18px;
}

.knoppen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.choice {
    min-height: 72px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background: white;
    font-size: 17px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.choice.active {
    border-color: #0b74de;
    background: #e8f2ff;
}

.choice .sub {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.choice .badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    background: #111;
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
}

.bestelbar {
    position: sticky;
    bottom: 0;
    background: #111;
    padding: 10px;
    border-radius: 10px;
    z-index: 30;
}

.bestelbar button {
    margin: 4px 0;
}

.inlinebuttons {
    display: flex;
    gap: 6px;
}

.inlinebuttons form {
    flex: 1;
}

.inlinebuttons button {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-bottom: 15px;
}

th,
td {
    border: 1px solid #ccc;
    padding: 9px;
    vertical-align: top;
}

th {
    background: #eee;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 14px 0;
}

@media (max-width: 700px) {
    main {
        padding: 8px;
    }

    .knoppen {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .choice {
        min-height: 76px;
        font-size: 16px;
        padding: 8px;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 10px;
        border: 1px solid #ccc;
        background: white;
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: #555;
        margin-bottom: 4px;
    }
}