/* ================================
   override.css  (≤ 1040px)
   ================================ */
@media (max-width: 1040px) {

  body, .post_body, .forum-desc { line-height: 1.55; }
  .smalltext { font-size: clamp(12px, 0.95rem, 14px); line-height: 1.45; }

  /* ---- 1) Chromium „fixed“-BG nur mobil/schmal: sicherer Layer ---- */
  body, .themebg { background: none !important; }
  html::before{
    content:"";
    position: fixed; inset: 0;
    background-image: var(--hgbig);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    z-index: -1;         /* hinter allem */
    pointer-events: none;
    transform: translateZ(0);
  }
  /* Komponenten mit eigenem fixed-BG entschärfen */
  .grid-item{ background-attachment: scroll !important; background-size: cover; height: 250px; }

  .menu-right, .menu-left, .boardtitle-container { z-index: 2; }

  /* ---- 2) Foren-Grid / Karten größer & einspaltig ---- */
  .forums-grid{
    grid-template-columns: 1fr !important;
    gap: 15px;
    margin-inline: auto;
  }
  .forum-card  { padding: clamp(18px, 3.6vw, 28px); }
  .forum-title { font-size: var(--txtxl); }
  .meta-item, .post_meta { font-size: var(--txtm); }
  .forum_status{ width: 44px; height: 44px; }

  /* ---- 3) „Sechser“-Grid (Board-Ende) – mobilfreundlich ---- */
  .grid-surface{ max-height: 220px; padding: 16px; overflow: auto; }
  .grid-surface_on{ height: auto; min-height: 0; padding: 16px; }

  /* ---- 4) Menüs / Touch-Ziele ---- */
  .menu-right, .menu-left { gap: 12px; }
  .menu-right .menu-icon,
  .as-container-menu-icon{
    width: 20px; height: 20px; padding: 4px; font-size: var(--txtm);
  }

  /* ---- 5) Postlayout kompakter, Inhalt breiter ---- */
  .post_content{ width: auto; flex: 1 1 auto; }
  .forum-meta  { width: 100%; }
  .fd-row{ grid-template-columns: 1fr; gap: 12px; }
  .fd-col--replies, .fd-col--views, .fd-col--lastpost { text-align: left; }

  /* ---- 6) Memberkartei / Profil ---- */
  .gd-profile{ --gap: 12px; }
  .prof-container{ flex-direction: column; gap: 12px; }
  .prof-statisch { width: 100%; margin-inline: auto; display: flex; background: var(--tbl-main-tr);}
  .prof-statisch_ende_wava{ width: 100%; max-width: 380px; margin-inline: auto; }
  .prof-as_container{ width: 100%; height: auto; max-height: 240px; }
  .prof-content_2{ width: 100%; }
  .prof-statisch_ende{ height: auto; }
  .prof-statisch img{ max-width: 100%; }
  .akteimago { display: none; }
  .gd-tabs {     justify-content: center; }

  .gd-card{ padding: 14px; }

  .pf-grid{ gap: 10px; }
  .pf-item{ padding: 12px; }
  .pf-ico{ width: 22px; height: 22px; flex-basis: 22px; }
  .pf-label{ font-size: var(--txtxsmall); }
  .pf-value, .value_specialmagic{ font-size: var(--txtm); line-height: 1.45; }

  .prof-buttons { gap: 8px; }
  .prof-buttons .button { padding: 8px 10px; font-size: var(--txtsmall); }
  .prof-buttons .button > svg { height: var(--txtm); }

  .wand-card{ --wand-height: 120px; }
  .wand-svg{ height: 56px; }

  .prof-stats{ padding: 8px; gap: 6px; }
  .prof-stats .stat-row{ row-gap: 2px; }
  .prof-stats .stat-label{ font-size: var(--txtsmall); }
  .prof-stats .stat-sub,
  .pf-note, .pf-subline{ font-size: var(--txtxsmall); }
  .partner .partner-chip, .prof-stats .stat-links a{ font-size: var(--txtxsmall); }

  /* ---- 7) Titel/Hero ---- */
  .boardtitle-container{ margin: 20px; padding: 40px 0; }
  .boardtitle-link{ letter-spacing: .15em; }
  .boardtitle-link:hover{ transform: none; }  /* ruhiger auf mobil */

  /* ---- 8) Kleinkram ---- */
  .note-body{ width: min(92vw, 480px); }
  .tinyleg{ font-size: var(--txtxxsmall); }
  .gd-btnrow{ width: 100%; }
  .gd-btnrow a, .gd-btn{ font-size: var(--txtsmall); }
}

/* ===== override.css – nur für iPad/Phone/SplitView ===== */
@media (max-width: 1040px) {

  /* 0) Grundzoom: alles sichtbar größer */
  html { font-size: 18px; }                   /* Basis hoch */
  body, .post_body, .forum-desc { line-height: 1.6; }
  /* Mobile WebKit: vergrößert Text nicht „zurück“ */
  body { -webkit-text-size-adjust: 110%; }

#content {
    width: auto !important;
    overflow: unset !important;
}

  /* 1) Deine Text-Variablen kräftig anheben */
  :root{
    --txtxxxsmall: 10px;
    --txtxxsmall:  11px;
    --txtxsmall:   12px;
    --txtsmall:    13px;
    --txtm:        15px;
    --txtl:        24px;
    --txtxl:       32px;
    --txtxxl:      58px;
    --txtxxxl:     84px;
  }

  /* 2) Häufige „kleine“ Klassen explizit größer */
  .smalltext,
  .forum-desc,
  .div.forum-desc.smalltext,
  .post_meta,
  .meta-item,
  .pf-note,
  .pf-subline { font-size: var(--txtm) !important; }

  .forum-title { font-size: var(--txtxl) !important; }
  .gd-legal a, .pf-label, .partner .partner-chip,
  .prof-buttons .button { font-size: var(--txtsmall) !important; }

  /* 3) Forenraster: 1 Spalte, breite Karten, mehr Luft */
  .forums-grid{
    grid-template-columns: 1fr !important;
    margin-inline: auto;
    gap: 24px;
  }
  .forum-card { padding: 22px 24px; }
  .forum_status { width: 48px; height: 48px; }

  /* 4) Board-Ende-Grid lesbar halten */
  .six-grid{ gap: 18px; padding: 16px; }
  .item5{ grid-column: 1 / -1; }
  .grid-surface{ max-height: 220px;padding: 16px; overflow: auto; }
  .grid-surface_on{ height: auto; min-height: 0; padding: 16px; }

  /* 5) Posts/Listen – Zahlen & Spalten */
  .fd-row{ grid-template-columns: 1fr; gap: 14px; }
  .fd-col--replies, .fd-col--views, .fd-col--lastpost { text-align: left; }
  .post_content{ width: auto; flex: 1 1 auto; }
  .forum-meta{ width: 100%; }

  /* 6) Profil/Memberkartei größer & einspaltig */
  .prof-container{ flex-direction: column; gap: 12px; }
  .prof-statisch, .prof-statisch_ende_wava{
    width: 100%; margin-inline: auto; background: var(--tbl-main-tr);
  }
  .prof-as_container{ width: 100%; height: auto; max-height: 240px;}
  .prof-statisch img{ max-width: 100%; }
  .gd-grid, .pf-grid{ gap: 12px; }
  .gd-card, .pf-item{ padding: 14px; }
  .pf-ico{ width: 24px; height: 24px; flex-basis: 24px; }
  .pf-value, .value_specialmagic{ font-size: var(--txtm); line-height: 1.5; }
  .akteimago { display: none; }
  .gd-tabs {     justify-content: center; }

  .menu-right .menu-icon,
  .as-container-menu-icon{ width: 20px; height: 20px; padding: 5px; }
  .menu-right, .menu-left{ gap: 5px; }

  body, .themebg { background: none !important; }
  html::before{
    content:"";
    position: fixed; inset: 0;
    background-image: var(--hgbig);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    z-index: -1; pointer-events: none; transform: translateZ(0);
  }
  .grid-item{ background-attachment: scroll !important; background-size: cover; }

  .boardtitle-container{ margin: 20px; padding: 36px 0; }
  .boardtitle-link{ letter-spacing: .15em; }
  .boardtitle-link:hover{ transform: none; }


  .note-body{ width: min(92vw, 500px); }
  .gd-btnrow{ width: 100%; }
  .gd-btnrow a, .gd-btn{ font-size: var(--txtm); }
}