:root {
  --primary-color: #bc0926;
  --primary-hover: #9b0d24;
  --secondary-color: #6e0ab7;
  --text-main: #333333;
  --text-muted: #50545b;
  --bg-color: #ffffff;
  --bg-alt: #f9f9fa;
  --border-color: #eaeaea;
  --system-font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--system-font);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
}

header {
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: padding 0.3s ease;
  margin-bottom: 0;
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

header nav img {
  max-height: 42px;
  margin-right: auto;
  transition: max-height 0.3s ease;
}

header.scrolled nav img {
  max-height: 35px;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem 2rem 1rem;
}

section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

section#willkommen {
  padding-top: 0;
}

section:last-child {
  border-bottom: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
th {
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.hero-container {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 3rem;
}

.hero-image {
  width: 100%;
  min-height: 325px;
  height: 600px;
  max-height: 45vh;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 30px;
}

.hero-title {
  line-height: 2;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-buttons {
  pointer-events: auto;
}

.hero-title span {
  background-color: var(--primary-color);
  padding: 4px 16px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-radius: 4px;
}

a:not(.btn) {
  color: var(--secondary-color);
  text-decoration: underline;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:not(.btn):hover {
  border-bottom: 1px solid var(--secondary-color);
}

.btn,
.btn.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
  margin: 0.5rem 0.5rem 0.5rem 0;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover,
.btn.btn-primary:hover {
  background-color: var(--primary-hover);
  border: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn:active,
.btn.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

header nav a:not(.btn) {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.2s ease;
  border: none;
}

header nav a:not(.btn):hover {
  border: none;
  color: #fff;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  background-color: var(--bg-alt);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-muted);
}

@media (max-width: 886px) {
  header nav a:not(:first-child) {
    display: none;
  }

  header nav {
    justify-content: center;
  }
}

@media (max-width: 445px) {
  main {
    padding: 0 0.35rem;
  }

  .hero-content {
    padding: 0 0.35rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .btn,
  .btn.btn-primary {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}

.veranstaltungen-container {
  --primary-color: #bc0926;
  --primary-light: #f8d7da;
  --primary-dark: #8a0619;
  max-width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
}

.veranstaltungen-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  min-width: 600px;
}

.veranstaltungen-table thead {
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
}

.veranstaltungen-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.veranstaltungen-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e9ecef;
}

.veranstaltungen-table tbody tr {
  transition: background-color 0.2s ease;
}

.veranstaltungen-table tbody tr:hover {
  background-color: #e9ecef;
}

.veranstaltungen-table tbody tr:last-child td {
  border-bottom: none;
}

.veranstaltungen-table tbody tr.future-event-odd {
  background-color: #f9f9f9;
}

.veranstaltungen-table tbody tr.future-event-even {
  background-color: #fff;
}

.veranstaltungen-table tbody tr.next-event {
  background: var(--primary-light) !important;
  font-weight: 600;
  position: relative;
}

.veranstaltungen-table tbody tr.next-event:hover {
  background: #f1c0c5 !important;
}

.veranstaltungen-table tbody tr.next-event.active-event {
  background: #d4edda !important;
}

.veranstaltungen-table tbody tr.next-event.active-event:hover {
  background: #c3e6cb !important;
}

.veranstaltungen-table .status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.veranstaltungen-table .status-badge.badge-cancelled {
  background: #dc3545;
  color: #fff;
  border: 1px solid #c82333;
}

.veranstaltungen-table .status-badge.badge-note {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.veranstaltungen-table .status-badge.badge-next {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary-color);
}

.veranstaltungen-table .status-badge.badge-active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #28a745;
}

.veranstaltungen-table tbody tr.past-event {
  color: #999;
  background-color: #f5f5f5;
}

.veranstaltungen-table tbody tr.past-event:hover {
  background-color: #eee;
}

.veranstaltungen-table tbody tr.cancelled-event {
  color: #999;
  background-color: #fff0f0;
}

.veranstaltungen-table tbody tr.cancelled-event td {
  text-decoration: line-through;
}

.veranstaltungen-table tbody tr.cancelled-event td::before {
  text-decoration: none;
}

.veranstaltungen-table tbody tr.cancelled-event:hover {
  background-color: #ffe5e5;
}

.veranstaltungen-table tbody tr.cancelled-event .status-badge {
  text-decoration: none;
}

.veranstaltungen-table tbody tr.hidden-event {
  display: none;
}

@media screen and (min-width: 801px) {
  .veranstaltungen-table th:nth-child(1),
  .veranstaltungen-table td:nth-child(1) {
    display: none;
  }
}

@media screen and (min-width: 741px) {
  .veranstaltungen-table th:nth-child(2),
  .veranstaltungen-table td:nth-child(2) {
    display: none;
  }
}

@media screen and (min-width: 701px) {
  .veranstaltungen-table th:nth-child(3),
  .veranstaltungen-table td:nth-child(3) {
    display: none;
  }
}

@media screen and (max-width: 800px) {
  .veranstaltungen-table th:nth-child(4),
  .veranstaltungen-table td:nth-child(4) {
    display: none;
  }

  .veranstaltungen-table th:nth-child(5),
  .veranstaltungen-table td:nth-child(5) {
    display: none;
  }

  .veranstaltungen-table th:nth-child(6),
  .veranstaltungen-table td:nth-child(6) {
    display: none;
  }
}

@media screen and (max-width: 740px) and (min-width: 651px) {
  .veranstaltungen-table th:nth-child(1),
  .veranstaltungen-table td:nth-child(1) {
    display: none;
  }
}

@media screen and (max-width: 700px) {
  .veranstaltungen-table th:nth-child(2),
  .veranstaltungen-table td:nth-child(2) {
    display: none;
  }
}

@media screen and (min-width: 651px) {
  .veranstaltungen-table th:nth-child(9),
  .veranstaltungen-table td:nth-child(9) {
    display: none;
  }
}

@media screen and (max-width: 650px) {
  .veranstaltungen-table tbody tr.past-event {
    display: none;
  }

  .veranstaltungen-table th:nth-child(3),
  .veranstaltungen-table td:nth-child(3) {
    display: none;
  }

  .veranstaltungen-table th:nth-child(7),
  .veranstaltungen-table td:nth-child(7) {
    display: none;
  }

  .veranstaltungen-table th:nth-child(8),
  .veranstaltungen-table td:nth-child(8) {
    display: none;
  }

  .veranstaltungen-container {
    overflow-x: visible;
  }

  .veranstaltungen-table {
    min-width: unset;
    box-shadow: none;
    background: transparent;
  }

  .veranstaltungen-table thead {
    display: none;
  }

  .veranstaltungen-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: relative;
    padding: 0.5rem;
    background: #fff !important;
  }

  .veranstaltungen-table tbody tr.past-event {
    opacity: 0.6;
  }

  .veranstaltungen-table tbody tr.next-event {
    margin-top: 1rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(188, 9, 38, 0.2);
  }

  .veranstaltungen-table tbody tr.next-event.active-event {
    border: 2px solid #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    background: #d4edda !important;
  }

  .veranstaltungen-table tbody tr.cancelled-event {
    margin-top: 1rem;
    border: 2px solid #dc3545;
  }

  .veranstaltungen-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
  }

  .veranstaltungen-table td:last-child {
    border-bottom: none;
  }

  .veranstaltungen-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary-dark);
    margin-right: 1rem;
    flex-shrink: 0;
  }

  .veranstaltungen-table td:nth-child(11) {
    background: #f8f9fa;
    border-radius: 0 0 6px 6px;
    font-weight: 600;
  }

  .veranstaltungen-table tbody tr.next-event td:nth-child(11) {
    background: var(--primary-light);
  }

  .veranstaltungen-table tbody tr.next-event:hover td:nth-child(11) {
    background: #f1c0c5 !important;
  }

  .veranstaltungen-table tbody tr.next-event.active-event td:nth-child(11) {
    background: #d4edda !important;
  }

  .veranstaltungen-table
    tbody
    tr.next-event.active-event:hover
    td:nth-child(11) {
    background: #c3e6cb !important;
  }
}

@media screen and (max-width: 430px) {
  .veranstaltungen-table td {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
