:root {
  --color-red: #c0392b;
  --color-red-dark: #961f12;
  --color-night: #1b2a3c;
  --color-night-light: #27405c;
  --color-snow: #f7f9fb;
  --color-text: #22303f;
  --radius: 14px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-snow);
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.organizer {
  font-size: 0.9rem;
  color: #5a6b7c;
  margin: 0 0 1rem;
}

/* Header */
.site-header {
  background: var(--color-night);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
}

.logo span {
  color: var(--color-red);
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  background: var(--color-night);
  color: #d9e2ec;
  text-align: center;
  padding: 1.5rem;
}

.site-footer a {
  color: #fff;
  font-weight: 600;
}

/* Tile grid */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  padding: 3rem 0;
}

.tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.tile h2,
.tile h3 {
  margin: 0 0 0.5rem;
}

.tile p {
  margin: 0 0 1rem;
  color: #5a6b7c;
  flex-grow: 1;
}

.tile-link {
  font-weight: 700;
  color: var(--color-red);
}

/* Large tile spans full width */
.tile-large {
  grid-column: span 6;
  justify-content: center;
}

/* Medium tiles: 2 per row */
.tile-medium {
  grid-column: span 3;
  min-height: 180px;
}

/* Small tiles: 3 per row */
.tile-small {
  grid-column: span 2;
  min-height: 120px;
}

/* Text page */
.page-content {
  padding: 3rem 0;
}

.text-page {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.text-page h2 {
  margin-top: 0;
}

.text-page h1,
.text-page h2,
.text-page h3,
.text-page h4 {
  color: var(--color-red-dark);
}

.job-block {
  margin-bottom: 1.5rem;
}

.job-title {
  margin-bottom: 0.25rem;
}

.job-anlass-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.job-anlass-list li {
  margin-bottom: 0.4rem;
}

.job-anlass-list a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-red);
  padding-bottom: 1px;
}

.job-anlass-list a:hover {
  color: var(--color-red-dark);
  border-bottom-color: var(--color-red-dark);
}

.job-anlass-list a::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.85em;
}

/* Helfer-Auswahl */
.signup-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem;
  border-radius: var(--radius);
}

.signup-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 200px;
}

.signup-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.signup-field select {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #c7d2dc;
  background: #fff;
  font-size: 1rem;
  color: var(--color-text);
}

.signup-field select:disabled {
  background: #eef1f4;
  color: #9aa7b3;
}

.btn-signup {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn-signup:hover {
  background: var(--color-red-dark);
}

.btn-signup.is-disabled {
  background: #c7d2dc;
  color: #6b7784;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 800px) {
  .tile-medium {
    grid-column: span 6;
  }
  .tile-small {
    grid-column: span 3;
  }
}

@media (max-width: 520px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }
  .tile-large,
  .tile-medium,
  .tile-small {
    grid-column: span 1;
  }
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
}
