/* ---------------------------------------------------------
   GLOBAL
--------------------------------------------------------- */
* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f5f7;
    color: #111827;
    overflow-x: hidden;
}

body.dark {
    background: radial-gradient(1200px 700px at 50% -10%, #0b1730 0%, #020617 55%, #000 100%);
    color: #e5e7eb;
}

/* ---------------------------------------------------------
   HEADER (AnonAir Style)
--------------------------------------------------------- */

header.aa-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e5e7eb;
}

body.dark header.aa-header {
    background: rgba(2, 6, 23, 0.9);
    border-bottom: 1px solid #0f172a;
}

.aa-left {
    display: flex;
    flex-direction: column;
}

.aa-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
}

.aa-title a {
    text-decoration: none;
    color: inherit;
}

.aa-title span {
    color: #2563eb;
}

.aa-sub {
    margin: 2px 0 0 0;
    font-size: 12px;
    letter-spacing: .06em;
    color: #6b7280;
}

body.dark .aa-sub {
    color: #9ca3af;
}

.aa-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aa-icon-btn,
.aa-icon-link {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #111827;
    text-decoration: none;
    transition: .2s;
}

body.dark .aa-icon-btn,
body.dark .aa-icon-link {
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #1f2937;
}

.aa-icon-btn:hover,
.aa-icon-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

/* Heart animation */
#donateBtn {
    font-size: 20px;
    animation: heartbeat 1.6s ease-in-out infinite;
    background: #fee2e2;
    color: #b91c1c;
}

body.dark #donateBtn {
    background: #450a0a;
    color: #fecaca;
    border: 1px solid #7f1d1d;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.18); }
    45% { transform: scale(.9); }
    65% { transform: scale(1.08); }
}

/* ---------------------------------------------------------
   MAP
--------------------------------------------------------- */

#map {
    width: 100%;
    height: calc(100vh - 110px);
    background: #d1d5db;
}

body.dark #map {
    filter: brightness(.75);
}

/* ---------------------------------------------------------
   FLOATING BUTTON PANEL
--------------------------------------------------------- */

.control-panel {
    position: fixed;
    bottom: 22px;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 60;
}

.aa-btn {
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    transition: 0.2s;
}

#btnReport {
    background-image: url("data:image/svg+xml;base64,DEINICON...");
    background-size: 22px;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px; /* Text ausblenden */
}

.aa-btn:hover {
    opacity: 0.85;
}

.aa-btn.stop {
    background: #dc2626;
}

.aa-btn.export {
    background: #16a34a;
}

.aa-btn.settings {
    background: #475569;
}

.aa-btn.secret {
    background: #111827;
}

/* ---------------------------------------------------------
   SETTINGS PANEL
--------------------------------------------------------- */

.settings-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px;
    z-index: 70;
    display: none;
    border-top: 1px solid #e5e7eb;
}

body.dark .settings-panel {
    background: #0b1730;
    border-top: 1px solid #1e293b;
    color: #e5e7eb;
}

.settings-panel label {
    margin-top: 10px;
    display: block;
    font-weight: 600;
}

.settings-panel select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    margin-top: 6px;
    margin-bottom: 14px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

body.dark .settings-panel select {
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #1e293b;
}

.settings-panel button {
    width: 100%;
    margin-top: 10px;
}

/* ---------------------------------------------------------
   SECRET MODE
--------------------------------------------------------- */

.secret-mode-active #map {
    filter: brightness(0);
}

.secret-mode-active header,
.secret-mode-active footer,
.secret-mode-active .control-panel {
    opacity: 0;
    pointer-events: none;
}

body.dark.secret-mode-active {
    background: #000 !important;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

footer {
    text-align: center;
    font-size: 13px;
    padding: 14px 10px;
    color: #6b7280;
}

body.dark footer {
    color: #9ca3af;
}

footer a {
    text-decoration: none;
    color: #2563eb;
}

footer a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   RESPONSIVE DESIGN
--------------------------------------------------------- */

@media (max-width: 600px) {
    .aa-title {
        font-size: 18px;
    }

    #map {
        height: calc(100vh - 140px);
    }

    .aa-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
}
/* ---------------------------------------------------------
   REPORT PANEL (Seitliches Dashboard)
--------------------------------------------------------- */

#report-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 340px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  padding: 20px;
  z-index: 120;
  transition: 0.35s ease;
  overflow-y: auto;
}

body.dark #report-panel {
  background: #0f172a;
  border-left: 1px solid #1e293b;
  color: #e2e8f0;
}

#report-panel.visible {
  right: 0;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#reportCloseBtn {
  border: none;
  background: #e5e7eb;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

body.dark #reportCloseBtn {
  background: #1e293b;
  color: #e2e8f0;
}

.report-block {
  margin-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

body.dark .report-block {
  border-bottom: 1px solid #1e293b;
}

.report-block h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
}
/* ---------------------------------------------------------
   TOAST MESSAGES
--------------------------------------------------------- */

#aa-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aa-toast {
  background: #111827;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateX(20px);
  transition: .25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

body.dark .aa-toast {
  background: #1e293b;
}

.aa-toast.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------------------------------------------------------
   MODAL
--------------------------------------------------------- */

.aa-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.aa-modal-box {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  width: 280px;
  text-align: center;
}

body.dark .aa-modal-box {
  background: #0f172a;
  color: #e2e8f0;
}

.aa-modal-box button {
  margin-top: 15px;
  padding: 8px 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------------------------------------------------------
   UI DISABLED (z. B. beim PDF Generieren)
--------------------------------------------------------- */

.ui-disabled {
  pointer-events: none;
  opacity: 0.5;
}
/* ====================== */
/*    FAB Menü Container   */
/* ====================== */

.fab-menu {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
}

/* ====================== */
/*      Haupt FAB Button    */
/* ====================== */

.fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  font-size: 28px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: 0.2s;
}

.fab:active {
  transform: scale(0.92);
}

/* ====================== */
/*    Ausgeklappte Buttons */
/* ====================== */

.fab-actions {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-end;
}

.fab-action {
  background: #1e3a8a;
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  cursor: pointer;
  min-width: 140px;
  text-align: left;
  transition: 0.2s;
}

.fab-action:active {
  transform: scale(0.96);
}