.cookie-panel {
  position: fixed;
  z-index: 35;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(382px, calc(100% - 32px));
  max-height: 62vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 30px rgb(23 40 68 / 14%);
}
.cookie-panel[hidden] { display: none; }
.cookie-panel h2 { font-size: 1.09rem; line-height: 1.4; letter-spacing: -.02em; }
.cookie-panel p { margin: .34rem 0 .7rem; font-size: .94rem; line-height: 1.45; }
.cookie-panel label { display: flex; align-items: flex-start; gap: .65rem; margin: .6rem 0; cursor: pointer; font-size: .85rem; line-height: 1.4; }
.cookie-panel input { flex: none; width: 1.05rem; height: 1.05rem; margin: .13rem 0 0; accent-color: var(--indigo-dark); }
.cookie-panel label strong { display: block; font-size: .9rem; }
.cookie-aktionen { display: flex; flex-wrap: wrap; gap: .45rem; }
.cookie-aktionen button {
  flex: 1 1 auto;
  min-height: 40px;
  padding: .4rem .65rem;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--indigo-dark);
  background: var(--ice);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}
.cookie-aktionen button:hover { background: var(--wash); }
.cookie-aktionen .cookie-mehr { display: none; }
.cookie-panel > a { display: inline-block; margin-top: .55rem; font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: .16em; }
.foot nav { flex-wrap: wrap; }
/* Phones: compact bottom sheet so the hero buttons stay visible. */
@media (max-width: 600px) {
  .cookie-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 70vh;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    align-items: center;
    border-width: 1px 0 0;
    border-radius: 14px 14px 0 0;
    padding: 2px 16px max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgb(23 40 68 / 14%);
  }
  .cookie-panel > * { grid-column: 1 / -1; }
  .cookie-panel h2 { grid-column: 1; grid-row: 1; font-size: 1rem; }
  .cookie-panel > a { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; font-size: .8rem; }
  .cookie-panel p { margin: 0 0 .2rem; font-size: .86rem; line-height: 1.35; }
  .cookie-panel label { margin: .4rem 0; font-size: .8rem; line-height: 1.35; }
  .cookie-panel label strong { font-size: .86rem; }
  .cookie-aktionen { margin-top: .45rem; }
  .cookie-aktionen button { min-height: 44px; }
  .cookie-panel.kurz label,
  .cookie-panel.kurz [data-wahl="auswahl"] { display: none; }
  .cookie-panel.kurz .cookie-mehr { display: block; }
}
@media (max-height: 480px) {
  .cookie-panel { bottom: 8px; }
}
@media print {
  .cookie-panel { display: none !important; }
}
