/*
  ============================================================
  COLOURS: change the whole look by editing these few lines.
  ============================================================
  Warm cream background (not pure white, so it stays calm),
  dark pine green for header/footer, wood brown as accent.
*/
:root {
  --color-bg:       #f6f1e8;  /* page background, warm cream */
  --color-surface:  #fffdf9;  /* cards and boxes */
  --color-text:     #2e2a25;  /* main text, dark brown-grey */
  --color-muted:    #6f665b;  /* secondary text */
  --color-primary:  #2f4f3e;  /* pine green: header, footer, headings */
  --color-accent:   #9a5b2e;  /* wood brown: buttons, highlights */
  --color-accent-dark: #7c4721;
  --color-border:   #e3d9c9;
  --radius: 10px;
  --max-width: 1100px;

  /* System fonts: no external font service needed (simpler and privacy-friendly). */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
}

/* ---------- Basics ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.muted { color: var(--color-muted); }

section { padding: 48px 0; }

/* ---------- Header and menu ---------- */
.site-header {
  background: var(--color-primary);
  color: #fff;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: bold;
}

/* The logo file is black: this filter turns it white for the dark header */
.logo img {
  width: 52px;
  height: 52px;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  color: #e9efe9;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---------- Hero (big picture on the landing page) ---------- */
/* Put a photo at images/hero.jpg; until then the green gradient shows. */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(to top, rgba(20, 30, 25, 0.75), rgba(20, 30, 25, 0.1)),
    url("../images/Skihuette_Titel_Foto.jpeg") center / cover no-repeat,
    linear-gradient(135deg, #4a6b58, #2f4f3e);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 0 0 8px;
}

.hero p { font-size: 1.2rem; margin: 0 0 24px; max-width: 40ch; }

/* Smaller banner for the sub pages */
.page-banner {
  background: linear-gradient(135deg, #4a6b58, #2f4f3e);
  color: #fff;
  padding: 40px 0;
}

.page-banner h1 { color: #fff; margin: 0; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.button:hover { background: var(--color-accent-dark); }

.button.secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

/* ---------- Info boxes on the landing page ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.box h2 { margin-top: 0; font-size: 1.4rem; }

.next-date { font-size: 1.3rem; font-weight: bold; margin: 0; }
.next-time { font-size: 1.1rem; margin: 4px 0 12px; }

.badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

/* ---------- Opening day list ---------- */
.opening-list { list-style: none; padding: 0; margin: 0; }

/* Two columns: date on the left, time on the right.
   An optional note gets its own full-width line below. */
.opening-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.opening-time { text-align: right; white-space: nowrap; }

.opening-note {
  grid-column: 1 / -1;
  color: var(--color-accent);
  font-size: 0.95rem;
}

/* When the list is narrow (start page box, phones), put the time
   under the date instead of next to it, so the date doesn't break. */
.opening-list { container-type: inline-size; }

@container (max-width: 380px) {
  .opening-list li { grid-template-columns: 1fr; }
  .opening-time { text-align: left; }
}

/* ---------- Event cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card img,
.card .placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
}

.card-body { padding: 16px 20px; }
.card-body h3 { margin: 4px 0 8px; }

.card-date {
  color: var(--color-accent);
  font-weight: bold;
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- News ---------- */
.news-item {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.news-item h3 { margin: 4px 0 8px; }

/* ---------- Image placeholders (remove once real pictures exist) ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9e1d3;
  color: var(--color-muted);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.team-member {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

/* Round photo (or placeholder) at the top of each card */
.team-member img,
.team-member .placeholder {
  width: 140px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 12px;
}

.team-member h3 { margin: 0; }

.team-role {
  color: var(--color-accent);
  font-weight: bold;
  margin: 2px 0 8px;
}

/* ---------- Text pages (history, imprint) ---------- */
.prose { max-width: 70ch; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

/* ---------- Price table (booking page) ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.price-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

/* Amounts on the right, never broken over two lines */
.price-table td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 16px;
}

.price-total td {
  font-weight: bold;
  border-bottom: 2px solid var(--color-primary);
}

/* ---------- Booking form ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form label { display: grid; gap: 4px; font-weight: 600; }

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-text);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.form .checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: normal;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: #dfe7e1;
  padding: 32px 0;
  margin-top: 48px;
  font-size: 0.95rem;
}

.site-footer a { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.site-footer h3 { color: #fff; font-size: 1.1rem; margin-top: 0; }

/* Contact links with icons (footer) */
.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.contact-links a:hover { text-decoration: underline; }

.contact-links svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
