/* ==========================================================================
   denniswagner.de – Statisches Stylesheet
   Nachbau der WordPress/Divi-Seite als schlankes, selbst gehostetes CSS.
   Schriften: Outfit (Überschriften/Navigation), DM Sans (Fließtext)
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, kein Google-Fonts-Request) ------- */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Outfit-400.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Outfit-500.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Outfit-600.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Outfit-700.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/DMSans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/DMSans-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/DMSans-700.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/DMSans-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/DMSans-500-italic.woff2') format('woff2'); }

/* ---------- Design-Token -------------------------------------------------- */
:root {
  --navy: #2e2e48;          /* Überschriften */
  --text: #666666;          /* Fließtext */
  --text-dark: #333333;
  --blue: #516cf7;          /* Akzent Unterseiten */
  --purple: #a478e8;        /* Verlauf-Start Unterseiten */
  --gold: #f7b733;          /* Verlauf-Start Startseite */
  --orange: #f37335;        /* Verlauf-Ende Startseite */
  --nav-active: #f2994a;
  /* Themen-Token (werden von Dark-/Kontrast-Modus überschrieben) */
  --link: var(--gold);
  --link-active: var(--orange);
  --grad-start: var(--gold);
  --grad-end: var(--orange);
  --bg: #ffffff;
  --surface: #ffffff;
  --heading: var(--navy);
  --card-bg: #f9fafd;
  --card-border: #e9edf5;
  --section-bg: #f7f9fc;
  --font-head: 'Outfit', Helvetica, Arial, sans-serif;
  --font-body: 'DM Sans', Helvetica, Arial, sans-serif;
}

/* ---------- Basis --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; }
p + p { margin-top: 1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 1200px; }

/* ---------- Fokus & Skip-Link ---------------------------------------------- */
:focus-visible { outline: 3px solid var(--link-active); outline-offset: 2px; }
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  padding: 12px 22px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus-visible { left: 0; top: 0; position: fixed; text-decoration: none; }

/* ---------- Header / Navigation ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
}
.site-header__inner {
  width: 100%;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.site-header__logo {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 18px 0 10px;
  max-height: 70px;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.25s ease, padding 0.25s ease;
}
.site-header .site-nav { grid-column: 2; padding: 10px 0 16px; }
.a11y-tools { grid-column: 3; justify-self: end; }

/* Beim Scrollen: Logo einklappen (nur Desktop) */
@media (min-width: 861px) {
  .site-header.is-scrolled .site-header__logo {
    opacity: 0;
    max-height: 0;
    padding: 0;
  }
}
.site-header__logo img { height: 26px; width: auto; display: block; }
.site-nav ul { list-style: none; display: flex; gap: 30px; }
.site-nav a {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 400;
  color: var(--link);
}
.site-nav a:hover { color: var(--link-active); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--link-active); }

/* Mobile-Navigation (ohne JavaScript, Checkbox-Toggle) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 10px; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; width: 24px; height: 3px; border-radius: 2px;
  background: var(--navy); position: relative; content: '';
}
.nav-toggle-label span::before { position: absolute; top: -8px; }
.nav-toggle-label span::after { position: absolute; top: 8px; }

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .nav-toggle {
    display: block;
    position: absolute;
    top: 14px;
    right: 16px;
    width: 44px;
    height: 44px;
    margin: 0;
    opacity: 0;
    z-index: 5;
    cursor: pointer;
  }
  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 3px solid var(--link-active);
    outline-offset: 3px;
    border-radius: 6px;
  }
  .nav-toggle-label { order: 3; }
  .site-header__inner { display: flex; align-items: center; padding: 14px 24px; }
  .site-header__logo { order: 1; padding: 0; max-height: none; overflow: visible; }
  .a11y-tools { order: 2; margin-left: auto; }
  .site-header .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-basis: auto; padding: 0;
    background: var(--bg); border-bottom: 1px solid var(--card-border);
    display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav a { display: block; padding: 12px 24px; }
}

/* ---------- Hero ---------------------------------------------------------- */
.hero { padding: 170px 0 190px; }
/* Startseiten-Hero deutlich größer als die Unterseiten-Heros:
   wächst mit der Viewport-Höhe, bleibt aber nach unten/oben begrenzt. */
.hero--fox {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: clamp(190px, 26vh, 320px) 0 clamp(210px, 28vh, 340px);
}
/* Fuchs auf eigener Ebene, damit er per Transform parallax scrollen kann.
   fox-hero-crop.png ist der passgenau zugeschnittene Fuchs (512x400) mit
   weißem Hintergrund, identisch mit --bg im Light Theme – beim Verschieben
   entstehen daher keine sichtbaren Kanten. */
.hero__fox {
  position: absolute;
  inset: 0;
  background: url('../img/fox-hero-crop.png') no-repeat right clamp(24px, 2.5vw, 64px) center;
  background-size: auto 46%;
  will-change: transform;
  pointer-events: none;
}
.hero--fox .container { position: relative; }
.hero--gradient {
  background: #f6f5f8 url('../img/hero-gradient.png') no-repeat center;
  background-size: cover;
}
.hero__title {
  font-size: clamp(52px, 8.3vw, 120px);
  font-weight: 600;
  letter-spacing: -2px;
  color: var(--heading);
  padding-bottom: 6px;
}
.hero__subtitle {
  font-family: var(--font-head);
  font-size: clamp(17px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.6;
}

/* Verlaufstext */
.grad-orange, .grad-blue, .grad-green {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.grad-orange { background-image: linear-gradient(90deg, var(--grad-start), var(--grad-end)); }
.grad-blue { background-image: linear-gradient(90deg, var(--purple), var(--blue)); }
.grad-green { background-image: linear-gradient(90deg, #7fae8e, #3e7457); }
html[data-theme="dark"] .grad-green { background-image: linear-gradient(90deg, #a9d4b6, #5f9d78); }

@media (max-width: 767px) {
  .hero { padding: 80px 0 90px; }
  .hero--fox { padding: 110px 0 130px; }
  .hero__fox { background-size: auto 27%; background-position: right 16px top 80%; }
}

/* ---------- Abschnitte ---------------------------------------------------- */
.section { padding: 90px 0; }
.section--tint { background: var(--section-bg); }
.section__title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  padding-bottom: 40px;
}

/* Überschrift mit Akzentlinie */
.h-underline { position: relative; padding-bottom: 16px; margin-bottom: 22px; }
.h-underline::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 46px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}
.h-underline--orange::after { background: linear-gradient(90deg, var(--gold), var(--orange)); width: 64px; }

/* ---------- Karten (Startseite) ------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.card {
  grid-column: span 3;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 30px 28px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card--wide { grid-column: span 6; }
a.card { transition: box-shadow 0.2s, transform 0.2s; }
a.card:hover {
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}
.card__icon { width: 46px; height: 46px; object-fit: contain; }
.card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--heading);
  padding-bottom: 0;
  margin-top: 34px;
}
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .card--wide { grid-column: span 1; min-height: 150px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Zweispaltige Layouts ------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--text-top { align-items: start; }
.rounded { border-radius: 25px; display: block; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Zitat (Startseite) -------------------------------------------- */
.quote__text {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.45;
}
.quote__source { margin-top: 28px; font-weight: 700; font-size: 14px; color: var(--text-dark); }
.quote__img {
  width: min(480px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
  margin-left: auto;
}

/* ---------- Textblöcke ---------------------------------------------------- */
.prose { max-width: 1200px; margin: 0 auto; }
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; padding-bottom: 24px; text-align: center; }
.prose h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin: 28px 0 8px; }
.prose ul { margin: 10px 0 10px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text-dark); }

/* ---------- Expertise ------------------------------------------------------ */
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.expertise-grid h2 { font-size: 26px; font-weight: 700; color: var(--heading); }
.expertise-grid .teaser-img { border-radius: 12px; width: min(490px, 100%); aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 26px; }
@media (max-width: 860px) {
  .expertise-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Bento-Grid (Expertise) ------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento-tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 34px 34px 38px;
  display: flex;
  flex-direction: column;
}
.b-span2 { grid-column: span 2; }
.b-span3 { grid-column: span 3; }
.b-span4 { grid-column: span 4; }
.bento-tile h2 { font-size: 24px; font-weight: 700; color: var(--heading); padding-bottom: 12px; }
.bento-tile p { font-size: 0.89em; }
.bento-kicker {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 10px;
}
.bento-tile__img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 24px;
}

.bento-link {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
}
.bento-tile--navy .bento-link { color: var(--gold); }
.skill-tags + .bento-link { margin-top: 0; }

/* Varianten */
.bento-tile--navy { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, 0.75); }
.bento-tile--navy h2 { color: #fff; }
.bento-tile--navy .bento-kicker { color: var(--gold); }
.bento-tile--tint { background: #fdf4ea; border-color: #f6e2cc; }
.bento-tile--tint .bento-kicker { color: var(--link-active); }
.bento-tile--gradient {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  border-color: transparent;
  color: #fff;
}
.bento-tile--gradient h2 { color: #fff; }
.bento-tile--gradient .bento-kicker { color: #ffd88a; }
.bento-tile--gradient .btn {
  background: #fff;
  color: var(--link-active);
  margin-top: auto;
  align-self: flex-start;
}
.bento-tile--gradient .btn:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }

/* Skill-Tags */
.skill-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bento-tile .skill-tags { margin-top: auto; padding-top: 18px; }
.skill-tags li {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 16px;
}
.bento-tile--navy .skill-tags li { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }

@media (max-width: 980px) {
  .b-span2 { grid-column: span 3; }
  .b-span4 { grid-column: span 6; }
}
@media (max-width: 620px) {
  .b-span2, .b-span3, .b-span4 { grid-column: span 6; }
  .bento-tile { padding: 26px; }
}

/* ---------- Projekt-Karussell ---------------------------------------------- */
.projects h2 { font-size: 28px; font-weight: 700; color: var(--heading); }
.projects__intro { max-width: 1100px; margin-bottom: 40px; }
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 56px) / 3);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: #d9dfeb; border-radius: 3px; }
.project-card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
a.project-card { color: var(--text); transition: box-shadow 0.2s, transform 0.2s; }
a.project-card:hover {
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}
.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }
.project-card__body { padding: 18px 20px 22px; }
.project-card__body h3 { font-size: 16px; font-weight: 700; color: var(--heading); padding-bottom: 6px; }
.project-card__body p { font-size: 0.89em; }
@media (max-width: 860px) {
  .carousel { grid-auto-columns: calc((100% - 28px) / 2); }
}
@media (max-width: 560px) {
  .carousel { grid-auto-columns: 88%; }
}

/* ---------- Projekt-Detailseiten -------------------------------------------- */
/* Listen in Bento-Kacheln (Funktions-Übersicht) */
.bento-tile h3 { font-size: 24px; font-weight: 700; color: var(--heading); padding-bottom: 12px; }
.bento-tile--navy h3 { color: #fff; }
.bento-tile ul:not(.skill-tags) { font-size: 0.89em; margin: 0 0 0 20px; }
.bento-tile ul:not(.skill-tags) li { margin-bottom: 8px; }

/* Persona-Kacheln: neutral grau, Farbe erst beim Hover */
.bento-tile--persona {
  background: #eef0f4;
  border-color: #e3e7ef;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bento-tile--persona:hover {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  border-color: transparent;
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(243, 115, 53, 0.25);
}
.bento-tile--persona:hover h3 { color: #fff; }
.bento-tile--persona:hover .bento-kicker { color: #ffd88a; }
.bento-tile--persona:hover .skill-tags li {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
html[data-theme="dark"] .bento-tile--persona { background: #232336; border-color: #3a3a52; }
html[data-theme="dark"] .bento-tile--persona:hover { color: rgba(28, 19, 5, 0.85); }
html[data-theme="dark"] .bento-tile--persona:hover h3,
html[data-theme="dark"] .bento-tile--persona:hover .skill-tags li { color: #1c1305; }
html[data-theme="dark"] .bento-tile--persona:hover .bento-kicker { color: #4a3208; }
html[data-theme="dark"] .bento-tile--persona:hover .skill-tags li {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.25);
}

/* Seiten-Theme „Sage“ (Detox Quest): grüne Akzente statt Gold/Orange.
   Wird per class="theme-sage" auf <main> gesetzt und färbt nur diese Seite. */
.theme-sage {
  --sage-1: #7fae8e;
  --sage-2: #3e7457;
}
.theme-sage .h-underline::after { background: linear-gradient(90deg, var(--sage-1), var(--sage-2)); }
.theme-sage .bento-kicker,
.theme-sage .bento-link,
.theme-sage .article-back a,
.theme-sage .persona-dialog h4 { color: var(--sage-2); }
.theme-sage .bento-tile--navy .bento-kicker { color: #a9d4b6; }
.theme-sage .bento-tile--tint { background: #edf4ee; border-color: #d7e6db; }
.theme-sage .bento-tile--tint .bento-kicker { color: var(--sage-2); }
.theme-sage .bento-tile--persona:hover {
  background: linear-gradient(135deg, var(--sage-1), var(--sage-2));
  box-shadow: 0 12px 30px rgba(62, 116, 87, 0.28);
}
.theme-sage .bento-tile--persona:hover .bento-kicker,
.theme-sage .bento-tile--persona:hover .bento-link { color: #dff0e4; }
html[data-theme="dark"] .theme-sage {
  --sage-1: #5f9d78;
  --sage-2: #a9d4b6;
}
html[data-theme="dark"] .theme-sage .bento-tile--tint { background: #1d2a21; border-color: #33473a; }
html[data-theme="dark"] .theme-sage .bento-tile--tint .bento-kicker { color: #a9d4b6; }
html[data-theme="dark"] .theme-sage .bento-tile--persona:hover {
  background: linear-gradient(135deg, #3e7457, #2c5540);
  color: rgba(255, 255, 255, 0.92);
}
html[data-theme="dark"] .theme-sage .bento-tile--persona:hover h3,
html[data-theme="dark"] .theme-sage .bento-tile--persona:hover .skill-tags li { color: #fff; }
html[data-theme="dark"] .theme-sage .bento-tile--persona:hover .skill-tags li {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}
html[data-theme="dark"] .theme-sage .bento-tile--persona:hover .bento-kicker,
html[data-theme="dark"] .theme-sage .bento-tile--persona:hover .bento-link { color: #cfe9d8; }
html[data-contrast="1"] .theme-sage { --sage-1: #3e7457; --sage-2: #2c5540; }
html[data-theme="dark"][data-contrast="1"] .theme-sage { --sage-1: #a9d4b6; --sage-2: #cfe9d8; }

/* App-Banner auf Projektseiten: eigene Sektion zwischen Pitch und Funktionen,
   der Abstand nach oben kommt aus dem Padding der Pitch-Sektion */
.app-banner { padding-bottom: 60px; }
.app-banner .wcag-hint { margin: 0; }
.theme-sage .wcag-hint__btn { color: #3e7457; }
.theme-sage .wcag-hint__btn:hover { color: #2c5540; }
html[data-theme="dark"] .theme-sage .wcag-hint__btn { background: #a9d4b6; color: #17241c; }

/* eBook-Cover als CSS-Platzhalter (bis ein echtes Cover vorliegt) */
.ebook-cover {
  width: min(320px, 100%);
  margin: 0 auto;
  aspect-ratio: 5 / 7;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 46px 32px 32px;
  color: #fff;
  border-radius: 4px 12px 12px 4px;
  background: linear-gradient(150deg, var(--grad-start), var(--grad-end));
  box-shadow:
    inset 16px 0 20px -16px rgba(0, 0, 0, 0.55),
    0 26px 60px rgba(243, 115, 53, 0.28),
    0 8px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}
.ebook-cover:hover { transform: translateY(-4px) rotate(-0.5deg); }
.ebook-cover::before {
  content: '';
  position: absolute;
  left: 13px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}
.ebook-cover__label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
}
.ebook-cover__title {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-top: 20px;
}
.ebook-cover__sub {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 16px;
  opacity: 0.92;
}
.ebook-cover__author {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  margin-top: auto;
  padding-top: 24px;
}
.ebook-cover__author::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}

/* Status-Pille „erscheint bald" */
.ebook-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--link-active);
  background: color-mix(in srgb, var(--link-active) 14%, transparent);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}
.ebook-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--link-active);
}

/* Kapitel-Liste (Inhaltsübersicht) */
.chapter-list { list-style: none; counter-reset: chapter; margin: 0; max-width: 900px; }
.chapter-list li {
  position: relative;
  padding: 18px 0 18px 56px;
  border-top: 1px solid var(--card-border);
}
.chapter-list li:last-child { border-bottom: 1px solid var(--card-border); }
.chapter-list li::before {
  counter-increment: chapter;
  content: counter(chapter);
  position: absolute;
  left: 0; top: 16px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--link);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
}
.chapter-list strong { color: var(--heading); font-family: var(--font-head); font-size: 18px; }
.chapter-list span { display: block; font-size: 0.92em; margin-top: 2px; }

/* Persona-Dialoge (natives <dialog>, geöffnet per Klick auf die Kachel) */
.bento-tile--persona { cursor: pointer; }
.persona-more {
  background: none;
  border: 0;
  padding: 18px 0 0;
  text-align: left;
  cursor: pointer;
}
.bento-tile--persona:hover .bento-link { color: #fff; }
html[data-theme="dark"] .bento-tile--persona:hover .bento-link { color: #1c1305; }
.persona-dialog {
  /* Der globale Reset setzt margin: 0 – margin: auto stellt die native
     Zentrierung des <dialog>-Elements wieder her. */
  margin: auto;
  border: none;
  border-radius: 20px;
  padding: 0;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.persona-dialog::backdrop {
  background: rgba(18, 18, 32, 0.55);
  backdrop-filter: blur(3px);
}
.persona-dialog__inner { position: relative; padding: 34px 36px 38px; }
.persona-dialog h3 { font-size: 24px; font-weight: 700; padding: 4px 30px 4px 0; }
.persona-dialog h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--link);
  margin: 24px 0 8px;
}
.persona-dialog ul:not(.skill-tags) { margin: 0 0 0 20px; }
.persona-dialog ul:not(.skill-tags) li { margin-bottom: 8px; }
.persona-dialog .skill-tags { margin-top: 24px; }
.persona-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--heading);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.persona-dialog__close:hover { border-color: var(--gold); }

/* iPhone-Gehäuse um einen Screenshot (reines CSS-Mockup) */
.iphone-mock {
  width: min(330px, 100%);
  margin: 0 auto;
  position: relative;
  background: #17171c;
  border: 1px solid #3c3c44;
  border-radius: 52px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}
.iphone-mock::before,
.iphone-mock::after {
  content: '';
  position: absolute;
  background: #3c3c44;
  border-radius: 2px;
}
.iphone-mock::before { left: -4px; top: 120px; width: 4px; height: 64px; } /* Lautstärketasten */
.iphone-mock::after { right: -4px; top: 150px; width: 4px; height: 46px; } /* Seitentaste */
.iphone-mock img { display: block; width: 100%; border-radius: 36px; }

/* Einzelner Smartphone-Screenshot neben Text */
.phone-shot {
  width: min(320px, 100%);
  margin: 0 auto;
  display: block;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

/* Horizontal scrollbare Screenshot-Galerie */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(280px, 74%);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: #d9dfeb; border-radius: 3px; }
.shots:focus-visible { outline: 3px solid var(--link-active); outline-offset: 4px; }
.shots figure { scroll-snap-align: start; margin: 0; }
.shots img {
  width: 100%;
  display: block;
  border: 1px solid var(--card-border);
  border-radius: 22px;
}
.shots figcaption, .shots-wide figcaption, .phone-pair figcaption { font-size: 14px; margin-top: 10px; text-align: center; }

/* Zwei Smartphone-Screenshots nebeneinander (Design-Abschnitt) */
.phone-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.phone-pair figure { margin: 0; }
.phone-pair .phone-shot { width: 100%; margin: 0; }

/* Breite Screenshots (Desktop/Tablet) */
.shots-wide { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; align-items: start; margin-top: 40px; }
.shots-wide--single { grid-template-columns: 1fr; }
.shots-wide figure { margin: 0; }
.shots-wide img {
  width: 100%;
  display: block;
  border: 1px solid var(--card-border);
  border-radius: 14px;
}
@media (max-width: 860px) {
  .shots-wide { grid-template-columns: 1fr; }
}

/* ---------- Kontakt -------------------------------------------------------- */
.contact-list p { margin-top: 14px; }
.contact-list strong { display: block; color: var(--text-dark); }

/* ---------- Ganzseitiges Bild (Über mich) ---------------------------------- */
.banner {
  background: url('../img/f1-banner.jpg') no-repeat center;
  background-size: cover;
  min-height: 480px;
}
@media (max-width: 767px) { .banner { min-height: 240px; } }

/* ---------- Rechtstexte ---------------------------------------------------- */
.legal h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -1px; padding-bottom: 24px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin: 26px 0 8px; }
.legal p { margin-top: 10px; }
.legal ul { margin: 10px 0 10px 22px; }
.legal a { word-break: break-word; }

/* ---------- Blog ------------------------------------------------------------ */
.hero--small { padding: 90px 0 100px; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-chips--tight { margin-bottom: 12px; }
.chip {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--link); color: var(--link-active); }
.chip--active {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  border-color: transparent;
  color: #fff;
}

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.blog-card__body { padding: 20px 22px 24px; }
.blog-card__body h2 { font-size: 20px; font-weight: 700; color: var(--heading); padding-bottom: 8px; }
.blog-card__body p { font-size: 0.89em; }
.blog-card__meta { font-size: 14px; margin-bottom: 10px; }
.article-category {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--cat-text, var(--link));
  background: color-mix(in srgb, var(--cat-text, var(--link)) 12%, transparent);
  border-radius: 999px;
  padding: 3px 12px;
  margin-right: 4px;
}

/* ---------- Kategorie-Farben (Chips, Badges, Card-Banner) ------------------- */
.cat-user-experience { --cat-solid: #1d4ed8; --cat-grad: #2f6fed; --cat-text: #1d4ed8; }
.cat-psychologie     { --cat-solid: #6d28d9; --cat-grad: #7c3aed; --cat-text: #6d28d9; }
.cat-accessibility   { --cat-solid: #047857; --cat-grad: #059669; --cat-text: #047857; }
.cat-design          { --cat-solid: #be185d; --cat-grad: #db2777; --cat-text: #be185d; }
.cat-tools           { --cat-solid: #c2410c; --cat-grad: #ea580c; --cat-text: #c2410c; }
.cat-ki              { --cat-solid: #0f766e; --cat-grad: #0d9488; --cat-text: #0f766e; }
html[data-theme="dark"] .cat-user-experience { --cat-text: #94b9f9; }
html[data-theme="dark"] .cat-psychologie     { --cat-text: #c5a6fa; }
html[data-theme="dark"] .cat-accessibility   { --cat-text: #5ecfa4; }
html[data-theme="dark"] .cat-design          { --cat-text: #f386b8; }
html[data-theme="dark"] .cat-tools           { --cat-text: #f5a163; }
html[data-theme="dark"] .cat-ki              { --cat-text: #52cfc3; }

.chip[class*="cat-"] { color: var(--cat-text); border-color: var(--cat-text); }
.chip[class*="cat-"]:hover {
  color: var(--cat-text);
  border-color: var(--cat-text);
  background: color-mix(in srgb, var(--cat-text) 12%, transparent);
}
.chip--active[class*="cat-"],
html[data-theme="dark"] .chip--active[class*="cat-"] {
  background: var(--cat-solid);
  border-color: transparent;
  color: #fff;
}
.blog-empty { text-align: center; padding: 40px 0; }
#scroll-sentinel { height: 1px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* Artikel-Seiten */
.article-meta { font-family: var(--font-head); font-size: 16px; margin-bottom: 14px; }
.article-title { font-size: clamp(34px, 4.5vw, 56px); font-weight: 600; letter-spacing: -1px; }
.article-content { max-width: 900px; }
.article-content h2 { font-size: 26px; font-weight: 700; margin: 36px 0 14px; }
.article-content h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.article-content ul, .article-content ol { margin: 12px 0 12px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: 12px; margin: 24px 0; }
.article-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-dark);
}
.article-content pre {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 15px;
  margin: 20px 0;
}
.article-back { margin-top: 48px; }
.related-title { font-size: 26px; font-weight: 700; padding-bottom: 32px; }
.blog-card__body h3 { font-size: 20px; font-weight: 700; color: var(--heading); padding-bottom: 8px; }

/* ---------- WCAG-Guide ------------------------------------------------------ */
.wcag-intro { max-width: 900px; margin-bottom: 36px; }
.is-hidden { display: none !important; }
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.filter-bar .filter-chips { margin-bottom: 0; }
.level-filter {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.level-filter select {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
}
.carousel:focus-visible { outline: 3px solid var(--link-active); outline-offset: 4px; }
.wcag-principle { margin-top: 56px; }
.wcag-principle h2 { font-size: 26px; font-weight: 700; color: var(--heading); }
.wcag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wcag-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 22px 24px;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.2s;
}
.wcag-card:hover {
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}
.wcag-card h3 { font-size: 19px; font-weight: 700; color: var(--heading); padding-bottom: 6px; }
.wcag-card > p:last-child { font-size: 0.89em; }
.wcag-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wcag-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--link);
}
.level-badge {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.level-badge--a { color: #2c7a3f; border-color: #9fd3ad; background: #f0f9f2; }
.level-badge--aa { color: #9a6a00; border-color: #ecd28a; background: #fdf7e7; }
.level-badge--aaa { color: #9c3b10; border-color: #f0b598; background: #fdf1ea; }
.level-badge--obsolet { color: #666; border-color: #ccc; background: #f4f4f4; }
@media (max-width: 980px) { .wcag-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .wcag-grid { grid-template-columns: 1fr; } }

/* Blätter-Navigation auf Kriteriumsseiten */
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; flex-wrap: wrap; }
.pager__link { font-family: var(--font-head); }
.pager__link--next { margin-left: auto; text-align: right; }

/* WCAG-Teaser (Expertise-Seite) */
.wcag-teaser p { max-width: 900px; }
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  border-radius: 999px;
  padding: 13px 32px;
  margin-top: 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.btn:hover {
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(243, 115, 53, 0.35);
  transform: translateY(-2px);
}

/* Hinweis-Box (Blog-Übersicht, nur bei Kategorie Accessibility) */
.wcag-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--navy);
  border-radius: 16px;
  padding: 28px 34px;
  margin: -8px 0 36px;
}
.wcag-hint[hidden] { display: none !important; }
.wcag-hint__text {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #fff;
}
.wcag-hint__btn {
  background: #fff;
  color: var(--link-active);
  margin-top: 0;
}
.wcag-hint__btn:hover { color: var(--link-active); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }

/* ---------- Footer ---------------------------------------------------------- */
.site-footer { padding: 90px 0 70px; text-align: center; }
.site-footer__logo img { height: 34px; width: auto; }
.site-footer__links { margin-top: 22px; font-size: 13px; color: var(--text); }
.site-footer__links a { color: var(--link); }
.site-footer__links a:hover { color: var(--link-active); }

/* ==========================================================================
   Drei Darstellungs-Modi + Nutzer-Einstellungen (per JS auf <html> gesetzt:
   data-theme="dark" | data-contrast="1" | data-fs="s|l" | data-dys="1")
   ========================================================================== */

/* ---------- Dark Mode ------------------------------------------------------- */
html[data-theme="dark"] {
  --bg: #15151f;
  --surface: #232336;
  --card-bg: #1d1d2c;
  --card-border: #32324a;
  --section-bg: #1a1a27;
  --heading: #f2f2f7;
  --text: #a9adbd;
  --text-dark: #d6d9e2;
  --link: var(--gold);
  --link-active: #ffca5f;
}
html[data-theme="dark"] .site-header__logo img,
html[data-theme="dark"] .site-footer__logo img,
html[data-theme="dark"] .card__icon {
  filter: brightness(0) invert(1);
}
html[data-theme="dark"] .hero--gradient {
  background: linear-gradient(160deg, #20203a 0%, #171724 55%, #1c2030 100%);
}
html[data-theme="dark"] .hero__fox { background-image: none; }
html[data-theme="dark"] .chip--active,
html[data-theme="dark"] .btn { color: #1c1305; }
html[data-theme="dark"] .bento-tile--navy { background: #101018; border-color: #32324a; }
html[data-theme="dark"] .bento-tile--tint { background: #2b2418; border-color: #4a3c22; }
html[data-theme="dark"] .bento-tile--tint .bento-kicker { color: var(--gold); }
html[data-theme="dark"] .bento-tile--gradient .btn { background: #15151f; color: var(--gold); }
html[data-theme="dark"] .wcag-hint { background: #101018; border: 1px solid #32324a; }
html[data-theme="dark"] .wcag-hint__btn { background: var(--gold); color: #1c1305; }
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .blog-card { box-shadow: none; }
html[data-theme="dark"] .level-badge--a { color: #8fd8a2; border-color: #2e5c3a; background: rgba(46, 122, 63, 0.18); }
html[data-theme="dark"] .level-badge--aa { color: #e5c26a; border-color: #6b5416; background: rgba(154, 106, 0, 0.18); }
html[data-theme="dark"] .level-badge--aaa { color: #f0a582; border-color: #6e3418; background: rgba(156, 59, 16, 0.2); }
html[data-theme="dark"] .level-badge--obsolet { color: #a9adbd; border-color: #4a4a5e; background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .skip-link { background: var(--gold); color: #1c1305; }

/* ---------- High-Contrast-Modus --------------------------------------------- */
html[data-contrast="1"] {
  --link: #a8500a;
  --link-active: #8a3d00;
  --grad-start: #b45309;
  --grad-end: #9c3b10;
  --text: #333333;
  --text-dark: #111111;
  --heading: #14142a;
}
html[data-contrast="1"] a { text-decoration: underline; }
html[data-contrast="1"] .site-nav a,
html[data-contrast="1"] .btn,
html[data-contrast="1"] .chip,
html[data-contrast="1"] .skip-link { text-decoration: none; }
html[data-contrast="1"] .grad-orange,
html[data-contrast="1"] .grad-blue,
html[data-contrast="1"] .grad-green {
  background-image: none;
  color: var(--link);
}
html[data-contrast="1"] .bento-tile--gradient .bento-kicker { color: #ffe4b8; }
html[data-contrast="1"] .level-badge--aa { color: #7a5400; }

/* Dark + High-Contrast kombiniert */
html[data-theme="dark"][data-contrast="1"] {
  --link: #ffca5f;
  --link-active: #ffe09a;
  --text: #d6d9e2;
  --text-dark: #f0f1f5;
  --heading: #ffffff;
  --grad-start: var(--gold);
  --grad-end: #f0932b;
}
html[data-theme="dark"][data-contrast="1"] .grad-orange,
html[data-theme="dark"][data-contrast="1"] .grad-blue,
html[data-theme="dark"][data-contrast="1"] .grad-green { color: var(--gold); }

/* ---------- Schriftgrößen ---------------------------------------------------- */
html[data-fs="s"] body { font-size: 16px; }
html[data-fs="l"] body { font-size: 21px; }
html[data-fs="l"] .site-nav a { font-size: 20px; }

/* ---------- OpenDyslexic ----------------------------------------------------- */
@font-face {
  font-family: 'OpenDyslexic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/OpenDyslexic-Regular.woff') format('woff');
}
@font-face {
  font-family: 'OpenDyslexic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/OpenDyslexic-Bold.woff') format('woff');
}
@font-face {
  font-family: 'OpenDyslexic';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/OpenDyslexic-Italic.woff') format('woff');
}
html[data-dys="1"] body,
html[data-dys="1"] h1, html[data-dys="1"] h2, html[data-dys="1"] h3,
html[data-dys="1"] h4, html[data-dys="1"] h5, html[data-dys="1"] h6,
html[data-dys="1"] input, html[data-dys="1"] select, html[data-dys="1"] button,
html[data-dys="1"] .site-nav a, html[data-dys="1"] .chip, html[data-dys="1"] .btn,
html[data-dys="1"] .hero__subtitle, html[data-dys="1"] .bento-kicker,
html[data-dys="1"] .quote__text, html[data-dys="1"] .article-meta,
html[data-dys="1"] .skill-tags li, html[data-dys="1"] .level-badge,
html[data-dys="1"] .wcag-number, html[data-dys="1"] .wcag-hint__text,
html[data-dys="1"] .level-filter, html[data-dys="1"] .pager__link {
  font-family: 'OpenDyslexic', var(--font-body);
}
html[data-dys="1"] .hero__title { letter-spacing: 0; font-size: clamp(40px, 6vw, 84px); }

/* ---------- Werkzeugleiste im Header ----------------------------------------- */
.a11y-tools { display: flex; align-items: center; gap: 10px; position: relative; }
.tool-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--heading);
  transition: border-color 0.2s;
}
.tool-btn:hover { border-color: var(--gold); }
.tool-btn svg { width: 22px; height: 22px; fill: currentColor; }
.tool-btn .icon-moon { display: none; }
html[data-theme="dark"] .tool-btn .icon-moon { display: block; }
html[data-theme="dark"] .tool-btn .icon-sun { display: none; }

.a11y-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  padding: 20px;
  z-index: 150;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel__title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin: 16px 0 8px;
}
.a11y-panel__title:first-child { margin-top: 0; }
.a11y-option {
  font-family: var(--font-head);
  font-size: 15px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-dark);
  cursor: pointer;
}
.a11y-option + .a11y-option { margin-top: 8px; }
.a11y-option[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
html[data-theme="dark"] .a11y-option[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1c1305; }
.a11y-fs { display: flex; gap: 8px; }
.a11y-fs .a11y-option { text-align: center; padding: 10px 0; }
.a11y-fs .a11y-option + .a11y-option { margin-top: 0; }

@media (max-width: 860px) {
  .a11y-tools { margin-right: 12px; }
  .a11y-panel { position: fixed; top: 76px; left: 16px; right: 16px; width: auto; }
}
