/* Fasching in Moosburg – Neuwertig & Engaging */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --bg-page: #f8f7f4;
  --bg-header: #0f172a;
  --bg-header-glass: rgba(15, 23, 42, 0.92);
  --bg-sidebar: #1e293b;
  --bg-card: #ffffff;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-gold: #eab308;
  --accent-gold-soft: rgba(234, 179, 8, 0.15);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-invert: #f8fafc;
  --border-soft: #e2e8f0;
  --max-width: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12);
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, .site-title, .section-title {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ----- Header ----- */
.site-header {
  background: var(--bg-header);
  color: var(--text-invert);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.top-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.top-bar .muted {
  font-size: 0.9rem;
  color: #94a3b8;
}

.btn-login {
  padding: 0.45rem 1rem;
  background: var(--accent);
  color: var(--text-invert) !important;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), transform 0.2s ease;
}

.btn-login:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.main-nav {
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.main-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-invert) !important;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.main-nav .active {
  background: var(--accent);
  color: var(--text-invert) !important;
}

/* ----- Page layout ----- */
.page-wrapper {
  max-width: var(--max-width);
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
}

/* ----- Sidebar ----- */
aside.sidebar {
  background: var(--bg-sidebar);
  color: var(--text-invert);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 6.5rem;
  align-self: start;
}

.sidebar-block + .sidebar-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f1f5f9;
}

.sidebar-text {
  color: #cbd5e1;
  line-height: 1.5;
}

.sidebar-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

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

.sidebar-img-list li + li {
  margin-top: 0.5rem;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  transition: background var(--transition);
}

.gallery-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ----- Main content ----- */
main.content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
}

main.content h1 {
  margin-top: 0;
  color: var(--text-main);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

main.content h2 {
  margin-top: 0.5rem;
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 600;
}

main.content p {
  line-height: 1.65;
  color: var(--text-main);
  margin: 0.5rem 0 0.75rem;
}

.lead-text {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
}

/* ----- Home: Hero & events ----- */
.hero-wrap {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.hero-badge {
  display: inline-block;
  background: var(--accent-gold-soft);
  color: #a16207;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-list {
  margin: 1rem 0 1.25rem;
  padding-left: 0;
  list-style: none;
  font-size: 0.95rem;
}

.event-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.35rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  transition: background var(--transition), transform 0.2s ease;
}

.event-list li:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}

.event-date {
  font-weight: 600;
  min-width: 11rem;
  color: var(--text-main);
}

.event-location {
  color: var(--text-muted);
}

/* ----- Buttons ----- */
.button-row {
  margin-top: 1.25rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: var(--text-invert) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s ease;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ----- Two column ----- */
.two-column-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 900px) {
  .two-column-text {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* ----- News ----- */
.news-item {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  transition: box-shadow var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow);
}

.news-item + .news-item {
  margin-top: 0;
}

.news-item h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.news-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.contact-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-form > div {
  margin-bottom: 1rem;
}

/* ----- Gallery ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.gallery-item {
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-soft);
  transition: border-color var(--transition), background var(--transition);
}

.gallery-item:hover {
  border-color: var(--accent);
  background: #ecfdf5;
}

.gallery-item img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

/* ----- Videos ----- */
.video-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
}

.video-list li {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-soft);
  transition: box-shadow var(--transition);
}

.video-list li:hover {
  box-shadow: var(--shadow);
}

/* ----- Footer ----- */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 1.5rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-soft);
}

.site-footer p {
  margin: 0;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .page-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  aside.sidebar {
    order: -1;
    position: static;
  }

  .main-nav ul {
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  main.content {
    padding: 1.5rem;
  }
}

/* ========== ADMIN (unverändert in Struktur, nur Link auf neues CSS) ========== */
body.admin-body {
  background: #0f172a;
  color: #e2e8f0;
}

.admin-header {
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.admin-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-header-title {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
}

.admin-header-sub {
  font-size: 0.88rem;
  color: #94a3b8;
}

.admin-shell {
  max-width: 1200px;
  margin: 1.5rem auto 2rem;
  padding: 0 1.5rem 1.5rem;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-toolbar label {
  font-size: 0.82rem;
  color: #94a3b8;
}

.admin-event-form-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin-event-form-row input {
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.85rem;
}

.admin-event-form-row input[type="text"] {
  min-width: 140px;
  flex: 1 1 140px;
}

.admin-event-form-row input[type="date"],
.admin-event-form-row input[type="time"] {
  flex: 0 0 110px;
}

.admin-event-select,
.admin-quick-search {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  font: inherit;
}

.admin-quick-search {
  min-width: 200px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-stat-card {
  background: #1e293b;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border: 1px solid #334155;
}

.admin-stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.admin-stat-value {
  font-size: 1.35rem;
  font-weight: 600;
}

.admin-stat-accent {
  color: #22c55e;
}

.admin-tabs {
  display: inline-flex;
  gap: 0.25rem;
  border-radius: 999px;
  background: #0f172a;
  padding: 0.25rem;
  margin-bottom: 1rem;
}

.admin-tab {
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.admin-tab:hover {
  color: #e2e8f0;
}

.admin-tab.active {
  background: #334155;
  color: #f8fafc;
}

.admin-main {
  background: #020617;
  border-radius: var(--radius);
  border: 1px solid #1e293b;
  padding: 1rem;
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: block;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(260px, 0.9fr);
  gap: 1rem;
  align-items: start;
  min-height: 0;
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.seat-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.seat-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #0f172a;
}

.seat-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  max-height: 72vh;
  overflow: auto;
}

.seat-plan-fixed {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 0 1rem;
}

.seat-plan-stage {
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: #1e293b;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.seat-plan-cat {
  position: absolute;
  top: 0.5rem;
  right: 0;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: #1e293b;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  pointer-events: none;
}

.seat-plan-upper,
.seat-plan-lower {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.seat-plan-block {
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.8);
}

.seat-plan-block-grid {
  display: grid;
  gap: 2px;
  justify-items: center;
  align-items: center;
}

.seat-plan-seat {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 4px;
  border: 1px solid #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.seat-plan-seat:hover {
  transform: scale(1.05);
}

.seat-plan-seat.seat-free {
  background: #166534;
  color: #fff;
}
.seat-plan-seat.seat-reserved {
  background: #92400e;
  color: #fff;
}
.seat-plan-seat.seat-sold {
  background: #b91c1c;
  color: #fff;
}
.seat-plan-seat.seat-blocked {
  background: #4b5563;
  color: #e2e8f0;
}
.seat-plan-seat.seat-selected {
  box-shadow: 0 0 0 2px #eab308;
}

.seat-plan-tech {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: #1e293b;
  font-size: 0.78rem;
  color: #94a3b8;
  width: fit-content;
  margin-left: 0;
  letter-spacing: 0.02em;
}

.seat-layout.layout-fixed-plan + .seat-sidepanel .seat-palette {
  display: none;
}

.seat-sidepanel {
  background: #020617;
  border-radius: var(--radius-sm);
  border: 1px solid #1e293b;
  padding: 0.85rem 1rem 1rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seat-panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.seat-panel-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
}

.seat-panel-form-group {
  margin-bottom: 0.5rem;
}

.seat-panel-form-group label {
  display: block;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.seat-panel-form-group input,
.seat-panel-form-group textarea,
.seat-panel-form-group select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font: inherit;
}

.seat-panel-form-group textarea {
  min-height: 4rem;
  resize: vertical;
}

.seat-panel-footer {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #64748b;
}

.seat-panel-flags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.seat-panel-flags input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #1e293b;
}

.admin-table th {
  text-align: left;
  font-weight: 600;
  color: #94a3b8;
}

.admin-table tr:nth-child(even) {
  background: #0f172a;
}

.admin-table-status {
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  display: inline-block;
}

.status-pill-reserved {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.status-pill-sold {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.status-pill-free {
  background: rgba(34, 197, 94, 0.2);
  color: #6ee7b7;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.admin-filters input,
.admin-filters select {
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
}

.admin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.admin-chip {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #1e293b;
  border: 1px solid #334155;
}

.admin-empty {
  font-size: 0.85rem;
  color: #64748b;
}

/* Planner */
.planner-wrapper {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
}

.planner-palette {
  border-radius: var(--radius-sm);
  border: 1px solid #1e293b;
  background: #020617;
  padding: 0.75rem;
  font-size: 0.85rem;
}

.planner-palette-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.planner-palette-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.planner-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px dashed #475569;
  cursor: grab;
  user-select: none;
}

.planner-block-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.planner-canvas {
  border-radius: var(--radius-sm);
  border: 1px solid #1e293b;
  background: #020617;
  padding: 0.75rem;
}

.planner-canvas-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 36px;
  gap: 3px;
}

.planner-cell {
  border-radius: 4px;
  border: 1px dashed #1e293b;
  background: #0f172a;
}

.planner-cell.drag-over {
  border-color: #eab308;
  background: #1e293b;
}

.planner-table {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planner-table-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.planner-table-rect {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: #1e293b;
}

.planner-seats-4,
.planner-seats-2 {
  display: flex;
  gap: 2px;
}

.planner-seat {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #475569;
}

.seat-palette {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #1e293b;
}

.seat-palette-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.seat-palette-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 0.4rem;
}

.seat-palette-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.seat-block-palette {
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px dashed #475569;
  cursor: grab;
  user-select: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #020617;
}

.seat-block-palette-label {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Legacy seat block / desk (admin) */
.seat-stage {
  align-self: stretch;
  text-align: center;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid #1e293b;
  background: #1e293b;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.seat-tech {
  margin-top: 1rem;
  margin-bottom: 0;
  background: #1e293b;
  color: #94a3b8;
  font-weight: 500;
}

.seat-category-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.seat-category-row + .seat-category-row {
  margin-top: 1.2rem;
}

.seat-category-label {
  width: 90px;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
}

.seat-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.seat-block {
  position: relative;
  min-height: 280px;
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px dashed #1e293b;
  background: rgba(3, 7, 18, 0.5);
}

.seat-block.drag-over {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.08);
}

.desk-wrapper {
  position: absolute;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  transform-origin: center center;
}

.desk-wrapper-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.desk-wrapper.desk-dragging .desk-drop-zone {
  display: none;
}

#seatLayout.layout-dragging-desk .desk-drop-zone {
  display: flex;
}

.desk-drop-zone {
  display: none;
  width: 22px;
  height: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px dashed #eab308;
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.desk-drop-zone.desk-drop-right {
  width: 24px;
}

.desk-drop-zone.desk-drop-down {
  width: 100%;
  min-height: 22px;
  height: auto;
  margin-top: 2px;
  align-self: stretch;
}

.desk-drop-zone:hover,
.desk-drop-zone.drag-over {
  background: rgba(234, 179, 8, 0.25);
}

.desk {
  position: relative;
  background: #0f172a;
  border-radius: var(--radius-sm);
  border: 1px solid #1e293b;
  padding: 0.4rem 0.5rem 0.5rem;
  cursor: grab;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.desk-remove {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 4px;
  background: #374151;
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.desk-remove:hover {
  background: #b91c1c;
}

.desk-rotate {
  position: absolute;
  top: 2px;
  right: 24px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 4px;
  background: #374151;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.desk-rotate:hover {
  background: #4b5563;
}

.desk-rect {
  width: 18px;
  height: 32px;
  margin: 0.1rem auto 0.2rem;
  border-radius: 2px;
  background: #1e293b;
}

.desk-seat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem;
  justify-items: center;
}

.seat {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #020617;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.seat-free {
  background: #166534;
}

.seat-reserved {
  background: #92400e;
}

.seat-sold {
  background: #b91c1c;
}

.seat-blocked {
  background: #4b5563;
}

.seat-selected {
  box-shadow: 0 0 0 2px #eab308;
  border-color: #eab308;
}

.seat-plan-upper .seat-plan-block {
  flex: 0 0 auto;
  transform-origin: center top;
}

.seat-plan-lower {
  margin-bottom: 1rem;
}

/* ========== Saalplan auf Kartenbestellung (nur Status, keine Namen) ========== */
.public-seat-plan {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.public-seat-plan .plan-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}
.public-seat-plan .plan-stage {
  text-align: center;
  padding: 0.5rem 1rem;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.public-seat-plan .plan-cat {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.2rem 0.5rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}
.public-seat-plan .plan-upper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  padding: 1.25rem 1.25rem 2.5rem 2.75rem;
  position: relative;
  border: 2px dashed #475569;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
}
.public-seat-plan .plan-category-divider {
  margin: 2rem 0 1.25rem;
  padding: 0 0.5rem;
  border: none;
  border-top: 2px dashed #475569;
  position: relative;
}
.public-seat-plan .plan-cat-b {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.2rem 0.5rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}
.public-seat-plan .plan-lower {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  padding: 1rem;
  border: 2px dashed #475569;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
}
.public-seat-plan .plan-block {
  padding: 4px;
  background: rgba(15, 23, 42, 0.12);
  border: 1px solid #334155;
  border-radius: 6px;
}
.public-seat-plan .plan-block-grid {
  display: grid;
  gap: 2px;
  justify-items: center;
  align-items: center;
}
.public-seat-plan .plan-seat {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, box-shadow 0.15s;
}
.public-seat-plan .plan-seat:hover { transform: scale(1.05); }
.public-seat-plan .plan-seat.free { background: #166534; color: #fff; cursor: pointer; }
.public-seat-plan .plan-seat.reserved { background: #ca8a04; color: #fff; cursor: default; }
.public-seat-plan .plan-seat.sold { background: #b91c1c; color: #fff; cursor: default; }
.public-seat-plan .plan-seat.blocked { background: #4b5563; color: #e2e8f0; cursor: default; }
.public-seat-plan .plan-seat.seat-selected {
  box-shadow: 0 0 0 3px #0f172a;
  outline: 2px solid #eab308;
}
.public-seat-plan .plan-seat-extra { opacity: 0.9; }
.public-seat-plan .plan-tech {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.public-seat-plan .plan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.public-seat-plan .plan-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.public-seat-plan .plan-legend .dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.public-seat-plan .plan-legend .dot.free { background: #166534; }
.public-seat-plan .plan-legend .dot.reserved { background: #ca8a04; }
.public-seat-plan .plan-legend .dot.sold { background: #b91c1c; }
.public-seat-plan .plan-legend .dot.blocked { background: #4b5563; }
.public-seat-plan .plan-legend .dot.selected { background: transparent; border: 2px solid #eab308; }
