/* =============================================================================
   pixelwerk.media — Medienagentur in Friedrichshafen am Bodensee
   Konzept, Gestaltung, Text und Umsetzung dieser Website: pixelwerk.media
   https://www.pixelwerk.media · info@pixelwerk.media
   Alle Rechte an Gestaltung und Quelltext liegen bei pixelwerk.media.
   ============================================================================= */

.ew-huelle {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(12px, 2vw, 26px);

  padding-bottom: max(clamp(12px, 2vw, 26px), env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .55);
}
.ew-huelle[data-offen="ja"] { display: flex; }
@media (min-width: 720px) { .ew-huelle { align-items: center; } }

.ew-kasten {
  width: min(100%, 620px);
  max-height: calc(100dvh - 2 * clamp(12px, 2vw, 26px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #FFFFFF;
  color: #0A0A0A;
  border-radius: 3px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.ew-kasten h2 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #0A0A0A;
  font-weight: 700;
}
.ew-kasten p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #5C5C5C;
  margin: 0 0 12px;
}
.ew-kasten a {
  color: #0A0A0A;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ew-knoepfe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 479px) { .ew-knoepfe { grid-template-columns: 1fr; } }

.ew-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid #0A0A0A;
  border-radius: 999px;
  background: #0A0A0A;
  color: #FFFFFF;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background .28s ease, color .28s ease;
}
.ew-knopf:hover { background: #333333; border-color: #333333; }

.ew-knopf--linie { background: transparent; color: #0A0A0A; }
.ew-knopf--linie:hover { background: #F0F0F0; color: #0A0A0A; border-color: #0A0A0A; }

.ew-mehr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  color: #5C5C5C;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ew-mehr:hover { color: #0A0A0A; }

.ew-wahl { margin-top: 16px; border-top: 1px solid rgba(10,10,10,.13); }
.ew-wahl[hidden] { display: none; }

.ew-zweck {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(10,10,10,.13);
}
.ew-zweck b {
  font-size: 0.875rem;
  color: #0A0A0A;
  grid-column: 1;
}
.ew-zweck span {
  grid-column: 1;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #5C5C5C;
}
.ew-zweck > label {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.8125rem;
  color: #5C5C5C;
  cursor: pointer;
  white-space: nowrap;
}
.ew-zweck input { width: 20px; height: 20px; accent-color: #0A0A0A; cursor: pointer; }
.ew-zweck input:disabled { cursor: default; opacity: .55; }
.ew-zweck input:disabled + span { color: #5C5C5C; }

html:not(.js) .ew-huelle { display: none !important; }

.ew-aendern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid rgba(10,10,10,.34);
  border-radius: 999px;
  background: transparent;
  color: #0A0A0A;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .28s ease, background .28s ease;
}
.ew-aendern:hover { border-color: #0A0A0A; background: #F0F0F0; }

.ew-stand {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #5C5C5C;
  margin-top: 10px;
}

@media print { .ew-huelle, .ew-aendern { display: none !important; } }
