/* ===== Mobile Header Kompakt-Overrides (SAG) ===== */
@media (max-width: 820px) {
  .hd .tools { gap: 6px; flex-wrap: wrap; }
  .hd .chips { gap: 4px; }
  .hd .chip { padding: 2px 8px; font-size: 11px; min-height: 26px; }
  .hd .segs { gap: 2px; }
  .hd .segs .seg { padding: 2px 8px; font-size: 11px; min-height: 26px; }
  .hd .menu { margin-top: 2px; }
  .hd .menu summary { padding: 4px 0 6px; font-size: 13px; }
  .hd .brand { font-size: 13px; }
  .hd .brand img { width: 22px; height: auto; }
  .hd .brand span { display: none; }
  .hd .w { padding: 6px 12px !important; row-gap: 4px; }
}

@media (max-width: 600px) {
  /* Chips (Länder) aus · Hell/Dunkel bleibt */
  .hd .tools .chips { display: none; }
  .hd .tools { width: auto; gap: 4px; order: 2; }
  .hd .tools .segs { display: inline-flex; }
  .hd .tools .segs .seg { font-size: 10px; min-height: 22px; padding: 2px 6px; }
  /* Menü-Summary pill-style */
  .hd .menu { width: auto; margin-top: 0; order: 3; }
  .hd .menu summary {
    display: inline-block;
    padding: 2px 10px;
    background: var(--tile-alt, rgba(255,255,255,.08));
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
  }
  /* Header kompakt mit sanfter Anordnung */
  .hd .w {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 10px !important;
  }
  .hd .brand { order: 1; flex: 1 1 60%; }
  /* Dropdown-Items beim geöffneten Menü */
  .hd .menu details ul {
    padding-top: 10px;
    border-top: 1px solid var(--line, rgba(255,255,255,.14));
    margin-top: 10px;
  }
  .hd .menu details[open] {
    position: relative;
    z-index: 10;
  }
}

/* ===== Fix · Leistungs-Grid auf Handy sauber stapeln ===== */
@media (max-width: 820px) {
  .g.c12, .c12 {
    grid-template-columns: 1fr !important;
  }
  /* Tiles behalten Bildformat, aber begrenzter Höhe */
  .tile > .ph { max-height: 56vw; }
}
@media (max-width: 600px) {
  /* Textbereich auf Handy kompakter */
  .tile .pad { padding: 20px !important; }
  .tile h3 { font-size: 20px !important; }
  .tile .sm { font-size: 14px !important; }
}
