:root {
  /* Aus dem Wildberg-Logo (wildberg.de) - die einzigen zwei Akzentfarben
     im offiziellen Schriftzug, sonst durchgehend Schwarzton. */
  --red: #e20613;
  --red-tint: rgba(226, 6, 19, 0.08);
  --green: #3e923c;
  --green-tint: rgba(62, 146, 60, 0.08);
  --ink: #1d1d1b;
  --ink-soft: #555;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 74rem;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.5;
  color: var(--ink);
}

main.content-narrow {
  max-width: 26rem;
  margin: 0 auto;
}

main.content-prose {
  max-width: 46rem;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 2px solid var(--red);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  line-height: 1.1;
}

.brand .logo {
  display: block;
  height: 2.75rem;
  width: auto;
}

.brand .brand-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

a {
  color: var(--red);
  text-decoration-color: transparent;
}

a:hover {
  text-decoration-color: currentColor;
}

header a {
  color: inherit;
  text-decoration: none;
}

nav a {
  margin-left: 1rem;
  font-size: 0.9rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  color: #666;
}

footer a {
  color: inherit;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
  margin-top: 0.25rem;
}

button {
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 4px;
  transition: background-color 150ms ease, transform 120ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  button:hover {
    background: #b80510;
  }
}

button:active {
  transform: scale(0.97);
}

.error {
  color: var(--red);
}

.hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Honeypot field - hidden from real users, left for bots to fill in. */
.hp-field {
  position: absolute;
  left: -9999px;
}

input:disabled, button:disabled, select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Legend / color key */
.legende {
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; margin-bottom: 1.25rem;
  font-size: 0.78rem; color: var(--ink-soft);
}
.legende span { display: inline-flex; align-items: center; gap: 0.35rem; }

.swatch { width: 0.8rem; height: 0.8rem; border-radius: 3px; display: inline-block; border: 1px solid #ddd; }
.swatch.feiertag { background: var(--red-tint); border-color: var(--red); }
.swatch.ferien { background: var(--green-tint); border-color: var(--green); }
.swatch.weekend { background: #eee; }

.typ-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; display: inline-block; margin-right: 0.3rem; }
.typ-dot.auftritt { background: var(--red); }
.typ-dot.probe { background: var(--green); }
.typ-dot.sonstiges { background: var(--ink-soft); }

/* Status callout box */
.disclaimer {
  background: var(--green-tint); border: 1px solid var(--green); border-radius: 6px;
  padding: 0.8rem 1rem; font-size: 0.85rem; margin: 1rem 0;
}

/* Pill toggle buttons */
.tabs { display: flex; gap: 0.5rem; margin: 1.25rem 0 1rem; flex-wrap: wrap; }
.tabs button, .tabs a {
  font-size: 0.95rem; font-weight: 600; padding: 0.45rem 1.2rem; border-radius: 999px;
  border: 2px solid var(--red); background: #fff; color: var(--red); cursor: pointer;
  margin-top: 0; text-decoration: none; display: inline-block;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out);
}
.tabs button.active, .tabs a.active { background: var(--red); color: #fff; }
.tabs button:active, .tabs a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .tabs button:not(.active):hover, .tabs a:not(.active):hover { background: var(--red-tint); }
}

/* Pagination-style nav links (month/date paging) */
.pagination-nav {
  display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; margin-bottom: 1rem;
}
.pagination-nav a, .pagination-nav span.disabled { padding: 0.3rem 0.6rem; border-radius: 4px; }
.pagination-nav span.disabled { color: #bbb; }
@media (hover: hover) and (pointer: fine) {
  .pagination-nav a:hover { background: var(--red-tint); }
}

/* Bordered content tile */
.card {
  display: block;
  border: 1px solid #e2e0df;
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease, transform 120ms var(--ease-out), box-shadow 150ms ease;
}
.card h2, .card h3 { margin-top: 0; margin-bottom: 0.4rem; font-size: 1.05rem; }
.card p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.card.disabled { color: #999; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { border-color: var(--red); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
}
a.card:active { transform: scale(0.99); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

/* Status pill: base + modifiers (deliberately separate concepts) */
.badge {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 700;
}
.badge-vorbehalt { background: #f6f6f5; border: 1px solid #999; color: var(--ink-soft); }
.badge-soon { background: #f6f6f5; border: 1px solid #bbb; color: var(--ink-soft); }

.kalender-scroll {
  overflow-x: auto;
}

table.kalender {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  table-layout: fixed;
}

table.kalender th,
table.kalender td {
  border: 1px solid #ddd;
  vertical-align: top;
  padding: 0.25rem;
  font-size: 0.75rem;
  height: 3.5rem;
  width: 14.28%;
}

table.kalender td.pad {
  background: #fafafa;
}

table.kalender td.weekend {
  background: #f5f5f5;
}

table.kalender td.feiertag {
  background: var(--red-tint);
}

table.kalender td.ferien {
  background: var(--green-tint);
}

table.kalender .num {
  display: block;
  font-weight: 600;
}

table.kalender .termin {
  display: block;
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

table.kalender .termin.abgesagt,
.termin-liste li.abgesagt .n {
  text-decoration: line-through;
  color: #888;
}

.termin-liste {
  list-style: none;
  padding: 0;
}

.termin-liste li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.termin-liste .d {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.termin-liste .n {
  display: block;
  font-weight: 600;
}

.termin-liste .o {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
