:root {
  --color-gold: #eb9f40;
  --color-clay: #ba4c11;
  --color-earth: #641c0b;
  --color-ink: #2b2b2b;
  --color-cream: #fff7ea;
  --color-sand: #f2e7d8;
  --color-leaf: #3f7d4a;
  --color-deep-green: #164734;
  --color-mist: #e8eceb;
  --color-white: #ffffff;
  --color-charcoal: #151515;
  --shadow-soft: 0 20px 70px rgba(43, 43, 43, 0.12);
  --max-width: 1180px;
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-cream);
  font-family:
    "Schibsted Grotesk",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

body::selection {
  color: var(--color-white);
  background: var(--color-earth);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--color-white);
  background: var(--color-earth);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem clamp(1.25rem, 3vw, 3rem);
  color: var(--color-white);
  background: linear-gradient(180deg, rgba(12, 13, 11, 0.82), rgba(12, 13, 11, 0.2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.6rem);
  font-size: 0.9rem;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--color-gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
}

.nav-toggle__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 220ms ease, opacity 180ms ease, top 220ms ease, bottom 220ms ease;
}

.nav-toggle__bar:nth-child(1) { top: 14px; }
.nav-toggle__bar:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle__bar:nth-child(3) { bottom: 14px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  bottom: calc(50% - 1px);
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-charcoal);
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("/assets/img/roger-hero.jpg");
  background-position: 40% center;
  background-size: cover;
  transform: translateX(clamp(40px, 14vw, 220px)) scale(1.01);
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 1) 0%, rgba(16, 16, 16, 1) 16%, rgba(16, 16, 16, 0.86) 24%, rgba(16, 16, 16, 0.68) 42%, rgba(16, 16, 16, 0.14) 76%),
    linear-gradient(0deg, rgba(12, 12, 12, 0.68) 0%, rgba(12, 12, 12, 0) 38%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 0 clamp(4rem, 9vh, 7rem) clamp(1.25rem, 8vw, 7rem);
}

.hero h1 {
  overflow-wrap: normal;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--color-clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section--dark .eyebrow {
  color: var(--color-gold);
}

p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 11vw, 8.8rem);
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.25rem, 5vw, 5.1rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.hero__lead {
  max-width: 650px;
  margin: 1.4rem 0 0;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.35;
}

.hero__actions,
.contact__actions,
.resource-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--color-white);
  background: var(--color-clay);
}

.button--primary:hover {
  background: var(--color-earth);
}

.button--ghost {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.06);
}

.button--ghost:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.14);
}

.button--secondary {
  color: var(--color-earth);
  background: var(--color-gold);
}

.button--secondary:hover {
  background: #f4b762;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-earth);
  font-weight: 900;
  text-underline-offset: 0.24em;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--color-white);
}

.section--cream {
  background: var(--color-cream);
}

.section--dark {
  color: var(--color-white);
  background:
    radial-gradient(circle at top right, rgba(235, 159, 64, 0.2), transparent 34rem),
    linear-gradient(135deg, var(--color-deep-green), #111f1a 70%);
}

.section__inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.section__heading {
  max-width: 780px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section__heading p,
.perma__text p,
.offers p,
.book p,
.about p,
.contact p {
  max-width: 710px;
}

.section__heading h2 + p,
.perma__text h2 + p,
.offers h2 + p,
.book h2 + p,
.about h2 + p,
.contact h2 + p {
  margin-top: 1.2rem;
}

.intro {
  background: var(--color-deep-green);
  color: var(--color-white);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.intro h2 {
  max-width: 11ch;
}

.intro__copy {
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

.intro__copy p:first-child {
  margin-top: 0;
}

.metaphor {
  background: var(--color-sand);
}

.metaphor__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.metaphor__copy h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  color: var(--color-earth);
}

.metaphor__copy h3 {
  margin: 2rem 0 0.6rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  color: var(--color-deep-green);
}

.metaphor__copy p {
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.65;
  margin: 1rem 0 0;
}

.metaphor__visual {
  margin: 0;
  display: flex;
  justify-content: center;
}

.metaphor__visual img {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 18px 35px rgba(100, 28, 11, 0.18));
}

.principles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.principle,
.audience__grid article,
.offer-list article {
  border-radius: var(--radius);
}

.principle {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  color: var(--color-ink);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.principle span {
  color: var(--color-leaf);
  font-size: 0.78rem;
  font-weight: 900;
}

.principle p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.perma {
  background: var(--color-mist);
}

.perma__grid,
.offers__grid,
.book__grid,
.about__grid,
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.offers__grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.perma__list {
  display: grid;
  gap: 0.9rem;
}

.perma__list div {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-left: 5px solid var(--color-gold);
  background: var(--color-white);
}

.perma__list strong {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-leaf);
  font-size: 1.35rem;
}

.audience {
  background: var(--color-white);
}

.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.audience__grid article {
  min-height: 260px;
  padding: 1.4rem;
  color: var(--color-white);
  background: var(--color-earth);
}

.audience__grid article:nth-child(2) {
  background: var(--color-clay);
}

.audience__grid article:nth-child(3) {
  background: var(--color-deep-green);
}

.audience__grid p {
  margin-bottom: 0;
}

.offer-list {
  display: grid;
  gap: 1rem;
}

.offer-list article {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.offer-list p {
  margin-bottom: 0;
}

.book {
  background: var(--color-sand);
}

.book__grid {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
}

.book__cover {
  display: flex;
  justify-content: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff 0%, #fff7ea 100%);
  box-shadow: var(--shadow-soft);
}

.book__cover img {
  max-height: 440px;
  object-fit: contain;
}

.about {
  background: var(--color-white);
}

.about__grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

figure {
  margin: 0;
}

.about figure,
.contact figure {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about img,
.contact img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.contact {
  background: var(--color-cream);
}

.contact__grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  color: var(--color-white);
  background: var(--color-charcoal);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer__top > div {
  display: grid;
  gap: 0.3rem;
}

.site-footer__colophon {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__colophon a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
}

.site-footer__colophon a:hover {
  color: var(--color-gold);
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-gold);
}

@media (max-width: 1050px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle:last-child {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .perma__grid,
  .offers__grid,
  .book__grid,
  .about__grid,
  .contact__grid,
  .intro__grid,
  .metaphor__grid,
  .audience__grid {
    grid-template-columns: 1fr;
  }

  .metaphor__visual {
    order: -1;
  }

  .metaphor__visual img {
    max-width: 180px;
  }

  .book__cover {
    max-width: 520px;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(12, 13, 11, 0.94);
    backdrop-filter: blur(8px);
  }

  .brand {
    max-width: 100%;
  }

  .brand span {
    max-width: 11ch;
    line-height: 1.1;
    overflow-wrap: normal;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.5rem;
    background: rgba(12, 13, 11, 0.96);
    backdrop-filter: blur(12px);
    transform: translateY(-110%);
    transition: transform 240ms ease;
    pointer-events: none;
    visibility: hidden;
    font-size: 1.05rem;
  }

  .main-nav[data-open="true"] {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .main-nav a {
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 96vh;
    align-items: end;
  }

  .hero__media {
    background-position: center center;
    transform: scale(1.01);
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(16, 16, 16, 0.86) 0%, rgba(16, 16, 16, 0.52) 62%, rgba(16, 16, 16, 0.18) 100%),
      linear-gradient(0deg, rgba(12, 12, 12, 0.72) 0%, rgba(12, 12, 12, 0.08) 56%);
  }

  .hero__content {
    width: calc(100% - 2rem);
    margin: 0 1rem 3.2rem;
  }

  h1 {
    max-width: 8.7ch;
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  h2 {
    max-width: 12ch;
    font-size: clamp(1.9rem, 8.8vw, 3rem);
    line-height: 1.08;
  }

  #offers-title {
    max-width: none;
  }

  .hero__lead {
    max-width: 27rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero .eyebrow {
    font-size: 0.7rem;
  }

  .hero__actions,
  .contact__actions,
  .resource-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .section {
    padding: clamp(3rem, 11vw, 4.5rem) clamp(1.25rem, 4vw, 1.5rem);
  }

  .site-footer nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .principles,
  .audience__grid {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle:last-child,
  .audience__grid article {
    grid-column: auto;
    min-height: auto;
  }

  .perma__list div {
    grid-template-columns: 2.8rem minmax(0, 1fr);
    padding: 0.85rem;
  }

  .perma__list strong {
    width: 2.8rem;
    height: 2.8rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: auto;
  }

  .principle:last-child {
    grid-column: auto;
  }
}

@media (max-width: 440px) {
  .brand img {
    width: 38px;
    height: 38px;
  }

  /* Hamburger-Drawer zeigt jetzt alle Links – früheres nth-child(2/4) display:none entfernt */

  .hero__media {
    background-position: center center;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

.legal {
  padding: calc(var(--header-height) + 4rem) 1.5rem 5rem;
  background: var(--color-cream);
}

.legal__inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal .eyebrow {
  margin-bottom: 0.5rem;
}

.legal h1,
.legal h2,
.legal h3 {
  max-width: none;
  hyphens: manual;
  overflow-wrap: break-word;
}

.legal h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 2.5rem;
  letter-spacing: -0.01em;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 2.75rem 0 0.75rem;
  color: var(--color-ink);
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 1.75rem 0 0.5rem;
  color: var(--color-ink);
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.legal ul li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--color-clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--color-earth);
}

.legal code {
  background: var(--color-sand);
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  font-size: 0.92em;
}

.legal__lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-ink);
  margin: 0 0 2.5rem;
}

.legal__back {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(43, 43, 43, 0.12);
}

/* ============================================================
   STYLEGUIDE PAGE (/styleguide)
   ============================================================ */

.sg {
  background: var(--color-white);
}

.sg__inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.sg__intro {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: var(--color-cream);
}

.sg__intro h1 {
  max-width: none;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.05;
  margin: 0.5rem 0 1.25rem;
}

.sg__lead {
  max-width: 640px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  margin: 0 0 2rem;
}

.sg__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.sg__toc a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(43, 43, 43, 0.18);
  border-radius: 999px;
  background: var(--color-white);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 180ms ease;
}

.sg__toc a:hover {
  border-color: var(--color-clay);
  color: var(--color-clay);
}

.sg__section {
  padding: 4rem 0;
  background: var(--color-white);
}

.sg__section--cream {
  background: var(--color-cream);
}

.sg__section--dark {
  color: var(--color-white);
  background: var(--color-charcoal);
}

.sg__section--dark .eyebrow {
  color: var(--color-gold);
}

.sg__section--dark code {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.sg__h2 {
  max-width: none;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  margin: 0.25rem 0 1.5rem;
  color: var(--color-ink);
}

.sg__section--dark .sg__h2 {
  color: var(--color-white);
}

.sg__h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--color-earth);
}

.sg__section--dark .sg__h3 {
  color: var(--color-gold);
}

.sg__copy {
  max-width: 640px;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

/* ---- Tokens / Swatches ---- */

.sg__swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.sg__swatch {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.5rem 1rem 1rem;
  border-radius: var(--radius);
  min-height: 130px;
  font-size: 0.82rem;
}

.sg__swatch strong {
  font-size: 1rem;
  font-weight: 900;
}

.sg__swatch span:nth-of-type(1) {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  opacity: 0.85;
}

.sg__swatch span:nth-of-type(2) {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  opacity: 0.7;
}

.sg__swatch--bordered {
  border: 1px solid rgba(43, 43, 43, 0.12);
}

/* ---- Tabelle ---- */

.sg__table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.92rem;
}

.sg__table thead th {
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-clay);
  border-bottom: 2px solid rgba(43, 43, 43, 0.15);
}

.sg__table tbody td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
  vertical-align: top;
}

.sg__table code {
  font-size: 0.85rem;
  background: var(--color-sand);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

.sg__section--dark .sg__table thead th {
  color: var(--color-gold);
  border-color: rgba(255, 255, 255, 0.25);
}

.sg__section--dark .sg__table tbody td {
  border-color: rgba(255, 255, 255, 0.1);
}

.sg__section--dark .sg__table code {
  background: rgba(255, 255, 255, 0.1);
}

/* ---- Shadow demo ---- */

.sg__shadow-demo {
  display: flex;
  padding: 3rem 0;
}

.sg__shadow-demo > div {
  padding: 2rem 2.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

/* ---- Typografie ---- */

.sg__type-stack {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.sg__type-row {
  padding: 1.25rem;
  border-left: 3px solid var(--color-gold);
  background: var(--color-white);
}

.sg__section--cream .sg__type-row {
  background: rgba(255, 255, 255, 0.55);
}

.sg__type-meta {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--color-earth);
}

.sg__type-meta code {
  background: var(--color-sand);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.85em;
}

.sg__type-h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.04;
  font-weight: 900;
}

.sg__type-h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  font-weight: 900;
  color: var(--color-ink);
}

.sg__type-h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
}

.sg__type-lead {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.35;
}

.sg__warning {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-clay);
  background: rgba(186, 76, 17, 0.08);
  font-size: 0.95rem;
  line-height: 1.55;
}

.sg__warning strong {
  color: var(--color-clay);
}

/* ---- Layout demo ---- */

.sg__layout-demo {
  margin: 1.5rem 0 2rem;
}

.sg__layout-canvas {
  padding: 1rem;
  border: 1px dashed rgba(43, 43, 43, 0.25);
  background: var(--color-cream);
}

.sg__layout-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid rgba(43, 43, 43, 0.1);
  text-align: center;
  font-weight: 700;
  color: var(--color-earth);
}

/* ---- Rhythm ---- */

.sg__rhythm {
  display: grid;
  gap: 4px;
  margin: 1.5rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.sg__rhythm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 800;
}

.sg__rhythm-row em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.85;
}

.sg__rhythm-row--dark {
  color: var(--color-white);
  background:
    radial-gradient(circle at top right, rgba(235, 159, 64, 0.2), transparent 16rem),
    linear-gradient(135deg, var(--color-deep-green), #111f1a 70%);
}

/* ---- Komponenten ---- */

.sg__component {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.25rem;
  align-items: start;
  margin: 1rem 0 2rem;
}

.sg__component-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid rgba(43, 43, 43, 0.1);
  border-radius: var(--radius);
}

.sg__component-demo--block {
  display: block;
}

.sg__component-demo--cream {
  background: var(--color-cream);
}

.sg__component-demo--mist {
  background: var(--color-mist);
}

.sg__component-demo--no-pad {
  padding: 0;
  overflow: hidden;
}

.sg__component-demo--dark {
  display: inline-flex;
  padding: 0.75rem 1rem;
  background: var(--color-charcoal);
  border-radius: var(--radius);
}

.sg__component-demo--dark .button--ghost {
  margin: 0;
}

.sg__code {
  margin: 0;
  padding: 1.25rem;
  background: #1a1d1c;
  color: #e8ecea;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
}

.sg__code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre;
}

/* ---- Do / Don't ---- */

.sg__rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.sg__rule {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-white);
  border-top: 4px solid var(--color-leaf);
}

.sg__rule--dont {
  border-top-color: var(--color-clay);
}

.sg__rule h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 900;
  color: var(--color-leaf);
}

.sg__rule--dont h3 {
  color: var(--color-clay);
}

.sg__rule ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.sg__rule li {
  margin-bottom: 0.4rem;
}

/* ---- Metaphor list ---- */

.sg__metaphor-list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.4rem;
  line-height: 1.7;
  max-width: 700px;
}

.sg__metaphor-list li {
  margin-bottom: 0.5rem;
}

.sg__bullets {
  margin: 1rem 0 1.5rem;
  padding-left: 1.4rem;
  line-height: 1.7;
  max-width: 720px;
}

.sg__bullets li {
  margin-bottom: 0.4rem;
}

/* ---- Don'ts list ---- */

.sg__donts {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
}

.sg__donts li {
  position: relative;
  padding: 0.6rem 0.6rem 0.6rem 2rem;
  border-left: 3px solid var(--color-gold);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  line-height: 1.5;
}

.sg__donts li::before {
  content: "✕";
  position: absolute;
  left: 0.6rem;
  color: var(--color-gold);
  font-weight: 900;
}

.sg__donts li code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9em;
}

/* ---- Mobile ---- */

@media (max-width: 880px) {
  .sg__component {
    grid-template-columns: 1fr;
  }

  .sg__rules {
    grid-template-columns: 1fr;
  }
}
