@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/poppins-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/poppins-700.woff2') format('woff2');
}

/* Styleguide will Roxborough CF (Headlines) und Gotham Book (Labels/UI/Buttons) --
   beides kommerzielle Schriften ohne geklärte Web-Lizenz. Playfair Display und
   Montserrat sind freie Ersatzschriften mit ähnlichem Charakter (elegante Display-
   Serife bzw. geometrische Grotesk), jederzeit später gegen die Originale tauschbar. */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/playfair-var.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/playfair-var.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/playfair-var.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/montserrat-var.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/montserrat-var.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/montserrat-var.woff2') format('woff2');
}

:root {
    --color-creme: #efece7;
    --color-petrol: #365b6d;
    --color-salbei: #819c6d;
    --color-eiche: #c3a47c;
    --color-white: #ffffff;
    --color-error: #b3413f;
    --radius: 10px;
    --shadow: 0 2px 8px rgba(54, 91, 109, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--color-creme);
    color: var(--color-petrol);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-petrol);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--color-petrol);
    margin: 0 0 0.5em;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 22px;
}

/* Gotham-Book-Rolle aus dem Styleguide: Kicker/Label, Versalien + Sperrung. */
.kicker {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: var(--color-petrol);
}

.app-header {
    background: var(--color-petrol);
    color: var(--color-white);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.app-header .brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

.app-header form {
    margin: 0;
    flex-shrink: 0;
}

.app-header button {
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    border-radius: var(--radius);
    padding: 6px 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 400px) {
    .app-header .brand {
        font-size: 0.95rem;
    }
    .app-header button {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

.app-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}

.surface-eiche {
    background: var(--color-eiche);
    border-radius: var(--radius);
    padding: 16px;
    color: var(--color-petrol);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}
.status-pill.ok { background: #e3ecdd; color: #4b6b3a; }
.status-pill.warn { background: #f6e9d9; color: #8a5a1d; }
.status-pill.error { background: #f6dcdb; color: var(--color-error); }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 24px;
    width: 100%;
    max-width: 380px;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 24px;
}

label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

input[type='email'],
input[type='password'],
input[type='text'] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d3c9;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 16px;
}

button[type='submit'],
.btn-primary {
    width: 100%;
    background: var(--color-petrol);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.error-message {
    background: #f6dcdb;
    color: var(--color-error);
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.placeholder-note {
    color: #6b6459;
    font-size: 0.9rem;
    font-style: italic;
}

@media (min-width: 600px) {
    .app-main {
        padding-top: 32px;
    }
}

/* ---- Reinigungs-Übersicht (Buchungskarten, Smartphone zuerst) ---- */
.section-title {
    font-size: 18px;
    margin: 24px 0 10px;
}

.today-banner {
    background: var(--color-petrol);
    color: var(--color-white);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 8px;
}
.today-banner .kicker { color: var(--color-eiche); }
.today-banner p { margin: 4px 0 0; font-size: 1.05rem; }

.bcard {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 6px solid #d8d3c9;
    padding: 14px 14px 12px;
    margin-bottom: 12px;
}
.bcard.state-checkout_today { border-left-color: var(--color-petrol); }
.bcard.state-checkin_today { border-left-color: var(--color-eiche); }
.bcard.state-running { border-left-color: var(--color-salbei); }

.bcard-head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.state-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: #ece8e1;
    color: var(--color-petrol);
}
.state-pill.checkout_today { background: var(--color-petrol); color: var(--color-white); }
.state-pill.checkin_today { background: #f6e9d9; color: #8a5a1d; }
.state-pill.running { background: #e3ecdd; color: #4b6b3a; }

.bdates { margin: 0 0 2px; font-size: 1rem; }
.bguest { margin: 0 0 8px; font-weight: 500; }
.muted { color: #6b6459; font-size: 0.9rem; }

/* Vier feste Chips: immer gleiche Reihenfolge/Position, damit man scannt statt liest. */
.persons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 10px 0;
}
.person-chip {
    border-radius: 8px;
    padding: 6px 2px;
    text-align: center;
    background: var(--color-creme);
}
.person-chip .num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.2;
}
.person-chip .lbl {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.person-chip.zero { opacity: 0.4; }
.person-chip.active { background: var(--color-petrol); color: var(--color-white); }
.person-chip.unknown { background: #f6e9d9; color: #8a5a1d; }

.bmeta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }

.setup-box {
    background: var(--color-eiche);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 10px 0;
}
.setup-box p { margin: 4px 0; }
.setup-box .persons { margin-bottom: 4px; }
.setup-box .person-chip { background: rgba(255, 255, 255, 0.55); }
.setup-box .person-chip.active { background: var(--color-petrol); }
.setup-box .person-chip.unknown { background: #f6e9d9; }

.bdetails { margin: 8px 0; font-size: 0.9rem; }
.bdetails summary { cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 500; padding: 6px 0; }
.bdetails ul { margin: 4px 0 0; padding-left: 20px; }

.bappt { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.9rem; }

details.later > summary {
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 14px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

details.tech > summary {
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 20px;
    padding: 8px 0;
}
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.quick-links a {
    display: block;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-decoration: none;
}

/* ---- Änderungen & Bestätigung ---- */
s.old, .bcard s.old {
    font-weight: 400;
    opacity: 0.65;
    text-decoration-thickness: 2px;
}
.person-chip s.old { font-size: 1.15rem; margin-right: 3px; opacity: 0.8; }
.person-chip.changed {
    background: #f6e9d9;
    color: #8a5a1d;
    opacity: 1;
    box-shadow: inset 0 0 0 2px var(--color-eiche);
}
.setup-box .person-chip.changed { background: #f6e9d9; }

.confirm-box {
    background: var(--color-creme);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 10px 0;
}
.confirm-box.changed { background: #f6e9d9; box-shadow: inset 0 0 0 2px var(--color-eiche); }
.confirm-box p { margin: 0 0 8px; }
.confirm-box form { margin: 0; }
.btn-confirm {
    width: 100%;
    background: var(--color-petrol);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-link {
    display: block;
    margin-top: 10px;
    padding: 12px;
    text-align: center;
    background: var(--color-white);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
}
.setup-box .kicker { margin: 0 0 6px; }
.setup-box .bdetails ul { margin-bottom: 8px; }
.setup-box .bdetails .kicker { margin: 8px 0 2px; }
.bdetails .kicker { margin: 8px 0 2px; }

.sim-banner {
    background: #f6e9d9;
    color: #8a5a1d;
    border-radius: var(--radius);
    padding: 10px 14px;
    margin: 0 0 8px;
    font-size: 0.9rem;
}
.sim-banner a { color: #8a5a1d; }

.waste-hint { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.waste-card ul { list-style: none; padding: 0; margin: 0 0 6px; }
.waste-card li { padding: 6px 0; border-bottom: 1px solid #f0ede7; }
.waste-card li:last-child { border-bottom: none; }

.key-card { border-left: 6px solid var(--color-eiche); }
.key-card p { margin: 6px 0; }
.keycode { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.3rem; letter-spacing: 0.12em; }

/* ====================================================================================
   Lesbarkeit und Tippflächen für Reinigungspersonal (Handy, ggf. nasse Hände/Handschuhe):
   Schrift mindestens 12 px, alles Tippbare mindestens 44 px hoch.
   ==================================================================================== */
body { font-size: 16px; line-height: 1.45; }
.muted, .placeholder-note { font-size: 0.9375rem; }
.status-pill { font-size: 0.875rem; padding: 6px 12px; }
.state-pill { font-size: 0.875rem; padding: 6px 12px; }
.bdates { font-size: 1.0625rem; }

/* Die vier Zahlen: große Ziffer, Beschriftung in normaler Schreibweise statt 10-px-Versalien. */
.person-chip { padding: 8px 2px; }
.person-chip .num { font-size: 1.75rem; }
.person-chip .lbl {
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}
.person-chip.zero { opacity: 0.55; }

summary,
.bdetails summary,
details.later > summary,
.pending-later > summary,
.step-details > summary { min-height: 44px; display: flex; align-items: center; }

button,
.btn-confirm,
.btn-link,
.quick-links a { min-height: 48px; }

.back-link { margin: 4px 0 8px; }
.back-link a { display: inline-block; padding: 10px 0; text-decoration: none; font-weight: 500; }

.btn-secondary {
    width: 100%;
    background: var(--color-white);
    color: var(--color-petrol);
    border: 2px solid var(--color-petrol);
    border-radius: var(--radius);
    padding: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    min-height: 48px;
    cursor: pointer;
    margin-top: 8px;
}
.btn-big { min-height: 56px; font-size: 1.0625rem; }
.btn-primary-link { background: var(--color-petrol); color: var(--color-white); }
.stack { margin-top: 12px; }
.link-button {
    background: none;
    border: none;
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    padding: 12px 8px;
    min-height: 44px;
    cursor: pointer;
    font-size: 1rem;
}

/* ---- Meldung nach dem Bestätigen ---- */
.flash-ok {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #e3ecdd;
    color: #335225;
    border-radius: var(--radius);
    padding: 6px 8px 6px 14px;
    margin: 0 0 12px;
    font-weight: 500;
}
.flash-ok form { margin: 0; }
.flash-ok .link-button { width: auto; background: none; color: #335225; }

/* ---- Zu bestätigen ---- */
.pending-card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 6px solid var(--color-eiche);
    padding: 16px 14px 8px;
    margin-bottom: 16px;
}
.pending-card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.pending-row { padding: 12px 0; border-top: 1px solid #ece8e1; }
.pending-row:first-of-type { border-top: none; }
.pending-row p { margin: 4px 0; }
.pending-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 1.0625rem; }
.pending-row.changed { background: #fbf3e7; margin: 0 -14px; padding: 12px 14px; }
.pending-changes { display: flex; flex-direction: column; gap: 4px; }
.pending-row form { margin: 8px 0 0; }
.pending-later { margin-top: 8px; }
.pending-later > summary { font-weight: 600; font-family: 'Montserrat', sans-serif; cursor: pointer; }
.btn-confirm { font-size: 1.0625rem; }

/* ---- Checkliste ---- */
.progress-sticky {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--color-creme);
    padding: 8px 0 10px;
    margin-bottom: 8px;
}
.progress-text { font-family: 'Montserrat', sans-serif; font-size: 1rem; margin-bottom: 6px; }
.progress-bar { height: 10px; border-radius: 999px; background: #d8d3c9; overflow: hidden; }
.progress-fill { height: 100%; background: var(--color-petrol); border-radius: 999px; transition: width 0.25s ease; }

.checklist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.check-row {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 6px solid var(--color-eiche);
    overflow: hidden;
}
.check-row.step { border-left-color: var(--color-petrol); }
.check-row.is-done { border-left-color: var(--color-salbei); background: #f4f8f1; }
.check-form { margin: 0; }
.check-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    padding: 12px 14px;
    background: transparent;
    color: var(--color-petrol);
    border: none;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
}
.check-box {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 3px solid var(--color-petrol);
    border-radius: 8px;
    background: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.is-done .check-box { background: var(--color-petrol); }
.is-done .check-box::after { content: '✓'; color: var(--color-white); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.is-done .check-label { color: #4b6b3a; }
.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--color-petrol);
    color: var(--color-white);
    font-size: 0.875rem;
}
.step-lines { margin: 0; padding: 0 14px 6px 64px; list-style: none; font-size: 0.9375rem; }
.step-lines li { margin-bottom: 6px; }
.step-link { margin: 0 14px 12px 64px; }
a.step-link { margin-bottom: 12px; }

.done-form { margin: 8px 0 32px; }
.done-warning {
    background: #f6e9d9;
    border-radius: var(--radius);
    padding: 12px;
}
.done-warning[hidden] { display: none; }

/* ---- Dokumente ---- */
.doc-card {
    display: block;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 16px;
    margin-bottom: 12px;
    text-decoration: none;
    min-height: 64px;
}
.doc-title { display: block; font-family: 'Playfair Display', serif; font-size: 1.375rem; font-weight: 600; margin-bottom: 4px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.doc-table td { padding: 12px 4px; border-bottom: 1px solid #ece8e1; font-size: 1.0625rem; }
.doc-amount { text-align: right; font-family: 'Montserrat', sans-serif; font-weight: 600; white-space: nowrap; }
.doc-steps { padding-left: 24px; }
.doc-steps li { margin-bottom: 10px; }

.room-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.room-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--color-white);
    box-shadow: var(--shadow);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}
.room h2 { margin-top: 24px; scroll-margin-top: 12px; }
.photo-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: auto; border-radius: var(--radius); display: block; background: #d8d3c9; }
.photo-grid figcaption { padding: 6px 2px; font-size: 0.9375rem; }
@media (min-width: 600px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.back-link a { padding: 13px 0; min-height: 44px; }
.check-sub { display: block; margin-top: 4px; font-size: 0.9375rem; font-weight: 400; color: #5b6b73; line-height: 1.35; }

/* Die allgemeine Regel button[type='submit'] (Petrol, volle Breite) darf diese Varianten nicht überdecken. */
button.check-btn[type='submit'] {
    width: 100%;
    background: transparent;
    color: var(--color-petrol);
    border: none;
    border-radius: 0;
    padding: 12px 14px;
    text-align: left;
}
button.btn-secondary[type='submit'],
button.btn-secondary[type='button'] {
    width: 100%;
    background: var(--color-white);
    color: var(--color-petrol);
    border: 2px solid var(--color-petrol);
    border-radius: var(--radius);
}
button.link-button[type='submit'] {
    width: auto;
    background: none;
    color: inherit;
    border: none;
    padding: 12px 8px;
}
.flash-ok button.link-button[type='submit'] { color: #335225; }

/* Whirlpool-Dokument: Dosier-Phasen */
.phase-title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 6px 0 4px; }
.phase-title .step-no { margin-right: 0; flex: 0 0 26px; }
.notice-card { background: #f6e9d9; border-left: 6px solid var(--color-eiche); }
.notice-card p { margin: 6px 0; }

/* ---- Gästewechsel am selben Tag: deutlich markiert ---- */
.bcard.same-day {
    border-left-color: var(--color-petrol);
    box-shadow: 0 0 0 2px var(--color-eiche), var(--shadow);
    overflow: hidden;
}
.same-day-ribbon {
    background: var(--color-eiche);
    color: var(--color-petrol);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 14px;
    margin: -14px -14px 12px;
}
.same-day-ribbon span[aria-hidden] { font-size: 1.15rem; margin-right: 4px; }
.same-day-sub { font-weight: 500; font-size: 0.9375rem; }

/* ---- Logo ---- */
.app-header .brand { display: inline-flex; align-items: center; text-decoration: none; }
.app-header .brand img { height: 42px; width: auto; display: block; }
.login-logo { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.login-hint { margin: 18px 0 0; text-align: center; }
.invite-hello { font-size: 1.25rem; text-align: center; margin: 0 0 8px; }
.login-card .muted { text-align: center; }

/* ---- Team ---- */
.team-add { margin-top: 12px; }
.team-card.inactive { opacity: 0.8; border-left: 6px solid var(--color-error); }
.team-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.team-head h2 { margin: 0; }
.team-link { font-size: 0.875rem; }
.team-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.team-actions .btn-secondary { margin-top: 0; }
.btn-whatsapp { background: #e3ecdd; color: #335225; margin-top: 0; }
button.btn-secondary.danger[type='submit'] { border-color: var(--color-error); color: var(--color-error); }

/* ---- Seiten-Feinschliff: Tippflächen und mobile Listen ---- */
.app-header .brand { min-height: 44px; }
.sim-banner a { display: inline-block; padding: 12px 4px; }
.file-input {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 14px 12px;
    margin-bottom: 16px;
    border: 1px dashed #b9b2a5;
    border-radius: var(--radius);
    background: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
}
a.btn-link { margin-bottom: 8px; }

/* Energie: Zeilen statt breiter Tabellen */
.energy-row { padding: 12px 0; border-top: 1px solid #ece8e1; }
.energy-row:first-of-type { border-top: none; }
.energy-row p { margin: 4px 0 0; }
.energy-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Bestand: kompakte Liste, Formular erst beim Antippen */
.stock-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.stock-item { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 6px solid var(--color-salbei); }
.stock-item.low { border-left-color: var(--color-error); }
.stock-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 8px 14px;
    cursor: pointer;
    list-style: none;
}
.stock-item > summary::-webkit-details-marker { display: none; }
.stock-name { font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 1.0625rem; }
.stock-body { padding: 0 14px 14px; }
.stock-body label { margin-top: 10px; }

/* ====================================================================================
   Menü im Kopf, Hinweise auf der Startseite, Seite "Haustechnik"
   ==================================================================================== */
:root { --header-h: 64px; }

.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 10px 16px;
    min-height: var(--header-h);
    flex-wrap: nowrap;
}
.app-header .brand img { height: 40px; }
.progress-sticky { top: var(--header-h); }

.menu-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 1rem;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-white);
    border-radius: 1px;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--color-eiche);
    box-shadow: 0 0 0 2px var(--color-petrol);
}

.main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-petrol);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px 12px 16px;
}
html.js .main-menu { display: none; }
html.js .main-menu.open { display: block; }
html:not(.js) .main-menu { position: static; width: 100%; flex-basis: 100%; }
html:not(.js) .app-header { flex-wrap: wrap; }
.main-menu ul { list-style: none; margin: 0; padding: 0; }
.main-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 12px;
    color: var(--color-white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.0625rem;
    border-radius: 8px;
}
.main-menu a.active { background: rgba(255, 255, 255, 0.16); font-weight: 600; }
.menu-badge {
    background: var(--color-eiche);
    color: var(--color-petrol);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.875rem;
    font-weight: 700;
}
.menu-logout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 0;
    padding: 12px 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.menu-user { color: var(--color-white); opacity: 0.85; }
.menu-logout button { min-height: 44px; padding: 0 16px; font-size: 1rem; }

@media (min-width: 900px) {
    .menu-toggle { display: none; }
    .app-header { justify-content: flex-start; gap: 24px; }
    html.js .main-menu, .main-menu {
        display: flex;
        position: static;
        flex: 1;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        background: none;
        border: 0;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        padding: 0;
    }
    .main-menu ul { display: flex; flex-wrap: wrap; gap: 2px; }
    .main-menu a { min-height: 44px; font-size: 1rem; }
    .menu-logout { margin: 0; padding: 0; border: 0; }
    .app-main { max-width: 960px; }
}

/* Hinweise oben auf der Startseite */
.notice {
    display: block;
    margin: 0 0 10px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border-left: 6px solid var(--color-eiche);
    background: #fbf3e7;
    color: inherit;
    text-decoration: none;
}
.notice-error { background: #f6dcdb; border-left-color: var(--color-error); }
.notice strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 1.0625rem; }
.notice-line { display: block; margin-top: 4px; }
.notice-link { display: block; margin-top: 6px; font-weight: 600; }

/* Haustechnik */
.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 12px; }
.room-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border-radius: 10px;
    background: #f7f5f1;
}
.room-name { font-family: 'Montserrat', sans-serif; font-weight: 500; }
.room-temp { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.kv { display: grid; gap: 12px; margin: 8px 0 4px; }
.kv > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.kv-label { min-width: 140px; color: #6b6459; }
.kv-value { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.25rem; }
@media (min-width: 600px) {
    .room-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Gastgeschenke und Einrichtung auf der Buchungskarte */
.gift-list { margin: 8px 0; padding-left: 18px; font-size: 0.9375rem; }
.gift-list li { margin-bottom: 4px; }
.setup-box.is-today { border-left: 6px solid var(--color-eiche); }

/* Hinweis auf Lücken nach einem Gast */
.gap-hint {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fbf3e7;
    border-left: 4px solid var(--color-eiche);
    font-size: 0.9375rem;
}

/* Mangel melden: Foto per Kamera oder Galerie */
.field-label { margin: 12px 0 6px; font-size: 0.9375rem; }
.photo-pick { display: grid; gap: 8px; }
.photo-btn { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; cursor: pointer; text-align: center; }
.photo-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
@media (min-width: 600px) { .photo-pick { grid-template-columns: 1fr 1fr; } }
.min-form { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e3ded4; }

/* Jets an/aus */
.jets-control { margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid #e3ded4; }
.jets-state { margin: 0 0 8px; }
.jets-btn { width: 100%; min-height: 48px; }
.jets-btn[disabled] { opacity: 0.6; cursor: default; }

/* Geänderte Buchungen */
.bcard.has-changes { border-left-color: var(--color-error); box-shadow: 0 0 0 2px var(--color-error), var(--shadow); }
.change-banner {
    margin: -14px -14px 12px;
    padding: 10px 14px;
    background: var(--color-error);
    color: var(--color-white);
    border-radius: var(--radius) var(--radius) 0 0;
}
.change-banner strong { font-family: 'Montserrat', sans-serif; font-size: 1.0625rem; }
.change-banner ul { margin: 6px 0 0; padding-left: 20px; }
.change-banner s.old { opacity: 0.85; }
.change-banner + .same-day-ribbon { margin-top: -12px; margin-bottom: 12px; }

/* Kompakte Reinigungszeile, solange noch keine Details nötig sind */
.cleaning-line { margin: 8px 0; }
