/**
 * Titelleiste (Header) – Uhr, Datum, Wetter, Anmelden/Einstellungen
 */

.app-header {
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--spacing);
}

.app-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing);
}

.app-header-left,
.app-header-center,
.app-header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing);
}

.app-header-left {
  min-width: 0;
}

.app-header-center {
  flex: 1;
  justify-content: center;
  text-align: center;
}

.app-header-right {
  justify-content: flex-end;
}

.app-header-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.1rem;
}

.app-header-date,
.app-header-location {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.app-header-location {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header-location::before {
  content: ' · ';
  margin: 0 0.15rem;
}

.app-header-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.app-header-link.app-header-icon {
  font-size: 1.1rem;
  padding: 0.25rem 0.5rem;
}

.app-header-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.app-header-btn {
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  transition: background 0.2s;
}

.app-header-btn:hover {
  background: var(--accent-hover);
}

@media (max-width: 767px) {
  .app-header-date {
    display: none;
  }
  .app-header-location::before {
    content: '';
    margin: 0;
  }
  .app-header-location {
    font-size: 0.8rem;
  }
}
