/* ---------------------------------------------------
   Design-Tokens – orientiert an Apples iOS HIG-Palette
--------------------------------------------------- */
:root {
  /* echtes OLED-Schwarz als Screen-Hintergrund – spart Akku auf OLED-Displays
     und sorgt für nahtlose Übergänge zur schwarzen Statusleiste/Home-Indicator-Zone */
  --color-bg: #000000;
  --color-card: #1C1C1E;            /* secondarySystemBackground (dark) */
  --color-label: #FFFFFF;
  --color-label-secondary: rgba(235, 235, 245, 0.6);
  --color-separator: rgba(84, 84, 88, 0.6);
  --color-accent: #0A84FF;          /* systemBlue (dark) */
  --color-fab-bg: #1C1C1E;
  --color-fab-icon: #0A84FF;

  --font-system: -apple-system, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  /* iOS-typische Timing-Funktion für Press-Feedback */
  --ease-ios: cubic-bezier(0.25, 0.1, 0.25, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* ---------------------------------------------------
   Reset & App-Shell
--------------------------------------------------- */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior-y: none;      /* kein "Gummiband"-Bounce der Webseite */
}

body {
  background: var(--color-bg);
  color: var(--color-label);
  font-family: var(--font-system);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;                 /* App-Shell steuert eigenes Scrollen */
}

#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------
   Navigationsleiste (Large Title, wie Einstellungen-App)
--------------------------------------------------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: var(--safe-top);
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--color-separator);
}

.nav-bar-inner {
  padding: 56px 16px 8px;
}

.large-title {
  margin: 0;
  font-family: "Inter", var(--font-system);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ---------------------------------------------------
   Inhalt
--------------------------------------------------- */
.content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px calc(28px + 48px + 28px + var(--safe-bottom));
  /* unterer Padding reserviert Platz für den Floating Button, damit Inhalt nicht verdeckt wird */
}

.placeholder-text {
  color: var(--color-label-secondary);
  font-size: 15px;
  text-align: center;
  margin-top: 40px;
}

/* ---------------------------------------------------
   Bottom-Bar: Menü (links) & Hinzufügen (rechts)
   je 48×48px, 28px Abstand zu Seite & unterem Rand
--------------------------------------------------- */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  padding: 0
    calc(28px + var(--safe-right))
    calc(28px + var(--safe-bottom))
    calc(28px + var(--safe-left));
  pointer-events: none; /* Lücke dazwischen soll Inhalt dahinter nicht blockieren */
}

.fab {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.20),
    0 4px 16px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s var(--ease-ios), opacity 0.15s var(--ease-ios), background 0.15s var(--ease-ios);
}

/* iOS-typisches Press-Feedback: leicht schrumpfen, abdunkeln & Glas etwas "verdichten" */
.fab:active {
  transform: scale(0.90);
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.18);
}

@media (hover: hover) {
  .fab:hover {
    background: rgba(255, 255, 255, 0.14);
  }
}
