/* /webdesign/ und /seo/ (build_hubs.py): nur, was Basis und leistung.css nicht haben */

.hub-kopf {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: stretch;
}

.hub-chips {
  margin-top: 24px;
}

.hub-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.hub-person img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.hub-person strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* Studienzahlen im Einstieg */
.hub-studie {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--tint);
}

.hub-studie .leistung-bild {
  align-self: center;
}

.hub-studie-titel {
  color: var(--green-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.hub-studie-zahl {
  margin-top: 4px;
  color: var(--green);
  font-size: clamp(2.75rem, 2rem + 2.6vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.hub-studie > p:not(.hub-studie-titel):not(.hub-studie-zahl) {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.hub-studie dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid oklch(45% 0.08 165 / 0.18);
}

.hub-studie dt {
  order: 2;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.hub-studie dl > div {
  display: flex;
  flex-direction: column;
}

.hub-studie dd {
  order: 1;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Drei Tech-Varianten */
.variante {
  position: relative;
  display: flex;
  flex-direction: column;
}

.variante.ist-empfohlen {
  box-shadow: 0 0 0 2px var(--green), var(--shadow-card);
}

.karte > .variante-marke {
  margin: 0;
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green);
  color: oklch(99% 0 0);
  font-size: 0.8125rem;
  font-weight: 600;
}

.variante-bild {
  width: 88px;
  height: 88px;
  margin: -6px 0 10px -6px;
  object-fit: contain;
}

.variante .weg-zeile,
.karte .weg-zeile {
  color: var(--green-ink);
  font-size: 0.9375rem;
  font-weight: 550;
}

.karte .weg-zeile + h3 {
  margin-top: 4px;
}

.karte > .variante-preis {
  color: var(--ink);
  font-weight: 550;
}

.variante .haken-liste {
  margin-bottom: 20px;
}

.variante .text-link {
  margin-top: auto;
}

/* Hinweise unter Tabellen und Rastern */
.hub-hinweis {
  max-width: 72ch;
  margin: 20px auto 24px;
  color: var(--ink-2);
  text-align: center;
}

.hub-hinweis-oben {
  margin-top: 0;
}

.hub-bestand {
  margin-top: 16px;
  padding: clamp(24px, 3.5vw, 40px);
}

.hub-bestand h3 {
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
}

.hub-bestand p {
  color: var(--ink-2);
}

.hub-bestand .text-link {
  margin-top: 14px;
}

.hub-faustregel {
  margin-top: 16px;
}

.karte .strich-liste {
  margin-top: 10px;
}

.karte .haken-liste + .strich-liste {
  margin-top: 10px;
}

/* Warum / Freelancer: Text links, Gründe rechts */
.hub-warum .kopf-aktionen {
  margin-top: 24px;
}

.hub-absatz {
  margin-top: 14px;
  color: var(--ink-2);
}

.zwei-spalten > div > .hub-absatz:first-child {
  margin-top: 0;
}

.hub-gruende {
  display: grid;
  gap: 10px;
  margin: 0;
}

.hub-gruende > div {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--bg);
}

.hub-gruende dt {
  font-weight: 600;
}

.hub-gruende dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.hub-fall p {
  max-width: 72ch;
  color: var(--ink-2);
}

.hub-fall p + p {
  margin-top: 12px;
}

/* Studie als Band */
.hub-studie-band {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
  padding: clamp(24px, 4vw, 48px);
}

.hub-studie-band img {
  width: 96px;
  height: 96px;
}

.hub-studie-band-titel {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hub-studie-band p + p {
  margin-top: 12px;
  color: var(--ink-2);
}

.hub-studie-band .text-link {
  margin-top: 16px;
}

.hub-vertiefung {
  margin-top: 16px;
}

/* SEO in Zahlen */
.hub-zahlen {
  margin: 0;
}

.hub-zahlen dt {
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 550;
}

.hub-zahlen dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.hub-zahlen .hub-zahl {
  margin-top: 8px;
  color: var(--green);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hub-diese {
  box-shadow: 0 0 0 2px var(--green);
}

@media (max-width: 1080px) {
  .hub-kopf {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hub-studie-band {
    grid-template-columns: minmax(0, 1fr);
  }
  .hub-studie-band img {
    width: 72px;
    height: 72px;
  }
  .hub-studie dl {
    grid-template-columns: minmax(0, 1fr);
  }
}
