/* ========================================================
   Mateeria Vergleichsseiten (/vergleich/ und /vergleich/...)
   Nur auf Vergleichsseiten eingebunden, nach redesign.css.
   Farben, Schriften, Radien und Schatten kommen aus den
   Variablen von styles.css und redesign.css; die wenigen
   eigenen Töne unten sind aus Navy und Muted Blue abgeleitet
   und haben je einen Wert für hell und dunkel.
   Bewegung nur bei prefers-reduced-motion: no-preference.
   ======================================================== */

html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html[data-variant] {
  --ed-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ed-hover: rgba(15, 44, 71, 0.035);
  --ed-edge: rgba(15, 44, 71, 0.14);
  --ed-tint: rgba(15, 44, 71, 0.04);
  --ed-accent: var(--brand-dark);
  --ed-i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  --ed-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --ed-i-voll: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1.5a6.5 6.5 0 1 0 0 13a6.5 6.5 0 1 0 0-13zM4.6 8.2l1.2-1.2 1.4 1.4 3.2-3.2 1.2 1.2-4.4 4.4z'/%3E%3C/svg%3E");
  --ed-i-halb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.75' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M8 2.25a5.75 5.75 0 0 0 0 11.5z'/%3E%3C/svg%3E");
  --ed-i-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.75' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}
html[data-variant][data-theme="dark"] {
  --ed-hover: rgba(255, 255, 255, 0.04);
  --ed-edge: rgba(0, 0, 0, 0.5);
  --ed-tint: rgba(111, 147, 180, 0.07);
  /* Muted Blue eine Stufe heller: kleine Schrift auf getönten Flächen bleibt über 4,5:1 */
  --ed-accent: #8AAAC7;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
/* Icons als Maske: Farbe kommt aus currentColor, passt in hell und dunkel */
:is(.wert, .vgl-karte li)::before,
.vgl-faq summary::after,
.vgl-stand details.quellen > summary::after { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }

/* ---------- Kopfbereich ---------- */
html[data-variant] section.vgl-hero {
  padding-top: clamp(36px, 5.5vw, 80px);
  padding-bottom: clamp(16px, 2.5vw, 32px);
}
html[data-variant] .vgl-hero .crumbs { flex-wrap: wrap; row-gap: 4px; margin-bottom: 22px; color: var(--ink-60); }
html[data-variant] .vgl-hero .crumbs a { color: var(--ink-80); text-underline-offset: 3px; border-radius: 4px; transition: color 160ms; }
html[data-variant] .vgl-hero .crumbs a:hover { color: var(--brand-dark); text-decoration: underline; }
html[data-variant] .vgl-hero .crumbs .sep { opacity: 1; color: var(--ink-25); }
.vgl-hero .vgl-eyebrow { display: block; margin-bottom: 14px; }
html[data-variant] .vgl-hero h1 {
  font-size: clamp(32px, 2.9vw + 20px, 60px);
  line-height: 1.05 !important;
  letter-spacing: -0.028em !important;
  max-width: 18em;
  margin-bottom: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}
@media (min-width: 900px) { html[data-variant] .vgl-hero h1 { letter-spacing: -0.036em !important; } }
@media (max-width: 599px) { html[data-variant] .vgl-hero h1 { text-wrap: pretty; } }
html[data-variant] .vgl-hero .lede {
  max-width: 60ch;
  margin-top: 22px;
  font-size: clamp(17px, 0.45vw + 15.4px, 20px);
  line-height: 1.58;
  color: var(--ink-60);
}

/* ---------- Abschnitte ---------- */
html[data-variant] section.vgl-section {
  padding-top: clamp(32px, 4.5vw, 64px);
  padding-bottom: clamp(32px, 4.5vw, 64px);
}
html[data-variant] .vgl-section h2 {
  font-size: clamp(27px, 1.4vw + 21px, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 24em;
  margin: 0 0 22px;
  overflow-wrap: break-word;
  text-wrap: balance;
}
@media (max-width: 599px) {
  html[data-variant] :is(.vgl-hero h1, .vgl-section h2, .vgl-card h2) { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  .vgl-card-meta { flex-direction: column; }
  .vgl-card-meta .sep { display: none; }
}
.vgl-intro,
.vgl-text {
  font-size: clamp(16px, 0.3vw + 15px, 18px);
  line-height: 1.68;
  color: var(--ink-80);
  max-width: 44rem;
  margin: 0 0 26px;
}
.vgl-label {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  color: var(--ed-accent);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  vertical-align: 2px;
}

/* ---------- Vergleichstabelle ----------
   Die Mateeria-Spalte trägt einen leichten Navy-Ton. Beim seitlichen
   Wischen zeigen weiche Schatten an der Kante, dass es weitergeht. */
.vgl-section .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  background:
    linear-gradient(to left, var(--surface) 30%, transparent) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, var(--ed-edge), transparent) right center / 12px 100% no-repeat scroll,
    var(--surface);
}
.vgl-section .table-wrap:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; }
.vgl-tabelle {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.56;
  color: var(--ink-80);
}
.vgl-tabelle caption { caption-side: top; text-align: left; padding: 16px 22px 14px; color: var(--ink-60); font-size: 13.5px; line-height: 1.5; }
.vgl-tabelle :is(th, td) { padding: 18px 22px; text-align: left; vertical-align: top; border-top: 1px solid var(--border-soft); }
.vgl-tabelle thead th {
  padding-top: 14px; padding-bottom: 14px;
  background-color: var(--surface-2);
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: 0;
  color: var(--ink-60);
  white-space: nowrap;
}
.vgl-tabelle thead th:nth-child(2) { color: var(--ink); }
.vgl-tabelle thead th:nth-child(3) { color: var(--ed-accent); }
.vgl-tabelle tbody th {
  width: 26%;
  font-family: var(--serif-text);
  font-size: 16px; font-weight: 600; line-height: 1.36; letter-spacing: -0.01em;
  color: var(--ink);
}
.vgl-tabelle :is(thead th, td):nth-child(3) { background-image: linear-gradient(var(--ed-tint), var(--ed-tint)); }
/* erste Spalte bleibt beim seitlichen Wischen stehen */
.vgl-tabelle :is(thead th, tbody th):first-child {
  position: sticky; left: 0; z-index: 1;
  background-color: var(--surface);
  box-shadow: 1px 0 0 var(--border-soft);
}
.vgl-tabelle thead th:first-child { background-color: var(--surface-2); }
.wert {
  display: flex; align-items: center; gap: 6px;
  width: max-content;
  margin-bottom: 8px;
  padding: 2px 10px 2px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600; line-height: 1.6; letter-spacing: 0.01em;
}
.wert::before { content: ""; width: 14px; height: 14px; flex: none; background-color: currentColor; }
.wert-ja { background: var(--navy-soft); color: var(--ed-accent); border-color: var(--navy-line); }
.wert-ja::before { -webkit-mask-image: var(--ed-i-voll); mask-image: var(--ed-i-voll); }
.wert-teil { background: var(--surface); color: var(--ink-80); border-color: var(--border-strong); }
.wert-teil::before { -webkit-mask-image: var(--ed-i-halb); mask-image: var(--ed-i-halb); }
.wert-nein { background: transparent; color: var(--ink-60); border-color: var(--border-strong); border-style: dashed; }
.wert-nein::before { -webkit-mask-image: var(--ed-i-ring); mask-image: var(--ed-i-ring); }

/* ---------- Gleiche Aufgabe, zwei Abläufe ---------- */
.vgl-schritte { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.vgl-spalte {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.vgl-spalte-mateeria {
  border-color: var(--navy-line);
  background: radial-gradient(120% 80% at 0% 0%, var(--navy-soft), transparent 65%), var(--surface);
  box-shadow: var(--shadow-md);
}
html[data-variant] :is(.vgl-spalte, .vgl-karte) h3 {
  font-size: clamp(20px, 0.6vw + 17.5px, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.vgl-spalte ol { list-style: none; counter-reset: schritt; margin: 0; padding: 0; }
.vgl-spalte li {
  counter-increment: schritt;
  position: relative;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px;
  padding-bottom: 18px;
  font-size: 15.5px; line-height: 1.56;
  color: var(--ink-80);
}
.vgl-spalte li:last-child { padding-bottom: 0; }
.vgl-spalte li::before {
  content: counter(schritt);
  position: relative; z-index: 1;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-60);
  font-size: 13px; font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vgl-spalte-mateeria li::before { color: var(--ed-accent); border-color: var(--navy-line); box-shadow: inset 0 0 0 14px var(--navy-soft); }
/* feine Linie verbindet die Schritte */
.vgl-spalte li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--border); }

/* Echter Pin als Beispiel */
.vgl-pin {
  margin: 20px 0 0;
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 22px; align-items: center;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: radial-gradient(90% 120% at 0% 50%, var(--navy-soft), transparent 60%), var(--surface);
}
.vgl-pin picture { display: block; width: 100%; max-width: 220px; }
.vgl-pin img {
  display: block; width: 100%; height: auto;
  border-radius: 14px;
  background: var(--bg-warm);
  box-shadow: var(--shadow-lg);
  outline: 1px solid var(--border-soft); outline-offset: -1px;
}
.vgl-pin figcaption { display: grid; gap: 10px; align-content: start; min-width: 0; max-width: 40rem; font-size: 15.5px; line-height: 1.62; color: var(--ink-80); }
.vgl-pin figcaption .vgl-label { justify-self: start; margin: 0; }
.vgl-pin figcaption strong { font-family: var(--serif-text); font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.014em; color: var(--ink); }
.vgl-pin figcaption .text-link { justify-self: start; }

/* ---------- Wann passt was ---------- */
.vgl-passt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.vgl-karte {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.vgl-karte-mateeria {
  border-color: var(--navy-line);
  background: radial-gradient(120% 90% at 100% 0%, var(--navy-soft), transparent 65%), var(--surface);
  box-shadow: var(--shadow-md);
}
.vgl-karte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vgl-karte li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.55; color: var(--ink-80); }
.vgl-karte li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 17px; height: 17px;
  background-color: var(--ink-60);
  -webkit-mask-image: var(--ed-i-check); mask-image: var(--ed-i-check);
}
.vgl-karte-mateeria li::before { background-color: var(--brand-dark); }
html[data-variant] .vgl-zusammen {
  font-size: clamp(20px, 0.6vw + 17.5px, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 40px 0 10px;
}

/* ---------- Häufige Fragen: eine ruhige Liste mit Trennlinien ---------- */
.vgl-faq {
  max-width: 52rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}
.vgl-faq details + details { border-top: 1px solid var(--border); }
.vgl-faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-family: var(--serif-text);
  font-size: 17px; font-weight: 600; line-height: 1.42; letter-spacing: -0.012em;
  color: var(--ink);
  transition: background-color 160ms;
}
.vgl-faq summary::-webkit-details-marker { display: none; }
.vgl-faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 0.1em;
  background-color: var(--ink-60);
  -webkit-mask-image: var(--ed-i-chev); mask-image: var(--ed-i-chev);
  transition: transform 280ms var(--ed-ease);
}
.vgl-faq details[open] > summary::after { transform: rotate(180deg); }
.vgl-faq summary:hover { background: var(--ed-hover); }
.vgl-faq summary:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: -3px; border-radius: 6px; }
.vgl-faq details p { margin: 0; padding: 0 22px 20px; max-width: 46rem; color: var(--ink-80); font-size: 15.5px; line-height: 1.66; }
@media (prefers-reduced-motion: no-preference) {
  .vgl-faq, .vgl-stand { interpolate-size: allow-keywords; }
  :is(.vgl-faq, .vgl-stand) details::details-content { height: 0; overflow: clip; transition: height 300ms var(--ed-ease), content-visibility 300ms allow-discrete; }
  :is(.vgl-faq, .vgl-stand) details[open]::details-content { height: auto; }
}

/* ---------- Stand, Offenlegung, Quellen ---------- */
.vgl-stand {
  max-width: 52rem;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-60);
}
.vgl-stand > p { margin: 0; }
.vgl-stand details.quellen { margin-top: 14px; }
.vgl-stand details.quellen > summary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 0;
  border-radius: 8px;
  list-style: none; cursor: pointer;
  font-weight: 600;
  color: var(--ink-60);
  transition: color 160ms;
}
.vgl-stand details.quellen > summary::-webkit-details-marker { display: none; }
.vgl-stand details.quellen > summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background-color: currentColor;
  -webkit-mask-image: var(--ed-i-chev); mask-image: var(--ed-i-chev);
  transition: transform 280ms var(--ed-ease);
}
.vgl-stand details.quellen[open] > summary::after { transform: rotate(180deg); }
.vgl-stand details.quellen > summary:hover { color: var(--ink); }
.vgl-stand details.quellen > summary:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.vgl-stand details.quellen[open] > summary { margin-bottom: 10px; }
.vgl-stand details.quellen ol { margin: 0; padding-left: 1.3em; }
.vgl-stand details.quellen li { overflow-wrap: anywhere; }
.vgl-stand details.quellen li + li { margin-top: 0.4em; }
.vgl-stand details.quellen a { color: var(--ink-60); text-decoration: underline; text-underline-offset: 3px; }
.vgl-stand details.quellen a:hover { color: var(--brand-dark); }

/* ---------- Abschluss-Kasten ---------- */
html[data-variant] section.vgl-section-cta {
  padding-top: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(8px, 2vw, 24px);
}
html[data-variant] .vgl-section-cta .page-cta {
  margin-top: 0;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px);
  border-radius: 32px;
  border: 1px solid var(--border);
  background: radial-gradient(90% 130% at 50% 0%, var(--navy-soft), transparent 70%), var(--surface);
  box-shadow: var(--shadow-sm);
}
html[data-variant] .vgl-section-cta .page-cta h2 {
  font-size: clamp(26px, 2vw + 18px, 42px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  max-width: 22ch;
  margin-left: auto; margin-right: auto; margin-bottom: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}
html[data-variant] .vgl-section-cta .page-cta p { max-width: 52ch; margin: 16px auto 28px; font-size: clamp(16px, 0.3vw + 15px, 18px); line-height: 1.6; }
.vgl-section-cta .page-cta .btns .btn { white-space: normal; text-align: center; justify-content: center; }

/* ---------- Übersicht /vergleich/: Karten ----------
   Neue Vergleiche kommen als weitere article.vgl-card dazu. Die erste Karte
   steht groß (ab 1100 px quer mit Foto links), alle weiteren im Raster darunter.
   Bildfläche: Foto vom Arbeitsplatz mit leerer Vorlage im Editor, davor
   gestaffelt echte Entwürfe aus Mateeria. Maße in Container-Einheiten,
   damit die Komposition auf jeder Kartengröße gleich aussieht.
   Der Titel bleibt ohne Unterstreichung, Rückmeldung geben Schatten,
   Anheben und der Pfeil. */
.vgl-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
.vgl-card {
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 420ms var(--ed-ease), box-shadow 420ms var(--ed-ease), border-color 300ms;
}
.vgl-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-warm); overflow: hidden; container-type: size; }
.vgl-komp-foto, .vgl-komp-foto img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.vgl-komp-foto img { object-fit: cover; object-position: 30% 50%; transition: transform 900ms var(--ed-ease); }
/* Stapel aus drei echten Ergebnissen: hinten links oben, vorne rechts unten */
.vgl-komp-stapel { position: absolute; right: 5cqw; bottom: 8cqh; width: 58cqh; height: 68cqh; margin: 0; }
.vgl-komp-karte { position: absolute; height: 54cqh; margin: 0; transition: transform 520ms var(--ed-ease); }
.vgl-komp-karte:nth-child(1) { top: 0; right: 22cqh; }
.vgl-komp-karte:nth-child(2) { top: 7cqh; right: 11cqh; }
.vgl-komp-karte:nth-child(3) { top: 14cqh; right: 0; }
.vgl-komp-karte picture, .vgl-komp-karte img { display: block; height: 100%; width: auto; }
.vgl-komp-karte img {
  border-radius: clamp(6px, 2.4cqh, 12px);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 44, 71, 0.10), 0 18px 36px -14px rgba(15, 44, 71, 0.45);
  outline: 1px solid rgba(255, 255, 255, 0.55); outline-offset: -1px;
}
/* Etiketten als ruhiges Glas über dem Foto */
.vgl-komp-chip {
  position: absolute;
  z-index: 2;
  padding: 0.42em 0.85em;
  border-radius: 999px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(11px, 3.2cqh, 13px); font-weight: 600; line-height: 1.2; letter-spacing: 0;
  white-space: nowrap;
}
.vgl-komp-chip-leer { left: 8cqw; top: 15cqh; }
.vgl-komp-chip-voll { right: 0; bottom: calc(100% + 2.4cqh); color: var(--ed-accent); }
.vgl-card-body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-width: 0; padding: clamp(22px, 2.6vw, 32px); }
.vgl-card-kicker { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.4; letter-spacing: -0.005em; color: var(--brand-dark); }
html[data-variant] .vgl-card h2 { font-size: clamp(24px, 0.9vw + 19px, 30px); line-height: 1.12; letter-spacing: -0.028em; margin: 0; text-wrap: balance; }
html[data-variant] .vgl-card h2 a { color: inherit; text-decoration: none; }
.vgl-card-text { margin: 0; max-width: 52ch; font-size: 15.5px; line-height: 1.62; color: var(--ink-60); }
.vgl-card-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.vgl-card-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; font-size: 13.5px; color: var(--ink-60); font-variant-numeric: tabular-nums; }
.vgl-card-meta .sep { color: var(--ink-25); }
.vgl-card-more { display: inline-flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; color: var(--brand-dark); text-decoration: none; border-radius: 999px; }
.vgl-card-more::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.vgl-card-more .arrow {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: background-color 220ms, border-color 220ms, color 220ms, transform 260ms var(--ed-ease);
}
.vgl-card a:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; }
@supports selector(:has(a)) {
  .vgl-card:has(a:focus-visible) { outline: 2px solid var(--brand-dark); outline-offset: 4px; }
  .vgl-card a:focus-visible { outline: none; }
}
@media (hover: hover) {
  .vgl-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
  .vgl-card:hover .vgl-card-more .arrow { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--surface); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .vgl-card:hover { transform: translateY(-3px); }
  .vgl-card:hover .vgl-komp-foto img { transform: scale(1.02); }
  .vgl-card:hover .vgl-komp-karte:nth-child(2) { transform: translateY(-1.5cqh); }
  .vgl-card:hover .vgl-komp-karte:nth-child(3) { transform: translateY(-3cqh); }
  .vgl-card:hover .vgl-card-more .arrow { transform: translateX(2px); }
}
@media (prefers-reduced-motion: no-preference) {
  .vgl-card:active { transform: translateY(-1px) scale(0.995); transition-duration: 120ms; }
}
.vgl-fuss { max-width: 60ch; margin: 28px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-60); }

/* ---------- Handy: Tabelle als Karten, nichts abgeschnitten ----------
   Je Aufgabe eine Karte, darunter Canva und Mateeria mit eigener Beschriftung
   (data-label). Die Rollen im HTML halten die Tabellen-Semantik. */
@media (max-width: 599px) {
  .vgl-section .table-wrap { overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .vgl-tabelle { min-width: 0; display: block; font-size: 15px; }
  .vgl-tabelle caption { display: block; padding: 0 2px 14px; }
  .vgl-tabelle thead { display: none; }
  .vgl-tabelle tbody { display: grid; gap: 12px; }
  .vgl-tabelle tr {
    display: grid; grid-template-columns: minmax(0, 1fr);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .vgl-tabelle :is(th, td) { border-top: 0; }
  .vgl-tabelle tbody th,
  .vgl-tabelle :is(thead th, tbody th):first-child {
    width: auto; position: static; box-shadow: none;
    background-color: transparent;
    padding: 16px 18px 12px;
    font-size: 17px;
  }
  /* Beschriftung und Wert in einer Zeile, der Text darunter */
  .vgl-tabelle td {
    display: flex; flex-wrap: wrap; align-items: center;
    column-gap: 8px; row-gap: 6px;
    min-width: 0;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--border-soft);
    overflow-wrap: break-word;
    hyphens: auto; -webkit-hyphens: auto;
  }
  .vgl-tabelle td::before {
    content: attr(data-label);
    order: -2;
    font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ink-60);
  }
  .vgl-tabelle td:nth-child(3)::before { color: var(--ed-accent); }
  .vgl-tabelle td .wert { order: -1; margin: 0; }
  .vgl-tabelle td::after { content: ""; order: -1; flex-basis: 100%; height: 0; }
}

/* ---------- Breitere Bildschirme ---------- */
@media (min-width: 640px) {
  .vgl-pin { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (min-width: 760px) {
  .vgl-schritte, .vgl-passt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vgl-pin { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
  .vgl-pin picture { max-width: 240px; }
  .vgl-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgl-liste > .vgl-card:first-child { grid-column: 1 / -1; }
  .vgl-liste > .vgl-card:first-child .vgl-card-media { aspect-ratio: 16 / 9; }
  .vgl-liste > .vgl-card:first-child .vgl-card-body { padding: clamp(26px, 3.6vw, 40px); }
  html[data-variant] .vgl-liste > .vgl-card:first-child h2 { font-size: clamp(28px, 1.6vw + 17px, 40px); line-height: 1.08; letter-spacing: -0.032em; }
  .vgl-liste > .vgl-card:first-child .vgl-card-text { font-size: clamp(16px, 0.3vw + 14.5px, 17.5px); }
  .vgl-liste > .vgl-card:first-child .vgl-card-foot { margin-top: 18px; }
}
@media (min-width: 1100px) {
  .vgl-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vgl-liste > .vgl-card:first-child { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 460px; }
  /* Das Hochformat-Foto bestimmt die Höhe nicht mit: es füllt die Fläche, die der Text vorgibt */
  .vgl-liste > .vgl-card:first-child .vgl-card-media { aspect-ratio: auto; min-height: 0; }
  .vgl-liste > .vgl-card:first-child .vgl-card-body { justify-content: center; gap: 14px; padding: clamp(36px, 3.8vw, 56px); }
  .vgl-liste > .vgl-card:first-child .vgl-card-foot { margin-top: 26px; }
}

/* ---------- Weniger Bewegung: nur Farbe und Deckkraft ändern sich ---------- */
@media (prefers-reduced-motion: reduce) {
  :is(.vgl-card, .vgl-komp-foto img, .vgl-komp-karte, .vgl-card-more .arrow, .vgl-faq summary::after, .vgl-stand details.quellen > summary::after) { transition: none; }
}

/* ---------- Mehr Kontrast, erzwungene Farben ---------- */
@media (prefers-reduced-transparency: reduce) {
  .vgl-komp-chip { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :is(.vgl-card, .vgl-spalte, .vgl-karte, .vgl-pin, .vgl-faq, .vgl-section .table-wrap, .vgl-tabelle tr) { border-color: var(--ink-60); }
}
@media (forced-colors: active) {
  :is(.wert, .vgl-karte li)::before,
  .vgl-faq summary::after,
  .vgl-stand details.quellen > summary::after { background-color: CanvasText; forced-color-adjust: none; }
}
