:root {
  --forest: #1a2e22;
  --forest-light: #24402d;
  --gold: #c9a961;
  --gold-light: #e0c48a;
  --cream: #f7f2ea;
  --red: #a32d2d;
  --green-ok: #2f6b46;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--forest);
}

header {
  background: var(--forest);
  color: var(--cream);
  padding: 44px 24px;
  text-align: center;
}

header h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: 0.04em;
}

header p {
  margin: 0;
  color: var(--gold-light);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 32px 100px;
}

section {
  margin-bottom: 56px;
}

h2 {
  font-size: 19px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid rgba(26,46,34,0.15);
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(26,46,34,0.7);
}

input, select, textarea {
  padding: 14px 16px;
  border: 1px solid rgba(26,46,34,0.25);
  border-radius: 6px;
  font-size: 16px;
  background: #fff;
  color: var(--forest);
  font-family: inherit;
}

textarea {
  resize: vertical;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 16px 26px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

button:hover { opacity: 0.88; }

.btn-primary {
  background: var(--gold);
  color: var(--forest);
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}

.zimmer-grid {
  display: grid;
  gap: 18px;
}

.zimmer-card {
  border: 1px solid rgba(26,46,34,0.2);
  border-radius: 10px;
  padding: 24px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
}

.zimmer-card.ausgebucht {
  opacity: 0.55;
}

.zimmer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 600px) {
  .zimmer-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name  price"
      "badge fruehstueck"
      "button button";
    row-gap: 12px;
    column-gap: 12px;
    align-items: center;
  }
  .zimmer-info, .zimmer-actions { display: contents; }
  .zimmer-info h3 { grid-area: name; }
  .zimmer-preis { grid-area: price; justify-self: end; }
  .badge:not(.fruehstueck) { grid-area: badge; justify-self: start; }
  .badge.fruehstueck { grid-area: fruehstueck; justify-self: end; }
  .zimmer-card .btn-primary { grid-area: button; width: 100%; }
}

.zimmer-info h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.zimmer-info p {
  margin: 0;
  font-size: 14px;
  color: rgba(26,46,34,0.65);
}

.zimmer-preis {
  font-size: 15px;
  color: var(--forest);
  font-weight: 600;
}

.status-msg {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 8px;
  font-size: 15px;
  display: none;
}

.status-msg.ok {
  background: #e7f3ea;
  color: var(--green-ok);
  display: block;
}

.status-msg.error {
  background: #fcebeb;
  color: var(--red);
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(26,46,34,0.1);
  text-align: left;
}

th {
  color: rgba(26,46,34,0.6);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.hinweis {
  font-size: 13px;
  color: rgba(26,46,34,0.55);
  margin-top: 6px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge.frei { background: #e7f3ea; color: var(--green-ok); }
.badge.voll { background: #fcebeb; color: var(--red); }
.badge.fruehstueck { background: rgba(201,169,97,0.18); color: #8a6a2f; }

.kalender-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.kalender-nav button {
  width: 42px;
  height: 42px;
  padding: 0;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.kalender-nav-label {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  border: 1px solid rgba(26,46,34,0.25);
  border-radius: 6px;
  background: #fff;
  padding: 11px 16px;
}

#kal-abbrechen { flex: none; width: auto; padding: 0 18px; }

.kalender-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  border: 1px solid rgba(26,46,34,0.15);
  background: rgba(26,46,34,0.15);
  padding: 4px;
  border-radius: 8px;
}

.kalender-wochentag {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  padding-bottom: 8px;
}

.kalender-tag {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
  color: var(--forest);
  cursor: pointer;
  user-select: none;
}

.kalender-tag.leer { visibility: hidden; }
.kalender-tag.frei { background: #cdedd6; color: #1f5c37; }
.kalender-tag.frei:hover { background: #b9e5c6; }
.kalender-tag.belegt { background: #f6c6c6; color: #7a2323; cursor: default; }
.kalender-tag.gesperrt { background: #f3d9a4; color: #7a5a13; }
.kalender-tag.ausgewaehlt { background: var(--gold); color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }

.kalender-legende {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(26,46,34,0.7);
}

.kalender-legende span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kalender-legende-punkt {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}
