* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f6f9;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: #111827;
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.88rem;
}

.site-nav a:hover {
  color: #fff;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.brand-logo {
  height: 32px;
  width: 32px;
  display: block;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

.page {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.site-footer {
  background: #111827;
  color: #9ca3af;
  margin-top: 3rem;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-nav {
  display: flex;
  gap: 1.2rem;
}

.footer-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  margin: 0;
}

.hero {
  text-align: center;
  padding: 4.5rem 1.5rem;
  margin: 0 0 1rem;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, #2b1a3d 0%, #111827 55%, #0a0d14 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-logo {
  width: 110px;
  height: 110px;
  display: block;
  margin: 0 auto 1.5rem;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-kicker {
  color: #f97316;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 1rem;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
  line-height: 1.1;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 1.08rem;
  margin: 0 0 2rem;
}

/* Doppelt geankertes Selektor-Präfix (.hero .hero-cta), damit diese Regel
   unabhängig von der Reihenfolge im Stylesheet spezifischer ist als .btn
   und dessen width/padding/background/margin-top zuverlässig überschreibt. */
.hero .hero-cta {
  display: inline-block;
  width: auto;
  margin-top: 0;
  padding: 0.85rem 2.4rem;
  background: #f97316;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.hero .hero-cta:hover {
  background: #ea6a0c;
}

/* ── Startseite: Events-Vorschau & News ─────────────────────────────────── */

.home-section {
  margin: 2.5rem 0;
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #111827;
}

.home-section-head h2 {
  margin: 0;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.home-section-link:hover {
  text-decoration: underline;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.news-card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.news-card-date {
  font-size: 0.72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.news-card-title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.news-card-excerpt {
  font-size: 0.88rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.breadcrumbs a {
  color: #888;
}

.meta {
  color: #555;
  font-size: 0.9rem;
}

.empty-state {
  color: #888;
  padding: 1.5rem;
  text-align: center;
}

/* ── Event-Liste ─────────────────────────────────────────────────────────── */

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.event-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
}

.event-card-date {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-card-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.3rem 0;
}

.event-card-venue {
  font-size: 0.88rem;
  color: #555;
}

/* ── Saalplan / Reservierung ─────────────────────────────────────────────── */

.shop-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.shop-canvas-wrap {
  flex: 1;
  min-width: 320px;
  overflow: auto;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  max-height: 640px;
}

.shop-canvas-wrap svg {
  display: block;
}

.shop-side-panel {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 1.2rem;
}

.shop-side-panel h2 {
  font-size: 0.95rem;
  margin: 1.2rem 0 0.6rem;
}

.shop-side-panel h2:first-child {
  margin-top: 0;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.legend-swatch {
  width: 0.9em;
  height: 0.9em;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-info {
  flex: 1;
}

.legend-price {
  font-weight: 600;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.qty-stepper button {
  width: 1.8rem;
  height: 1.8rem;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.qty-stepper input {
  width: 2.5rem;
  text-align: center;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: 0.25rem;
}

.btn-reserve {
  padding: 0.3rem 0.7rem;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-reserve:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.checkout-link {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 1rem;
  padding: 0.6rem;
}

.selection-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.selection-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.88rem;
}

.selection-list button {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0;
}

.shop-status {
  font-size: 0.82rem;
  min-height: 1.2em;
  color: #888;
}

.shop-status.is-error {
  color: #dc2626;
}

.package-list {
  padding-left: 1.2rem;
  font-size: 0.88rem;
}

.seat-dot {
  stroke: #fff;
  stroke-width: 1.5;
  cursor: pointer;
}

.seat-dot.sold {
  fill: #cbd5e1 !important;
  cursor: not-allowed;
}

.seat-dot.reserved-other {
  fill: #f97316 !important;
  cursor: not-allowed;
}

.seat-dot.reserved-mine {
  stroke: #111827;
  stroke-width: 3;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

table.data-table th,
table.data-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

table.data-table th {
  background: #f9fafb;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
}

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

.pill {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #eef2ff;
  color: #3730a3;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-doc {
  white-space: pre-wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}

.legal-doc.impressum {
  white-space: normal;
}

.legal-doc.impressum p {
  margin: 0 0 1.2rem;
}

.legal-doc.impressum p:last-child {
  margin-bottom: 0;
}

/* ── Checkout ────────────────────────────────────────────────────────────── */

.package-option {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  margin: 0.2rem 0;
}

.checkout-total {
  text-align: right;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.agb-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  padding: 0.8rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

.agb-label input {
  margin-right: 0.5rem;
}

/* ── Auth-Formulare ──────────────────────────────────────────────────────── */

.auth-shell {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.auth-card h1 {
  font-size: 1.3rem;
  margin: 0 0 1.5rem;
}

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1rem 0 0.3rem;
}

form label:first-child {
  margin-top: 0;
}

form input[type='email'],
form input[type='password'],
form input[type='text'] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

.btn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.7rem 1rem;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  margin-top: 1.2rem;
}

.center-link {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.83rem;
}

.center-link a {
  color: #666;
}

.center-link.tight {
  margin-top: 0.3rem;
}

.seat-label {
  font-size: 8px;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  font-family: monospace;
}

.stage-rect {
  fill: #374151;
  stroke: #111827;
  stroke-width: 1.5;
  rx: 6;
}

.stage-label {
  font-size: 13px;
  font-weight: 600;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.marker-rect {
  fill: #fef9c3;
  stroke: #a16207;
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  rx: 4;
}

.marker-label {
  font-size: 12px;
  font-weight: 600;
  fill: #713f12;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.area-rect {
  fill-opacity: 0.35;
  stroke: #1f2937;
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

.area-label {
  font-size: 13px;
  font-weight: 600;
  fill: #1f2937;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.area-clickable {
  cursor: pointer;
}

.area-clickable:hover .area-rect {
  fill-opacity: 0.55;
}
