:root{
  --bg: #0b1020;
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --shadow: 0 18px 50px rgba(0,0,0,.40);

  --primary: #3b82f6;
  --primary-2: rgba(59,130,246,.18);
  --danger: #ff8e8e;
  --danger-2: rgba(255,142,142,.18);

  --r: 18px;
  --gap: 16px;
}

*{ 
  box-sizing:border-box;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

html,body{ height:100%; margin: 0; }

/* Custom Scrollbar Design */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

::-webkit-scrollbar-thumb:active {
  background: rgba(59, 130, 246, 0.7);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.3) rgba(0, 0, 0, 0.2);
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(59,130,246,.16), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(255,190,120,.12), transparent 62%),
    radial-gradient(900px 520px at 50% 110%, rgba(160,175,255,.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 4px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 4px;
  }
}

input, textarea, [contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.85);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.topbar-inner{
  padding: 16px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .topbar-inner {
    padding: 12px;
    gap: 12px;
  }
  
  .tabs {
    width: 100%;
    order: 2;
  }
  
  .brand {
    order: 0;
  }
  
  .header-controls {
    order: 1;
  }
}

@media (max-width: 520px) {
  .topbar-inner {
    padding: 10px 8px;
    gap: 8px;
  }
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: auto;
}

.brand.clickable {
  cursor: pointer;
  transition: transform 0.2s;
}

.brand.clickable:hover {
  transform: scale(1.02);
}

.brand.clickable:hover .brand-mark {
  border-color: rgba(59,130,246,.50);
  background: rgba(59,130,246,.25);
}

.brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 900;
  letter-spacing: .5px;
  background: var(--primary-2);
  border: 1px solid rgba(59,130,246,.30);
  box-shadow: var(--shadow);
}

.brand-title{ font-weight: 900; font-size: 18px; }

.event-selector {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.event-selector:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(59,130,246,.30);
}
.event-selector:focus {
  outline: 2px solid rgba(59,130,246,.40);
  outline-offset: 2px;
}

/* Admin Role Select */
.admin-role-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  max-width: 140px;
}

/* Hide native select when custom select is active */
.admin-role-select.custom-select-original {
  display: none;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Disabled state for custom select */
.custom-select.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.custom-select.disabled .custom-select-trigger {
  cursor: not-allowed;
}

.admin-role-select:hover {
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
}

.admin-role-select:focus {
  outline: none;
  border-color: rgba(59,130,246,.40);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.admin-role-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Admin Role Select - zusätzliches Styling */
.admin-role-select {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  max-width: 120px;
}

.admin-role-select:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(59,130,246,.30);
}

.admin-role-select:focus {
  outline: 2px solid rgba(59,130,246,.40);
  outline-offset: 2px;
}

.admin-role-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tabs{
  display:flex;
  gap: 24px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

/* User Avatar */
.user-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  height: 40px;
  box-sizing: border-box;
}

.user-avatar:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(59,130,246,.30);
  transform: translateY(-1px);
}

.user-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), rgba(160,175,255,.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  color: white;
  text-transform: uppercase;
}

.user-avatar-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand {
  position: relative;
  flex-shrink: 0;
}

.brand::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: var(--stroke);
}

.tabs-scroll-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 0 4px;
}

.tabs-scroll-wrapper::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: var(--stroke);
  pointer-events: none;
}

.tabs-scroll-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
  justify-content: center;
  padding: 4px 12px;
}

.tabs-scroll-container::-webkit-scrollbar {
  display: none;
}

.tabs-scroll-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--stroke);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.2s;
}

.tabs-scroll-btn.visible {
  display: flex;
}

.tabs-scroll-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.15);
  border-color: rgba(59,130,246,.30);
}

.tabs-scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tab-manage {
  flex-shrink: 0;
}

.tab{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.tab.is-active{
  background: var(--primary-2);
  border-color: rgba(59,130,246,.30);
}
.tab:focus{ outline: 2px solid rgba(255,255,255,.26); outline-offset: 2px; }

.tab-hint {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 500;
}

.content{
  padding: 18px 0;
  flex: 1;
  width: 100%;
}

/* Home/Hero Section */
.home-hero {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.hero-content {
  max-width: 100%;
  width: 100%;
  text-align: center;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--primary), rgba(160,175,255,.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 48px 0;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  padding: 32px 24px;
  transition: all 0.3s;
}

.hero-card:hover {
  background: var(--surface-2);
  border-color: rgba(59,130,246,.30);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.hero-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.hero-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.hero-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 32px;
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 800;
}

.hero-hint {
  margin: 16px 0 0 0;
  font-size: 13px;
  color: var(--muted);
}

.panel{ display:none; }
.panel.is-active{ display:block; }

/* Sub-Tabs */
.sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  padding-bottom: 0;
}

.sub-tab {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-tab:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(59,130,246,.3);
}

.sub-tab.is-active {
  background: var(--primary-2);
  border-color: rgba(59,130,246,.4);
  color: var(--primary);
}

.sub-panel {
  display: none;
}

.sub-panel.is-active {
  display: block;
}

/* Event Content */
.event-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(160,175,255,.06));
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.event-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(59,130,246,.15), transparent 50%);
  pointer-events: none;
}

.event-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: var(--text);
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.event-description {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.event-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 32px 0;
  color: var(--text);
  padding-bottom: 0;
}

.grid-2{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}
@media (max-width: 920px){
  .grid-2{ grid-template-columns: 1fr; }
}

.card{
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: visible !important;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(160,175,255,.8));
  opacity: 0;
  transition: opacity 0.3s;
}

.card-head{
  margin-bottom: 24px;
}

.card-head h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head h2{
  margin:0;
  font-size: 16px;
  letter-spacing: .2px;
}
.card-head p{ margin:6px 0 0; }

/* Card-Head mit Button rechts */
.card-head:has(.btn) {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.card-head:has(.btn) > div {
  flex: 1;
}

.card-head:has(.btn) .btn {
  flex-shrink: 0;
}

.muted{ color: var(--muted); font-size: 12px; line-height: 1.35; }

.row{
  display:flex;
  align-items:flex-end;
  gap: 12px;
  flex-wrap: wrap;
  overflow: visible !important;
}
.space-between{ justify-content: space-between; align-items: flex-start; }

.controls{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}

.table-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
}

.table-controls-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.table-controls-row .btn {
  padding: 12px 16px;
  height: auto;
  white-space: nowrap;
}

.input-search {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  background: rgba(30, 41, 59, 0.6);
  border-radius: 8px;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .input-search {
    min-width: 100%;
  }
}

.input-search:focus {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form{ display:flex; flex-direction: column; gap: 12px; overflow: visible !important; }
.form-compact .row { align-items: flex-end; overflow: visible; }
.form-compact button[type="submit"] { margin-bottom: 0; height: 44px; }

.field{
  display:flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  position: relative;
  overflow: visible !important;
  pointer-events: none;
}

.field > * {
  pointer-events: auto;
}

.field span{
  font-size: 12px;
  color: var(--muted);
}

input, select{
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  transition: all 0.2s;
}
input:focus, select:focus{
  outline: none;
  border-color: rgba(59,130,246,.40);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
input:hover, select:hover{
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
}

/* Date input styling */
input[type="date"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(206deg) brightness(98%) contrast(97%);
  cursor: pointer;
}

/* Number input styling */
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

/* Custom Checkbox styling */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  cursor: pointer;
  border: 2px solid var(--stroke);
  border-radius: 4px;
  background: rgba(255,255,255,.04);
  position: relative;
  transition: all 0.2s;
  margin: 0;
  flex-shrink: 0;
}

input[type="checkbox"]:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(59,130,246,.4);
}

input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}

/* Checkbox in Tabellen kleiner */
.table input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  border-width: 1.5px;
  border-radius: 3px;
}

.table input[type="checkbox"]:checked::after {
  font-size: 10px;
}

/* Native Select - hidden, wird durch custom ersetzt */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255,255,255,.08);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  width: 100%;
  pointer-events: auto;
}

.custom-select-trigger {
  width: 100%;
  padding: 11px 12px;
  padding-right: 40px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='rgba(59,130,246,0.75)' d='M3 5l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-trigger:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 2px 8px rgba(59,130,246,.1), inset 0 1px 0 rgba(59,130,246,.1);
}

.custom-select-trigger:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='rgba(59,130,246,0.95)' d='M3 5l4 4 4-4z'/%3E%3C/svg%3E");
}

.custom-select.open .custom-select-trigger {
  background: rgba(255,255,255,.14);
  border-color: rgba(59,130,246,.40);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.custom-select.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='rgba(59,130,246,1)' d='M3 5l4 4 4-4z'/%3E%3C/svg%3E");
}

.custom-select-options {
  position: fixed;
  background: #1a2035;
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  z-index: 999999;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  pointer-events: auto;
}

.custom-select.open .custom-select-options {
  display: block;
}

.custom-option {
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: relative;
  background: #1a2035;
  will-change: background, color;
  pointer-events: auto;
}

.custom-option.in-group {
  padding-left: 24px;
  font-size: 13px;
  background: #1a2035;
}

.custom-optgroup-label {
  padding: 10px 14px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #1a2035;
  border-bottom: 1px solid rgba(255,255,255,.08);
  pointer-events: auto;
  cursor: default;
}

.custom-optgroup-label:not(:first-child) {
  margin-top: 4px;
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: linear-gradient(90deg, rgba(59,130,246,.12) 0%, rgba(59,130,246,.08) 100%) !important;
  color: rgba(59,130,246,1) !important;
}

.custom-option.selected {
  background: linear-gradient(90deg, rgba(59,130,246,.18) 0%, rgba(59,130,246,.12) 100%);
  color: rgba(59,130,246,1);
  font-weight: 700;
}

.custom-option.selected::before {
  content: '✓';
  position: absolute;
  left: 14px;
  color: rgba(59,130,246,1);
  font-weight: 900;
}

.custom-option.selected {
  padding-left: 32px;
}

/* Scrollbar für Dropdown */
.custom-select-options::-webkit-scrollbar {
  width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: rgba(0,0,0,.2);
  border-radius: 0 14px 14px 0;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(59,130,246,.3);
  border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(59,130,246,.5);
}

/* Status-spezifische Farben */
.custom-option[data-value="confirmed"] {
  color: rgba(123, 231, 182, 0.95);
}

.custom-option[data-value="maybe"] {
  color: rgba(253,224,71,0.95);
}

.custom-option[data-value="declined"] {
  color: rgba(252,165,165,0.95);
}

/* Original Select verstecken aber funktional halten */
select.custom-select-original {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  width: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7z'/%3E%3C/svg%3E");
  cursor: pointer;
}

.input{ min-width: 220px; }
.grow{ flex: 1 1 320px; }

.w-qty{ width: 130px; min-width: 130px; }
.w-unit{ width: 220px; min-width: 220px; }
.w-check{ width: 56px; }

@media (max-width: 768px) {
  .input { min-width: 100%; }
  .grow { flex: 1 1 100%; }
  .w-qty, .w-unit, .w-status { width: 100%; min-width: 100%; }
}

.actions{ align-items:center; }

.btn{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:hover{ 
  background: rgba(255,255,255,.11);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus{ 
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.15);
}

.btn-primary{
  background: linear-gradient(135deg, var(--primary-2), rgba(59,130,246,.25));
  border-color: rgba(59,130,246,.35);
  color: var(--primary);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(59,130,246,.28));
  border-color: rgba(59,130,246,.5);
}
.btn-danger{
  background: linear-gradient(135deg, var(--danger-2), rgba(255,142,142,.25));
  border-color: rgba(255,142,142,.35);
  color: #ff8e8e;
}
.btn-danger:hover {
  background: linear-gradient(135deg, rgba(255,142,142,.35), rgba(255,142,142,.28));
  border-color: rgba(255,142,142,.5);
}
.btn-ghost{ 
  background: transparent;
  border-color: rgba(255,255,255,.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.25);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin: 0 4px;
  font-size: 16px;
}

.btn-icon:first-child {
  margin-left: 0;
}

.btn-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.input-sm {
  padding: 6px 10px;
  font-size: 13px;
  min-width: 140px;
}

.stats-details summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 16px;
  background: rgba(255,255,255,.02);
  border-radius: 10px;
  transition: background 0.2s;
}

.stats-details summary:hover {
  background: rgba(255,255,255,.04);
  user-select: none;
}

.stats-details summary::-webkit-details-marker {
  display: none;
}

.stats-details summary h3 {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.stats-details summary:hover h3 {
  color: var(--text);
}

.stats-details[open] summary h3 {
  color: var(--primary);
}

.table-wrap{
  overflow:auto;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(0,0,0,.18);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.25);
  width: 100%;
  box-sizing: border-box;
}
.table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  box-sizing: border-box;
}

/* Spaltenbreiten für Desktop */
.table th:nth-child(1),
.table td:nth-child(1) {
  width: 28%;
}

.table th:nth-child(2),
.table td:nth-child(2) {
  width: 28%;
}

.table th:nth-child(3),
.table td:nth-child(3) {
  width: 26%;
}

.table th:nth-child(4),
.table td:nth-child(4) {
  width: 18%;
}

/* Shopping Tabelle - 5 Spalten */
.shopping-table th:nth-child(1),
.shopping-table td:nth-child(1) {
  width: 10%;
}

.shopping-table th:nth-child(2),
.shopping-table td:nth-child(2) {
  width: 35%;
}

.shopping-table th:nth-child(3),
.shopping-table td:nth-child(3) {
  width: 20%;
}

.shopping-table th:nth-child(4),
.shopping-table td:nth-child(4) {
  width: 20%;
}

.shopping-table th:nth-child(5),
.shopping-table td:nth-child(5) {
  width: 15%;
}

/* Admin Users Tabelle - 6 Spalten */
.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
  width: 22%;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
  width: 22%;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
  width: 15%;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
  width: 15%;
}

.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
  width: 16%;
}

.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) {
  width: 10%;
}

.table th, .table td{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table td:last-child {
  overflow: visible;
  white-space: normal;
}
.table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(0,0,0,.3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}
.table tbody tr {
  transition: background 0.15s;
}
.table tbody tr:hover {
  background: rgba(59,130,246,.05);
}
.table tr:last-child td{ border-bottom: none; }

.ta-right{ text-align: right; }
.ta-center{ text-align: center; }

.actions {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.actions .btn-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  font-weight: 800;
  font-size: 12px;
}

.stats{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.stats-inline {
  padding: 6px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* List Grid Layout: Main content left, Stats sidebar right */
.list-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.list-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.list-stats {
  position: sticky;
  top: 80px;
}

.list-stats .card {
  height: 100%;
}

@media (max-width: 1024px){
  .list-grid {
    grid-template-columns: 1fr;
  }
  
  .list-stats {
    position: static;
  }
}

@media (max-width: 520px){
  .stats{ grid-template-columns: 1fr; }
}
.kpi{
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface-2);
}
.kpi .label{ color: var(--muted); font-size: 12px; }
.kpi .value{ margin-top: 6px; font-size: 18px; font-weight: 950; }

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.dialog{
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  background: rgba(11,16,32,.96);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 0;
  width: min(520px, calc(100% - 24px));
}
.dialog::backdrop{ background: rgba(0,0,0,.55); }
.dialog-body{
  padding: 16px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.dialog-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.dialog-head h3{ margin:0; font-size: 15px; }

.icon-btn{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}

.footer{
  margin-top: auto;
  border-top: 1px solid var(--stroke);
  background: rgba(11,16,32,.85);
  backdrop-filter: blur(10px);
}
.footer-inner{
  padding: 16px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

.toast{
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
}

/* Custom Modal */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

/* Alert Modal muss über allen anderen Modals liegen */
#custom-modal {
  z-index: 99999999;
}

.custom-modal.show {
  display: flex;
}

.custom-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.custom-modal-content {
  position: relative;
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(59,130,246,.16), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(255,190,120,.12), transparent 62%),
    radial-gradient(900px 520px at 50% 110%, rgba(160,175,255,.14), transparent 60%),
    var(--bg);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 32px;
  min-width: 400px;
  max-width: 500px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
  z-index: 1;
}

.custom-modal-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 20px;
}

.custom-modal-message {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 28px;
}

.custom-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.custom-modal-buttons .btn {
  min-width: 120px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =====================================================
   Kalender
   ===================================================== */
.calendar-container {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
  margin: 32px auto 0 auto;
  width: fit-content;
  max-width: calc(100vw - 36px);
  overflow: hidden;
  box-sizing: border-box;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.calendar-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.calendar-header .btn {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  padding: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  width: 100%;
}

.calendar-weekday {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 12px 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-day {
  aspect-ratio: 1;
  padding: 8px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 120px;
  min-width: 0;
  overflow: hidden;
}

.calendar-day:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.calendar-day.other-month {
  opacity: 0.3;
  cursor: default;
}

.calendar-day.other-month:hover {
  background: rgba(30, 41, 59, 0.4);
  border-color: var(--stroke);
  transform: none;
}

.calendar-day.today {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
}

.calendar-day-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  min-width: 0;
}

.calendar-event {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  transition: all 0.2s;
  min-height: 20px;
  line-height: 14px;
  display: block;
  text-align: center;
}

.calendar-event:hover {
  background: color-mix(in srgb, var(--event-color) 30%, transparent) !important;
  border-color: var(--event-color) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.calendar-event-more {
  font-size: 11px;
  color: var(--primary);
  padding: 3px 6px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
  min-height: 20px;
  line-height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-event-more:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* Color Picker */
.color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.color-option:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

input[type="radio"]:checked + .color-option {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

input[type="radio"]:checked + .color-option::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 900;
  font-size: 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Tab Selector (für Event-Erstellung) */
.tab-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tab-option {
  flex: 1;
  min-width: 180px;
  cursor: pointer;
}

.tab-option input[type="checkbox"],
.tab-option input[type="radio"] {
  display: none;
}

.tab-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  transition: all 0.2s;
  user-select: none;
  cursor: pointer;
}

.tab-option:hover .tab-option-label {
  background: rgba(255,255,255,.08);
  border-color: rgba(59,130,246,.30);
}

.tab-option input[type="checkbox"]:checked + .tab-option-label,
.tab-option input[type="radio"]:checked + .tab-option-label {
  background: rgba(59,130,246,.15);
  border-color: rgba(59,130,246,.50);
  box-shadow: 0 0 0 3px rgba(59,130,246,.10);
}

.tab-option-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-option-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-actions {
    grid-template-columns: 1fr;
  }
  
  .hero-card {
    padding: 24px 18px;
  }
  
  .brand-subtitle {
    font-size: 11px;
  }
  
  .event-selector {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* Polls / Abstimmungen */
.polls-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

.poll-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  padding: 24px;
  transition: all 0.2s;
}

.poll-card.closed {
  opacity: 0.8;
}

.poll-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.poll-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.poll-header .muted {
  margin: 4px 0 0 0;
  font-size: 14px;
}

.poll-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.poll-status.open {
  background: rgba(16,185,129,.15);
  color: #10b981;
}

.poll-status.closed {
  background: rgba(239,68,68,.15);
  color: #ef4444;
}

.poll-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.poll-option-result {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.2s;
  position: relative;
}

.poll-option-result.interactive {
  cursor: pointer;
}

.poll-option-result.interactive:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(59,130,246,.3);
  transform: translateX(4px);
}

.poll-option-result.winning {
  border-color: var(--primary);
  background: rgba(59,130,246,.08);
}

.poll-option-result.user-voted {
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.4);
  padding-left: 48px;
}

.poll-option-result.user-voted::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-weight: 900;
  font-size: 18px;
}

.poll-option-result.user-voted .poll-option-text {
  color: var(--primary);
}

.poll-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.poll-option-text {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.poll-option-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.poll-progress {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.poll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), rgba(59,130,246,.7));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.poll-option-result.winning .poll-progress-bar {
  background: linear-gradient(90deg, #10b981, rgba(16,185,129,.7));
}

.poll-voters {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.poll-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.poll-actions .btn {
  flex: 1;
  min-width: fit-content;
}

/* Vote Option Checkboxes/Radios */
.vote-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.vote-option:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(59,130,246,.3);
}

.vote-option input[type="checkbox"],
.vote-option input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.vote-option-text {
  flex: 1;
  font-size: 15px;
  color: var(--text);
}

/* Poll Option Inputs (Create Form) */
.poll-option-input {
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}

.poll-option-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,.06);
}

.poll-option-input::placeholder {
  color: var(--muted);
}

/* =====================================================
   MOBILE RESPONSIVE OPTIMIERUNG
   ===================================================== */

/* Tablets & größere Handys (max-width: 768px) */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  /* Header Mobile Layout */
  .topbar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  /* Zeile 1: Logo links, Events verwalten + Avatar rechts */
  .brand {
    order: 1;
    flex: 0 0 auto;
  }

  .tabs {
    display: contents;
  }

  .tab-manage {
    order: 2;
    flex: 0 0 auto;
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
    margin-left: auto;
  }

  .user-avatar {
    order: 3;
    flex: 0 0 auto;
  }

  /* Zeile 2: Event-Buttons Scroll-Container */
  .tabs-scroll-wrapper {
    order: 4;
    width: 100%;
    flex: 1 1 100%;
  }

  /* Hero Section */
  .home-hero {
    min-height: calc(100vh - 150px);
    padding: 24px 0;
  }

  .hero-content {
    padding: 0 8px;
    max-width: 100%;
  }

  .hero-title {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .hero-card {
    padding: 24px 18px;
  }

  .hero-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .hero-card h3 {
    font-size: 18px;
  }

  .hero-cta {
    margin-top: 24px;
  }

  .btn-large {
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
  }

  /* Header & Navigation */
  .brand-subtitle {
    display: none;
  }

  .brand::after {
    display: none;
  }

  .tabs-scroll-wrapper::after {
    display: none;
  }

  .tabs-nav {
    gap: 6px;
    padding: 8px 12px;
  }

  .tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .sub-tabs {
    gap: 6px;
    flex-wrap: wrap;
    padding: 12px 8px;
    justify-content: center;
  }

  .sub-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Content */
  .content {
    padding: 12px 0;
  }

  /* Cards haben eigenes Padding */
  .card {
    padding: 16px;
    margin-bottom: 16px;
    margin-left: 8px;
    margin-right: 8px;
  }

  .event-content-header {
    padding: 16px 8px;
  }

  .event-content-title {
    font-size: 22px;
  }

  .event-content-description {
    font-size: 14px;
  }

  /* Cards */
  .card {
    padding: 8px;
    margin-bottom: 16px;
    margin-left: 8px;
    margin-right: 8px;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .event-header {
    padding: 24px 8px;
    margin-left: 8px;
    margin-right: 8px;
  }
  
  /* Tables */
  .table-wrap {
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .card-head {
    margin-bottom: 16px;
  }

  .card-head h2 {
    font-size: 12px;
  }

  .card-head h3 {
    font-size: 10px;
  }

  .card-head:has(.btn) {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .card-head:has(.btn) .btn {
    width: 100%;
  }

  /* List Grid */
  .list-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Forms */
  .form-compact .row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .field {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .field span {
    font-size: 13px;
  }

  input,
  select,
  textarea {
    width: 100%;
    font-size: 14px;
    padding: 10px 12px;
  }

  /* Buttons */
  .btn {
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
  }

  .form-compact .row .btn {
    margin-top: 8px;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  /* Table Controls */
  .table-controls {
    gap: 8px;
  }

  .table-controls-row {
    flex-direction: column;
    gap: 8px;
  }

  .table-controls-row .input,
  .table-controls-row .btn {
    width: 100%;
  }

  /* Tables */
  .table-wrap {
    overflow-x: hidden !important;
    overflow-y: auto;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .table {
    font-size: 5px;
    width: 100% !important;
    table-layout: fixed !important;
    min-width: unset !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .table th,
  .table td {
    padding: 1px 1px;
    word-break: break-word;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* Spaltenbreiten erzwingen - kompakter */
  .table th:nth-child(1),
  .table td:nth-child(1) {
    width: 25%;
    max-width: 25%;
  }
  
  .table th:nth-child(2),
  .table td:nth-child(2) {
    width: 25%;
    max-width: 25%;
  }
  
  .table th:nth-child(3),
  .table td:nth-child(3) {
    width: 30%;
    max-width: 30%;
  }
  
  .table th:nth-child(4),
  .table td:nth-child(4) {
    width: 20%;
    max-width: 20%;
  }

  /* Shopping Tabelle - 5 Spalten Mobile */
  .shopping-table th:nth-child(1),
  .shopping-table td:nth-child(1) {
    width: 10%;
    max-width: 10%;
  }
  
  .shopping-table th:nth-child(2),
  .shopping-table td:nth-child(2) {
    width: 30%;
    max-width: 30%;
  }
  
  .shopping-table th:nth-child(3),
  .shopping-table td:nth-child(3) {
    width: 25%;
    max-width: 25%;
  }
  
  .shopping-table th:nth-child(4),
  .shopping-table td:nth-child(4) {
    width: 20%;
    max-width: 20%;
  }
  
  .shopping-table th:nth-child(5),
  .shopping-table td:nth-child(5) {
    width: 15%;
    max-width: 15%;
  }

  /* Admin Users Tabelle - 6 Spalten Mobile */
  .admin-users-table th:nth-child(1),
  .admin-users-table td:nth-child(1) {
    width: 20%;
    max-width: 20%;
  }
  
  .admin-users-table th:nth-child(2),
  .admin-users-table td:nth-child(2) {
    width: 20%;
    max-width: 20%;
  }
  
  .admin-users-table th:nth-child(3),
  .admin-users-table td:nth-child(3) {
    width: 16%;
    max-width: 16%;
  }
  
  .admin-users-table th:nth-child(4),
  .admin-users-table td:nth-child(4) {
    width: 14%;
    max-width: 14%;
  }
  
  .admin-users-table th:nth-child(5),
  .admin-users-table td:nth-child(5) {
    width: 14%;
    max-width: 14%;
  }
  
  .admin-users-table th:nth-child(6),
  .admin-users-table td:nth-child(6) {
    width: 16%;
    max-width: 16%;
  }

  /* Admin Users Tabelle - 6 Spalten Mobile */
  .admin-users-table th:nth-child(1),
  .admin-users-table td:nth-child(1) {
    width: 20%;
    max-width: 20%;
  }
  
  .admin-users-table th:nth-child(2),
  .admin-users-table td:nth-child(2) {
    width: 20%;
    max-width: 20%;
  }
  
  .admin-users-table th:nth-child(3),
  .admin-users-table td:nth-child(3) {
    width: 18%;
    max-width: 18%;
  }
  
  .admin-users-table th:nth-child(4),
  .admin-users-table td:nth-child(4) {
    width: 15%;
    max-width: 15%;
  }
  
  .admin-users-table th:nth-child(5),
  .admin-users-table td:nth-child(5) {
    width: 15%;
    max-width: 15%;
  }
  
  .admin-users-table th:nth-child(6),
  .admin-users-table td:nth-child(6) {
    width: 12%;
    max-width: 12%;
  }

  .table th {
    font-size: 2px;
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Buttons in Tabellen */
  .table .btn {
    padding: 4px 8px;
    font-size: 9px;
    white-space: nowrap;
    min-width: auto;
    border-radius: 8px;
    line-height: 1.2;
  }

  .table .btn-sm {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    font-size: 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  
  /* Admin-Tabelle Löschen-Button noch kleiner */
  .admin-users-table .btn-sm {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
    font-size: 10px;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .table .btn-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    max-width: 22px;
    min-height: 22px;
    max-height: 22px;
    font-size: 10px;
    padding: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  
  /* Aktionen Spalte */
  .table td:last-child {
    padding: 2px;
    overflow: visible;
  }
  
  .table .actions {
    display: flex;
    flex-direction: row;
    gap: 2px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }

  /* Modals */
  .custom-modal-content {
    min-width: auto !important;
    max-width: calc(100% - 16px) !important;
    width: calc(100% - 16px) !important;
    padding: 16px !important;
    margin: 8px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .dialog {
    width: calc(100% - 32px);
  }
  
  /* Poll Option Inputs für Modal */
  .poll-option-input {
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .custom-modal-content .field {
    width: 100%;
  }
  
  .custom-modal-content input,
  .custom-modal-content textarea {
    width: 100%;
    box-sizing: border-box;
  }
  
  .custom-modal-content .btn {
    width: 100%;
    padding: 10px 14px;
  }
  
  .custom-modal-buttons {
    flex-direction: column;
  }
  
  .custom-modal-buttons .btn {
    min-width: auto;
    width: 100%;
  }
  
  .tab-selector {
    flex-direction: column;
  }
  
  .tab-option {
    min-width: 100%;
  }

  /* Calendar */
  .calendar-container {
    padding: 4px 0px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin: 20px auto 0 auto;
  }

  .calendar-header {
    margin-bottom: 3px;
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: space-between;
    padding: 0;
  }

  .calendar-header h3 {
    font-size: 11px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }

  .calendar-header .btn {
    min-width: 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 13px;
    flex-shrink: 0;
  }

  .calendar-grid {
    gap: 1px;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
  }

  .calendar-weekday {
    font-size: 6px;
    padding: 1px 0;
    text-align: center;
  }

  .calendar-day {
    min-height: 30px;
    padding: 1px 0px;
    font-size: 8px;
    border-radius: 3px;
    aspect-ratio: auto;
    min-width: 0;
    overflow: hidden;
  }

  .calendar-day-number {
    font-size: 8px;
    margin-bottom: 1px;
  }

  .calendar-events {
    gap: 1px;
    overflow: hidden;
    min-width: 0;
  }

  .calendar-event {
    font-size: 6px;
    padding: 1px 1px;
    min-height: 10px;
    line-height: 8px;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
  }

  .calendar-event-more {
    font-size: 6px;
    padding: 1px 1px;
    min-height: 10px;
    line-height: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .day-number {
    font-size: 14px;
  }

  .event-dot {
    width: 4px;
    height: 4px;
  }

  /* Polls */
  .poll-card {
    padding: 16px;
  }

  .poll-header {
    flex-direction: column;
    gap: 12px;
  }

  .poll-header h3 {
    font-size: 18px;
  }

  .poll-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
  }

  .poll-actions {
    flex-direction: column;
  }

  .poll-actions .btn {
    width: 100%;
  }

  /* User Avatar */
  .user-avatar {
    padding: 6px 10px;
  }

  .user-avatar-circle {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .user-avatar-name {
    font-size: 13px;
  }

  /* Event Selector */
  .event-selector {
    font-size: 10px;
    padding: 2px 6px;
  }

  .admin-role-select {
    font-size: 10px;
    padding: 2px 6px;
    max-width: 100%;
  }

  /* Custom Select für Mobile */
  .custom-select-trigger {
    padding: 6px 8px;
    font-size: 10px;
    border-radius: 8px;
  }
  
  .custom-select-options {
    font-size: 10px;
    max-height: 150px;
  }
  
  .custom-option {
    padding: 6px 8px;
    font-size: 10px;
  }
  
  /* Admin-Tabelle Custom Select noch kleiner */
  .admin-users-table .custom-select {
    max-width: 100%;
  }
  
  .admin-users-table .custom-select-trigger {
    padding: 4px 24px 4px 6px;
    font-size: 9px;
    border-radius: 6px;
    min-height: 24px;
  }
  
  .admin-users-table .custom-select-trigger::after {
    right: 6px;
    width: 10px;
    height: 10px;
  }
  
  .admin-users-table .custom-select-options {
    font-size: 9px;
    max-height: 120px;
    border-radius: 6px;
  }
  
  .admin-users-table .custom-option {
    padding: 4px 6px;
    font-size: 9px;
    min-height: 20px;
  }
  
  .admin-users-table .custom-optgroup-label {
    padding: 4px 6px;
    font-size: 8px;
  }

  /* Events Table */
  .events-table {
    overflow-x: auto;
  }

  /* Footer */
  footer {
    padding: 12px 0;
    font-size: 11px;
  }

  .footer-inner {
    padding: 12px 8px;
    gap: 8px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* iPhone & mittelgroße Handys (max-width: 414px) - z.B. iPhone XR, iPhone 14 Pro Max */
@media (max-width: 414px) {
  /* Base */
  body {
    font-size: 13px;
  }

  .wrap {
    padding: 0 10px;
  }

  .topbar-inner {
    padding: 10px;
    gap: 10px;
  }

  /* Hero Section */
  .home-hero {
    min-height: calc(100vh - 120px);
    padding: 20px 0;
  }

  .hero-content {
    padding: 0 8px;
  }

  .hero-title {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.4;
  }

  .hero-actions {
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-card {
    padding: 20px 16px;
  }

  .hero-card-icon {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .hero-card h3 {
    font-size: 16px;
  }

  .hero-card p {
    font-size: 13px;
  }

  .btn-large {
    padding: 11px 20px;
    font-size: 14px;
  }

  /* Header */
  .brand {
    font-size: 15px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .tabs {
    gap: 8px;
  }

  .tabs-nav {
    padding: 6px 8px;
  }

  .tab {
    padding: 7px 10px;
    font-size: 12px;
  }

  .sub-tabs {
    gap: 5px;
    padding: 10px 0;
  }

  .sub-tab {
    padding: 7px 10px;
    font-size: 12px;
  }

  /* Content */
  .content {
    padding: 10px 0;
  }

  .event-content-header {
    padding: 12px 0;
  }

  .event-content-title {
    font-size: 20px;
  }

  .event-content-description {
    font-size: 13px;
  }

  /* Cards */
  .card {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .card-head {
    margin-bottom: 14px;
  }

  .card-head h2 {
    font-size: 17px;
  }

  .card-head h3 {
    font-size: 16px;
  }

  /* Forms */
  .form-compact .row {
    gap: 10px;
  }

  .field span {
    font-size: 12px;
  }

  input,
  select,
  textarea {
    font-size: 14px;
    padding: 10px;
  }

  /* Buttons */
  .btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .btn-sm {
    padding: 7px 10px;
    font-size: 12px;
  }

  .btn-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  /* Tables */
  .table {
    font-size: 12px;
    min-width: 520px;
  }

  .table th,
  .table td {
    padding: 8px 6px;
  }

  /* Stats */
  .kpi {
    padding: 12px;
  }

  .kpi .label {
    font-size: 11px;
  }

  .kpi .value {
    font-size: 17px;
  }

  /* User Avatar */
  .user-avatar {
    padding: 5px 8px;
  }

  .user-avatar-circle {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .user-avatar-name {
    font-size: 12px;
    max-width: 80px;
  }

  /* Polls */
  .poll-card {
    padding: 14px;
    border-radius: 14px;
  }

  .poll-header h3 {
    font-size: 16px;
  }

  .poll-meta {
    font-size: 12px;
  }

  .poll-option-text {
    font-size: 13px;
  }

  .poll-option-count {
    font-size: 12px;
  }

  .poll-voters {
    font-size: 11px;
  }

  /* Modals */
  .custom-modal-content {
    padding: 20px;
    margin: 12px;
    border-radius: 16px;
  }

  .custom-modal-icon {
    font-size: 40px;
  }

  .custom-modal-message {
    font-size: 14px;
  }

  /* Calendar */
  .calendar-container {
    padding: 14px;
    border-radius: 12px;
  }

  .calendar-header {
    margin-bottom: 14px;
    gap: 6px;
    justify-content: center;
  }

  .calendar-header h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0 4px;
  }

  .calendar-header .btn {
    min-width: 36px;
    width: 36px;
    height: 36px;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .calendar-grid {
    gap: 3px;
  }

  .calendar-weekday {
    font-size: 10px;
    padding: 6px 2px;
  }

  .calendar-day {
    min-height: 50px;
    padding: 4px;
    border-radius: 8px;
  }

  .day-number {
    font-size: 13px;
  }

  .event-dot {
    width: 4px;
    height: 4px;
  }

  /* Footer */
  footer {
    padding: 12px 0;
    font-size: 11px;
  }
}

/* Kleine Handys (max-width: 520px) */
@media (max-width: 520px) {
  /* Base */
  body {
    font-size: 13px;
  }

  /* Hero */
  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-card {
    padding: 18px 14px;
  }

  .hero-card-icon {
    font-size: 30px;
  }

  .hero-card h3 {
    font-size: 15px;
  }

  .btn-large {
    padding: 10px 18px;
    font-size: 13px;
  }

  /* Header */
  .topbar {
    padding: 10px 12px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  /* Tabs */
  .tabs-nav {
    padding: 0 8px;
  }

  .tab {
    padding: 7px 10px;
    font-size: 12px;
  }

  .sub-tab {
    padding: 6px 9px;
    font-size: 11px;
  }

  /* Cards */
  .card {
    padding: 12px;
    border-radius: 12px;
  }

  .card-head h2 {
    font-size: 16px;
  }

  .card-head h3 {
    font-size: 15px;
  }

  /* Forms */
  .field span {
    font-size: 12px;
  }

  input,
  select,
  textarea {
    font-size: 13px;
    padding: 9px 11px;
  }

  /* Buttons */
  .btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  .btn-sm {
    padding: 6px 9px;
    font-size: 11px;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* Tables */
  .table {
    font-size: 12px;
    min-width: 500px;
  }

  .table th,
  .table td {
    padding: 8px 6px;
  }

  /* Stats */
  .kpi {
    padding: 10px;
  }

  .kpi .label {
    font-size: 11px;
  }

  .kpi .value {
    font-size: 16px;
  }

  /* Modals */
  .custom-modal-content {
    padding: 18px;
    margin: 10px;
    border-radius: 14px;
  }

  .custom-modal-icon {
    font-size: 36px;
    margin-bottom: 14px;
  }

  .custom-modal-message {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .custom-modal-buttons {
    flex-direction: column;
  }

  .custom-modal-buttons .btn {
    width: 100%;
    min-width: auto;
  }

  /* Calendar */
  .calendar-container {
    padding: 12px;
  }

  .calendar-header {
    margin-bottom: 12px;
    gap: 6px;
    justify-content: center;
  }

  .calendar-header h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0 4px;
  }

  .calendar-header .btn {
    min-width: 34px;
    width: 34px;
    height: 34px;
    font-size: 18px;
    padding: 0;
  }

  .calendar-grid {
    gap: 2px;
  }

  .calendar-weekday {
    font-size: 9px;
    padding: 6px 1px;
  }

  .calendar-day {
    min-height: 45px;
    padding: 3px;
    border-radius: 6px;
  }

  .day-number {
    font-size: 12px;
  }

  .event-dot {
    width: 4px;
    height: 4px;
  }

  /* Polls */
  .poll-card {
    padding: 12px;
  }

  .poll-header h3 {
    font-size: 15px;
  }

  .poll-meta {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
  }

  .poll-option-header {
    gap: 6px;
  }

  .poll-option-text {
    font-size: 12px;
  }

  .poll-option-count {
    font-size: 11px;
  }

  .poll-voters {
    font-size: 10px;
  }

  /* User Avatar */
  .user-avatar {
    padding: 4px 7px;
  }

  .user-avatar-circle {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .user-avatar-name {
    display: none;
  }

  /* Toast Notifications */
  #toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    font-size: 12px;
    padding: 11px 14px;
  }

  /* Footer */
  footer {
    padding: 10px 0;
    font-size: 10px;
  }
}

/* Extra kleine Handys (max-width: 380px) */
@media (max-width: 380px) {
  .topbar {
    padding: 8px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-logo {
    width: 24px;
    height: 24px;
  }

  .tab {
    padding: 6px 8px;
    font-size: 11px;
  }

  .card {
    padding: 10px;
  }

  .btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  .table {
    min-width: 400px;
  }

  .custom-modal-content {
    padding: 16px;
    margin: 8px;
  }

  .poll-card {
    padding: 10px;
  }
}

/* Touch-optimierte Interaktionen */
@media (hover: none) and (pointer: coarse) {
  /* Größere Touch-Targets für mobile Geräte */
  .btn {
    min-height: 44px;
  }

  .btn-icon {
    min-width: 44px;
    min-height: 44px;
  }

  .tab {
    min-height: 40px;
  }

  .custom-option {
    min-height: 44px;
  }

  .calendar-day {
    min-height: 60px;
  }

  .poll-option-result.interactive {
    min-height: 60px;
  }

  /* Entferne Hover-Effekte auf Touch-Geräten */
  .btn:hover {
    transform: none;
  }

  .tab:hover {
    background: rgba(255,255,255,.05);
  }

  /* Besseres Feedback bei Touch */
  .btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .tab:active {
    opacity: 0.8;
  }
}