/* Google-Fonts für etwas japanischen Vibe */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500&family=Playfair+Display:wght@500;600&display=swap');

:root {
    --bg: #f7f2e9;
    --stripe: #efe4d3;
    --card-bg: #ffffff;
    --text-main: #2b1b16;
    --text-muted: #7b6a5b;
    --accent-red: #e02424;
    --accent-red-soft: #f8d7da;
    --accent-dark: #1f1511;
    --border-soft: #e0d3c4;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
    --radius-lg: 18px;
    --radius-pill: 999px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
            repeating-linear-gradient(
                    to right,
                    var(--bg) 0,
                    var(--bg) 32px,
                    var(--stripe) 32px,
                    var(--stripe) 64px
            );
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px;
}

/* zentrierte Seite mit maximaler Breite */
.page {
    width: 100%;
    max-width: 720px;
}

/* Header / Brand */

.header {
    margin-bottom: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.brand-mark {
    font-family: "Noto Sans JP", system-ui, sans-serif;
    font-size: 24px;
    line-height: 1;
    color: var(--accent-dark);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-main {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 18px;
    letter-spacing: 0.06em;
}

.brand-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

/* Card / Main-Container */

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px 22px 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.headline {
    margin: 0 0 10px;
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 26px;
    letter-spacing: 0.04em;
}

.lead {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Sektionen / Überschriften */

.section {
    margin-top: 12px;
}

.section-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
}

/* Formulare */

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-inline {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.field span {
    color: var(--text-muted);
}

input[type="text"],
input[type="number"],
input[type="password"] {
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    background-color: #faf7f3;
}

input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(224, 36, 36, 0.18);
    background-color: #fff;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.08s ease, box-shadow 0.1s ease, background-color 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 10px 24px rgba(224, 36, 36, 0.35);
}

.btn-primary:hover:not(:disabled) {
    background: #bf1d1d;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(224, 36, 36, 0.4);
}

.btn-secondary {
    background: #eee5d8;
    color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
    background: #e0d5c5;
}

.btn-danger {
    background: #8b1a1a;
    color: #fff;
}

.btn-danger:hover:not(:disabled) {
    background: #6e1414;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: #f5eee4;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-red);
    padding: 0;
    box-shadow: none;
}

.btn-link:hover {
    text-decoration: underline;
    background: none;
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
}

/* Status-Boxen */

.status-box {
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 8px;
    font-size: 14px;
}

.status-called {
    background: #fef3f3;
    border: 1px solid rgba(224, 36, 36, 0.45);
    color: var(--accent-dark);
    font-weight: 500;
}

.status-waiting {
    background: #f6f1e8;
    border: 1px solid var(--border-soft);
}

.hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Table / Admin */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.table th,
.table td {
    border: 1px solid var(--border-soft);
    padding: 6px 8px;
    text-align: left;
}

.table th {
    background-color: #f4ece0;
    font-weight: 500;
}

.table-empty {
    text-align: center;
    color: var(--text-muted);
}

.table-actions {
    display: flex;
    gap: 6px;
}

/* Actions/Footer */

.actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Responsiveness */

@media (max-width: 600px) {
    body {
        padding: 16px 10px;
    }

    .card {
        padding: 18px 16px 20px;
    }

    .headline {
        font-size: 22px;
    }

    .table th,
    .table td {
        font-size: 12px;
    }
}

.menu-name-input {
    width: 100%;
    max-width: 380px;    /* oder 420px, wenn du noch mehr willst */
    margin-bottom: 4px;
}

.menu-desc-textarea {
    width: 100%;
    max-width: 420px;
    resize: none;        /* ⬅️ verhindert drag-resize */
    font-family: inherit;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background-color: #faf7f3;
    box-sizing: border-box;
}

.menu-desc-textarea:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(224, 36, 36, 0.18);
    background-color: #fff;
}

/* Schlanke, minimalistische Admin-Buttons */
.btn-admin {
    display: block;
    width: 100%;
    padding: 10px 16px;             /* dünneres Padding */
    text-align: center;
    background: #111;               /* dunkel, aber nicht brutal */
    color: #fff;
    font-size: 0.95rem;             /* etwas kleiner, edler */
    border-radius: 6px;             /* sanfteres, kleineres Radius */
    border: 1px solid #000;         /* dünnerer Rand */
    text-decoration: none;
    font-weight: 500;               /* nicht so fett */
    letter-spacing: 0.3px;          /* feiner japanischer Flair */
    transition: background 0.15s, transform 0.15s, opacity 0.15s;
}

.btn-admin:hover {
    background: #222;
    transform: translateY(-1px);    /* kleiner Hover-Effekt */
}

.btn-admin:active {
    background: #000;
    transform: translateY(0);
    opacity: 0.9;
}

.checklist-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

.checklist-table th,
.checklist-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #e0d3c4;
}

.checklist-table input[type="text"],
.checklist-table input[type="time"] {
    width: 95%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.section-break {
    text-align: left;
    background: #f5f2ee;
    font-weight: bold;
    padding: 6px;
    border-top: 2px solid #aaa;
}

.btn-small {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    text-decoration: none;
}

.btn-small:hover {
    background: #333;
}

.badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
}

.badge-success {
    background: #0a7f3b;
    color: #fff;
}

.badge-warning {
    background: #e0a800;
    color: #111;
}