html, body { height:100%; margin:0; background:#fff; color:#000; font-family: Arial, Helvetica, sans-serif; }
body { display:flex; flex-direction:column; }

.wrap { flex:1; max-width:1800px; margin:0 auto; padding:16px 18px 40px; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.topbar__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar__row--form{
  border-top: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}

.topbar__left, .topbar__right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.brand{ font-weight:700; text-decoration:none; }
.sep{ opacity:.5; }

.tabs{ display:flex; gap:8px; }
.tab{
  padding:6px 10px;
  border:1px solid rgba(0,0,0,.2);
  border-radius:999px;
  text-decoration:none;
  color:#000;
}
.tab.on{ background:#111; color:#fff; border-color:#111; }

.statsline{ font-size: 13px; opacity:.85; display:flex; gap:6px; }

.form{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.form input, .form select{
  padding:8px 10px; border:1px solid #bbb; border-radius:8px; font-size:14px; min-width:160px;
}
.form button{
  padding:8px 14px; border:1px solid #111; background:#111; color:#fff; border-radius:8px; cursor:pointer; font-size:14px;
}

/* tables */
table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:13px; }
th, td { border-bottom:1px solid #eee; padding:8px 6px; vertical-align:top; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
th { background:#f5f5f5; font-weight:700; text-align:left; }

.notice{ padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.notice.err{ background: rgba(176,0,0,.10); border: 1px solid rgba(176,0,0,.25); }
.notice.ok{ background: rgba(0,128,0,.10); border: 1px solid rgba(0,128,0,.25); }

.footer{
  padding: 10px 12px;
  background: rgba(0,0,0,.04);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0,0,0,.12);
  text-align: center;
  font-size: 14px;
}
.footer a{ text-decoration: none; }
.footer .sep{ opacity: .5; margin: 0 6px; }

/* modal (dein code, nur ausgelagert) */
.modal{ width: min(760px, 92vw); border: 1px solid rgba(0,0,0,.2); border-radius: 10px; padding: 0; }
.modal::backdrop{ background: rgba(0,0,0,.55); }
.modal__chrome{ display:flex; justify-content:flex-end; padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,.12); margin:0; }
.modal__close{ font-size: 22px; line-height: 1; border: 0; background: transparent; cursor: pointer; }
.modal__body{ padding: 14px 16px; }

.mailform label{ display:block; margin: 10px 0; font-size: 14px; }
.mailform input, .mailform textarea{
  width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid rgba(0,0,0,.2);
  border-radius: 8px; font: inherit;
}

.statschips{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:13px;
  opacity:.92;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:999px;
  background: rgba(0,0,0,.03);
  white-space:nowrap;
}

.chip .ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  opacity:.9;
}

.chip .num{
  font-weight:700;
  letter-spacing:.2px;
}

.chip .lbl{
  opacity:.7;
}

@media (max-width: 820px){
  .chip .lbl{ display:none; } /* mobil nur icon + zahl */
}


  /* Draggable Modal Styles */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.3);
      z-index: 999;
      backdrop-filter: blur(2px);
    }

    .modal-overlay.active {
      display: block;
    }

    .modal-window {
	  display:none;	
      position: fixed;
      top: 100px;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
      max-width: 800px;
      height: auto;
      max-height: 80vh;
      background: #fff;
      border-radius: 6px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
      display: flex;
      flex-direction: column;
      z-index: 1000;
      touch-action: none;
    }

    .modal-window.dragging {
      opacity: 0.95;
    }

    .modal-titlebar {
      background: linear-gradient(to right, #2c3e50, #34495e);
      color: #fff;
      padding: 10px 14px;
      font-weight: 600;
      font-size: 14px;
      cursor: grab;
      user-select: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-radius: 6px 6px 0 0;
      flex-shrink: 0;
    }

    .modal-titlebar:active {
      cursor: grabbing;
    }

    .modal-controls {
      display: flex;
      gap: 6px;
    }

    .modal-btn {
      width: 20px;
      height: 20px;
      border: none;
      background: rgba(255, 255, 255, 0.2);
      color: #fff;
      cursor: pointer;
      font-size: 12px;
      padding: 0;
      border-radius: 3px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .modal-btn:hover {
      background: rgba(255, 255, 255, 0.4);
    }

    .modal-btn.close:hover {
      background: #e74c3c;
    }

    .modal-content {
      padding: 20px;
      overflow-y: auto;
      flex: 1;
      background: #f8f9fa;
    }

    .modal-content iframe {
      width: 100%;
      border: none;
      display: block;
      min-height: 400px;
    }

    .loading-spinner {
      text-align: center;
      padding: 40px;
      color: #666;
    }

    .loading-spinner::after {
      content: '';
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 3px solid #e0e0e0;
      border-top-color: #2c3e50;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Place Links Styling */
    .place-header {
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .place-header:hover {
      color: #2980b9;
      text-shadow: 0 0 8px rgba(41, 128, 185, 0.2);
    }

    .place-header.loading {
      opacity: 0.6;
      pointer-events: none;
    }

table th {
  position: relative;
  user-select: none;
}
table { table-layout: fixed; }

.col-resizer {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 6px;
  cursor: col-resize;
  background: transparent;
  z-index: 1;
}
.col-resizer:hover, .col-resizer.active {
  background: #aaa;
}