:root {
  --paper: #e6e4dc;
  --ink: #111;
  --muted: #777772;
  --line: #111;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}

a:hover {
  border-color: var(--ink);
}

/* ==========================================================================
   1. MOBILE-FIRST BASIS (Smartphones & kleine Bildschirme)
   ========================================================================== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Topbar / Header */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 75px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-bottom: none !important;
}

.home-link img {
  height: 48px;
  width: auto;
  display: block;
}

/* Mittleren Deskriptor auf dem Handy ausblenden */
.topbar > div:nth-child(2) {
  display: none;
}

.topbar > div:nth-child(3) {
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
}

/* Hero Section (Index) */
.hero {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Vertikale Textleisten auf dem Smartphone verstecken */
.hero-left, .hero-right, .side, .right {
  display: none;
}

.hero-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  border-bottom: 1px solid var(--line);
  flex-grow: 1;
}

.logo-frame {
  width: 100%;
  max-width: 380px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-frame::before {
  content: "KDP / 001";
  position: absolute;
  top: -24px;
  left: 0;
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--muted);
}

.logo-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Bottom Grid (Index) */
.bottom {
  display: flex;
  flex-direction: column;
}

.cell {
  padding: 24px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.cell:last-child {
  border-bottom: 0;
}

.label {
  display: block;
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.coordinates {
  font-size: 16px;
  letter-spacing: .08em;
  line-height: 1.4;
}

.cell-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 18px;
}

.center-link {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.quote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
}

.footnote-crest {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 38px;
  opacity: 0.15;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Members Content */
.content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.list {
  padding: 45px 20px;
}

.kicker {
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  margin: 0 0 40px;
}

.member {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  align-items: baseline;
}

.member:last-child {
  border-bottom: 1px solid var(--line);
}

.number {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
}

.name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
}

.role {
  grid-column: 2;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* Members Footer */
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 0 16px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

footer div:nth-child(2) {
  display: none; /* Auf Handys ausgeblendet, dafür Topbar-Link */
}

.footer-crest {
  height: 34px;
  opacity: 0.3;
  mix-blend-mode: multiply;
}


/* ==========================================================================
   2. DESKTOP / TABLET EXPANSION (Ab 801px Bildschirmen)
   ========================================================================== */

@media (min-width: 801px) {
  
  /* Desktop 3-Spalten-Raster */
  .page {
    display: grid;
    grid-template-columns: 26% 52% 22%;
    grid-template-rows: 90px minmax(650px, calc(100vh - 330px)) 240px;
  }

  .page-members {
    grid-template-rows: 90px 1fr 90px;
  }

  .topbar, .hero, .bottom, .content, footer {
    display: grid;
    grid-template-columns: 26% 52% 22%;
    grid-column: 1 / -1;
    padding: 0;
    min-height: auto;
  }

  .topbar {
    grid-row: 1;
  }

  .topbar > div {
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-size: 11px;
    letter-spacing: .25em;
    white-space: nowrap;
  }

  .home-link img {
    height: 62px;
  }

  .topbar > div:nth-child(2) {
    display: flex;
    justify-content: center;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .topbar > div:nth-child(3) {
    display: flex;
    justify-content: flex-end;
  }

  /* Desktop Hero */
  .hero {
    grid-row: 2;
  }

  .hero-left, .hero-main, .hero-right {
    display: flex;
    min-width: 0;
    min-height: 0;
    position: relative;
  }

  .hero-left {
    border-right: 1px solid var(--line);
    padding: 22px 15px;
  }

  .index-label {
    font-size: 10px;
    letter-spacing: .25em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--muted);
  }

  .hero-main {
    border-bottom: 0;
    padding: 35px;
  }

  .logo-frame {
    max-width: 560px;
    width: min(560px, 90%);
  }

  .logo-frame::before {
    top: -30px;
    font-size: 10px;
    letter-spacing: .3em;
  }

  .hero-right {
    padding: 22px 15px;
    border-left: 0;
    flex-direction: column;
    justify-content: space-between;
  }

  .classification {
    font-size: 11px;
    letter-spacing: .22em;
    line-height: 1.8;
    text-transform: uppercase;
  }

  .vertical-note {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 19px;
    line-height: 1.2;
    writing-mode: vertical-rl;
    align-self: flex-end;
    margin-bottom: 20px;
  }

  /* Desktop Bottom Grid */
  .bottom {
    grid-row: 3;
    border-top: 1px solid var(--line);
  }

  .cell {
    padding: 20px 15px;
    border-bottom: 0;
  }

  .cell:nth-child(1), .cell:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .cell-center {
    padding: 20px 15px;
  }

  .center-link {
    border-bottom: 1px solid transparent;
  }

  .center-link:hover {
    border-color: var(--ink);
  }

  .quote {
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.16;
    max-width: 530px;
  }

  .footnote-crest {
    bottom: 20px;
    right: 20px;
    width: 45px;
  }

  /* Desktop Members */
  .side {
    display: block;
    border-right: 1px solid var(--line);
    padding: 22px 15px;
    font-size: 8px;
    letter-spacing: .25em;
    color: var(--muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .list {
    padding: 90px 8%;
  }

  .kicker {
    font-size: 10px;
    letter-spacing: .28em;
    margin-bottom: 38px;
  }

  h1 {
    font-size: clamp(48px, 6.25vw, 90px);
    margin: 0 0 70px;
  }

  .member {
    grid-template-columns: 90px 1fr 130px;
    padding: 20px 0;
    gap: 0;
  }

  .name {
    font-size: 25px;
  }

  .role {
    grid-column: auto;
    font-size: 10px;
    letter-spacing: .22em;
    margin-top: 0;
  }

  .right {
    display: flex;
    border-left: 0;
    padding: 22px 15px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
  }

  /* Desktop Footer */
  footer div {
    padding: 0 15px;
    display: flex;
    align-items: center;
  }

  footer div:nth-child(2) {
    display: flex;
    justify-content: center;
  }

  footer div:nth-child(3) {
    display: flex;
    justify-content: flex-end;
  }

  .footer-crest {
    height: 40px;
  }
}