/* Google Fonts: Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM (Dark/Light Dynamic)
   ========================================================================== */
:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Hintergründe */
  --bg-core: #07070a;
  --bg-surface: rgba(18, 16, 26, 0.72);
  --bg-surface-elevated: rgba(28, 24, 42, 0.85);
  --bg-surface-hover: rgba(40, 34, 60, 0.9);
  --bg-item: rgba(255, 255, 255, 0.03);
  --bg-item-hover: rgba(255, 255, 255, 0.07);

  /* Borders & Glassmorphism */
  --border: rgba(255, 255, 255, 0.10);
  --border-bright: rgba(255, 255, 255, 0.22);
  --glass-blur: blur(24px) saturate(170%);

  /* Neon Akzente */
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --neon-cyan: #00e5ff;
  --neon-red: #ef4444;
  --neon-green: #10b981;
  --neon-glow: rgba(236, 72, 153, 0.35);

  /* Texte */
  --text-primary: #ffffff;
  --text-secondary: rgba(240, 240, 255, 0.75);
  --text-muted: rgba(240, 240, 255, 0.45);

  /* Schatten & Radien */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 32px rgba(236, 72, 153, 0.25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-core: #f5f6fa;
    --bg-surface: rgba(255, 255, 255, 0.78);
    --bg-surface-elevated: rgba(255, 255, 255, 0.92);
    --bg-surface-hover: rgba(255, 255, 255, 0.98);
    --bg-item: rgba(0, 0, 0, 0.02);
    --bg-item-hover: rgba(0, 0, 0, 0.05);

    --border: rgba(0, 0, 0, 0.08);
    --border-bright: rgba(0, 0, 0, 0.16);
    --glass-blur: blur(24px) saturate(150%);

    --neon-purple: #8b5cf6;
    --neon-pink: #db2777;
    --neon-cyan: #0284c7;
    --neon-red: #dc2626;
    --neon-green: #059669;
    --neon-glow: rgba(219, 39, 119, 0.2);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 32px rgba(219, 39, 119, 0.18);
  }
}

/* ==========================================================================
   RESET & BASIS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-core);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HINTERGRUND (Glow Blobs & Dot-Grid)
   ========================================================================== */
.glow-bg {
  position: fixed;
  inset: 0;
  background-color: var(--bg-core);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(110px);
  opacity: 0.22;
  pointer-events: none;
}

@media (prefers-color-scheme: light) {
  .blob {
    mix-blend-mode: multiply;
    opacity: 0.12;
  }
}

.blob-purple {
  background-color: var(--neon-purple);
  top: -10%;
  left: -5%;
  animation: move-purple 16s infinite alternate ease-in-out;
}
.blob-pink {
  background-color: var(--neon-pink);
  bottom: -10%;
  right: -5%;
  animation: move-pink 14s infinite alternate ease-in-out;
}
.blob-cyan {
  background-color: var(--neon-cyan);
  top: 40%;
  left: 25%;
  animation: move-cyan 18s infinite alternate ease-in-out;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(217, 191, 255, 0.15) 0.8px, transparent 0.8px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 90%);
}
@media (prefers-color-scheme: light) {
  .dot-grid {
    background-image: radial-gradient(rgba(100, 116, 139, 0.15) 0.8px, transparent 0.8px);
  }
}

@keyframes move-purple {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(80px, 60px, 0) scale(1.15); }
  100% { transform: translate3d(-40px, 100px, 0) scale(0.95); }
}
@keyframes move-pink {
  0% { transform: translate3d(0, 0, 0) scale(0.95); }
  50% { transform: translate3d(-100px, -60px, 0) scale(1.18); }
  100% { transform: translate3d(60px, 40px, 0) scale(1.05); }
}
@keyframes move-cyan {
  0% { transform: translate3d(0, 0, 0) scale(1.1); }
  50% { transform: translate3d(-60px, 70px, 0) scale(0.9); }
  100% { transform: translate3d(70px, -70px, 0) scale(1.12); }
}

/* ==========================================================================
   DYNAMIC ISLAND
   ========================================================================== */
.dynamic-island-container {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.dynamic-island {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 12, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(168, 85, 247, 0.2);
  transform: translateY(-80px) scale(0.85);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: auto;
}

.dynamic-island.expanded {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.island-icon {
  font-size: 1.1rem;
}

.island-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.platform-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
  transition: var(--transition-smooth);
}

.platform-logo:hover {
  transform: scale(1.06);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.45);
}

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
  transition: var(--transition-smooth);
}

.app-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.5);
}

.app-title-group {
  display: flex;
  flex-direction: column;
}

.app-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-filter-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-icon-svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-header-action:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--neon-purple);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
  transform: translateY(-1px);
}

.btn-header-action:hover .action-icon-svg {
  transform: rotate(-45deg);
  stroke: var(--neon-pink);
}

.btn-drawer-reset {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
}

.btn-drawer-reset:hover .action-icon-svg {
  transform: rotate(-45deg);
  stroke: var(--neon-pink);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  z-index: 60;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.96);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Swipe Edge Indikator am rechten Rand (<= 600px) */
.swipe-edge {
  display: none;
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 4px;
  height: 48px;
  background: linear-gradient(180deg, var(--neon-purple), var(--neon-pink));
  border-radius: 4px 0 0 4px;
  opacity: 0.5;
  z-index: 90;
  pointer-events: none;
}

@media (max-width: 600px) {
  .swipe-edge {
    display: block;
  }
}

/* ==========================================================================
   MOBILE SLIDE-OUT DRAWER
   ========================================================================== */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 330px;
  max-width: 85vw;
  background: var(--bg-surface-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 1px solid var(--border-bright);
  z-index: 120;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: pan-y;
}

.settings-panel.open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.panel-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.panel-body {
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg-item);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.menu-link.active, .menu-link:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--neon-purple);
}

.panel-divider {
  height: 1px;
  background: var(--border);
}

/* ==========================================================================
   HAUPT-CONTAINER
   ========================================================================== */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
}

/* Stats Header Bar */
.summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.summary-info {
  display: flex;
  flex-direction: column;
}

.summary-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.summary-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-pill {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--neon-purple);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

@media (prefers-color-scheme: light) {
  .progress-pill {
    background: rgba(139, 92, 246, 0.12);
    color: var(--neon-purple);
  }
}

/* ==========================================================================
   WOCHENTAGE-LISTEN (Apple Reminders Look)
   ========================================================================== */
.days-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.day-section {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px 14px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.day-section:hover {
  border-color: var(--border-bright);
}

/* Heutiger Tag Highlight */
.day-section.is-today {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
  background: linear-gradient(to bottom, rgba(28, 22, 44, 0.8), var(--bg-surface));
}

@media (prefers-color-scheme: light) {
  .day-section.is-today {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
    background: linear-gradient(to bottom, rgba(245, 240, 255, 0.95), var(--bg-surface));
  }
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.day-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.day-badge-today {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px var(--neon-glow);
}

.day-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: -6px;
  transition: background 0.2s ease;
}

.day-title:hover {
  background: rgba(255, 255, 255, 0.08);
}

.day-stats {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   GEBETS-ITEMS (Listen-Eintrag)
   ========================================================================== */
.prayers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 20px;
}

.prayer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-item);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  position: relative;
  user-select: none;
  cursor: default;
  touch-action: pan-y;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
}

.prayer-item:hover {
  background: var(--bg-item-hover);
  border-color: var(--border);
}

/* Drag Handle */
.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: grab;
  padding: 4px 6px;
  margin-left: -4px;
  border-radius: 6px;
  opacity: 0.45;
  transition: all 0.2s ease;
  user-select: none;
  touch-action: none;
  font-size: 1.1rem;
  line-height: 1;
}

.drag-handle:hover {
  opacity: 0.95;
  color: var(--neon-purple);
  background: rgba(255, 255, 255, 0.08);
}

.drag-handle:active {
  cursor: grabbing;
}

/* SortableJS drag states - crisp & smooth */
.sortable-ghost {
  opacity: 0.2 !important;
  background: rgba(168, 85, 247, 0.12) !important;
  border: 2px dashed var(--neon-purple) !important;
  border-radius: var(--radius-md) !important;
  transition: none !important;
}

.sortable-chosen {
  background: var(--bg-surface-elevated) !important;
  border-color: var(--border-bright) !important;
  transition: none !important;
}

.sortable-drag {
  opacity: 0.98 !important;
  background: var(--bg-surface-elevated) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid var(--neon-purple) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(168, 85, 247, 0.4) !important;
  transform: scale(1.02);
  cursor: grabbing !important;
  z-index: 99999 !important;
  transition: none !important;
}

/* Apple-Style Checkbox */
.apple-checkbox {
  position: relative;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 44px Touch Target für Apple Mobile HIG */
.apple-checkbox::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  z-index: 2;
}

.apple-checkbox:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
  transform: scale(1.08);
}

.apple-checkbox svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Erledigter Status */
.prayer-item.completed .apple-checkbox {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border-color: transparent;
  box-shadow: 0 2px 8px var(--neon-glow);
}

.prayer-item.completed .apple-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.prayer-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s ease, text-decoration 0.2s ease, background 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.prayer-title:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px var(--neon-purple);
}

.prayer-item.completed .prayer-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Delete Button */
.btn-delete-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  opacity: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prayer-item:hover .btn-delete-item {
  opacity: 0.7;
}

.btn-delete-item:hover {
  opacity: 1 !important;
  color: var(--neon-red);
  background: rgba(239, 68, 68, 0.12);
}

/* ==========================================================================
   NEUES ANLIEGEN HINZUFÜGEN (Inline Add)
   ========================================================================== */
.add-prayer-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  transition: var(--transition-smooth);
}

.add-prayer-row:focus-within {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.add-icon-plus {
  color: var(--neon-purple);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-prayer-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.92rem;
  outline: none;
}

.add-prayer-input::placeholder {
  color: var(--text-muted);
}

.btn-add-submit {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.85;
  pointer-events: auto;
  transition: var(--transition-smooth);
}

.btn-add-submit:hover {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 2px 12px var(--neon-glow);
}

.btn-add-submit:active {
  transform: scale(0.96);
}

/* ==========================================================================
   CONFIRMATION MODAL / DIALOG
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 26px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-danger {
  background: var(--neon-red);
  border: none;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   RESPONSIVE DESIGN (iPhone <= 600px)
   ========================================================================== */
@media (max-width: 600px) {
  .app-header {
    padding: 12px 16px;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .main-content {
    padding: 16px 12px 80px 12px;
  }

  .summary-bar {
    padding: 14px 16px;
    margin-bottom: 18px;
  }

  .day-section {
    padding: 14px 14px 12px 14px;
    border-radius: var(--radius-md);
  }

  .day-title {
    font-size: 1.05rem;
  }

  .btn-delete-item {
    opacity: 0.6; /* auf mobilen Geräten immer sichtbar */
  }

  .prayer-item {
    padding: 10px 8px;
    gap: 10px;
  }
}
