/* iOS Scroll Lock Fix */
body.input-focus-lock {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* ===============================
   STARTPAGE DASHBOARD – CLEAN
   =============================== */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- HERO ---------- */

.home-hero-modern {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  padding: 3.5rem 1.5rem 7rem;
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #0f172a;
}

.hero-sub {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
}

.hero-updated {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #64748b;
}

@media (max-width: 640px) {
  .home-hero-modern {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
  }

  .hero-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* =========================
   HERO SEARCH – DESKTOP
========================= */

.search-box input {
  height: 52px;
  line-height: 52px;
  padding: 0 1rem;
  font-size: 0.95rem;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.search-box input::placeholder {
  color: #9ca3af;
}

.search-box button {
  height: 52px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(180deg, #0f172a, #020617);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

.search-box button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
}

/* =========================
   HERO SEARCH – MOBILE FIX
========================= */

@media (max-width: 640px) {
  .search-box input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 56px;
    line-height: normal;
    padding: 16px 18px;
    font-size: 16px; /* iOS Zoom Fix */
    font-weight: 500;
    border-radius: 16px;
    border: none;
    background: #ffffff;
    color: #0f172a;
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.04),
      0 8px 24px rgba(15, 23, 42, 0.10);
  }

  .search-box input::placeholder {
    color: #9ca3af;
  }

  .search-box input:focus {
    outline: none;
    box-shadow:
      0 0 0 2px rgba(15, 23, 42, 0.08),
      0 12px 28px rgba(15, 23, 42, 0.16);
  }

  .search-box button {
    min-height: 56px;
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(180deg, #0f172a, #020617);
    border: none;
    color: #fff;
  }
}

/* ---------- AMPEL STATUS ---------- */

.status-wrapper {
  margin-top: -4.5rem;
  position: relative;
  z-index: 5;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  min-height: 96px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.status-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.status-svg {
  width: 40px;
  height: 40px;
}

.status-text strong {
  font-size: 1.15rem;
  display: block;
}

.status-text span {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
}

.status-green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
}

.status-yellow {
  background: linear-gradient(135deg, #facc15, #fde047);
  color: #1f2937;
}

.status-red {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
}

/* ---------- SUCHE ---------- */

.search-section {
  margin-top: 2.75rem;
  display: flex;
  justify-content: center;
}

.search-box {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 520px;
}

.search-box input {
  flex: 1;
  height: 56px;
  border-radius: 14px;
  border: 1px solid #cbd5f5;
  padding: 0 1.1rem;
  font-size: 0.95rem;
}

.search-box button {
  height: 56px;
  padding: 0 1.75rem;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* ---------- CONTENT ---------- */

.section {
  margin-top: 4rem;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.home-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


body .home-card {
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

body .status-card {
  border-radius: 16px !important;
}

/* ---------- TRENDS + CHART GRID ---------- */

.home-trend-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 36px;
}

@media (max-width: 1024px) {
  .home-trend-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- TREND CARD ---------- */

.trend-card {
  padding: 1.75rem;
}

.trend-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.trend-row:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.trend-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trend-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trend-critical {
  background: #fee2e2;
  color: #dc2626;
}

.trend-warning {
  background: #fef3c7;
  color: #f59e0b;
}

.trend-up {
  background: #e0f2fe;
  color: #0284c7;
}

.trend-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trend-name {
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-sub {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 400;
}

.trend-value {
  text-align: right;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.trend-value span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}

.trend-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(-45deg);
  display: inline-block;
  margin-left: 4px;
}

.trend-arrow.pulse {
  animation: pulseUp 1.4s infinite;
}

@keyframes pulseUp {
  0% {
    transform: translateY(0) rotate(-45deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-3px) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(-45deg);
    opacity: 0.6;
  }
}

.trend-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #64748b;
}

@media (max-width: 900px) {
  .status-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    width: 100%;
  }
}

.trend-indicator {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
}

.trend-indicator::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 1px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid currentColor;
}

.trend-indicator.warn {
  color: #f97316;
}

.trend-indicator.critical {
  color: #dc2626;
}

.trend-indicator.pulse {
  animation: trend-glow 1.6s ease-out infinite;
}

@keyframes trend-glow {
  0% {
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  50% {
    filter: drop-shadow(0 0 6px currentColor);
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
}

.trend-summary {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}

.trend-start {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #475569;
}

.trend-footnote {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.hotspots-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* =========================
   Regionale Hotspots
   ========================= */

.hotspot-list {
  margin-top: 16px;
}

.hotspot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #f8fafc;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.hotspot-row:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.hotspot-main strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hotspot-provider {
  font-size: 14px;
  color: #6b7280;
}

.hotspot-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.hotspot-red {
  border-left: 4px solid #ef4444;
}

.hotspot-yellow {
  border-left: 4px solid #f59e0b;
}

.hotspot-green {
  border-left: 4px solid #10b981;
}

.situation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.situation-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #1f2937;
}

.situation-icon {
  width: 20px;
  flex-shrink: 0;
  line-height: 1.4;
}

.situation-text strong {
  font-weight: 600;
  color: #111827;
}

.situation-note {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  color: #374151;
  font-size: 0.88rem;
  line-height: 1.4;
}

.categories-hub {
  padding: 64px 0;
  background: #fafafa;
}

.categories-header {
  text-align: center;
  margin-bottom: 44px;
}

.categories-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
}

.categories-subtitle {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #475569;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.category-tile {
  position: relative;
  display: block;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 26px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.category-tile:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.category-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.category-hint {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.45;
}

.category-chevron {
  position: absolute;
  right: 22px;
  bottom: 22px;
  font-size: 1.2rem;
  color: #9ca3af;
  transition: transform 0.15s ease, color 0.15s ease;
}

.category-tile:hover .category-chevron {
  transform: translateX(4px);
  color: #475569;
}

@media (max-width: 640px) {
  .categories-hub {
    padding: 48px 0;
  }

  .categories-title {
    font-size: 1.55rem;
  }

  .categories-grid {
    gap: 16px;
  }

  .category-tile {
    padding: 22px 20px;
  }

  .category-chevron {
    right: 18px;
    bottom: 18px;
  }
}

/* ======================================================
   FAQ Section – ISPDown
   ====================================================== */

.faq-section {
  padding: 72px 0;
  background: #ffffff;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
}

.faq-subtitle {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #475569;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fafafa;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.2rem;
  color: #6b7280;
  transition: transform 0.15s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 14px 22px 20px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #374151;
}

.faq-item summary:hover {
  background: #f3f4f6;
}

@media (max-width: 640px) {
  .faq-title {
    font-size: 1.55rem;
  }

  .faq-item summary {
    padding: 18px 18px;
  }

  .faq-content {
    padding: 0 18px 18px;
  }
}

:root {
  --accent-0: #d1d5db;
  --accent-1: #c7c3e6;
  --accent-2: #cbd5e1;
  --accent-3: #b7dfc5;
  --accent-4: #d6bde6;
  --accent-5: #e6c7a8;
}

.category-tile {
  position: relative;
  background: linear-gradient(
    180deg,
    #ffffff,
    color-mix(in srgb, var(--accent-color) 8%, #ffffff)
  );
  border-radius: 18px;
  padding: 28px 26px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  border-radius: 18px 0 0 18px;
  background: var(--accent-color);
}

.category-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.category-tile.accent-0 { --accent-color: var(--accent-0); }
.category-tile.accent-1 { --accent-color: var(--accent-1); }
.category-tile.accent-2 { --accent-color: var(--accent-2); }
.category-tile.accent-3 { --accent-color: var(--accent-3); }
.category-tile.accent-4 { --accent-color: var(--accent-4); }
.category-tile.accent-5 { --accent-color: var(--accent-5); }

/* =========================
   iOS ZOOM KILL SWITCH
========================= */

@media (max-width: 768px) {
  .search-box input,
  .search-box input:focus,
  .search-box input::placeholder {
    font-size: 16px !important;
  }
}

/* =========================
   Hotspots – Mobile Fix
========================= */

@media (max-width: 640px) {
  .hotspot-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hotspot-status {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .trend-value {
    font-size: 0.65rem;
    font-weight: 600;
    color: #0f172a;
  }

  .trend-value span {
    font-size: 0.65rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
  }

  .trend-name {
    word-break: break-word;
  }
}
