/*
 * CMAAG – Geschichte-Erweiterung
 * Diese Datei NACH cmaag.css laden.
 */

.cma-history-hero {
  position: relative;
  min-height: clamp(29rem, 54vw, 41rem);
  overflow: hidden;
  color: var(--cma-white);
  background:
    linear-gradient(90deg, rgba(12,13,16,.92) 0%, rgba(12,13,16,.61) 48%, rgba(12,13,16,.14) 100%),
    url("../images/geschichte/history-hero.jpg") center / cover,
    var(--cma-ink);
}

.cma-history-hero .cma-wrap {
  display: grid;
  align-content: center;
  min-height: inherit;
  padding-block: 4.8rem;
}

.cma-history-hero .cma-eyebrow { color: #ff7982; }

.cma-history-hero h1 {
  max-width: 50rem;
  margin: 0;
  font-size: clamp(2.75rem, 5.7vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.cma-history-hero h1 strong { color: #f33b49; }

.cma-history-hero p:not(.cma-eyebrow) {
  max-width: 39rem;
  margin: 1.2rem 0 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.cma-history-intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(21rem, 1.05fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}

.cma-history-image {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  border-radius: var(--cma-radius);
  background:
    linear-gradient(0deg, rgba(15,16,18,.45), rgba(15,16,18,.02)),
    url("../images/geschichte/history-start.jpg") center / cover,
    #2b2d32;
  box-shadow: var(--cma-shadow);
}

.cma-history-image-label {
  position: absolute;
  right: 1.35rem;
  bottom: 1.35rem;
  left: 1.35rem;
  padding: .95rem 1.05rem;
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  border-left: 3px solid #f33b49;
  background: rgba(15,16,18,.7);
  backdrop-filter: blur(8px);
}

.cma-history-intro-copy h2 {
  max-width: 36rem;
  margin: 0;
  color: var(--cma-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -.046em;
}

.cma-history-intro-copy > p:not(.cma-eyebrow) {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  color: var(--cma-steel);
}

.cma-history-mark {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1.7rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--cma-line);
}

.cma-history-mark-year {
  color: var(--cma-red);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
}

.cma-history-mark p {
  margin: 0;
  color: var(--cma-steel);
  font-size: .92rem;
}

.cma-history-timeline {
  position: relative;
  max-width: 58rem;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.cma-history-timeline::before {
  position: absolute;
  top: .75rem;
  bottom: .75rem;
  left: 6.1rem;
  width: 1px;
  content: "";
  background: #dfe1e4;
}

.cma-history-entry {
  position: relative;
  display: grid;
  grid-template-columns: 4.7rem 1.4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 2.2rem;
}

.cma-history-entry:last-child { padding-bottom: 0; }

.cma-history-year {
  padding-top: .48rem;
  color: #777a80;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: right;
}

.cma-history-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: .32rem;
  border: 4px solid var(--cma-white);
  border-radius: 99px;
  background: var(--cma-red);
  box-shadow: 0 0 0 1px #dfe1e4;
}

.cma-history-entry-card {
  padding: 1.35rem 1.45rem 1.45rem;
  border: 1px solid rgba(27,28,31,.08);
  border-radius: .75rem;
  background: var(--cma-white);
  box-shadow: 0 10px 23px rgba(17,18,21,.05);
}

.cma-history-entry-card h3 {
  margin: 0;
  color: var(--cma-ink);
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -.028em;
}

.cma-history-entry-card p {
  margin: .58rem 0 0;
  color: var(--cma-steel);
}

.cma-history-entry-card small {
  display: block;
  margin-top: .9rem;
  color: #7e8187;
  font-size: .76rem;
  line-height: 1.35;
}

.cma-history-gallery {
  display: grid;
  grid-template-columns: 1.28fr .86fr .86fr;
  grid-template-rows: repeat(2, minmax(10rem, 1fr));
  gap: .85rem;
  min-height: 31rem;
}

.cma-history-gallery-item {
  position: relative;
  min-height: 10rem;
  overflow: hidden;
  color: var(--cma-white);
  border-radius: .7rem;
  background:
    linear-gradient(0deg, rgba(14,15,18,.68), rgba(14,15,18,.08)),
    var(--history-image) center / cover,
    linear-gradient(135deg, #565a61, #26282d);
  box-shadow: 0 10px 24px rgba(17,18,21,.08);
}

.cma-history-gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255,255,255,.12);
  border-radius: inherit;
}

.cma-history-gallery-item--main { grid-row: 1 / -1; }

.cma-history-gallery-caption {
  position: absolute;
  right: .9rem;
  bottom: .8rem;
  left: .9rem;
  z-index: 1;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

.cma-history-gallery-caption span {
  display: block;
  margin-top: .15rem;
  color: rgba(255,255,255,.72);
  font-size: .71rem;
  font-weight: 400;
}

.cma-history-today {
  overflow: hidden;
  color: var(--cma-white);
  border-radius: var(--cma-radius);
  background:
    linear-gradient(112deg, rgba(23,24,28,.97), rgba(41,43,48,.95)),
    var(--cma-ink);
  box-shadow: var(--cma-shadow);
}

.cma-history-today .cma-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .78fr);
  gap: 2rem 4rem;
  align-items: center;
  padding-block: clamp(2.8rem, 5vw, 4.6rem);
}

.cma-history-today .cma-eyebrow { color: #ff7881; }

.cma-history-today h2 {
  max-width: 44rem;
  margin: 0;
  font-size: clamp(1.9rem, 3.9vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.cma-history-today p:not(.cma-eyebrow) {
  max-width: 42rem;
  margin: .95rem 0 0;
  color: rgba(255,255,255,.78);
}

.cma-history-today-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.cma-history-today-list li {
  padding: .75rem 0;
  color: rgba(255,255,255,.83);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.cma-history-today-list li:last-child { border-bottom: 0; }

.cma-history-today-list strong {
  display: block;
  color: var(--cma-white);
  font-size: .86rem;
}

.cma-history-today-list span {
  display: block;
  margin-top: .15rem;
  font-size: .84rem;
}

@media (max-width: 820px) {
  .cma-history-intro,
  .cma-history-today .cma-wrap { grid-template-columns: 1fr; }

  .cma-history-image { min-height: 23rem; }
}

@media (max-width: 640px) {
  .cma-history-hero { min-height: 32rem; }
  .cma-history-timeline::before { left: 3.05rem; }

  .cma-history-entry {
    grid-template-columns: 2rem 1.15rem minmax(0, 1fr);
    gap: .75rem;
  }

  .cma-history-year {
    padding-top: .45rem;
    font-size: .78rem;
    transform: rotate(-90deg) translateX(-1.8rem);
    transform-origin: top right;
  }

  .cma-history-dot {
    width: 1.15rem;
    height: 1.15rem;
    border-width: 3px;
  }

  .cma-history-entry-card { padding: 1.1rem 1.15rem 1.2rem; }

  .cma-history-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 15rem 10rem;
    min-height: auto;
  }

  .cma-history-gallery-item--main {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
