/* ============================================================
   Othal·247 — Editorial Frontend (Claude Design System)
   Optik-Update — Funktion unverändert
   ============================================================ */
:root {
  --o247-paper:        #F6F4EF;
  --o247-paper-2:      #EFECE4;
  --o247-paper-3:      #E6E3DA;
  --o247-ink:          #11110F;
  --o247-ink-2:        #2A2A26;
  --o247-sub:          #6B6960;
  --o247-sub-2:        #8E8C82;
  --o247-rule:         rgba(17,17,15,.10);
  --o247-rule-strong:  rgba(17,17,15,.22);
  --o247-accent:       #2F6A4A;
  --o247-accent-soft:  rgba(47,106,74,.10);
  --o247-accent-ink:   #FBFAF6;
  --o247-f-serif: "Source Serif 4","Iowan Old Style",Georgia,serif;
  --o247-f-sans:  "Geist","Inter Tight",ui-sans-serif,system-ui,-apple-system,sans-serif;
  --o247-f-mono:  "JetBrains Mono","IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
}

html, body { margin:0; padding:0; min-height:100%; background:var(--o247-paper) !important; }
body { color:var(--o247-ink); }

#othal247-chat,
#othal247-chat *,
#othal247-input-wrapper,
#othal247-input-wrapper * { box-sizing: border-box; }

#othal247-chat {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  font-family: var(--o247-f-sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--o247-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: 0 32px 200px;
  background: var(--o247-paper);
}

/* ==== Hero / Greeting ==== */
#othal247-greeting-wrapper {
  margin: 0 !important;
  padding: 72px 0 24px;
  text-align: left;
}
#othal247-greeting {
  font-family: var(--o247-f-serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.018em;
  font-size: 64px;
  line-height: 0.96;
  color: var(--o247-ink) !important;
  margin: 0 0 22px !important;
  text-wrap: balance;
}
#othal247-greeting::before {
  content: "Oberwiesenthal · Lokaler KI-Assistent";
  display: block;
  font-family: var(--o247-f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--o247-sub);
  font-weight: 500;
  margin-bottom: 18px;
}
.othal247-subtext {
  font-size: 18px;
  color: var(--o247-sub) !important;
  margin: 0 0 32px !important;
  max-width: 44ch;
  line-height: 1.45;
  opacity: 1 !important;
}
.othal247-subtext h1 {
  font-family: var(--o247-f-serif) !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  letter-spacing: -0.005em !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  color: var(--o247-sub) !important;
  text-align: left !important;
}

/* ==== Suggested Questions ==== */
#othal247-suggestions {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--o247-rule);
  counter-reset: o247-sugg;
}
.othal247-suggest {
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--o247-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 18px 0 !important;
  text-align: left !important;
  cursor: pointer;
  font: 400 16px/1.4 var(--o247-f-serif) !important;
  color: var(--o247-ink-2) !important;
  display: grid !important;
  grid-template-columns: 28px 1fr auto !important;
  gap: 16px !important;
  align-items: baseline !important;
  text-transform: none !important;
  letter-spacing: -0.005em !important;
  transition: color .12s ease;
  counter-increment: o247-sugg;
  width: 100% !important;
}
.othal247-suggest::before {
  content: counter(o247-sugg, decimal-leading-zero);
  font-family: var(--o247-f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--o247-sub);
  font-weight: 500;
}
.othal247-suggest::after {
  content: "→";
  font-family: var(--o247-f-mono);
  font-size: 14px;
  color: var(--o247-sub);
  transition: transform .12s ease, color .12s ease;
}
.othal247-suggest:hover {
  background: transparent !important;
  border-bottom-color: var(--o247-rule-strong) !important;
  color: var(--o247-accent) !important;
  box-shadow: none !important;
}
.othal247-suggest:hover::after {
  transform: translateX(4px);
  color: var(--o247-accent);
}
.othal247-suggest-text {
  text-align: left !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
}

/* ==== Messages Stream ==== */
#othal247-messages {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 0 24px;
  overflow: visible;
}

.msg-user, .msg-bot {
  display: block !important;
  float: none !important;
  clear: both !important;
  max-width: 760px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  text-align: left !important;
  position: relative;
  animation: o247MsgIn .32s ease both;
}
.msg-user::before {
  content: "Frage";
  display: block;
  font-family: var(--o247-f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--o247-ink);
  margin-bottom: 8px;
  font-weight: 500;
}
.msg-user {
  font-family: var(--o247-f-serif) !important;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--o247-ink) !important;
  border-top: 1px solid var(--o247-rule-strong);
  padding-top: 22px !important;
}
.msg-user:first-of-type { border-top: 0; padding-top: 0 !important; }

.msg-bot::before {
  content: "Othal · 247 · Antwort";
  display: block;
  font-family: var(--o247-f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--o247-sub);
  margin-bottom: 12px;
  font-weight: 500;
}
.msg-bot {
  font-family: var(--o247-f-sans) !important;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--o247-ink-2) !important;
}
.msg-bot p { margin: 0 0 0.7em; }
.msg-bot p:last-child { margin-bottom: 0; }
.msg-bot a {
  color: var(--o247-ink) !important;
  border-bottom: 1px solid var(--o247-rule-strong) !important;
  text-decoration: none !important;
  transition: border-color .12s ease;
}
.msg-bot a:hover { border-bottom-color: var(--o247-ink) !important; }
.msg-bot ul, .msg-bot ol { margin: 0.6em 0; padding-left: 1.4em; }
.msg-bot li { margin: 0.25em 0; }
.msg-bot strong { font-weight: 600; color: var(--o247-ink); }

@keyframes o247MsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

#scroll-anchor { height: 1px; }

/* ==== Composer / Input ==== */
#othal247-input-wrapper {
  position: fixed !important;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 880px;
  padding: 18px 32px 22px !important;
  background: linear-gradient(to top, var(--o247-paper) 65%, rgba(246,244,239,0)) !important;
  z-index: 50;
}
#othal247-input {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  gap: 10px !important;
  align-items: center !important;
  background: var(--o247-paper) !important;
  border: 1px solid var(--o247-rule-strong) !important;
  border-radius: 0 !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
}
#othal247-input input[type=text],
#othal247-input input,
#othal247-input textarea {
  flex: 1 !important;
  padding: 6px 0 !important;
  border: 0 !important;
  background: transparent !important;
  font: 400 15.5px/1.55 var(--o247-f-sans) !important;
  color: var(--o247-ink) !important;
  outline: none !important;
  box-shadow: none !important;
  min-height: 30px !important;
  width: 100%;
  resize: none !important;
  overflow-y: hidden;
}
#othal247-input input::placeholder,
#othal247-input textarea::placeholder {
  color: var(--o247-sub-2) !important;
  font-style: italic !important;
}

#othal247-mic {
  width: 36px !important;
  height: 36px !important;
  border-radius: 0 !important;
  border: 1px solid var(--o247-rule-strong) !important;
  background: var(--o247-paper) !important;
  color: var(--o247-ink) !important;
  font-size: 14px !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  transition: background-color .12s ease, border-color .12s ease;
}
#othal247-mic:hover { background: var(--o247-paper-2) !important; }
#othal247-mic.is-recording {
  border-color: var(--o247-accent) !important;
  background: var(--o247-accent-soft) !important;
  color: var(--o247-accent) !important;
}

#othal247-input button#othal247-send {
  width: 36px !important;
  height: 36px !important;
  border-radius: 0 !important;
  border: 1px solid var(--o247-ink) !important;
  background: var(--o247-ink) !important;
  color: var(--o247-paper) !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  font: 500 16px/1 var(--o247-f-sans) !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: background-color .12s ease;
}
#othal247-input button#othal247-send:hover {
  background: var(--o247-ink-2) !important;
  color: var(--o247-paper) !important;
}

#othal247-hint {
  margin-top: 10px !important;
  text-align: left !important;
  font-family: var(--o247-f-mono) !important;
  font-size: 10.5px !important;
  letter-spacing: 0.06em !important;
  color: var(--o247-sub) !important;
  opacity: 1 !important;
}
#othal247-hint span,
#othal247-hint > span * {
  color: var(--o247-sub) !important;
  font-family: var(--o247-f-mono) !important;
  font-size: 10.5px !important;
  letter-spacing: 0.06em !important;
}
#othal247-hint a {
  color: var(--o247-ink) !important;
  border-bottom: 1px solid var(--o247-rule-strong) !important;
  text-decoration: none !important;
}
#othal247-hint a:hover { border-bottom-color: var(--o247-ink) !important; }

/* ==== Status pulse (Top-Bar Imitation in Hero) ==== */
.othal247-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--o247-f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--o247-sub);
}
.othal247-status .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--o247-accent);
  box-shadow: 0 0 0 0 var(--o247-accent);
  animation: o247Pulse 2.4s ease-out infinite;
}
@keyframes o247Pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,106,74,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(47,106,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,106,74,0); }
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  #othal247-chat { padding: 0 18px 200px; max-width: 100%; }
  #othal247-input-wrapper { padding: 12px 18px 16px !important; max-width: 100%; }
  #othal247-greeting-wrapper { padding: 40px 0 18px; }
  #othal247-greeting { font-size: 38px; }
  #othal247-greeting::before { font-size: 10.5px; margin-bottom: 14px; }
  .othal247-subtext { margin-bottom: 24px !important; }
  .othal247-subtext h1 { font-size: 16px !important; }
  .othal247-suggest {
    font-size: 15.5px !important;
    padding: 16px 0 !important;
    grid-template-columns: 24px 1fr auto !important;
    gap: 12px !important;
  }
  .msg-user { font-size: 18px; padding-top: 20px !important; }
  .msg-bot { font-size: 15px; }
  #othal247-input { padding: 10px 12px !important; }
  #othal247-mic, #othal247-input button#othal247-send {
    width: 34px !important; height: 34px !important;
  }
}

/* ==== Dark mode (respektiert User-Pref, falls Seite es nutzt) ==== */
@media (prefers-color-scheme: dark) {
  html[data-theme="dark"] #othal247-chat,
  html[data-theme="dark"] #othal247-input-wrapper {
    --o247-paper: #0E0E0C;
    --o247-paper-2: #161614;
    --o247-paper-3: #1E1E1B;
    --o247-ink: #F5F3EE;
    --o247-ink-2: #DAD7CE;
    --o247-sub: #A4A299;
    --o247-sub-2: #75736B;
    --o247-rule: rgba(245,243,238,.12);
    --o247-rule-strong: rgba(245,243,238,.22);
  }
}

/* ============================================================
   MOBILE APP-SHELL (nur < 720px)
   Bottom-Tabs · Magazin · Mehr
   ============================================================ */

/* Desktop: App-Shell-Elemente verborgen */
/* Mobile-Header komplett entfernt — Tab-Bar unten genügt */
.othal247-mob-header { display: none !important; }

/* Sidebar-Wrapper: transparent auf Mobile, damit Tab-System greift */
.othal247-sidebar-col { display: contents; }
/* Switcher nur auf Desktop — auf Mobile immer verborgen */
.othal247-sidebar-switch { display: none !important; }

.othal247-mob-tabbar,
.othal247-screen[data-screen="magazin"],
.othal247-screen[data-screen="events"],
.othal247-screen[data-screen="more"] {
  display: none;
}

@media (max-width: 720px) {
  /* Kein seitliches Schieben, kein Zoom */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important;
  }

  /* Wrapper als App-Container */
  #othal247-app {
    --o247-tabbar-h: 72px;
    background: var(--o247-paper);
    overflow-x: hidden !important;
    touch-action: pan-y !important;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: var(--o247-tabbar-h);
  }

  /* (Mobile-Header unbenutzt) */
  .othal247-mob-header .wm {
    font-family: var(--o247-f-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--o247-ink);
    text-align: center;
  }
  .othal247-mob-header .wm b { font-weight: 700; }
  .othal247-mob-header .wm .dot { color: var(--o247-accent); margin: 0 4px; }
  .othal247-mob-header .ico {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 0; background: transparent;
    color: var(--o247-ink);
    cursor: pointer;
    border-radius: 0;
    font-family: var(--o247-f-mono);
    font-size: 16px;
    line-height: 1;
  }
  .othal247-mob-header .ico:active { background: var(--o247-paper-2); }
  .othal247-mob-header .left { justify-self: start; }
  .othal247-mob-header .right { justify-self: end; }

  /* Screens */
  .othal247-screen {
    display: none;
  }
  .othal247-screen.is-active {
    display: block !important;
    overflow-x: hidden !important;
  }
  /* Chat-Screen als flex-column, damit Composer am Boden sticky bleibt */
  .othal247-screen[data-screen="chat"].is-active {
    display: flex !important;
    flex-direction: column;
    min-height: calc(100dvh - var(--o247-tabbar-h));
  }
  .othal247-screen[data-screen="chat"] #othal247-chat {
    flex: 1 1 auto;
  }

  /* Magazin */
  .othal247-mag-screen { padding: 0; }
  .othal247-mag-head {
    padding: 26px 18px 8px;
  }
  .othal247-mag-head .kicker {
    font-family: var(--o247-f-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--o247-sub);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
  }
  .othal247-mag-head h1 {
    font-family: var(--o247-f-serif);
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.022em;
    margin: 4px 0 6px;
    color: var(--o247-ink);
    text-wrap: balance;
  }
  .othal247-mag-head .issue {
    font-family: var(--o247-f-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--o247-sub);
  }

  /* Feature-Artikel — warmer Rotton als Eyecatcher */
  .othal247-mag-feat {
    padding: 20px 18px 22px;
    border-bottom: 1px solid rgba(0,0,0,.12) !important;
    text-decoration: none !important;
    color: #F6E8DC !important;
    display: block !important;
    cursor: pointer;
    background: #9E2A2B !important;
    transition: background .15s;
  }
  .othal247-mag-feat:hover { background: #7D1E1F !important; }
  .othal247-mag-feat .img { display: none !important; }
  .othal247-mag-feat[data-thumb] .img { display: none !important; }
  .othal247-mag-feat .meta {
    font-family: var(--o247-f-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(246,232,220,.65) !important;
    margin-bottom: 8px;
  }
  .othal247-mag-feat h2 {
    font-family: var(--o247-f-serif);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.016em;
    margin: 0 0 8px;
    color: #F6E8DC !important;
    text-transform: none !important;
  }
  .othal247-mag-feat .dek {
    font-size: 13.5px;
    color: rgba(246,232,220,.72) !important;
    line-height: 1.45;
    margin: 0;
  }

  .othal247-mag-list {
    padding: 6px 18px 28px;
    display: flex;
    flex-direction: column;
  }
  .othal247-mag-list a.item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--o247-rule);
    text-decoration: none;
    color: inherit;
    align-items: start;
    border-bottom: 1px solid var(--o247-rule) !important;
  }
  .othal247-mag-list a.item:last-of-type { border-bottom: 0 !important; }
  .othal247-mag-list a.item .meta {
    font-family: var(--o247-f-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--o247-sub);
    margin-bottom: 6px;
  }
  .othal247-mag-list a.item h3 {
    font-family: var(--o247-f-serif);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.012em;
    margin: 0 0 6px;
    color: var(--o247-ink);
  }
  .othal247-mag-list a.item .read {
    font-family: var(--o247-f-mono);
    font-size: 10.5px;
    color: var(--o247-sub);
    letter-spacing: 0.08em;
  }
  .othal247-mag-list a.item .thumb {
    display: none;
  }

  /* Events — gleicher Stil wie Magazin-Artikelliste */
  .othal247-evt-list {
    padding: 6px 18px 28px;
    display: flex;
    flex-direction: column;
  }
  .othal247-evt {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--o247-rule) !important;
    text-decoration: none;
    color: inherit;
    transition: background .1s;
  }
  a.othal247-evt:hover { background: var(--o247-paper-2); margin: 0 -18px; padding: 16px 18px; }
  .othal247-evt:last-child { border-bottom: 0 !important; }
  .othal247-evt .meta {
    font-family: var(--o247-f-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--o247-sub);
    margin-bottom: 5px;
  }
  .othal247-evt h3 {
    font-family: var(--o247-f-serif) !important;
    font-weight: 400 !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.012em !important;
    margin: 0 0 4px !important;
    color: var(--o247-ink) !important;
    text-transform: none !important;
  }
  a.othal247-evt:hover h3 { color: var(--o247-accent) !important; }
  .othal247-evt .venue {
    font-family: var(--o247-f-mono);
    font-size: 10.5px;
    color: var(--o247-sub);
    letter-spacing: 0.06em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none !important;
  }
  .othal247-evt-empty {
    padding: 60px 18px;
    text-align: center;
    color: var(--o247-sub);
    font-family: var(--o247-f-serif);
    font-size: 18px;
  }

  /* Mehr */
  .othal247-more {
    padding: 26px 18px 28px;
  }
  .othal247-more .kicker {
    font-family: var(--o247-f-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--o247-sub);
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
  }
  .othal247-more h1 {
    font-family: var(--o247-f-serif);
    font-weight: 400;
    font-size: 38px;
    line-height: 1.02;
    letter-spacing: -0.024em;
    margin: 0 0 28px;
    color: var(--o247-ink);
  }
  .othal247-more-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--o247-rule);
  }
  .othal247-more-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 18px 0;
    border-bottom: 1px solid var(--o247-rule);
    font-family: var(--o247-f-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--o247-ink) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--o247-rule) !important;
  }
  .othal247-more-list a .arr {
    color: var(--o247-sub);
    font-family: var(--o247-f-mono);
  }

  /* Bottom Tab Bar — heller Paper-Hintergrund, NICHT schwarz */
  body .othal247-mob-tabbar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    height: var(--o247-tabbar-h) !important;
    border-top: 1px solid var(--o247-rule) !important;
    background: rgba(246,244,239,.94) !important;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    z-index: 60;
    padding: 8px 8px max(10px, env(safe-area-inset-bottom)) !important;
  }
  /* Specificity gegen den Neve-Button-Override (button:not(...) wäre sonst schwarz) */
  body .othal247-mob-tabbar button,
  body .othal247-mob-tabbar button:hover,
  body .othal247-mob-tabbar button:focus,
  body .othal247-mob-tabbar button.is-active {
    appearance: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: grid !important;
    place-items: center !important;
    gap: 4px !important;
    padding: 4px !important;
    margin: 0 !important;
    cursor: pointer;
    color: var(--o247-sub) !important;
    font-family: var(--o247-f-sans) !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
  }
  body .othal247-mob-tabbar button .icon {
    width: 22px; height: 22px;
    display: grid; place-items: center;
  }
  body .othal247-mob-tabbar button.is-active { color: var(--o247-ink) !important; }
  body .othal247-mob-tabbar button.is-active .icon { color: var(--o247-accent) !important; }
  body .othal247-mob-tabbar button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }

  /* Composer ist jetzt im Chat-Screen — sticky am Boden (oberhalb Tab-Bar) */
  body .othal247-screen[data-screen="chat"] #othal247-input-wrapper {
    position: sticky !important;
    bottom: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 18px 14px !important;
    background: linear-gradient(to top, var(--o247-paper) 70%, rgba(246,244,239,.4)) !important;
    z-index: 5;
  }
  /* Chat-Body Padding unten reduzieren — Composer ist im Flow */
  #othal247-chat { padding-bottom: 24px !important; }
}

/* Desktop: kein App-Wrapper-Effekt */
@media (min-width: 721px) {
  #othal247-app { padding: 0; background: transparent; }
  .othal247-screen[data-screen="chat"] { display: flex !important; flex-direction: column; }
}

/* ============================================================
   DESKTOP-LAYOUT MIT MAGAZIN-SIDEBAR (ab 1024px)
   - Chat-Spalte und Magazin-Spalte scrollen unabhängig.
   - App-Höhe = Viewport minus host-Header (JS misst, sonst 80px Fallback).
   ============================================================ */
@media (min-width: 1024px) {
  body #othal247-app {
    --o247-sidebar-w: 380px;
    --o247-host-header: 80px;
    display: grid !important;
    grid-template-columns: 1fr var(--o247-sidebar-w) !important;
    align-items: stretch !important;
    height: calc(100vh - var(--o247-host-header)) !important;
    height: calc(100dvh - var(--o247-host-header)) !important;
    overflow: hidden !important;
    position: relative;
  }

  /* Chat-Spalte: flex-column, Body scrollt, Composer sticky am Boden */
  body .othal247-screen[data-screen="chat"] {
    grid-column: 1 !important;
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    height: 100% !important;
  }
  body .othal247-screen[data-screen="chat"] #othal247-chat {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 880px !important;
    padding: 0 32px 24px !important;
    scrollbar-width: thin;
  }
  body .othal247-screen[data-screen="chat"] #othal247-chat::-webkit-scrollbar { width: 10px; }
  body .othal247-screen[data-screen="chat"] #othal247-chat::-webkit-scrollbar-thumb {
    background: var(--o247-rule-strong);
    border-radius: 8px;
    border: 3px solid var(--o247-paper);
    background-clip: content-box;
  }

  /* Composer: am Boden der Chat-Spalte, in der gleichen 880px-Breite zentriert */
  body .othal247-screen[data-screen="chat"] #othal247-input-wrapper {
    position: static !important;
    flex: 0 0 auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 880px !important;
    margin: 0 auto !important;
    padding: 14px 32px 22px !important;
    background: linear-gradient(to top, var(--o247-paper) 70%, rgba(246,244,239,.6) 100%) !important;
  }

  /* Sidebar-Spalte: Magazin und Mehr gestapelt, gemeinsam scrollbar */
  body .othal247-sidebar-col {
    display: flex !important;
    flex-direction: column !important;
    grid-column: 2 !important;
    border-left: 1px solid var(--o247-rule);
    background: var(--o247-paper);
    height: 100% !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  body .othal247-sidebar-col::-webkit-scrollbar { width: 10px; }
  body .othal247-sidebar-col::-webkit-scrollbar-thumb {
    background: var(--o247-rule-strong);
    border-radius: 8px;
    border: 3px solid var(--o247-paper);
    background-clip: content-box;
  }

  /* Tab-Umschalter unten in der Sidebar */
  body .othal247-sidebar-switch {
    display: flex !important; /* auf Desktop einschalten */
    gap: 6px;
    padding: 10px 12px !important;
    border-bottom: 1px solid var(--o247-rule);
    flex-shrink: 0;
    background: var(--o247-paper);
    position: sticky;
    top: 0;
    z-index: 4;
  }
  body .othal247-sidebar-switch span[data-switch] {
    flex: 1;
    padding: 8px 6px;
    background: var(--o247-paper-2);
    border: 1.5px solid var(--o247-rule-strong);
    border-radius: 6px;
    font-family: var(--o247-f-mono);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--o247-sub);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    text-align: center;
    user-select: none;
    display: block;
    white-space: nowrap;
  }
  body .othal247-sidebar-switch span[data-switch]:hover {
    background: var(--o247-paper-3);
    color: var(--o247-ink);
    border-color: var(--o247-sub);
  }
  body .othal247-sidebar-switch span[data-switch].is-active {
    background: var(--o247-paper);
    color: var(--o247-accent);
    border-color: var(--o247-accent);
    border-width: 2px;
  }

  /* Magazin: sichtbar wenn data-sidebar="magazin" */
  body .othal247-screen[data-screen="magazin"] {
    display: none !important;
    grid-column: unset !important;
    border-left: none !important;
    height: auto !important;
    overflow-y: visible !important;
    position: static !important;
    flex: 1 0 auto;
  }
  body .othal247-sidebar-col[data-sidebar="magazin"] .othal247-screen[data-screen="magazin"] {
    display: block !important;
  }

  /* Historische Event-Regeln: bleiben nur als Legacy-CSS ohne sichtbares Markup */
  body .othal247-screen[data-screen="events"] {
    display: none !important;
    grid-column: unset !important;
    border-top: none !important;
    height: auto !important;
    overflow-y: visible !important;
    position: static !important;
    flex: 1 0 auto;
    background: var(--o247-paper);
  }
  body .othal247-sidebar-col[data-sidebar="events"] .othal247-screen[data-screen="events"] {
    display: block !important;
  }

  /* Mehr: sichtbar wenn data-sidebar="more" */
  body .othal247-screen[data-screen="more"] {
    display: none !important;
    grid-column: unset !important;
    height: auto !important;
    overflow-y: visible !important;
    position: static !important;
    flex: 1 0 auto;
    background: var(--o247-paper);
  }
  body .othal247-sidebar-col[data-sidebar="more"] .othal247-screen[data-screen="more"] {
    display: block !important;
  }

  /* .othal247-mag-head entfernt — Header-Boxen werden nicht mehr verwendet */

  /* Featured (Sidebar) — Rot-Eyecatcher, Farben + Padding für Desktop */
  body .othal247-screen[data-screen="magazin"] .othal247-mag-feat {
    padding: 18px 28px 20px !important;
    background: #9E2A2B !important;
    border-bottom: 1px solid rgba(0,0,0,.12) !important;
    display: block !important;
    gap: unset !important;
    color: #F6E8DC !important;
  }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-feat:hover { background: #7D1E1F !important; }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-feat .img { display: none !important; }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-feat .meta {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    margin: 0 0 6px !important;
    color: rgba(246,232,220,.65) !important;
  }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-feat h2 {
    font-size: 19px !important;
    line-height: 1.18 !important;
    margin: 0 0 6px !important;
    color: #F6E8DC !important;
    text-transform: none !important;
  }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-feat .dek {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: rgba(246,232,220,.72) !important;
  }

  /* Sidebar-Liste */
  body .othal247-screen[data-screen="magazin"] .othal247-mag-list {
    padding: 0 28px 32px !important;
    display: flex;
    flex-direction: column;
  }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-list a.item {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--o247-rule) !important;
    text-decoration: none !important;
    color: inherit !important;
  }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-list a.item:last-child {
    border-bottom: 0 !important;
  }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-list a.item .thumb {
    display: none;
  }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-list a.item .meta {
    font-family: var(--o247-f-mono);
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    color: var(--o247-sub) !important;
    margin: 0 !important;
  }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-list a.item h3 {
    font-family: var(--o247-f-serif) !important;
    font-weight: 400 !important;
    font-size: 16.5px !important;
    line-height: 1.22 !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
    color: var(--o247-ink) !important;
  }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-list a.item:hover h3 {
    color: var(--o247-accent) !important;
  }
  body .othal247-screen[data-screen="magazin"] .othal247-mag-list a.item .read {
    font-family: var(--o247-f-mono);
    font-size: 10px !important;
    color: var(--o247-sub) !important;
    letter-spacing: 0.06em !important;
  }

  /* ── Termine: gleicher Stil wie Magazin-Sidebar ── */
  body .othal247-screen[data-screen="events"] .othal247-evt-list {
    padding: 0 28px 32px !important;
  }
  body .othal247-screen[data-screen="events"] .othal247-evt {
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--o247-rule) !important;
  }
  body .othal247-screen[data-screen="events"] .othal247-evt:last-child {
    border-bottom: 0 !important;
  }
  body .othal247-screen[data-screen="events"] .othal247-evt .meta {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 4px !important;
  }
  body .othal247-screen[data-screen="events"] .othal247-evt h3 {
    font-size: 15.5px !important;
    line-height: 1.22 !important;
    margin: 0 0 3px !important;
  }
  body .othal247-screen[data-screen="events"] .othal247-evt .venue {
    font-size: 10px !important;
    letter-spacing: 0.06em !important;
  }
  body .othal247-screen[data-screen="events"] a.othal247-evt:hover {
    margin: 0 -28px !important;
    padding: 14px 28px !important;
  }

  /* ── Mehr: gleicher Stil wie Magazin-Sidebar ── */
  body .othal247-screen[data-screen="more"] .othal247-more {
    padding: 22px 28px 32px !important;
  }
  body .othal247-screen[data-screen="more"] .othal247-more .kicker {
    font-size: 10.5px !important;
    letter-spacing: 0.14em !important;
    margin-bottom: 0 !important;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--o247-rule);
    display: block;
    width: 100%;
  }
  body .othal247-screen[data-screen="more"] .othal247-more-list {
    margin: 0 !important;
  }
  body .othal247-screen[data-screen="more"] .othal247-more-list a {
    font-size: 15px !important;
    padding: 16px 0 !important;
    font-family: var(--o247-f-serif) !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
  }
  body .othal247-screen[data-screen="more"] .othal247-more-list a:hover {
    color: var(--o247-accent) !important;
  }

  /* Fokus-Outline vom Switcher entfernen */
  body .othal247-sidebar-switch span[data-switch]:focus { outline: none; }
  body .othal247-sidebar-switch span[data-switch]:focus-visible {
    outline: 2px solid var(--o247-accent);
    outline-offset: 2px;
  }
}

/* Zwischengröße 721–1023px: kein Sidebar (zu schmal), Chat full-width */
@media (min-width: 721px) and (max-width: 1023px) {
  .othal247-sidebar-col { display: none !important; }
  /* Chat ohne Höhenbegrenzung, normaler Page-Scroll */
  .othal247-screen[data-screen="chat"] { height: auto !important; overflow: visible !important; }
}

/* ============================================================
   10.8.0 OPENAI-INSPIRED SINGLE PAGE
   Chat oben, Blog darunter, Footer darunter.
   IDs und JS-Hooks bleiben unveraendert.
   ============================================================ */
#othal247-app {
  --o247-paper: #ffffff;
  --o247-paper-2: #f7f7f4;
  --o247-paper-3: #ecece7;
  --o247-ink: #111111;
  --o247-ink-2: #2d2d2d;
  --o247-sub: #6a6a63;
  --o247-sub-2: #9b9b92;
  --o247-rule: rgba(17,17,17,.10);
  --o247-rule-strong: rgba(17,17,17,.18);
  --o247-accent: #111111;
  background: var(--o247-paper);
  color: var(--o247-ink);
  font-family: var(--o247-f-sans);
}

#othal247-app a {
  text-decoration: none;
}

.othal247-mob-header,
.othal247-mob-tabbar,
.othal247-sidebar-switch,
.othal247-screen[data-screen="more"] {
  display: none !important;
}

.othal247-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  font-size: 14px;
}

.othal247-page-top .brand {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.othal247-brand-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.othal247-reset-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 80;
  min-width: 178px;
  padding: 6px;
  border: 1px solid var(--o247-rule);
  border-radius: 14px;
  background: var(--o247-surface);
  box-shadow: 0 18px 52px rgba(0,0,0,.14);
}

.othal247-reset-popover[hidden] {
  display: none !important;
}

.othal247-reset-popover button {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--o247-ink);
  padding: 10px 12px;
  font: 500 13px/1.2 var(--o247-f-sans);
  text-align: left;
  cursor: pointer;
}

.othal247-reset-popover button:hover {
  background: var(--o247-surface-2);
}

.othal247-page-top nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--o247-sub);
}

.othal247-page-top a {
  color: inherit !important;
}

.othal247-page-top a:hover {
  color: var(--o247-ink) !important;
}

.othal247-section-head {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.othal247-section-head .eyebrow {
  display: block;
  color: var(--o247-sub);
  font-size: 13px;
  margin-bottom: 6px;
}

.othal247-section-head h2 {
  margin: 0;
  font-family: var(--o247-f-sans) !important;
  font-size: clamp(30px, 4vw, 48px) !important;
  line-height: 1.02 !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
  color: var(--o247-ink) !important;
  text-transform: none !important;
}

.othal247-section-head p {
  margin: 0;
  max-width: 38ch;
  color: var(--o247-sub);
  font-size: 15px;
  line-height: 1.5;
}

#othal247-app .othal247-screen {
  display: block !important;
}

#othal247-app .othal247-screen[data-screen="more"] {
  display: none !important;
}

#othal247-app .othal247-sidebar-col {
  display: block !important;
  border: 0 !important;
  background: transparent !important;
  height: auto !important;
  overflow: visible !important;
}

body #othal247-app,
body .othal247-screen[data-screen="chat"] {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.othal247-screen[data-screen="chat"] {
  padding: 64px 0 88px;
  border-bottom: 1px solid var(--o247-rule);
}

body .othal247-screen[data-screen="chat"] #othal247-chat,
#othal247-chat {
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  overflow: visible !important;
  background: transparent !important;
}

#othal247-greeting-wrapper {
  padding: 0 !important;
  text-align: center !important;
}

.othal247-status,
#othal247-greeting::before {
  display: none !important;
}

#othal247-greeting {
  margin: 0 auto 24px !important;
  font-family: var(--o247-f-sans) !important;
  font-size: clamp(38px, 6.4vw, 74px) !important;
  line-height: 1.02 !important;
  font-weight: 500 !important;
  letter-spacing: -0.045em !important;
  color: var(--o247-ink) !important;
  text-align: center !important;
}

#othal247-suggestions {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  max-width: 760px;
  margin: 20px auto 0 !important;
  border: 0 !important;
}

.othal247-suggest {
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid var(--o247-rule) !important;
  border-radius: 999px !important;
  padding: 9px 13px !important;
  background: var(--o247-paper) !important;
  color: var(--o247-sub) !important;
  font: 400 13px/1.2 var(--o247-f-sans) !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

.othal247-suggest::before,
.othal247-suggest::after {
  display: none !important;
}

.othal247-suggest:hover {
  color: var(--o247-ink) !important;
  border-color: var(--o247-rule-strong) !important;
  background: var(--o247-paper-2) !important;
}

#othal247-messages {
  max-width: 760px;
  margin: 26px auto 0;
  padding: 0;
}

body .othal247-screen[data-screen="chat"] #othal247-input-wrapper,
#othal247-input-wrapper {
  position: static !important;
  transform: none !important;
  width: min(100%, 820px) !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  background: transparent !important;
}

#othal247-input {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  gap: 8px !important;
  align-items: end !important;
  border: 1px solid var(--o247-rule) !important;
  border-radius: 28px !important;
  background: #ffffff !important;
  padding: 10px 10px 10px 20px !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.08), 0 2px 10px rgba(0,0,0,.04) !important;
}

#othal247-input input[type=text],
#othal247-input input,
#othal247-input textarea {
  font: 400 16px/1.4 var(--o247-f-sans) !important;
  resize: none !important;
  overflow-y: hidden;
}

#othal247-input input::placeholder,
#othal247-input textarea::placeholder {
  color: #777 !important;
  font-style: normal !important;
}

#othal247-mic,
#othal247-input button#othal247-send {
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
}

#othal247-mic {
  border-color: transparent !important;
  background: transparent !important;
}

#othal247-input button#othal247-send {
  background: var(--o247-ink) !important;
  border-color: var(--o247-ink) !important;
}

#othal247-hint {
  text-align: center !important;
  margin-top: 14px !important;
  font-family: var(--o247-f-sans) !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
}

.othal247-screen[data-screen="magazin"],
.othal247-screen[data-screen="events"] {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px 0;
}

.othal247-screen[data-screen="events"] {
  padding-bottom: 96px;
}

.othal247-screen[data-screen="magazin"] .othal247-section-head,
.othal247-screen[data-screen="events"] .othal247-section-head {
  padding-left: 0;
  padding-right: 0;
}

.othal247-mag-feat {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr) !important;
  gap: 24px !important;
  align-items: end;
  padding: 0 0 34px !important;
  margin: 0 0 26px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--o247-rule) !important;
  background: transparent !important;
  color: var(--o247-ink) !important;
}

.othal247-mag-feat .img {
  display: block !important;
  grid-column: 1;
  grid-row: 1 / span 3;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.10)),
    var(--thumb, linear-gradient(135deg, #f0f0eb, #d9d9d2));
  background-size: cover;
  background-position: center;
}

.othal247-mag-feat .meta,
.othal247-mag-list a.item .meta,
.othal247-evt .meta {
  font-family: var(--o247-f-sans) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--o247-sub) !important;
}

.othal247-mag-feat h2 {
  font-family: var(--o247-f-sans) !important;
  font-size: clamp(28px, 3.4vw, 44px) !important;
  line-height: 1.05 !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
  color: var(--o247-ink) !important;
  margin: 0 !important;
  text-transform: none !important;
}

.othal247-mag-feat .dek {
  color: var(--o247-sub) !important;
  font-size: 16px !important;
  line-height: 1.48 !important;
  margin: 0 !important;
}

.othal247-mag-feat:hover h2,
.othal247-mag-list a.item:hover h3,
a.othal247-evt:hover h3 {
  color: var(--o247-ink) !important;
  text-decoration: none !important;
}

.othal247-mag-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  padding: 0 !important;
}

.othal247-mag-list a.item {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  padding: 0 0 22px !important;
  border: 0 !important;
  color: var(--o247-ink) !important;
}

.othal247-mag-list a.item .thumb {
  display: block !important;
  order: -1;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-color: var(--o247-paper-2);
  background-size: cover;
  background-position: center;
}

.othal247-mag-list a.item h3 {
  margin: 0 !important;
  font-family: var(--o247-f-sans) !important;
  font-size: 22px !important;
  line-height: 1.14 !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  color: var(--o247-ink) !important;
  text-transform: none !important;
}

.othal247-mag-list a.item .read,
.othal247-evt .venue {
  color: var(--o247-sub) !important;
  font-family: var(--o247-f-sans) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
}

.othal247-calendar-shell {
  border: 1px solid var(--o247-rule);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.othal247-calendar-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--o247-rule);
  background: var(--o247-paper-2);
}

.othal247-calendar-row span {
  padding: 10px;
  color: var(--o247-sub);
  font-size: 12px;
  text-align: center;
  border-right: 1px solid var(--o247-rule);
}

.othal247-calendar-row span:last-child {
  border-right: 0;
}

.othal247-evt-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 !important;
}

.othal247-evt {
  min-height: 180px;
  padding: 18px !important;
  border: 0 !important;
  border-right: 1px solid var(--o247-rule) !important;
  border-bottom: 1px solid var(--o247-rule) !important;
  color: var(--o247-ink) !important;
  background: #fff !important;
}

.othal247-evt:nth-child(3n) {
  border-right: 0 !important;
}

.othal247-evt h3 {
  margin: 12px 0 8px !important;
  font-family: var(--o247-f-sans) !important;
  font-size: 20px !important;
  line-height: 1.16 !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  color: var(--o247-ink) !important;
  text-transform: none !important;
}

.othal247-evt-empty {
  border: 1px solid var(--o247-rule);
  border-radius: 8px;
  padding: 56px 24px !important;
  color: var(--o247-sub);
}

@media (max-width: 900px) {
  .othal247-page-top {
    padding: 16px 18px;
  }

  .othal247-page-top nav {
    gap: 14px;
    font-size: 13px;
  }

  .othal247-screen[data-screen="chat"] {
    padding: 48px 0 72px;
  }

  #othal247-suggestions {
    justify-content: flex-start !important;
  }

  .othal247-mag-feat {
    grid-template-columns: 1fr !important;
  }

  .othal247-mag-feat .img {
    grid-column: auto;
    grid-row: auto;
  }

  .othal247-mag-list,
  .othal247-evt-list {
    grid-template-columns: 1fr !important;
  }

  .othal247-evt,
  .othal247-evt:nth-child(3n) {
    border-right: 0 !important;
  }

  .othal247-section-head {
    display: block;
  }

  .othal247-section-head p {
    margin-top: 10px;
  }

  .othal247-calendar-row {
    display: none;
  }
}

/* Finaler Override gegen die alten Desktop-Sidebar-Regeln. */
html body #othal247-app {
  --o247-visual-vh: 100dvh;
  --o247-page-bg: #f4f2ee;
  --o247-surface: #ffffff;
  --o247-surface-2: #f4f4f1;
  --o247-bubble-user: #111111;
  --o247-bubble-user-text: #ffffff;
  --o247-bubble-bot: #f0f0ec;
  --o247-bubble-bot-text: #222222;
  display: block !important;
  grid-template-columns: none !important;
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  background: var(--o247-page-bg) !important;
  color: var(--o247-ink) !important;
}

html body #othal247-app[data-o247-theme="dark"] {
  --o247-page-bg: #101010;
  --o247-paper: #101010;
  --o247-paper-2: #181818;
  --o247-paper-3: #242424;
  --o247-surface: #161616;
  --o247-surface-2: #202020;
  --o247-ink: #f4f4f1;
  --o247-ink-2: #deded8;
  --o247-sub: #a4a49b;
  --o247-sub-2: #77776f;
  --o247-rule: rgba(255,255,255,.12);
  --o247-rule-strong: rgba(255,255,255,.22);
  --o247-accent: #f4f4f1;
  --o247-bubble-user: #f4f4f1;
  --o247-bubble-user-text: #111111;
  --o247-bubble-bot: #242424;
  --o247-bubble-bot-text: #eeeeea;
}

html body #othal247-app .othal247-sidebar-switch,
html body #othal247-app .othal247-mob-tabbar,
html body #othal247-app .othal247-mob-header,
html body #othal247-app .othal247-screen[data-screen="more"] {
  display: none !important;
}

html body #othal247-app .othal247-screen[data-screen="chat"],
html body #othal247-app .othal247-screen[data-screen="magazin"],
html body #othal247-app .othal247-screen[data-screen="events"] {
  display: block !important;
  grid-column: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  position: static !important;
  flex: none !important;
  background: transparent !important;
  border-left: 0 !important;
  border-top: 0 !important;
}

html body #othal247-app .othal247-sidebar-col {
  display: block !important;
  grid-column: auto !important;
  border-left: 0 !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
}

html body #othal247-app .othal247-page-top {
  width: min(100%, 1180px) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  background: color-mix(in srgb, var(--o247-page-bg) 88%, transparent) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

html body #othal247-app .brand,
html body #othal247-app .othal247-page-top a,
html body #othal247-app .othal247-section-head h2,
html body #othal247-app .othal247-mag-feat h2,
html body #othal247-app .othal247-mag-list a.item h3,
html body #othal247-app .othal247-evt h3 {
  color: var(--o247-ink) !important;
}

html body #othal247-app .othal247-section-head p,
html body #othal247-app .othal247-mag-feat .dek,
html body #othal247-app .othal247-mag-list a.item .excerpt,
html body #othal247-app .othal247-evt .venue,
html body #othal247-app .meta,
html body #othal247-app .read {
  color: var(--o247-sub) !important;
}

html body #othal247-app .othal247-page-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

html body #othal247-app .othal247-theme-toggle {
  appearance: none;
  border: 1px solid var(--o247-rule);
  border-radius: 999px;
  background: var(--o247-surface);
  color: var(--o247-ink);
  width: 48px;
  height: 28px;
  display: block;
  position: relative;
  cursor: pointer;
  font: 0/0 a;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
}

html body #othal247-app .othal247-theme-toggle::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 4px;
  border-radius: 999px;
  background: var(--o247-ink);
  transition: transform .16s ease, background .16s ease;
}

html body #othal247-app[data-o247-theme="dark"] .othal247-theme-toggle::before {
  transform: translateX(18px);
  background: var(--o247-ink);
}

html body #othal247-app .othal247-theme-toggle:hover {
  border-color: var(--o247-rule-strong);
  background: var(--o247-surface-2);
}

html body #othal247-app .othal247-nav-greeting {
  display: none !important;
  color: var(--o247-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

html body #othal247-app.is-chat-active .othal247-nav-greeting {
  display: none !important;
}

html body #othal247-app .othal247-screen[data-screen="chat"] {
  min-height: calc(100vh - 58px) !important;
  min-height: calc(100dvh - 58px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 120px 0 140px !important;
  border-bottom: 1px solid var(--o247-rule) !important;
  background: var(--o247-page-bg) !important;
}

html body #othal247-app.is-chat-active .othal247-screen[data-screen="chat"] {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 58px) !important;
  height: calc(100dvh - 58px) !important;
  min-height: 520px !important;
  justify-content: stretch !important;
  padding: 24px 0 26px !important;
  overflow: hidden !important;
}

html body #othal247-app #othal247-chat {
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  overflow: visible !important;
}

html body #othal247-app.is-chat-active #othal247-chat {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: 22px !important;
  scrollbar-width: thin;
}

html body #othal247-app.is-chat-active #othal247-chat::-webkit-scrollbar {
  width: 10px;
}

html body #othal247-app.is-chat-active #othal247-chat::-webkit-scrollbar-thumb {
  background: var(--o247-rule-strong);
  border-radius: 999px;
  border: 3px solid var(--o247-page-bg);
  background-clip: content-box;
}

html body #othal247-app #othal247-greeting {
  position: relative !important;
  max-width: 820px !important;
  margin: 0 auto 28px !important;
  font-size: clamp(42px, 5.8vw, 78px) !important;
  line-height: .98 !important;
  font-weight: 520 !important;
  letter-spacing: -0.045em !important;
  text-align: center !important;
}

html body #othal247-app #othal247-greeting.is-animated {
  display: block !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

html body #othal247-app #othal247-greeting .greet-word {
  display: inline-block !important;
  white-space: nowrap !important;
}

html body #othal247-app #othal247-greeting .greet-char {
  display: inline-block !important;
  transform: translateY(28px) rotate(var(--tilt, 0deg)) scale(.72);
  opacity: 0;
  filter: blur(8px);
  animation: o247-greet-pop .72s cubic-bezier(.16, 1.35, .28, 1) forwards;
  animation-delay: var(--delay, 0ms);
  transform-origin: 50% 90%;
}

html body #othal247-app #othal247-greeting .greet-space {
  display: inline-block !important;
  width: .24em;
}

html body #othal247-app .othal247-greeting-sparks {
  position: absolute !important;
  inset: -32px -26px -18px !important;
  pointer-events: none !important;
  overflow: visible !important;
}

html body #othal247-app .othal247-greeting-sparks span {
  position: absolute !important;
  left: var(--x) !important;
  top: var(--y) !important;
  width: var(--s) !important;
  height: var(--s) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--o247-ink) 74%, transparent) !important;
  opacity: 0;
  animation: o247-spark-float 2.8s ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
  transition: width .18s ease, height .18s ease;
}

html body #othal247-app #othal247-greeting::after {
  content: none !important;
  display: none !important;
}

@keyframes o247-greet-pop {
  0% {
    transform: translateY(28px) rotate(var(--tilt, 0deg)) scale(.72);
    opacity: 0;
    filter: blur(8px);
  }
  58% {
    transform: translateY(-7px) rotate(calc(var(--tilt, 0deg) * -.35)) scale(1.08);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes o247-spark-float {
  0%, 100% {
    transform: translate3d(calc(var(--mx, 0px) * .16), calc(8px + (var(--my, 0px) * .16)), 0) scale(.45);
    opacity: 0;
  }
  24% {
    opacity: .72;
  }
  62% {
    transform: translate3d(calc(var(--dx) + var(--mx, 0px)), calc(-18px + var(--my, 0px)), 0) scale(1);
    opacity: .2;
  }
}

@keyframes o247-greet-line {
  to {
    transform: translateX(-50%) scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body #othal247-app #othal247-greeting .greet-char,
  html body #othal247-app .othal247-greeting-sparks span,
  html body #othal247-app #othal247-greeting::after {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  html body #othal247-app .othal247-greeting-sparks {
    display: none !important;
  }
}

html body #othal247-app #othal247-suggestions {
  display: flex !important;
  width: min(100%, 780px) !important;
  max-width: 780px !important;
  margin: 22px auto 0 !important;
  padding: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  border: 0 !important;
}

html body #othal247-app.is-chat-active #othal247-greeting-wrapper,
html body #othal247-app.is-chat-active #othal247-greeting,
html body #othal247-app.is-chat-active #othal247-suggestions {
  display: none !important;
}

html body #othal247-app .othal247-suggest {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  grid-template-columns: none !important;
  padding: 9px 14px !important;
  border: 1px solid var(--o247-rule) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--o247-sub) !important;
  font: 400 13.5px/1.2 var(--o247-f-sans) !important;
  letter-spacing: 0 !important;
}

html body #othal247-app .othal247-suggest::before,
html body #othal247-app .othal247-suggest::after {
  content: none !important;
  display: none !important;
}

html body #othal247-app #othal247-suggestions.is-prompt-sequencing:not(.has-available) {
  display: none !important;
}

html body #othal247-app #othal247-suggestions.is-prompt-sequencing .othal247-suggest:not(.is-available) {
  display: none !important;
}

html body #othal247-app #othal247-query.is-prompt-typing {
  color: var(--o247-ink) !important;
}

html body #othal247-app #othal247-input-wrapper {
  position: static !important;
  width: min(100%, 820px) !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  transform: none !important;
  background: transparent !important;
}

html body #othal247-app.is-chat-active #othal247-input-wrapper {
  flex: 0 0 auto !important;
}

html body #othal247-app #othal247-input {
  border-radius: 999px !important;
  border: 1px solid var(--o247-rule) !important;
  background: var(--o247-surface) !important;
  box-shadow: none !important;
  align-items: end !important;
}

html body #othal247-app #othal247-input input,
html body #othal247-app #othal247-input textarea,
html body #othal247-app #othal247-query {
  color: var(--o247-ink) !important;
}

html body #othal247-app #othal247-input input::placeholder,
html body #othal247-app #othal247-input textarea::placeholder,
html body #othal247-app #othal247-query::placeholder,
html body #othal247-app #othal247-float-query::placeholder {
  color: var(--o247-sub-2) !important;
}

html body #othal247-app #othal247-query,
html body #othal247-app #othal247-float-query,
html body .othal247-global-float-chat #othal247-global-float-query {
  min-height: 30px !important;
  max-height: 132px !important;
  resize: none !important;
  overflow-y: hidden;
  white-space: pre-wrap !important;
}

html body #othal247-app #othal247-hint {
  color: var(--o247-sub) !important;
  font-family: var(--o247-f-sans) !important;
  letter-spacing: 0 !important;
}

html body #othal247-app.is-chat-active #othal247-messages {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 18px 0 8px !important;
}

html body #othal247-app.is-chat-active #othal247-messages .msg-user,
html body #othal247-app.is-chat-active #othal247-messages .msg-bot {
  width: auto !important;
  max-width: min(76%, 620px) !important;
  margin: 0 !important;
  padding: 12px 15px !important;
  border: 0 !important;
  border-radius: 18px !important;
  font-family: var(--o247-f-sans) !important;
  font-size: 15.5px !important;
  line-height: 1.48 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

html body #othal247-app.is-chat-active #othal247-messages .msg-user::before,
html body #othal247-app.is-chat-active #othal247-messages .msg-bot::before {
  display: none !important;
  content: none !important;
}

html body #othal247-app.is-chat-active #othal247-messages .msg-user {
  align-self: flex-end !important;
  border-bottom-right-radius: 4px !important;
  background: var(--o247-bubble-user) !important;
  color: var(--o247-bubble-user-text) !important;
}

html body #othal247-app .msg-user,
html body .othal247-global-float-messages .msg-user {
  white-space: pre-wrap !important;
}

html body #othal247-app.is-chat-active #othal247-messages .msg-bot {
  align-self: flex-start !important;
  border-bottom-left-radius: 4px !important;
  background: var(--o247-bubble-bot) !important;
  color: var(--o247-bubble-bot-text) !important;
}

html body #othal247-app.is-chat-active #othal247-messages .msg-bot p,
html body #othal247-app.is-chat-active #othal247-messages .msg-bot ol,
html body #othal247-app.is-chat-active #othal247-messages .msg-bot ul {
  margin-top: 0 !important;
}

html body #othal247-app.is-chat-active #othal247-messages .msg-bot a {
  color: inherit !important;
  border-bottom-color: currentColor !important;
}

html body #othal247-app .othal247-screen[data-screen="magazin"] {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 88px 24px 64px !important;
  background: var(--o247-page-bg) !important;
}

html body #othal247-app .othal247-mag-feat {
  display: block !important;
  padding: 0 0 34px !important;
  margin: 0 0 10px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--o247-rule) !important;
  color: var(--o247-ink) !important;
}

html body #othal247-app .othal247-mag-feat .img {
  display: none !important;
}

html body #othal247-app .othal247-mag-feat h2 {
  font-family: var(--o247-f-sans) !important;
  max-width: 18ch !important;
  margin: 8px 0 12px !important;
  font-size: clamp(34px, 5vw, 64px) !important;
  line-height: .98 !important;
  font-weight: 520 !important;
  letter-spacing: -0.045em !important;
  color: var(--o247-ink) !important;
}

html body #othal247-app .othal247-mag-feat .dek {
  max-width: 62ch !important;
  margin: 0 0 18px !important;
  color: var(--o247-sub) !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}

html body #othal247-app .othal247-mag-list {
  display: block !important;
  padding: 0 !important;
  border-top: 0 !important;
}

html body #othal247-app .othal247-mag-list a.item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: start !important;
  position: relative !important;
  padding: 30px 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
}

html body #othal247-app .othal247-mag-list a.item::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: min(100%, 860px) !important;
  height: 1px !important;
  background: var(--o247-rule) !important;
}

html body #othal247-app .othal247-mag-list a.item:last-child::after {
  display: none !important;
}

html body #othal247-app .othal247-mag-list a.item .thumb {
  display: none !important;
}

html body #othal247-app .othal247-mag-list a.item h3 {
  margin: 0 0 8px !important;
  max-width: 760px !important;
  font-size: clamp(22px, 2.6vw, 34px) !important;
  line-height: 1.08 !important;
}

html body #othal247-app .othal247-mag-list a.item .excerpt {
  max-width: 64ch !important;
  margin: 0 0 16px !important;
  color: var(--o247-sub) !important;
  font-size: 15.5px !important;
  line-height: 1.55 !important;
}

html body #othal247-app .othal247-mag-list a.item .read {
  display: block !important;
  margin: 0 0 12px !important;
}

html body #othal247-app .othal247-mag-list a.item .read-more,
html body #othal247-app .othal247-mag-feat .read-more {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  color: var(--o247-ink) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  width: fit-content !important;
  padding: 0 !important;
  transform: none !important;
  text-decoration: none !important;
  transition: color .18s ease, letter-spacing .18s ease !important;
}

html body #othal247-app .othal247-mag-list a.item .read-more .read-label,
html body #othal247-app .othal247-mag-feat .read-more .read-label {
  display: inline-block !important;
  position: relative !important;
  z-index: 1 !important;
  transform: none !important;
  color: currentColor !important;
  text-decoration: none !important;
  transition: none !important;
}

html body #othal247-app .othal247-mag-feat .read-more::before,
html body #othal247-app .othal247-mag-list a.item .read-more::before {
  content: none !important;
  display: none !important;
}

html body #othal247-app .othal247-mag-feat .read-more::after,
html body #othal247-app .othal247-mag-list a.item .read-more::after {
  content: none !important;
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html body #othal247-app .othal247-mag-feat:hover .read-more,
  html body #othal247-app .othal247-mag-list a.item:hover .read-more {
    color: var(--o247-ink) !important;
    letter-spacing: .01em !important;
  }

  html body #othal247-app .othal247-mag-feat:hover .read-more .read-label,
  html body #othal247-app .othal247-mag-list a.item:hover .read-more .read-label {
    color: transparent !important;
    background:
      linear-gradient(
        100deg,
        var(--o247-ink) 0%,
        var(--o247-ink) 36%,
        color-mix(in srgb, var(--o247-ink) 34%, transparent) 48%,
        var(--o247-ink) 62%,
        var(--o247-ink) 100%
      ) !important;
    background-size: 220% 100% !important;
    background-position: 120% 0 !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    animation: o247-read-ink .74s cubic-bezier(.16, 1, .3, 1) both !important;
  }
}

@keyframes o247-read-ink {
  0% { background-position: 120% 0; }
  100% { background-position: -40% 0; }
}

@media (hover: none), (pointer: coarse) {
  html body #othal247-app .othal247-mag-feat,
  html body #othal247-app .othal247-mag-list a.item {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: pan-y !important;
  }

  html body #othal247-app .othal247-mag-feat,
  html body #othal247-app .othal247-mag-feat:hover,
  html body #othal247-app .othal247-mag-feat:active,
  html body #othal247-app .othal247-mag-feat:focus,
  html body #othal247-app .othal247-mag-list a.item,
  html body #othal247-app .othal247-mag-list a.item:hover,
  html body #othal247-app .othal247-mag-list a.item:active,
  html body #othal247-app .othal247-mag-list a.item:focus {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
  }

  html body #othal247-app .othal247-mag-feat,
  html body #othal247-app .othal247-mag-feat:hover,
  html body #othal247-app .othal247-mag-feat:active,
  html body #othal247-app .othal247-mag-feat:focus {
    margin: 0 0 10px !important;
    padding: 0 0 34px !important;
  }

  html body #othal247-app .othal247-mag-list a.item,
  html body #othal247-app .othal247-mag-list a.item:hover,
  html body #othal247-app .othal247-mag-list a.item:active,
  html body #othal247-app .othal247-mag-list a.item:focus {
    margin: 0 !important;
    padding: 30px 0 !important;
  }

  html body #othal247-app .othal247-mag-feat:hover h2,
  html body #othal247-app .othal247-mag-feat:active h2,
  html body #othal247-app .othal247-mag-list a.item:hover h3,
  html body #othal247-app .othal247-mag-list a.item:active h3 {
    color: var(--o247-ink) !important;
    text-decoration: none !important;
    transform: none !important;
  }

  html body #othal247-app .othal247-mag-feat .read-more,
  html body #othal247-app .othal247-mag-list a.item .read-more,
  html body #othal247-app .othal247-mag-feat:hover .read-more,
  html body #othal247-app .othal247-mag-list a.item:hover .read-more,
  html body #othal247-app .othal247-mag-feat .read-more .read-label,
  html body #othal247-app .othal247-mag-list a.item .read-more .read-label,
  html body #othal247-app .othal247-mag-feat:hover .read-more .read-label,
  html body #othal247-app .othal247-mag-list a.item:hover .read-more .read-label {
    color: var(--o247-ink) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    letter-spacing: 0 !important;
    transform: none !important;
    animation: none !important;
  }

  html body #othal247-app .othal247-mag-feat .read-more::after,
  html body #othal247-app .othal247-mag-list a.item .read-more::after {
    display: none !important;
    animation: none !important;
  }
}

@media (max-width: 900px) {
  html body #othal247-app .othal247-mag-feat,
  html body #othal247-app .othal247-mag-feat:hover,
  html body #othal247-app .othal247-mag-feat:active,
  html body #othal247-app .othal247-mag-feat:focus,
  html body #othal247-app .othal247-mag-list a.item,
  html body #othal247-app .othal247-mag-list a.item:hover,
  html body #othal247-app .othal247-mag-list a.item:active,
  html body #othal247-app .othal247-mag-list a.item:focus {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html body #othal247-app .othal247-mag-feat,
  html body #othal247-app .othal247-mag-feat:hover,
  html body #othal247-app .othal247-mag-feat:active,
  html body #othal247-app .othal247-mag-feat:focus {
    margin: 0 0 10px !important;
    padding: 0 0 34px !important;
  }

  html body #othal247-app .othal247-mag-list a.item,
  html body #othal247-app .othal247-mag-list a.item:hover,
  html body #othal247-app .othal247-mag-list a.item:active,
  html body #othal247-app .othal247-mag-list a.item:focus {
    margin: 0 !important;
    padding: 30px 0 !important;
  }
}

html body #othal247-app .othal247-blog-pages {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 22px 0 0 !important;
  padding: 12px 0 0 !important;
  border-top: 0 !important;
  font-family: var(--o247-f-sans) !important;
}

html body #othal247-app .othal247-blog-pages a,
html body #othal247-app .othal247-blog-pages span {
  color: var(--o247-ink) !important;
  font-size: 14px !important;
}

html body #othal247-app .othal247-blog-pages a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  border: 1px solid var(--o247-rule) !important;
  border-radius: 999px !important;
  background: var(--o247-surface) !important;
  text-decoration: none !important;
}

html body #othal247-app .othal247-blog-pages a:hover {
  border-color: var(--o247-rule-strong) !important;
}

html body #othal247-app .othal247-footer {
  width: 100% !important;
  margin: 36px 0 0 !important;
  padding: 46px max(24px, calc((100vw - 1180px) / 2)) 54px !important;
  border-top: 1px solid var(--o247-rule) !important;
  background: var(--o247-page-bg) !important;
  color: var(--o247-sub) !important;
  font-family: var(--o247-f-sans) !important;
  display: grid !important;
  grid-template-columns: minmax(240px, 1fr) auto auto !important;
  gap: 48px !important;
}

html body #othal247-app .othal247-footer strong {
  display: block !important;
  margin: 0 0 10px !important;
  color: var(--o247-ink) !important;
  font-size: 16px !important;
}

html body #othal247-app .othal247-footer p {
  max-width: 42ch !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

html body #othal247-app .othal247-footer nav {
  display: grid !important;
  gap: 9px !important;
  align-content: start !important;
}

html body #othal247-app .othal247-footer .foot-label {
  color: var(--o247-ink) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}

html body #othal247-app .othal247-footer a {
  color: var(--o247-sub) !important;
  font-size: 14px !important;
  text-decoration: none !important;
}

html body #othal247-app .othal247-footer a:hover {
  color: var(--o247-ink) !important;
}

/* Test v2: ruhige Full-Width-Uebergaenge statt harter Trennlinien. */
html body #othal247-app .othal247-screen[data-screen="chat"] {
  border-bottom: 0 !important;
  background: var(--o247-page-bg) !important;
}

html body #othal247-app .othal247-sidebar-col {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--o247-page-bg) 96%, var(--o247-ink) 4%) 0,
      var(--o247-page-bg) 72px,
      var(--o247-page-bg) calc(100% - 72px),
      color-mix(in srgb, var(--o247-page-bg) 97%, var(--o247-ink) 3%) 100%
    ) !important;
}

html body #othal247-app .othal247-screen[data-screen="magazin"] {
  padding-top: 72px !important;
  background: transparent !important;
}

html body #othal247-app .othal247-mag-feat,
html body #othal247-app .othal247-mag-list a.item {
  text-decoration: none !important;
}

html body #othal247-app .othal247-mag-feat h2,
html body #othal247-app .othal247-mag-list a.item h3,
html body #othal247-app .othal247-mag-feat:hover h2,
html body #othal247-app .othal247-mag-list a.item:hover h3 {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

html body #othal247-app .othal247-footer {
  border-top: 0 !important;
  margin-top: 0 !important;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--o247-page-bg) 97%, var(--o247-ink) 3%) 0,
      var(--o247-page-bg) 84px
    ) !important;
}

html body #othal247-app .othal247-evt-list {
  display: block !important;
  padding: 0 !important;
}

html body #othal247-app .othal247-evt {
  display: grid !important;
  grid-template-columns: minmax(160px, 220px) 1fr !important;
  gap: 24px !important;
  min-height: 0 !important;
  padding: 22px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--o247-rule) !important;
  background: transparent !important;
}

html body #othal247-app .othal247-evt .meta {
  grid-row: 1 / span 2 !important;
  margin: 0 !important;
}

html body #othal247-app .othal247-evt h3 {
  margin: 0 0 4px !important;
}

html body #othal247-app .othal247-evt .venue {
  grid-column: 2 !important;
}

html body #othal247-app .othal247-evt:nth-child(3n) {
  border-right: 0 !important;
}

html body #othal247-app .othal247-calendar-shell {
  border: 0 !important;
  border-radius: 0 !important;
}

html body #othal247-app .othal247-calendar-row {
  display: none !important;
}

@media (max-width: 900px) {
  html body #othal247-app .othal247-screen[data-screen="chat"] {
    min-height: calc(var(--o247-visual-vh, 100dvh) - 56px) !important;
    justify-content: flex-end !important;
    padding: 54px 0 30px !important;
  }

  html body #othal247-app .othal247-page-top {
    padding: 16px 18px !important;
  }

  html body #othal247-app .othal247-page-actions {
    gap: 10px !important;
  }

  html body #othal247-app .othal247-page-top nav {
    gap: 14px !important;
  }

  html body #othal247-app #othal247-chat {
    padding: 0 18px !important;
  }

  html body #othal247-app #othal247-greeting {
    margin-bottom: 22px !important;
    max-width: calc(100vw - 32px) !important;
    font-size: clamp(34px, 10.5vw, 46px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.035em !important;
    white-space: nowrap !important;
  }

  html body #othal247-app .othal247-greeting-sparks {
    inset: -18px -10px -12px !important;
  }

  html body #othal247-app .othal247-greeting-sparks span {
    width: calc(var(--s) * .78) !important;
    height: calc(var(--s) * .78) !important;
  }

  html body #othal247-app #othal247-input-wrapper {
    width: 100% !important;
    padding: 0 16px !important;
  }

  html body #othal247-app #othal247-input {
    min-height: 60px !important;
  }

  html body #othal247-app.is-chat-active .othal247-screen[data-screen="chat"] {
    height: calc(var(--o247-visual-vh, 100dvh) - 56px) !important;
    min-height: calc(var(--o247-visual-vh, 100dvh) - 56px) !important;
    padding: 16px 0 18px !important;
  }

  html body #othal247-app.is-mobile-input-focused .othal247-screen[data-screen="chat"] {
    height: calc(var(--o247-visual-vh, 100dvh) - 56px) !important;
    min-height: calc(var(--o247-visual-vh, 100dvh) - 56px) !important;
    overflow: hidden !important;
  }

  html body #othal247-app.is-mobile-input-focused #othal247-input-wrapper {
    padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }

  html body #othal247-app.is-chat-active #othal247-chat {
    padding-bottom: 12px !important;
  }

  html body #othal247-app .othal247-mag-feat,
  html body #othal247-app .othal247-mag-list,
  html body #othal247-app .othal247-evt-list {
    grid-template-columns: 1fr !important;
  }

  html body #othal247-app .othal247-mag-feat .img {
    display: none !important;
  }

  html body #othal247-app .othal247-mag-list a.item {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  html body #othal247-app .othal247-evt {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  html body #othal247-app .othal247-evt .meta,
  html body #othal247-app .othal247-evt .venue {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  html body #othal247-app .othal247-evt,
  html body #othal247-app .othal247-evt:nth-child(3n) {
    border-right: 0 !important;
  }

  html body #othal247-app .othal247-footer {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    padding: 38px 24px 46px !important;
  }

  html body #othal247-app .othal247-blog-pages {
    align-items: stretch !important;
    gap: 10px !important;
  }
}

#othal247-float-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: none;
  font-family: var(--o247-f-sans);
}

#othal247-float-chat.is-visible {
  display: block;
}

#othal247-float-toggle {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--o247-bubble-user);
  color: var(--o247-bubble-user-text);
  min-width: 132px;
  height: 48px;
  padding: 0 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  font: 500 14px/1 var(--o247-f-sans);
  cursor: pointer;
}

#othal247-float-chat.is-open #othal247-float-toggle {
  display: none;
}

#othal247-float-panel {
  display: none;
  width: min(380px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 38px));
  border: 1px solid var(--o247-rule);
  border-radius: 18px;
  background: color-mix(in srgb, var(--o247-surface) 96%, transparent);
  box-shadow: 0 22px 70px rgba(0,0,0,.2);
  overflow: hidden;
}

#othal247-float-chat.is-open #othal247-float-panel {
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
}

.othal247-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--o247-rule);
}

.othal247-float-title {
  font-size: 14px;
  font-weight: 600;
}

#othal247-float-close {
  appearance: none;
  border: 1px solid transparent;
  background: transparent !important;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--o247-sub);
  cursor: pointer;
  font: 0/0 a;
  padding: 0;
  position: relative;
}

#othal247-float-close::before,
#othal247-float-close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.5px;
  left: 7px;
  top: 14px;
  border-radius: 999px;
  background: currentColor;
}

#othal247-float-close::before {
  transform: rotate(45deg);
}

#othal247-float-close::after {
  transform: rotate(-45deg);
}

#othal247-float-close:hover {
  background: var(--o247-surface-2);
  color: var(--o247-ink);
}

#othal247-float-messages {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#othal247-float-messages .msg-user,
#othal247-float-messages .msg-bot {
  max-width: none;
  font-family: var(--o247-f-sans) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  border: 0 !important;
  padding: 0 !important;
}

#othal247-float-messages .msg-user::before,
#othal247-float-messages .msg-bot::before {
  display: none !important;
}

#othal247-float-messages .msg-user {
  align-self: flex-end;
  max-width: 82%;
  padding: 10px 12px !important;
  border-radius: 16px 16px 3px 16px !important;
  background: var(--o247-bubble-user) !important;
  color: var(--o247-bubble-user-text) !important;
}

#othal247-float-messages .msg-bot {
  align-self: flex-start;
  max-width: 88%;
  padding: 10px 12px !important;
  border-radius: 16px 16px 16px 3px !important;
  background: var(--o247-bubble-bot) !important;
  color: var(--o247-bubble-bot-text) !important;
}

.othal247-float-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border-top: 1px solid var(--o247-rule);
}

#othal247-float-query {
  min-width: 0;
  border: 1px solid var(--o247-rule);
  background: var(--o247-surface);
  color: var(--o247-ink);
  border-radius: 999px;
  padding: 10px 12px;
  font: 400 14px/1.3 var(--o247-f-sans);
  outline: none;
  resize: none;
  overflow-y: hidden;
}

#othal247-float-send {
  appearance: none;
  border: 0;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  background: var(--o247-bubble-user);
  color: var(--o247-bubble-user-text);
  cursor: pointer;
  font: 500 16px/1 var(--o247-f-sans);
}

@media (max-width: 640px) {
  #othal247-float-chat {
    right: 12px;
    bottom: 12px;
  }

  #othal247-float-panel {
    width: calc(100vw - 24px);
    max-height: min(560px, calc(100vh - 24px));
  }
}
