/* Einwilligung (Cookie-Consent) — Aussehen. Gehoert zu einwilligung.js.
   Bewusst unabhaengig von theme.css: die Landingpages laden das Theme nicht, und der Banner
   muss dort genauso aussehen. Farben = Markenwerte aus theme.css (Stand 28.10.2026).

   Regeln aus Backlog B1: Annehmen und Ablehnen gleich gross und gleich gefaerbt, auf beiden
   Ebenen. „Auswahl speichern“ ist der hervorgehobene Knopf — er respektiert die Wahl.

   In-App-Browser (Instagram, Facebook): Hoehe aus --ew-vh (= window.innerHeight / 100, setzt
   das Skript), Abstand zum unteren Rand inkl. safe-area, Knoepfe mind. 48 px hoch,
   touch-action: manipulation gegen die Doppeltipp-Verzoegerung. */

.ew {
  --ew-flaeche: #FFFFFF;
  --ew-papier:  #FCFBF8;
  --ew-tinte:   #101223;
  --ew-tief:    #1B1A2B;
  --ew-weich:   #4E5065;
  --ew-blass:   #85879B;
  --ew-linie:   #E5E3DD;
  --ew-marke:   #634DF7;
  --ew-marke-tief: #4B37D4;
  --ew-marke-hell: #EEEBFE;
  --ew-r: 20px;
  --ew-rk: 12px;
  /* Sichtbarer Bereich, gesetzt vom Skript (siehe hoeheSetzen in einwilligung.js) */
  --ew-hoehe: calc(var(--ew-vh, 1vh) * 100);
  --ew-breite: calc(var(--ew-vw, 1vw) * 100);
  --ew-ue: var(--ew-ueberstand, 0px);
  --ew-unten: calc(max(12px, env(safe-area-inset-bottom)) + var(--ew-ue));
  font-family: "Figtree Variable", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ew-tinte);
  -webkit-text-size-adjust: 100%;
  text-align: left;
}
.ew *, .ew *::before, .ew *::after { box-sizing: border-box; }
.ew [hidden] { display: none !important; }
.ew p { margin: 0; max-width: none; }
.ew a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ew :focus-visible { outline: 2px solid var(--ew-marke); outline-offset: 2px; border-radius: 6px; }

html.ew-gesperrt, html.ew-gesperrt body { overflow: hidden; }

/* ---------- Texte ---------- */
.ew-titel { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; outline: none; }
/* Die Ueberschrift der Einstellungen bekommt beim Oeffnen den Fokus (Screenreader liest ab dort) — kein Rahmen,
   sie ist nicht bedienbar. */
.ew .ew-titel:focus, .ew .ew-titel:focus-visible { outline: none; }
.ew-text { margin-top: 8px !important; color: var(--ew-weich); }
.ew-links { margin-top: 12px !important; font-size: 13px; color: var(--ew-blass); }
.ew-links a { color: var(--ew-weich); }

/* ---------- Knoepfe ---------- */
.ew-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ew-knopf {
  -webkit-appearance: none; appearance: none; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 16px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center;
  color: var(--ew-papier); background: var(--ew-tinte);
  border: 1px solid var(--ew-tinte); border-radius: var(--ew-rk);
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background 140ms ease, border-color 140ms ease;
}
.ew-knopf:hover { background: var(--ew-tief); border-color: var(--ew-tief); }
.ew-knopf--leise { grid-column: 1 / -1; color: var(--ew-tinte); background: transparent; border-color: var(--ew-linie); }
.ew-knopf--leise:hover { background: transparent; border-color: var(--ew-blass); }
.ew-knopf--marke { background: var(--ew-marke); border-color: var(--ew-marke); color: #fff; }
.ew-knopf--marke:hover { background: var(--ew-marke-tief); border-color: var(--ew-marke-tief); }

/* ---------- Banner: gemeinsame Flaeche ---------- */
.ew-banner {
  position: fixed; z-index: 2147483000; outline: none;
  background: var(--ew-flaeche);
  border: 1px solid var(--ew-linie);
  border-radius: var(--ew-r);
  box-shadow: 0 24px 60px -16px rgba(16, 18, 35, .32), 0 2px 8px rgba(16, 18, 35, .06);
  padding: 20px;
  max-height: calc(var(--ew-hoehe) - 24px);
  overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
@media (prefers-reduced-motion: no-preference) {
  .ew-banner { animation: ew-rein 260ms cubic-bezier(.2, 0, 0, 1) both; }
  .ew-einst__karte { animation: ew-rein 220ms cubic-bezier(.2, 0, 0, 1) both; }
}
@keyframes ew-rein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Variante KARTE: unten links, auf dem Handy unten ueber die Breite */
.ew[data-darstellung="karte"] .ew-banner {
  left: 24px; bottom: calc(24px + var(--ew-ue)); width: min(440px, calc(var(--ew-breite) - 48px));
}

/* Variante LEISTE: ganze Breite am unteren Rand */
.ew[data-darstellung="leiste"] .ew-banner {
  left: 0; width: var(--ew-breite); bottom: var(--ew-ue); border-radius: 0; border-width: 1px 0 0;
  padding: 20px max(24px, calc((var(--ew-breite) - 1240px) / 2)) calc(20px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center;
  box-shadow: 0 -12px 40px -18px rgba(16, 18, 35, .25);
}
.ew[data-darstellung="leiste"] .ew-banner > .ew-titel,
.ew[data-darstellung="leiste"] .ew-banner > .ew-text,
.ew[data-darstellung="leiste"] .ew-banner > .ew-links { grid-column: 1; }
.ew[data-darstellung="leiste"] .ew-knoepfe {
  grid-column: 2; grid-row: 1 / span 3; margin-top: 0;
  display: flex; gap: 8px;
}
.ew[data-darstellung="leiste"] .ew-knopf { white-space: nowrap; }
/* Annehmen und Ablehnen gleich breit (sonst bestimmt die Textlaenge die Breite — gemessen 147 zu 129 px) */
.ew[data-darstellung="leiste"] .ew-knopf:not(.ew-knopf--leise) { width: 168px; }
.ew[data-darstellung="leiste"] .ew-knopf--leise { order: -1; }

/* Variante MITTE: Fenster in der Mitte, Seite abgedunkelt */
.ew-schleier { position: fixed; top: 0; left: 0; right: 0; bottom: 0; min-width: var(--ew-breite); z-index: 2147482999; background: rgba(16, 18, 35, .5); }
.ew[data-darstellung="mitte"] .ew-banner {
  top: calc(var(--ew-hoehe) / 2); left: calc(var(--ew-breite) / 2); transform: translate(-50%, -50%);
  width: min(520px, calc(var(--ew-breite) - 32px)); padding: 28px;
  max-height: calc(var(--ew-hoehe) - 32px);
}
@media (prefers-reduced-motion: no-preference) {
  .ew[data-darstellung="mitte"] .ew-banner { animation: ew-mitte 240ms cubic-bezier(.2, 0, 0, 1) both; }
}
@keyframes ew-mitte { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
.ew[data-darstellung="mitte"] .ew-titel { font-size: 22px; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .ew[data-darstellung="karte"] .ew-banner {
    left: 10px; bottom: var(--ew-unten); width: calc(var(--ew-breite) - 20px); padding: 18px;
    max-height: calc(var(--ew-hoehe) - 20px);
  }
  .ew[data-darstellung="leiste"] .ew-banner {
    display: block; border-radius: var(--ew-r) var(--ew-r) 0 0; border-width: 1px 1px 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    max-height: calc(var(--ew-hoehe) - 12px);
  }
  .ew[data-darstellung="leiste"] .ew-knoepfe { display: grid; margin-top: 14px; }
  .ew[data-darstellung="leiste"] .ew-knopf--leise { order: 0; }
  .ew[data-darstellung="mitte"] .ew-banner { padding: 22px; }
  .ew-titel { font-size: 18px; }
  .ew[data-darstellung="mitte"] .ew-titel { font-size: 20px; }
}
/* Sehr niedrige Fenster (Handy quer, App-Browser mit Leisten): enger setzen statt abschneiden */
@media (max-height: 520px) {
  .ew-banner { padding: 14px 16px; }
  .ew-text { font-size: 14px; }
  .ew-knoepfe { margin-top: 10px; }
  .ew-knopf { min-height: 44px; padding: 10px 14px; }
}

/* ---------- Einstellungen ---------- */
.ew-einst {
  position: fixed; top: 0; left: 0; z-index: 2147483001;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  width: var(--ew-breite); height: var(--ew-hoehe);
}
.ew-einst__schleier { min-width: 100vw; min-height: 100vh; }
.ew-einst__schleier { position: absolute; inset: 0; background: rgba(16, 18, 35, .5); }
.ew-einst__karte {
  position: relative; display: flex; flex-direction: column;
  width: min(620px, 100%); max-height: calc(var(--ew-hoehe) - 32px);
  background: var(--ew-flaeche); border-radius: var(--ew-r); overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(16, 18, 35, .45);
}
.ew-einst__kopf {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--ew-linie);
}
.ew-zu {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 44px; height: 44px; margin: -6px -8px -6px 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 50%; color: var(--ew-weich);
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ew-zu:hover { background: #F3F1EB; color: var(--ew-tinte); }
.ew-einst__rumpf {
  flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 4px 24px 18px;
}
.ew-einst__rumpf > .ew-text { margin: 14px 0 6px !important; }
.ew-einst__fuss {
  flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ew-linie);
  background: var(--ew-papier);
}

.ew-kat { padding: 16px 0; border-bottom: 1px solid var(--ew-linie); }
.ew-kat:last-of-type { border-bottom: 0; }
.ew-kat__kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ew-kat__name { font-weight: 600; font-size: 16px; }
.ew-kat__text { margin-top: 4px !important; color: var(--ew-weich); font-size: 14px; }
.ew-fest { font-size: 13px; font-weight: 500; color: var(--ew-blass); white-space: nowrap; }

.ew-schalter {
  -webkit-appearance: none; appearance: none; position: relative; flex: none;
  width: 52px; height: 32px; margin: 0; padding: 0;
  border: 0; border-radius: 999px; background: #D6D4CC;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background 160ms ease;
}
.ew-schalter::before { content: ""; position: absolute; inset: -8px; }   /* Trefferflaeche 68 x 48 */
.ew-schalter__knopf {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(16, 18, 35, .3); transition: transform 160ms ease;
}
.ew-schalter[aria-checked="true"] { background: var(--ew-marke); }
.ew-schalter[aria-checked="true"] .ew-schalter__knopf { transform: translateX(20px); }

.ew-dienste { margin-top: 10px; font-size: 14px; }
.ew-dienste summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  cursor: pointer; color: var(--ew-marke); font-weight: 500; list-style: none;
}
.ew-dienste summary::-webkit-details-marker { display: none; }
.ew-dienste summary::after { content: "›"; font-size: 18px; line-height: 1; transition: transform 160ms ease; }
.ew-dienste[open] summary::after { transform: rotate(90deg); }
.ew-dienst { margin: 8px 0 0; padding: 12px 14px; background: #F7F6F2; border-radius: var(--ew-rk); }
.ew-dienst + .ew-dienst { margin-top: 8px; }
.ew-dienst dt { font-weight: 600; margin-bottom: 4px; }
.ew-dienst dd { margin: 2px 0 0; color: var(--ew-weich); }
.ew-dienst dd span { display: inline-block; min-width: 76px; color: var(--ew-blass); }

@media (max-width: 760px) {
  .ew-einst { padding: 0; align-items: flex-end; }
  .ew-einst__karte { width: 100%; border-radius: var(--ew-r) var(--ew-r) 0 0; max-height: calc(var(--ew-hoehe) - 12px); }
  .ew-einst__kopf { padding: 14px 16px 12px 20px; }
  .ew-einst__rumpf { padding: 2px 20px 14px; }
  .ew-einst__fuss { grid-template-columns: 1fr 1fr; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .ew-einst__fuss .ew-knopf--marke { grid-column: 1 / -1; order: -1; }
  .ew-dienst dd span { display: block; min-width: 0; }
}

/* ==================== Variante REITER (Aufbau Cookiebot, Tobias 28.10.2026) ====================
   Ein Fenster fuer alles: Logo, drei Reiter, drei gleich grosse Knoepfe in Markenfarbe.
   Der mittlere Knopf wechselt: „Anpassen ›“ fuehrt zu Details, dort „Auswahl speichern“. */
.ew-reiter {
  position: fixed; z-index: 2147483000;
  top: calc(var(--ew-hoehe) / 2); left: calc(var(--ew-breite) / 2); transform: translate(-50%, -50%);
  width: min(880px, calc(var(--ew-breite) - 32px)); max-height: calc(var(--ew-hoehe) - 32px);
  display: flex; flex-direction: column; overflow: hidden; outline: none;
  background: var(--ew-flaeche); border-radius: var(--ew-r);
  box-shadow: 0 30px 80px -20px rgba(16, 18, 35, .45);
}
@media (prefers-reduced-motion: no-preference) {
  .ew-reiter { animation: ew-mitte 240ms cubic-bezier(.2, 0, 0, 1) both; }
}
.ew-reiter__kopf {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 72px; padding: 16px 20px 16px 28px; border-bottom: 1px solid var(--ew-linie);
}
.ew-logo { display: block; height: 30px; width: auto; }
.ew-reiter__leiste { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ew-linie); }
.ew-tab {
  -webkit-appearance: none; appearance: none; margin: 0; min-height: 56px; padding: 14px 8px 11px;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ew-tinte);
  background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ew-tab:hover { color: var(--ew-marke); }
.ew-tab[aria-selected="true"] { color: var(--ew-marke); border-bottom-color: var(--ew-marke); }
.ew-reiter__rumpf {
  flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 24px 28px;
}
.ew-feld .ew-titel { font-size: 20px; }
.ew-feld .ew-text { margin-top: 10px !important; font-size: 16px; line-height: 1.6; }
.ew-feld .ew-text--oben { margin: 0 0 4px !important; font-size: 15px; }
.ew-feld--ueber p { color: var(--ew-weich); font-size: 15px; line-height: 1.6; }
.ew-feld--ueber p + p { margin-top: 14px !important; }
.ew-id { padding: 12px 14px; background: #F7F6F2; border-radius: var(--ew-rk); font-size: 14px !important; }
.ew-id code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--ew-tinte); word-break: break-all; }
.ew-reiter__fuss {
  flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ew-linie);
}
.ew-reiter__fuss .ew-knopf { gap: 6px; font-weight: 600; background: var(--ew-marke); border-color: var(--ew-marke); color: #fff; }
.ew-reiter__fuss .ew-knopf:hover { background: var(--ew-marke-tief); border-color: var(--ew-marke-tief); }

.ew-kat--reiter .ew-kat__text, .ew-kat__liste { padding-left: 30px; }
.ew-kat__liste { margin-top: 10px; font-size: 14px; }
.ew-auf {
  -webkit-appearance: none; appearance: none; margin: 0; padding: 4px 0; min-height: 44px;
  display: inline-flex; align-items: center; gap: 12px;
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ew-auf:disabled { cursor: default; }
.ew-auf__platz { flex: none; width: 16px; }
.ew-auf svg { flex: none; color: var(--ew-weich); transition: transform 160ms ease; }
.ew-auf[aria-expanded="true"] svg { transform: rotate(180deg); }
.ew-zahl {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: var(--ew-marke-hell, #EEEBFE); color: var(--ew-marke-tief); font-size: 12px; font-weight: 600;
}
.ew-schalter:disabled { opacity: .5; cursor: default; }

/* ==================== Variante KOMPAKT / schalter (Aufbau Cookiebot kompakt) ====================
   Breite Leiste unten, Seite abgedunkelt: Logo | Text + Schalter je Kategorie | drei Knoepfe. */
.ew[data-darstellung="schalter"] .ew-banner {
  --ew-rand: max(16px, calc((var(--ew-breite) - 1120px) / 2));
  left: var(--ew-rand); width: calc(var(--ew-breite) - 2 * var(--ew-rand)); bottom: calc(16px + var(--ew-ue));
  padding: 26px 28px;
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 240px; column-gap: 32px; align-items: stretch;
}
.ew-b__marke { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.ew-b__marke .ew-links { margin: 0 !important; }
.ew-b__marke .ew-logo { height: 26px; width: auto; align-self: flex-start; }
/* Fenster bekommen beim Oeffnen den Fokus (Screenreader, Tastatur) — ohne sichtbaren Rahmen. */
.ew .ew-banner:focus, .ew .ew-banner:focus-visible, .ew .ew-reiter:focus, .ew .ew-reiter:focus-visible { outline: none; }
.ew-b__mitte { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0; }
.ew[data-darstellung="schalter"] .ew-text { margin: 0 !important; color: var(--ew-tinte); font-size: 15px; line-height: 1.6; }
.ew-b__schalter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.ew-sch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.ew-mehr, .ew-linkknopf {
  -webkit-appearance: none; appearance: none; margin: 0; padding: 0; min-height: 44px;
  display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-weight: 600; color: var(--ew-marke); background: none; border: 0; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ew-mehr:hover, .ew-linkknopf:hover { color: var(--ew-marke-tief); text-decoration: underline; text-underline-offset: 3px; }
.ew-b__knoepfe { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ew[data-darstellung="schalter"] .ew-knopf, .ew[data-darstellung="flaeche"] .ew-knopf { font-weight: 600; }

/* ==================== Variante FLAECHE (Aufbau Usercentrics) ====================
   Ganze Breite unten: Logo, Titel, Text, unten links Links, rechts zwei gleiche Knoepfe. */
.ew[data-darstellung="flaeche"] .ew-banner {
  left: 0; width: var(--ew-breite); bottom: var(--ew-ue);
  border-radius: var(--ew-r) var(--ew-r) 0 0; border-width: 1px 0 0;
  padding: 24px max(28px, calc((var(--ew-breite) - 1240px) / 2)) calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -16px 50px -18px rgba(16, 18, 35, .3);
}
.ew[data-darstellung="flaeche"] .ew-logo { height: 30px; margin-bottom: 18px; }
.ew[data-darstellung="flaeche"] .ew-text { color: var(--ew-tinte); max-width: 120ch; }
.ew-b__unten { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; }
.ew-b__unten .ew-links { margin: 0 !important; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.ew-b__unten .ew-linkknopf { font-weight: 500; color: var(--ew-weich); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ew-b__unten .ew-knoepfe { margin: 0; flex: 0 1 620px; }

@media (max-width: 760px) {
  .ew-reiter {
    top: auto; bottom: var(--ew-ue); left: 0; transform: none;
    width: var(--ew-breite); max-height: calc(var(--ew-hoehe) - 12px);
    border-radius: var(--ew-r) var(--ew-r) 0 0;
  }
  @media (prefers-reduced-motion: no-preference) { .ew-reiter { animation-name: ew-rein; } }
  .ew-reiter__kopf { min-height: 60px; padding: 12px 12px 12px 20px; }
  .ew-logo { height: 24px; }
  .ew-tab { font-size: 14px; min-height: 50px; padding: 12px 4px 9px; }
  .ew-reiter__rumpf { padding: 18px 20px; }
  .ew-feld .ew-titel { font-size: 18px; }
  .ew-feld .ew-text { font-size: 15px; }
  .ew-reiter__fuss { grid-template-columns: 1fr 1fr; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .ew-reiter__fuss [data-ew="anpassen"], .ew-reiter__fuss [data-ew="speichern"] { grid-column: 1 / -1; order: -1; }
  .ew-kat--reiter .ew-kat__text, .ew-kat__liste { padding-left: 0; }

  .ew[data-darstellung="schalter"] .ew-banner {
    left: 10px; width: calc(var(--ew-breite) - 20px); bottom: var(--ew-unten);
    display: flex; flex-direction: column; gap: 14px; padding: 18px;
  }
  .ew[data-darstellung="schalter"] .ew-text { font-size: 14px; line-height: 1.5; }
  .ew-b__marke .ew-logo { height: 22px; }
  .ew-b__schalter { gap: 2px 18px; }
  .ew-b__knoepfe { display: grid; grid-template-columns: 1fr 1fr; }
  .ew-b__knoepfe [data-ew="speichern"] { grid-column: 1 / -1; order: 2; }

  .ew[data-darstellung="flaeche"] .ew-banner { padding: 18px 18px calc(16px + env(safe-area-inset-bottom)); max-height: calc(var(--ew-hoehe) - 12px); }
  .ew[data-darstellung="flaeche"] .ew-logo { height: 22px; margin-bottom: 12px; }
  .ew[data-darstellung="flaeche"] .ew-titel { font-size: 17px; }
  .ew[data-darstellung="flaeche"] .ew-text { font-size: 14px; }
  .ew-b__unten { flex-direction: column-reverse; align-items: stretch; gap: 6px; margin-top: 14px; }
  .ew-b__unten .ew-knoepfe { flex: none; }
}

@media print { .ew { display: none !important; } }
