/* NFV Wacheberg – Vermietung
   Farben und Bausteine wie die NFV-Verwaltung (digital-grafix.de/NFV).
   Schriften und Bootstrap liegen lokal (keine Google-/CDN-Anfragen, DSGVO). */
@font-face { font-family: Quicksand; font-style: normal; font-weight: 400; font-display: swap;
  src: url(vendor/fonts/quicksand-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Quicksand; font-style: normal; font-weight: 400; font-display: swap;
  src: url(vendor/fonts/quicksand-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Quicksand; font-style: normal; font-weight: 500; font-display: swap;
  src: url(vendor/fonts/quicksand-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Quicksand; font-style: normal; font-weight: 500; font-display: swap;
  src: url(vendor/fonts/quicksand-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Quicksand; font-style: normal; font-weight: 600; font-display: swap;
  src: url(vendor/fonts/quicksand-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Quicksand; font-style: normal; font-weight: 600; font-display: swap;
  src: url(vendor/fonts/quicksand-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Quicksand; font-style: normal; font-weight: 700; font-display: swap;
  src: url(vendor/fonts/quicksand-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Quicksand; font-style: normal; font-weight: 700; font-display: swap;
  src: url(vendor/fonts/quicksand-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --nfv-gruen: #114232; --nfv-gruen-hover: #1a6348; --nfv-gelb: #F7D045; --nfv-hellgelb: #F7F6BB;
  --nfv-gelb-hover: #FCDC2A; --nfv-akzent: #87A922; --nfv-text: #1a1a1a; --nfv-muted: #6c757d;
  --nfv-border: #dee2e6; --nfv-white: #fff; --nfv-light: #f8f9fa;
  --orange: #E67E22; --blau: #3498DB; --rot: #E74C3C; --grau: #95A5A6;
}
* { box-sizing: border-box; }
body { font-family: Quicksand, sans-serif; font-size: 15px; color: var(--nfv-text); background: var(--nfv-gelb); margin: 0; }
a { color: var(--nfv-gruen); }
a:hover { color: var(--nfv-gruen-hover); }

/* Navigation */
.nfv-navbar { background: var(--nfv-gruen); padding: .6rem 1rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.nfv-navbar .brand { color: var(--nfv-hellgelb); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.nfv-navbar .brand-sub { color: var(--nfv-gelb); }
.nfv-navbar .nav-links a { color: rgba(255,255,255,.85); text-decoration: none; padding: .4rem .7rem; border-radius: 8px; font-size: .9rem; font-weight: 600; transition: background .2s; }
.nfv-navbar .nav-links a:hover, .nfv-navbar .nav-links a.active { background: rgba(255,255,255,.15); color: var(--nfv-gelb); }
.nfv-navbar .nav-links .bi { margin-right: 4px; }
.nfv-nav-toggle { background: none; border: none; color: var(--nfv-gelb); font-size: 1.6rem; cursor: pointer; display: none; line-height: 1; }
.nfv-nav-mobile { display: none; background: var(--nfv-gruen); padding: .5rem 1rem 1rem; position: sticky; top: 52px; z-index: 999; }
.nfv-nav-mobile a { display: block; color: rgba(255,255,255,.9); text-decoration: none; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 600; }
.nfv-nav-mobile a:last-child { border-bottom: none; }
@media (max-width: 768px) {
  .nfv-navbar .nav-links { display: none; }
  .nfv-nav-toggle { display: block; }
  .nfv-nav-mobile.open { display: block; }
}

#app-content { padding: 1rem; max-width: 1200px; margin: 0 auto; }
.nfv-fuss { text-align: center; color: rgba(17,66,50,.6); font-size: .8rem; padding: 1rem 0 2rem; }

/* Karten */
.card { border: none; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.07); margin-bottom: 1rem; overflow: hidden; }
.card-header { background: var(--nfv-gruen); color: #fff; font-weight: 700; padding: .75rem 1rem; border: 0; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-header .btn-sm { font-size: .8rem; }
.card-body { padding: 1rem; }

/* Kennzahlen */
.kpi-link, .kpi-link:hover { text-decoration: none; color: inherit; }
.kpi-card { background: #fff; border-radius: 12px; padding: 1.1rem 1rem; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.07); border-left: 5px solid var(--nfv-akzent); margin-bottom: 1rem; }
.kpi-card .kpi-value { font-size: 2rem; font-weight: 700; color: var(--nfv-gruen); line-height: 1.1; }
.kpi-card .kpi-label { font-size: .78rem; color: var(--nfv-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi-card.kpi-warn { border-left-color: var(--orange); }
.kpi-card.kpi-info { border-left-color: var(--blau); }

/* Buttons */
.btn-nfv { background: var(--nfv-gruen); color: #fff; border: none; font-weight: 600; border-radius: 8px; }
.btn-nfv:hover, .btn-nfv:focus { background: var(--nfv-gruen-hover); color: #fff; }
.btn-nfv-outline { background: transparent; color: var(--nfv-gruen); border: 1px solid var(--nfv-gruen); font-weight: 600; border-radius: 8px; }
.btn-nfv-outline:hover { background: var(--nfv-gruen); color: #fff; }
.btn-nfv-gelb { background: var(--nfv-gelb); color: var(--nfv-gruen); border: none; font-weight: 700; border-radius: 8px; }
.btn-nfv-gelb:hover { background: var(--nfv-gelb-hover); color: var(--nfv-gruen); }
.card-header .btn-nfv-gelb { padding: .2rem .6rem; }

/* Begrüßung */
.greeting-bar { background: linear-gradient(135deg, var(--nfv-gruen), var(--nfv-gruen-hover)); color: #fff; border-radius: 14px; padding: 1.2rem 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.greeting-hello { font-size: 1.25rem; font-weight: 700; color: var(--nfv-hellgelb); }
.greeting-sub { font-size: .88rem; opacity: .85; color: var(--nfv-hellgelb); }
.greeting-role { background: var(--nfv-gelb-hover); color: var(--nfv-gruen); font-weight: 600; font-size: .82rem; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }

/* Schnellaktionen */
.quick-action { background: var(--nfv-hellgelb); border-radius: 12px; padding: 1rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.07); border: 2px solid transparent; text-decoration: none; display: block; color: var(--nfv-gruen); margin-bottom: 1rem; transition: transform .15s, box-shadow .15s; }
.quick-action:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,.12); border-color: var(--nfv-akzent); color: var(--nfv-gruen); text-decoration: none; }
.quick-action .bi { font-size: 1.8rem; display: block; margin-bottom: .4rem; color: var(--nfv-akzent); }
.quick-action span { font-size: .85rem; font-weight: 700; }

/* Tabellen */
.table-nfv { margin-bottom: 0; background: #fff; }
.table-nfv th { background: var(--nfv-hellgelb); color: var(--nfv-gruen); font-weight: 700; border-bottom: 2px solid var(--nfv-akzent) !important; white-space: nowrap; font-size: .85rem; }
.table-nfv td { vertical-align: middle; font-size: .9rem; }
.table-nfv tbody tr.klickbar:hover { background: #f0f6ee; cursor: pointer; }
.table-responsive { border-radius: 0 0 12px 12px; }

/* Badges */
.badge { padding: .3em .65em; border-radius: 6px; font-size: .75rem; font-weight: 600; }
.badge-offen { background: var(--orange); color: #fff; }
.badge-inbearbeitung { background: var(--blau); color: #fff; }
.badge-erledigt { background: var(--nfv-akzent); color: #fff; }
.badge-storniert { background: var(--rot); color: #fff; }
.badge-normal { background: var(--nfv-muted); color: #fff; }
.badge-objekt { background: var(--nfv-gruen); color: var(--nfv-hellgelb); }

/* Detail */
.detail-section { background: #fff; border-radius: 12px; padding: 1.2rem; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.detail-section h6 { color: var(--nfv-gruen); font-weight: 700; border-bottom: 2px solid var(--nfv-hellgelb); padding-bottom: .5rem; margin-bottom: 1rem; }
.dl-inline dt { color: var(--nfv-muted); font-weight: 600; font-size: .82rem; }
.dl-inline dd { font-weight: 600; margin-bottom: .6rem; }
.text-nfv { color: var(--nfv-gruen); }
.text-akzent { color: var(--nfv-akzent); }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--nfv-muted); }
.empty-state .bi { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.nachricht { white-space: pre-wrap; background: var(--nfv-light); border-radius: 8px; padding: .75rem; font-size: .9rem; }

/* Formulare */
.form-control, .custom-select { border-radius: 8px; font-family: inherit; }
.form-control:focus, .custom-select:focus { border-color: var(--nfv-akzent); box-shadow: 0 0 0 .2rem rgba(135,169,34,.25); }
label { font-weight: 600; font-size: .88rem; color: var(--nfv-gruen); }
.filterleiste { background: #fff; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.07); }

/* Anmeldung */
.login-page { min-height: calc(100vh - 110px); display: flex; align-items: center; justify-content: center; }
.login-card { background: #fff; border-radius: 16px; padding: 2.2rem 2rem; width: 100%; max-width: 400px; box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo h2 { color: var(--nfv-gruen); font-weight: 700; font-size: 1.35rem; margin: .5rem 0 .2rem; }
.login-logo small { color: var(--nfv-muted); }
.badge-nfv { display: inline-block; background: var(--nfv-gelb); color: var(--nfv-gruen); font-weight: 700; font-size: 1.6rem; width: 64px; height: 64px; line-height: 64px; border-radius: 50%; text-align: center; }

/* Belegungsplan */
.belegung-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.belegung { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; font-size: .78rem; }
.belegung th, .belegung td { border-right: 1px solid #eee; border-bottom: 1px solid #eee; padding: 0; height: 40px; text-align: center; }
.belegung thead th { background: var(--nfv-hellgelb); color: var(--nfv-gruen); font-weight: 700; height: auto; padding: 4px 0; position: sticky; top: 0; }
.belegung thead th.we { background: #efeca0; }
.belegung thead th.heute { background: var(--nfv-akzent); color: #fff; }
.belegung .obj { position: sticky; left: 0; background: #fff; z-index: 2; text-align: left; padding: 0 .6rem; font-weight: 700; color: var(--nfv-gruen); white-space: nowrap; min-width: 90px; }
.belegung thead .obj { background: var(--nfv-hellgelb); z-index: 3; }
.belegung td.frei { background: #fff; }
.belegung td.geschlossen { background: repeating-linear-gradient(45deg, #f1f1f1, #f1f1f1 4px, #e6e6e6 4px, #e6e6e6 8px); }
.belegung td.balken { position: relative; }
.belegung .bar { position: absolute; top: 6px; bottom: 6px; left: 0; right: 0; background: var(--nfv-gruen); color: var(--nfv-hellgelb); font-weight: 600; font-size: .72rem; line-height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; text-decoration: none; display: block; }
.belegung .bar.start { left: 50%; border-radius: 8px 0 0 8px; }
.belegung .bar.ende { right: 50%; border-radius: 0 8px 8px 0; }
.belegung .bar.start.ende { left: 50%; right: 50%; }
.belegung .bar.anfrage { background: var(--orange); color: #fff; }
.belegung .bar.sperre { background: repeating-linear-gradient(45deg, #7f8c8d, #7f8c8d 5px, #95a5a6 5px, #95a5a6 10px); color: #fff; }
.belegung .bar:hover { filter: brightness(1.15); color: #fff; }
.legende span { display: inline-flex; align-items: center; gap: 6px; margin-right: 1rem; font-size: .82rem; }
.legende i { display: inline-block; width: 22px; height: 12px; border-radius: 3px; }

/* Vor Ort */
.tag-kopf { font-weight: 700; color: var(--nfv-gruen); margin: 1.2rem 0 .5rem; font-size: 1rem; }
.tag-kopf.heute { color: var(--nfv-akzent); }
.gast-karte { background: #fff; border-radius: 12px; padding: .9rem 1rem; margin-bottom: .6rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); border-left: 5px solid var(--nfv-akzent); }
.gast-karte.abreise { border-left-color: var(--blau); }
.gast-karte .kopfzeile { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-weight: 700; }
.gast-karte .kontakt a { margin-right: 1rem; white-space: nowrap; }
.wunsch { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; }
.wunsch.erledigt span { text-decoration: line-through; color: var(--nfv-muted); }
.wunsch form { margin: 0; }
.btn-haken { border: 2px solid var(--nfv-akzent); background: #fff; color: var(--nfv-akzent); border-radius: 6px; width: 30px; height: 30px; line-height: 1; padding: 0; }
.wunsch.erledigt .btn-haken { background: var(--nfv-akzent); color: #fff; }

@media (max-width: 576px) {
  #app-content { padding: .5rem; }
  .kpi-card .kpi-value { font-size: 1.6rem; }
  .greeting-bar { padding: 1rem; }
  .login-card { margin: 1rem; padding: 1.5rem 1.2rem; }
}
@media print {
  .nfv-navbar, .nfv-nav-mobile, .nfv-fuss, .no-print { display: none !important; }
  body { background: #fff; }
}

/* Kennzahlen gleich hoch */
.row > [class*="col"] > .kpi-link, .row > [class*="col"] > .kpi-card { display: block; height: calc(100% - 1rem); }
.kpi-link > .kpi-card { height: 100%; }

.bg-nfv { background: var(--nfv-gruen) !important; color: #fff !important; }
.nav-pills .nav-link { border-radius: 8px; font-weight: 600; }
