/*
 * 1lov.de – Stylesheet
 *
 * Natives CSS, kein Build-Schritt. Datei ändern, hochladen, fertig.
 * Eingebunden in templates/page/layout/1lov.html.twig.
 */

@layer reset, base, layout, components, utilities;


/* ============================= */
/*      Fonts                    */
/* ============================= */

@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-serif-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-serif-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-serif-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-serif-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-serif-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-serif-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================= */
/*      Tokens                   */
/* ============================= */

:root {
  color-scheme: light dark;

  --font-text: 'IBM Plex Serif', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;

  --bg:      light-dark(#fcfcfa, #15171a);
  --surface: light-dark(#f2f2ee, #1e2125);
  --fg:      light-dark(#1d2024, #e4e4e0);
  --muted:   light-dark(#676c73, #9aa0a7);
  --line:    light-dark(#e2e2dd, #2d3036);
  --accent:  light-dark(#1565c0, #82b4ff);
  --accent-fg: light-dark(#fff, #0d1b2e);
  --danger:  light-dark(#c62828, #ff8a80);

  --code-bg: #1e1e1e;
  --code-fg: #d4d4d4;

  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0:  clamp(1.02rem, .98rem + .2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + .45vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.25rem + .9vw, 1.95rem);
  --step-3:  clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);

  --measure: 44rem;
  --wide: 64rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space: 1.5rem;
  --radius: 3px;
}


/* ============================= */
/*      Reset                    */
/* ============================= */

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: none; text-size-adjust: none; }
  img, picture, svg, video { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  fieldset { border: 0; padding: 0; }
}


/* ============================= */
/*      Basis                    */
/* ============================= */

@layer base {
  html { scroll-padding-top: 1rem; }

  body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-text);
    font-size: var(--step-0);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    text-wrap: balance;
  }
  h1 { font-size: var(--step-3); }
  h2 { font-size: var(--step-2); }
  h3 { font-size: var(--step-1); }
  h4, h5, h6 { font-size: var(--step-0); }

  p, li { text-wrap: pretty; }

  /* Überschriften im Fließtext (Artikel, Impressum, Datenschutz): Luft davor,
     wenig danach, damit sie zum folgenden Absatz gehören. */
  .rte :where(h2, h3, h4) { margin-top: 1.8em; margin-bottom: .5em; }
  .rte > :where(h2, h3, h4):first-child { margin-top: 0; }
  .rte :where(h2, h3, h4) + * { margin-top: 0; }
  .rte h4 { font-size: var(--step-0); }
  .content-text > :where(h1, h2, h3) + .rte { margin-top: 1.25rem; }

  :where(p, ul, ol, pre, figure, table, blockquote) + :where(*) { margin-block-start: 1em; }
  :where(ul, ol) { padding-inline-start: 1.4em; }

  a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;

    &:hover { text-decoration-thickness: 2px; }
  }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  ::selection {
    background: var(--accent);
    color: var(--accent-fg);
  }

  /* Bildunterschriften und Bildnachweise: klein und zurückhaltend */
  figcaption {
    margin-top: .35rem;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .02em;
    line-height: 1.4;
    color: var(--muted);
  }

  hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin-block: 2rem;
  }

  table {
    border-collapse: collapse;
    width: 100%;
    font-size: var(--step--1);

    :where(th, td) {
      border-bottom: 1px solid var(--line);
      padding: .4rem .6rem;
      text-align: start;
    }
  }

  :not(pre) > code {
    font-family: var(--font-mono);
    font-size: .85em;
    background: var(--surface);
    padding: .1em .35em;
    border-radius: var(--radius);
  }

  pre {
    overflow-x: auto;
    border-left: 3px solid var(--accent);
    background: var(--code-bg);
    border-radius: var(--radius);

    code {
      display: block;
      padding: 1.1rem 1.4rem;
      font-family: var(--font-mono);
      font-size: .82rem;
      line-height: 1.65;
      color: var(--code-fg);
      background: none;
      tab-size: 4;
    }
  }

  blockquote {
    border-left: 3px solid var(--line);
    padding-inline-start: 1rem;
    color: var(--muted);
  }
}


/* ============================= */
/*      Seitenaufbau             */
/* ============================= */

@layer layout {
  .wrap {
    width: min(100% - 2 * var(--gutter), var(--wide));
    margin-inline: auto;
  }

  /* Header */
  .site-header {
    border-bottom: 1px solid var(--line);

    .wrap {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: .5rem 2rem;
      padding-block: 1.1rem;
    }
  }

  .site-logo {
    font-family: var(--font-mono);
    font-size: var(--step-1);
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--fg);
    text-decoration: none;

    &::before {
      content: '~/';
      color: var(--accent);
    }
  }

  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    list-style: none;
    padding: 0;
    font-family: var(--font-mono);
    font-size: var(--step--1);
    text-transform: lowercase;

    :where(a, strong) {
      color: var(--muted);
      text-decoration: none;
      font-weight: 400;
    }
    a:hover { color: var(--fg); }
    strong { color: var(--fg); border-bottom: 2px solid var(--accent); }
    li + li { margin: 0; }
  }

  /* Bereich unter dem Header (Slider, Kopfbilder) */
  .site-hero {
    width: min(100% - 2 * var(--gutter), var(--wide));
    margin: 2rem auto 0;
  }

  /* Startseite: Einleitung über dem Slider */
  .site-hero .content-text:has(> h1) {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);

    h1 { letter-spacing: -.01em; }
    .rte { margin-top: .4rem; font-size: var(--step-1); color: var(--muted); }
  }

  /* Archiv: Überschrift des Archiv-Moduls (nur in der Liste, nicht in der Artikelansicht) */
  .mod_newsarchive > h1 { margin-bottom: 1.5rem; }

  /* Inhalt */
  .site-main {
    flex: 1;
    width: min(100% - 2 * var(--gutter), var(--measure));
    margin: clamp(2rem, 5vw, 3.5rem) auto 4rem;

    .mod_article + .mod_article { margin-top: 3rem; }
  }

  :where(.site-main) :where(.content-headline, .content-text, .content-image, .content-code,
    .content-html, .content-unfiltered-html, .ce_form, .mod_search) + :where(*) {
    margin-top: var(--space);
  }

  /* Footer */
  .site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    font-size: var(--step--1);
    color: var(--muted);

    .wrap {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
      gap: 2rem var(--gutter);
      padding-block: 2.5rem 2rem;
    }

    :where(h2, h3, h4, h5) {
      font-family: var(--font-mono);
      font-size: var(--step--1);
      font-weight: 400;
      text-transform: lowercase;
      letter-spacing: .02em;
      color: var(--fg);
      margin-bottom: .6rem;
    }

    p + p { margin-top: .4rem; }

    /* Schlusszeile über die volle Breite */
    .wrap > .content-text {
      grid-column: 1 / -1;
      border-top: 1px solid var(--line);
      padding-top: 1.25rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: .5rem 2rem;

      p + p { margin: 0; }
    }

    .mod_newslist .layout_simple {
      padding-block: .3rem;

      time { display: block; font-family: var(--font-mono); font-size: .75rem; }
      a { color: var(--fg); text-decoration: none; }
      a:hover { color: var(--accent); }
    }
  }
}


/* ============================= */
/*      Komponenten              */
/* ============================= */

@layer components {

  /* --- Gemeinsames: Meta-Zeilen, Kategorie-Label --- */

  :is(.layout_latest, .layout_full) > .info,
  .layout_full > .info + h2 {
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .info .category { color: var(--accent); }


  /* --- Startseite: Slider (CSS Scroll-Snap, ohne JS) --- */

  .mod_newslist.featured {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }

    /* Punkte und Pfeile unter dem Slider, wo der Browser CSS-Karussells kann
       (Chromium); sonst wischen bzw. horizontal scrollen. */
    anchor-name: --featured;
    scroll-marker-group: after;

    &::scroll-marker-group {
      display: flex;
      justify-content: center;
      gap: .6rem;
      margin-top: 1rem;
    }

    &::scroll-button(*) {
      position: absolute;
      position-anchor: --featured;
      top: calc(anchor(bottom) + .3rem);
      width: 2rem;
      height: 2rem;
      border: 1px solid var(--line);
      border-radius: 50%;
      background: var(--bg);
      color: var(--fg);
      font-family: var(--font-mono);
      cursor: pointer;
    }
    &::scroll-button(*):disabled { opacity: .3; cursor: default; }
    &::scroll-button(left)  { content: '←' / 'Previous article'; right: calc(anchor(right) + 2.5rem); }
    &::scroll-button(right) { content: '→' / 'Next article'; right: anchor(right); }

    .layout_latest {
      scroll-snap-align: start;
      display: grid;
      grid-template-columns: 1fr;
      align-content: start;

      &::scroll-marker {
        content: '';
        width: .6rem;
        height: .6rem;
        border-radius: 50%;
        background: var(--line);
      }
      &::scroll-marker:target-current { background: var(--accent); }

      > * { grid-column: 1; }
      figure { order: -1; margin-bottom: 1rem; }
      img { width: 100%; aspect-ratio: 1248 / 460; object-fit: cover; border-radius: var(--radius); }
      h2 { font-size: var(--step-2); margin-top: .25rem; }
      h2 a { color: var(--fg); text-decoration: none; }
      h2 a:hover { color: var(--accent); }
      .content-text { max-width: var(--measure); margin-top: .5rem; color: var(--muted); }
      .more { display: none; }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mod_newslist.featured { scroll-behavior: auto; }
  }


  /* --- Artikellisten (Startseite, Archiv) --- */

  :is(.mod_newslist, .mod_newsarchive):not(.featured) .layout_latest {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: .25rem 1.25rem;
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--line);

    &:first-child { padding-top: 0; }

    > * { grid-column: 2; margin: 0; }
    figure { grid-column: 1; grid-row: 1 / span 4; }
    img { aspect-ratio: 520 / 350; object-fit: cover; border-radius: var(--radius); }
    figcaption { display: none; }
    h2 { font-size: var(--step-1); }
    h2 a { color: var(--fg); text-decoration: none; }
    h2 a:hover { color: var(--accent); }
    .content-text { font-size: var(--step--1); color: var(--muted); }
    .more { display: none; }

    @media (width < 34rem) {
      grid-template-columns: 1fr;
      > *, figure { grid-column: 1; grid-row: auto; }
      figure { order: -1; margin-bottom: .5rem; }
    }
  }


  /* --- Artikel --- */

  /* Reihenfolge im Markup: h1, Datum, Kategorie (h2), Inhalt.
     Angezeigt: Kategorie, h1, Datum, Inhalt. */
  .layout_full {
    display: flex;
    flex-direction: column;

    > * { margin: 0; }
    > .info + h2 { order: -2; color: var(--accent); }
    > h1 { order: -1; margin-block: .35rem .5rem; }
    > .info { margin-bottom: 2rem; }

    .content-text p,
    .content-text li { line-height: 1.85; }

    :where(.content-text, .content-code, .content-image, .content-gallery) + :where(*) { margin-top: var(--space); }

    figure img { border-radius: var(--radius); }

    /* Bildergalerie: Screenshots nebeneinander, mobil untereinander */
    .content-gallery ul {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
      gap: 1rem;
      list-style: none;
      padding: 0;
    }
    .content-gallery li + li { margin: 0; }
  }

  /* --- Formulare (Kommentare, Kontakt, Suche) --- */

  :is(.ce_comments, .ce_form, .mod_comment_form, .mod_search) {
    .widget + .widget { margin-top: 1.1rem; }

    label {
      display: block;
      font-family: var(--font-mono);
      font-size: .75rem;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: .35rem;

      .mandatory { color: var(--danger); }
    }

    :is(input.text, input.captcha, textarea, input[type="search"]) {
      width: 100%;
      border: 1px solid var(--line);
      border-bottom-width: 2px;
      border-radius: 0;
      padding: .55rem .7rem;
      background: var(--bg);
      font-size: var(--step--1);
      transition: border-color .2s;

      &:focus { border-color: var(--accent); outline: none; }
    }

    textarea { min-height: 9rem; resize: vertical; }

    .captcha_text {
      display: block;
      font-size: var(--step--1);
      color: var(--muted);
      margin-bottom: .35rem;
    }

    .widget-checkbox label,
    .checkbox_container label {
      display: flex;
      align-items: flex-start;
      gap: .5rem;
      text-transform: none;
      letter-spacing: 0;
      font-family: var(--font-text);
      font-size: var(--step--1);
      cursor: pointer;
    }

    button.submit {
      background: var(--accent);
      color: var(--accent-fg);
      border: 0;
      border-radius: var(--radius);
      padding: .6rem 1.75rem;
      font-family: var(--font-mono);
      font-size: var(--step--1);
      cursor: pointer;

      &:hover { filter: brightness(1.1); }
    }

    .error { color: var(--danger); font-size: var(--step--1); }
  }

  /* Suche: Feld und Knopf nebeneinander */
  .mod_search {
    .formbody { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
    .widget-text { flex: 1 1 16rem; }
    .widget + .widget { margin: 0; }
    .widget-radio { flex-basis: 100%; font-size: var(--step--1); }
    .widget-radio span { margin-right: 1rem; }
    .widget-radio label { display: inline; text-transform: none; letter-spacing: 0; }
    > .header { margin-top: 2rem; color: var(--muted); font-size: var(--step--1); }
  }

  .search_default {
    display: flow-root;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);

    figure { float: right; width: 7rem; margin: 0 0 .5rem 1rem; }
    figure img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
    figcaption { display: none; }

    h3 { font-size: var(--step-1); }
    h3 a { color: var(--fg); text-decoration: none; }
    h3 a:hover { color: var(--accent); }
    .context { margin-top: .35rem; font-size: var(--step--1); }
    .url { margin-top: .25rem; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
    mark { background: light-dark(#fff3b0, #4a4220); color: inherit; }
  }

  /* Kommentare */
  .ce_comments {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);

    > h2 {
      font-family: var(--font-mono);
      font-size: .78rem;
      font-weight: 400;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 1rem;
    }

    .comment_default {
      padding-block: 1.1rem;
      border-bottom: 1px solid var(--line);

      .info { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
      .comment { font-size: .95rem; }

      .reply {
        margin-top: 1rem;
        padding: .9rem 1.1rem;
        background: var(--surface);
        border-left: 3px solid var(--line);
        font-size: .93rem;

        .info { font-style: italic; }
      }
    }

    .form { margin-top: 2rem; }
  }

  /* Seitenzahlen */
  .pagination {
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: var(--step--1);

    ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
    li + li { margin: 0; }
    .active { color: var(--fg); font-weight: 600; }
    p { color: var(--muted); }
  }


  /* --- Kontaktseite --- */

  /* Kopfbild mit Seitentitel */
  .site-hero .content-image {
    h1 { margin-bottom: 1rem; }
    img { width: 100%; aspect-ratio: 1920 / 300; object-fit: cover; border-radius: var(--radius); }
  }

  /* Bilder stehen im Artikel zuerst: rechts gefloatet, Text und Formular links daneben */
  body.contact .site-main .mod_article > .content-image img { border-radius: var(--radius); }

  /* Mobil: erst Text und Formular, Bilder ans Ende */
  @media (width < 48rem) {
    body.contact .site-main .mod_article {
      display: flex;
      flex-direction: column;
      gap: var(--space);

      > * { margin: 0; }
      > .content-image { order: 1; }
    }
  }

  @media (width >= 48rem) {
    body.contact .site-main {
      width: min(100% - 2 * var(--gutter), var(--wide));

      .mod_article {
        display: flow-root;

        > .content-image {
          float: right;
          clear: right;
          width: 38%;
          margin: 0 0 var(--space) 3rem;
        }
        > :not(.content-image) { max-width: calc(62% - 3rem); }
        > .content-image + :not(.content-image) { margin-top: 0; }
      }
    }
  }
}


/* ============================= */
/*      Syntax-Highlighting      */
/* ============================= */

/* Bewusst außerhalb der Layer: Das Code-Element lädt foundation.css von
   highlight.php ohne Layer, und ungelayerte Regeln schlagen jede Layer-Regel. */
pre code.hljs { color: var(--code-fg); background: none; padding: 1.1rem 1.4rem; }
.hljs-comment, .hljs-quote { color: #6a9955; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-built_in, .hljs-type { color: #569cd6; }
.hljs-string, .hljs-regexp, .hljs-addition { color: #ce9178; }
.hljs-number, .hljs-symbol, .hljs-bullet { color: #b5cea8; }
.hljs-title, .hljs-section, .hljs-function .hljs-title { color: #dcdcaa; }
.hljs-variable, .hljs-template-variable, .hljs-attr, .hljs-attribute, .hljs-params { color: #9cdcfe; }
.hljs-meta, .hljs-meta .hljs-keyword { color: #c586c0; }
.hljs-name, .hljs-tag, .hljs-selector-id, .hljs-selector-class { color: #4ec9b0; }
.hljs-deletion { color: #f48771; }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 600; }


/* ============================= */
/*      Hilfsklassen             */
/* ============================= */

@layer utilities {
  /* Contao: nur für Screenreader (früher aus layout.css) */
  .invisible,
  .skip-link:not(:focus) {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .skip-link:focus {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 10;
    padding: .5rem 1rem;
    background: var(--accent);
    color: var(--accent-fg);
  }
}
