/* ednetz.de: rebuilt from the former Gamma page (colours and type taken from it). */
@font-face { font-family: 'Brygada 1918'; font-weight: 400; font-display: swap; src: url(fonts/brygada-1918-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Brygada 1918'; font-weight: 600; font-display: swap; src: url(fonts/brygada-1918-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Brygada 1918'; font-weight: 700; font-display: swap; src: url(fonts/brygada-1918-latin-700-normal.woff2) format('woff2'); }

:root {
  --cream: #f6ebd4;
  --sand: #efe0c2;
  --ink: #403011;
  --green: #626c3b;
  --olive: #83792e;
  --yellow: #e8af3b;
  --orange: #cc914d;
  --brown: #8d6348;
  /* lighter partners, used for the timeline connectors and tile borders */
  --green-2: #7b8554;
  --olive-2: #9c9247;
  --yellow-2: #ce9521;
  --orange-2: #b27733;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 'Brygada 1918', Georgia, serif; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .8em; }
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 23px; }
.h2-small { font-size: 32px; }
p { margin: 0 0 .9em; }
a { color: var(--green); font-weight: 700; }
.green { color: var(--green); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(1035px, 100% - 32px); margin-inline: auto; }
.wrap .narrow { width: min(1035px, 100% - 32px); }
.band { padding: 80px 0; }
.sand { background: var(--sand); }
.orange { background: var(--orange); }
.brown { background: var(--brown); color: #fff; }
.yellow { background: var(--yellow); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }

.top { padding-top: 10px; }
.top-logo img { width: 56px; background: #fff; }

/* Hero and Kooperationen: text left, image in the rounded shape right */
.hero, .split { display: grid; grid-template-columns: 1fr 450px; align-items: center; gap: 48px; padding: 24px 0 56px; }
.split { padding: 16px 0; }
.hero .narrow, .split .narrow { width: auto; margin: 0; padding-left: 63px; }
.hero-shape { aspect-ratio: 450 / 346; border-radius: 50% 20px 20px 50% / 70% 20px 20px 30%; background: var(--green); display: grid; place-items: center; overflow: hidden; position: relative; }
.hero-shape img { width: 80%; }
.blur { background: none; }
.blur::before { content: ""; position: absolute; inset: -20px; background: url(img/ednetz-karte.webp) center / cover; filter: blur(24px); }
.blur img { position: relative; width: 75%; border-radius: 8px; }

blockquote { margin: 0 0 1.2em; padding: 6px 0 6px 22px; border-left: 2px solid currentColor; }
blockquote h3 { margin: 0; }
.cols blockquote { border-color: var(--green); }

/* Evolution timeline: alternating left/right around a centre line */
.card { background: var(--cream); border-radius: 32px; padding: 48px 0; box-shadow: 0 4px 12px rgb(0 0 0 / .08); }
.timeline { list-style: none; counter-reset: v; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgb(0 0 0 / .08); }
.timeline li { counter-increment: v; position: relative; width: 50%; padding: 0 80px 32px 0; text-align: right; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 32px 80px; text-align: left; }
.timeline li::before { content: counter(v); position: absolute; top: -2px; right: -17px; width: 34px; height: 34px; border-radius: 50%; background: var(--dot); border: .5px solid var(--dot-2); color: #fff; font-size: 23px; font-weight: 600; line-height: 34px; text-align: center; z-index: 1; }
.timeline li:nth-child(even)::before { right: auto; left: -17px; }
.timeline li::after { content: ""; position: absolute; top: 15px; right: 17px; width: 46px; height: 2px; background: var(--dot-2); }
.timeline li:nth-child(even)::after { right: auto; left: 17px; }
.timeline h3 { font-size: 20px; font-weight: 400; margin-bottom: .3em; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.shots img { aspect-ratio: 1; object-fit: cover; object-position: center top; border-radius: 20px; width: 100%; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 0 24px; text-align: center; }
.stats dt { font-size: 52px; font-weight: 600; line-height: 1.2; }
.stats dd { margin: 0; }
.stats strong { display: block; font-size: 20px; font-weight: 600; margin: 8px 0; }

.collage { margin: 0 0 32px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--bg); border: .5px solid var(--line); color: #fff; border-radius: 20px; padding: 16px; }
.tile.dark { color: #000; }
.tile h3 { font-size: 20px; margin-bottom: .5em; }
.tile .hi { color: var(--hi); font-weight: 700; }

.culture { grid-template-columns: 1.6fr 1fr; }
.ring { margin: 0; display: grid; justify-items: center; text-align: center; position: relative; }
.ring svg { width: 240px; fill: none; stroke: var(--green); stroke-width: 1; }
.ring .arc { stroke-width: 6; stroke-dasharray: 3.5 400; transform: rotate(-91deg); transform-origin: center; }
.ring span { position: absolute; top: 96px; font-size: 40px; font-weight: 600; color: #000; }
.ring figcaption strong { display: block; font-size: 20px; font-weight: 600; margin-top: 16px; }

.note { border: 2px solid var(--line); border-left-width: 8px; border-radius: 8px 20px 20px 8px; padding: 18px 24px; }
.note h3 { font-size: 20px; margin-bottom: .5em; }
.note p { margin: 0; }
.team { margin: 18px 0 0; }
.team img { border-radius: 20px; }
.team figcaption { margin-top: 18px; }

.memorial { grid-template-columns: 1fr 1.4fr; align-items: start; }
.memorial img { border-radius: 20px; }

footer.band { padding: 40px 0 80px; }

/* Blocks fade in and rise 20px as they scroll into view, the rounded image shapes zoom in from 90 %,
   as on the former Gamma page. Only with JS (site.js sets .js on <html>); without it, or with reduced motion, everything just shows. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--delay, 0s); }
  .js .reveal.hero-shape { transform: scale(.9); }
  .js .reveal.shown { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .band { padding: 56px 0; }
  .cols, .culture, .memorial, .hero, .split, .tiles { grid-template-columns: 1fr; }
  .hero .narrow, .split .narrow { padding-left: 0; }
  .shots, .stats { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 17px; }
  .timeline li, .timeline li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 28px 64px; text-align: left; }
  .timeline li::before, .timeline li:nth-child(even)::before { left: 0; right: auto; }
  .timeline li::after { display: none; }
}
