/* ============================================================
   Konzepthaus — Layout (Header, Footer, Cards, Strips)
   ============================================================ */

/* ---- Header ---- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.header-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.title-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.title-main {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Back Button */
.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-btn-ghost);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-back:active { transform: scale(0.95); }
.btn-back:hover { background: var(--bg-btn-ghost-h); color: var(--text-primary); }

/* ---- Main ---- */
.app-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.card-compact { padding: 14px 20px; }

/* ---- Strips (horizontale Info-Streifen) ---- */
.strip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.strip:active { transform: scale(0.985); }
.strip:hover { background: var(--bg-card-hover); }

.strip-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-dim);
}

.strip-icon-svg {
  color: var(--accent);
}

.strip-icon-svg svg {
  width: 24px;
  height: 24px;
}

.strip-content {
  flex: 1;
  min-width: 0;
}

.strip-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.strip-subtitle {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.strip-arrow {
  font-size: 1.2rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.strip-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent);
}

/* Strip Submenu (eingerückt) */
.strip-submenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.strip-submenu.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.strip-submenu.expanded {
  max-height: 500px;
  opacity: 1;
}

/* Strip als Toggle */
.strip-toggle {
  justify-content: space-between;
}

/* Dashboard Info innerhalb Modul-Strip */
.strip-dashboard-info {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---- Footer ---- */
.app-footer {
  padding: 14px 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ---- Safe Area ---- */
@supports (padding: env(safe-area-inset-bottom)) {
  .app-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* ---- Category Header ---- */
.category-header {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cat-purple);
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

/* ---- Screen Transition ---- */
.screen-enter {
  animation: screenIn 0.2s ease-out;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
