/* Mobile-first, kein Framework. Siehe CLAUDE/05_FRONTEND.md. */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-primary: #3b82f6;
  --color-danger: #dc2626;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

header.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

header.app-header h1 {
  font-size: 1.1rem;
  margin: 0;
}

nav.app-nav {
  display: flex;
  gap: 8px;
}

nav.app-nav a {
  padding: 8px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  border-radius: var(--radius);
}

nav.app-nav a.active {
  background: var(--color-primary);
  color: #fff;
}

.badge {
  background: var(--color-danger);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.75rem;
  margin-left: 6px;
}

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

.booking-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.booking-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.booking-card .meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.booking-card .price {
  font-weight: 600;
}

button, .btn {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1rem;
  cursor: pointer;
}

button.primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.room-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.room-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  min-height: 44px;
  border-bottom: 1px solid var(--color-border);
}

.room-list li.suggested {
  background: #eff6ff;
}

.room-list li.unavailable {
  opacity: 0.5;
}

.room-list .room-reason {
  font-size: 0.8rem;
  color: var(--color-muted);
}

dialog.sheet {
  width: 100%;
  max-width: 480px;
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0;
  position: fixed;
  bottom: 0;
  margin: 0 auto;
  left: 0;
  right: 0;
}

dialog.sheet::backdrop {
  background: rgba(15, 23, 42, 0.4);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.sheet-title { margin: 0; font-size: 1rem; }

.sheet-close {
  border: none;
  background: none;
  font-size: 1.4rem;
  min-height: 44px;
  min-width: 44px;
}

.sheet-body {
  padding: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: bottom 0.2s ease;
  z-index: 100;
}

.toast-visible { bottom: 20px; }

#plan {
  height: calc(100vh - 120px);
}

.plan-main {
  max-width: none;
}
