/* Rome – Technology for Events · Stylesheet
 * Schrift: Open Sans © The Open Sans Project Authors, SIL Open Font License 1.1 (siehe /assets/fonts/OFL.txt) */
@font-face { font-family: 'Open Sans'; font-weight: 400; font-display: swap; src: url(/assets/fonts/open-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 600; font-display: swap; src: url(/assets/fonts/open-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-display: swap; src: url(/assets/fonts/open-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --c-brand: #c8322a;
  --c-brand-dark: #a1261f;
  --c-ink: #141414;
  --c-text: #333;
  --c-muted: #666;
  --c-line: #e4e4e4;
  --c-soft: #f6f5f3;
  --c-bg: #fff;
  --c-surface: #fff;            /* Karten, Formulare, Menü */
  --c-header: rgb(255 255 255 / .96);
  --c-band: #141414;            /* dunkle Bänder: Hero, Seitenkopf, Planung – in beiden Modi dunkel */
  --c-footer: #0d0d0d;
  --c-on-ink: #fff;             /* Text auf --c-ink-Flächen (Ghost-Button-Hover) */
  --c-link: var(--c-brand);
  --c-link-hover: var(--c-brand-dark);
  --c-field-border: #cfcfcf;
  --c-placeholder-img: #ddd;
  --c-success-bg: #e9f6ec; --c-success: #1d5e2c;
  --c-error-bg: #fbeceb;   --c-error: #a1261f;
  --c-warn-bg: #fff4dc;    --c-warn: #7a5500;
  --c-neutral-bg: #eee;    --c-neutral: #555;
  --radius: 4px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 10px 30px rgb(0 0 0 / 0.08);
  --font: 'Open Sans', Arial, sans-serif;
  color-scheme: light dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.7 var(--font); color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-underline-offset: 3px; }
a:hover { color: var(--c-link-hover); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.25; font-weight: 700; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--c-soft); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-brand); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--c-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; border: 2px solid var(--c-brand); background: var(--c-brand); color: #fff;
  transition: background .15s, color .15s, border-color .15s; cursor: pointer; font: inherit; font-weight: 700;
}
.btn:hover { background: var(--c-brand-dark); border-color: var(--c-brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-on-ink); }
.btn--light { background: transparent; color: #fff; border-color: #fff; }
.btn--light:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.panorama { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: clamp(32px, 5vw, 56px); }
#vermietung .split { grid-template-columns: minmax(0, 72ch); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.25em; display: grid; gap: .55em; }
.check-list li { position: relative; padding-left: 1.6em; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: .6em; height: .6em; border-radius: 50%; background: var(--c-brand); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }

.page-head { background: var(--c-band); color: #fff; padding-block: clamp(48px, 8vw, 88px); position: relative; overflow: hidden; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: rgb(255 255 255 / .8); margin: .6rem 0 0; max-width: 60ch; }
.page-head::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--c-brand); opacity: .9; }
.page-head .wrap { position: relative; z-index: 1; }


/* --- BaseLayout --- */
  .skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--c-surface); color: var(--c-ink); padding: 8px 16px; }
  .skip:focus { top: 16px; }


/* --- SiteHeader --- */
  .header { position: sticky; top: 0; z-index: 50; background: var(--c-header); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
  .header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
  .header__logo img { width: 190px; height: auto; }
  .nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
  .nav { display: flex; align-items: center; gap: 24px; }
  .nav a { display: block; padding: 8px 14px; color: var(--c-ink); font-weight: 600; text-decoration: none; border-radius: var(--radius); }
  .nav a:hover { color: var(--c-brand); }
  .nav a[aria-current='page'] { color: var(--c-brand); box-shadow: inset 0 -2px 0 var(--c-brand); border-radius: 0; }
  .nav__phone { border: 2px solid var(--c-ink); }
  .nav .nav__phone:hover { background: var(--c-ink); color: var(--c-on-ink); }
  .header__toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
  .burger, .burger::before, .burger::after { display: block; width: 26px; height: 2px; background: var(--c-ink); position: relative; transition: transform .2s; }
  .burger::before, .burger::after { content: ''; position: absolute; left: 0; }
  .burger::before { top: -8px; } .burger::after { top: 8px; }
  [aria-expanded='true'] .burger { background: transparent; }
  [aria-expanded='true'] .burger::before { transform: translateY(8px) rotate(45deg); }
  [aria-expanded='true'] .burger::after { transform: translateY(-8px) rotate(-45deg); }

  @media (max-width: 899px) {
    .header__inner { min-height: 68px; }
    .header__logo img { width: 150px; }
    .header__toggle { display: block; }
    .nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--c-surface); border-bottom: 3px solid var(--c-brand); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
    .nav.is-open { display: flex; }
    .nav ul { flex-direction: column; }
    .nav a { padding: 14px 4px; border-bottom: 1px solid var(--c-line); }
    .nav a[aria-current='page'] { box-shadow: none; }
    .nav__phone { margin-top: 16px; text-align: center; border-radius: var(--radius); }
  }


/* --- SiteFooter --- */
  .footer { background: var(--c-footer); color: rgb(255 255 255 / .72); font-size: .95rem; }
  .footer a { color: #fff; text-decoration: none; }
  .footer a:hover { color: var(--c-brand); }
  .footer__grid { display: grid; gap: 32px; padding-block: 64px 48px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .footer__brand { display: inline-block; margin-bottom: 1em; }
  .footer__brand img { width: 180px; height: auto; }
  .footer__title { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1em; }
  .footer address { font-style: normal; margin-bottom: 1em; }
  .footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4em; }
  .footer__legal { border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; }
  .footer__legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 20px; }
  .footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }


/* --- VideoConsent --- */
  .video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
  .video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
  .video img { opacity: .55; }
  .video__overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; color: #fff; }
  .video__overlay p { font-size: .8rem; max-width: 42ch; margin: 0; color: rgb(255 255 255 / .85); }
  .video__overlay a { color: #fff; }
  .video__play { display: inline-flex; align-items: center; gap: 10px; background: var(--c-brand); color: #fff; border: 0; border-radius: 999px; padding: 14px 24px 14px 18px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s; }
  .video__play:hover { transform: scale(1.04); }


/* --- BlogCard --- */
  .card { display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--c-line), var(--shadow); height: 100%; }
  .card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s; background: var(--c-soft); }
  .card:hover .card__media img { transform: scale(1.03); }
  .card__media { overflow: hidden; }
  .card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
  .card time { font-size: .8rem; color: var(--c-muted); font-weight: 600; letter-spacing: .04em; }
  .card__title { font-size: 1.15rem; margin: .4em 0 .6em; }
  .card__title a { color: var(--c-ink); text-decoration: none; }
  .card__title a:hover { color: var(--c-brand); }
  .card p { font-size: .95rem; color: var(--c-muted); }
  .card__more { margin-top: auto; font-weight: 700; text-decoration: none; }


/* --- ContactForm --- */
  .contact__grid { display: grid; gap: 48px; }
  @media (min-width: 900px) { .contact__grid { grid-template-columns: 5fr 7fr; } }
  .contact__direct { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 14px; }
  .contact__direct li { display: grid; }
  .contact__direct span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
  .contact__direct a { font-weight: 600; color: var(--c-ink); text-decoration: none; font-size: 1.1rem; }
  .contact__direct a:hover { color: var(--c-brand); }
  .form { background: var(--c-surface); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); box-shadow: var(--shadow); }
  .form__hint { font-size: .85rem; color: var(--c-muted); }
  .form__row { margin-bottom: 18px; }
  .form label { display: block; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; }
  .form input:not([type='checkbox']), .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--c-field-border); border-radius: var(--radius); background: var(--c-bg); color: var(--c-ink); }
  .form input:focus, .form textarea:focus { outline: 2px solid var(--c-brand); outline-offset: 0; border-color: transparent; }
  .form [aria-invalid='true'] { border-color: var(--c-brand) !important; }
  .form__row--check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
  .form__row--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--c-brand); }
  .form__row--check label { font-weight: 400; font-size: .92rem; margin: 0; }
  .form__row--check .form__error { grid-column: 1 / -1; }
  .form__error { color: var(--c-error); font-size: .85rem; margin: 6px 0 0; min-height: 0; }
  .form__error:empty { display: none; }
  .form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .form__status { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; }
  .form__status[data-tone='success'] { background: var(--c-success-bg); color: var(--c-success); }
  .form__status[data-tone='error'] { background: var(--c-error-bg); color: var(--c-error); }
  .form button[disabled] { opacity: .6; cursor: progress; }


/* --- index --- */
  /* --- Slideshow (Startseite) --- */
  .slideshow { position: relative; color: #fff; background: var(--c-band); overflow: hidden; isolation: isolate; }
  .slideshow__slides { display: grid; }
  .slide { grid-area: 1 / 1; position: relative; display: grid; align-items: center; min-height: clamp(480px, 74vh, 720px);
    opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
  .slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
  .slideshow:not(.is-ready) .slide:not(:first-child) { display: none; }
  /* Bilder unverändert in voller Schärfe, darüber 30 % Schwarz wie im Original */
  .slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; background: #222; }
  .slide::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgb(0 0 0 / .3); }
  .slide--clear::before { background: none; }
  .slide__title { text-shadow: 0 2px 14px rgb(0 0 0 / .45); }
  .slide .btn { box-shadow: 0 4px 18px rgb(0 0 0 / .25); }
  .slide__content { padding-block: clamp(64px, 10vw, 120px) clamp(88px, 10vw, 120px); }
  .slide .eyebrow { color: #fff; background: var(--c-brand); padding: 4px 10px; border-radius: 2px; }
  .slide__title { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: .3em; max-width: 18ch; }
  .slide__text { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40ch; color: rgb(255 255 255 / .9); }
  .slide__content > * { transform: translateY(12px); opacity: 0; transition: transform .7s ease .25s, opacity .7s ease .25s; }
  .slide.is-active .slide__content > * { transform: none; opacity: 1; }
  .slideshow:not(.is-ready) .slide__content > * { transform: none; opacity: 1; }

  .slideshow__controls { position: absolute; left: 0; right: 0; bottom: clamp(20px, 3vw, 32px); z-index: 2; display: flex; justify-content: flex-end; }
  .slideshow:not(.is-ready) .slideshow__controls { display: none; }
  .slideshow__buttons { display: flex; gap: 6px; }
  .slideshow__btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / .4); background: rgb(0 0 0 / .25); color: #fff; cursor: pointer; transition: background .15s; }
  .slideshow__btn:hover { background: rgb(255 255 255 / .15); }
  .slideshow__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .slideshow__btn .i-play { fill: currentColor; stroke: none; }
  .slideshow.is-playing .i-play, .slideshow:not(.is-playing) .i-pause { display: none; }
  @media (max-width: 760px) {
          }
  @media (prefers-reduced-motion: reduce) {
    .slide, .slide.is-active, .slide__content > * { transition: none; transform: none; }
  }

  .section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
  .section-head h2 { margin: 0; }
  /* Backstage-Vorschau auf der Startseite: horizontaler Slider, alle Karten gleich groß */
  .section-head__intro { max-width: 60ch; margin: .4em 0 0; color: var(--c-muted); }
  .section-head__actions { display: flex; align-items: center; gap: 12px; }
  .rail { --rail-gap: 24px; --rail-cols: 3; display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--rail-cols) - 1) * var(--rail-gap)) / var(--rail-cols));
    gap: var(--rail-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    overscroll-behavior-x: contain; padding: 4px 4px 18px; margin: -4px -4px 0; scroll-padding-inline: 4px; scrollbar-width: thin; scrollbar-color: var(--c-line) transparent; }
  .rail:focus-visible { outline-offset: 4px; }
  .rail__item { scroll-snap-align: start; display: flex; min-width: 0; }
  .rail__item .card { width: 100%; }
  .rail__item .card__media img { aspect-ratio: 16 / 10; }
  .rail__item .card__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  @media (max-width: 1023px) { .rail { --rail-cols: 2; } }
  @media (max-width: 640px) { .rail { --rail-cols: 1.15; --rail-gap: 14px; } .section-head__actions .btn { display: none; } }
  .rail-nav { display: flex; gap: 6px; }
  .rail-nav[hidden] { display: none; }
  .rail-nav__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--c-ink); background: transparent; color: var(--c-ink); cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
  .rail-nav__btn:hover:not(:disabled) { background: var(--c-ink); color: var(--c-on-ink); }
  .rail-nav__btn:disabled { opacity: .3; cursor: default; }
  .rail-nav__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .backstage-teaser__more { margin: 20px 0 0; }
  @media (min-width: 641px) { .backstage-teaser__more { display: none; } }
  @media (max-width: 640px) { .backstage-teaser__more .btn { width: 100%; justify-content: center; } }

  .catalog { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 64px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .catalog__item { background: var(--c-soft); border-radius: var(--radius); padding: 22px 24px 8px; border-top: 3px solid var(--c-brand); }
  .catalog__item summary { cursor: pointer; list-style: none; }
  .catalog__item summary::-webkit-details-marker { display: none; }
  .catalog__item h3 { display: inline; }
  .catalog__item ul { margin-top: 14px; font-size: .95rem; }

  .section--dark { background: var(--c-band); color: rgb(255 255 255 / .82); }
  .section--dark h2 { color: #fff; }
  .section--dark strong { color: #fff; }


/* --- portrait --- */
  .facts { display: grid; gap: 1px; background: var(--c-line); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 0; border-radius: var(--radius); overflow: hidden; }
  .facts div { background: var(--c-surface); padding: 22px 24px; }
  .facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-brand); margin-bottom: 6px; }
  .facts dd { margin: 0; color: var(--c-ink); font-weight: 600; }
  .two-col { display: grid; gap: 48px; }
  @media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }


/* --- jobs --- */
  .jobs { display: grid; gap: 40px; align-items: start; }
  @media (min-width: 900px) { .jobs { grid-template-columns: 2fr 1fr; } }
  .jobs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .jobs__list li { padding: 22px 24px; border: 1px solid var(--c-line); border-left: 4px solid var(--c-brand); border-radius: var(--radius); }
  .jobs__list h2 { font-size: 1.2rem; margin: 0; }
  .jobs__types { margin-top: 16px; color: var(--c-muted); }
  .jobs__apply { background: var(--c-soft); padding: 28px; border-radius: var(--radius); position: sticky; top: 104px; }
  .jobs__apply h2 { font-size: 1.3rem; }
  .jobs__apply .btn { word-break: break-all; }


/* --- index --- */
  .grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }


/* --- [slug] --- */
  .post-head { background: var(--c-soft); padding-block: clamp(40px, 7vw, 80px) clamp(120px, 14vw, 180px); }
  .post-head__inner { max-width: 860px; }
  .post-head__back { font-weight: 700; text-decoration: none; font-size: .9rem; }
  .post-head h1 { margin: .5em 0 .4em; font-size: clamp(1.8rem, 4vw, 2.6rem); }
  .post-head time { color: var(--c-muted); font-weight: 600; }
  .post { max-width: 860px; margin-top: clamp(-150px, -12vw, -100px); padding-bottom: 72px; }
  .post__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 40px; background: var(--c-placeholder-img); }
  .post .prose { font-size: 1.05rem; }
  .post__nav { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--c-line); }
  .post__nav a { text-decoration: none; color: var(--c-ink); font-weight: 600; display: grid; gap: 4px; }
  .post__nav a:hover { color: var(--c-brand); }
  .post__nav span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
  .post__nav .next { text-align: right; }
  @media (max-width: 600px) { .post__nav { grid-template-columns: 1fr; } .post__nav .next { text-align: left; } }


/* --- LegalLayout --- */
  .legal { font-size: .97rem; }
  .legal h2:first-child { margin-top: 0; }

/* --- Beitrag: Galerie, Links, Vorschau --- */
.post__gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 40px; }
.post__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: opacity .2s; }
.post__gallery a:hover img { opacity: .85; }
.post__links { margin-top: 40px; padding: 24px 28px; background: var(--c-soft); border-left: 4px solid var(--c-brand); border-radius: var(--radius); }
.post__links h2 { font-size: 1.1rem; margin-bottom: .6em; }
.post__links ul { margin: 0; padding-left: 1.2em; }
.post__links li { margin-bottom: .3em; }
.preview-banner { margin: 0; padding: 10px var(--gutter); background: var(--c-warn-bg); color: var(--c-warn); text-align: center; font-weight: 700; }

/* --- Bänder bleiben dunkel: Links darin hell halten --- */
.section--dark a:not(.btn), .page-head a:not(.btn) { color: #ff8a80; }

/* =========================================================
   Dunkelmodus – folgt der Einstellung des Betriebssystems/Browsers
   ========================================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --c-brand: #d63a31;
    --c-brand-dark: #b52e26;
    --c-ink: #f2f0ee;
    --c-text: #cfccc8;
    --c-muted: #9b9792;
    --c-line: #2f2d2b;
    --c-soft: #1a1918;
    --c-bg: #121110;
    --c-surface: #211f1d;
    --c-header: rgb(18 17 16 / .94);
    --c-band: #050505;
    --c-footer: #050505;
    --c-on-ink: #121110;
    --c-link: #ff6b61;             /* Rot mit ausreichend Kontrast auf dunklem Grund */
    --c-link-hover: #ff8f87;
    --c-field-border: #45423f;
    --c-placeholder-img: #2a2826;
    --c-shadow: rgb(0 0 0 / .4);
    --shadow: 0 10px 30px rgb(0 0 0 / .45);
    --c-success-bg: #12301b; --c-success: #8fdca4;
    --c-error-bg: #3a1513;   --c-error: #ff9a92;
    --c-warn-bg: #3a2c0b;    --c-warn: #f3cf7a;
    --c-neutral-bg: #2f2d2b; --c-neutral: #c8c4bf;
  }
  img:not(.slide__bg):not([src$='.svg']) { filter: brightness(.92); }
  .header { border-bottom-color: var(--c-line); }
  .burger, .burger::before, .burger::after { background: var(--c-ink); }
  [aria-expanded='true'] .burger { background: transparent; }
  .footer__legal { border-top-color: rgb(255 255 255 / .08); }
  .eyebrow { color: var(--c-link); }
  .slide .eyebrow { color: #fff; }
}

/* Hinweis auf der Testseite (nur bei Test-Releases sichtbar) */
.test-badge {
  position: fixed; left: .75rem; bottom: .75rem; z-index: 1000;
  padding: .3rem .6rem; border-radius: .4rem;
  background: #b42318; color: #fff; font: 600 .75rem/1.2 system-ui, sans-serif;
  pointer-events: none; opacity: .9;
}
