/* Fallstudie Genossenschaftsatlas (20.11.2026). Gerüst von smino (sm-*), Farben aus der Marke des
   Genossenschaftsatlas: Grün #0E8A5F, Tinte #0B2E22, Mint #B6F2D6, Koralle #FF8A5C, Weiss mit grünem Hauch.
   Grosser Moment: die Schweiz aus Punkten, der Scanner fährt darüber und jeder Wohnbauträger leuchtet auf,
   danach die Orte mit inserierten Wohnungen in Koralle. Ohne JavaScript steht das fertige Kartenbild da. */

.sm.ga {
  --sm-petrol: #0b7650;
  --sm-petrol-tief: #0b2e22;
  --sm-orange: #ff8a5c;
  --sm-orange-text: #b4461b;
  --sm-mint: #b6f2d6;
  --sm-mint-hell: #edf8f2;
  --sm-rosa: #ffd9c9;
  --sm-creme: #f5fbf7;
  --sm-text: #0b2e22;
  --sm-grau: #3e5c51;
  --sm-leise: #587266;
  --sm-linie: #e7efea;
}
.ga .sm-knopf--petrol:hover { box-shadow: 0 14px 30px -12px rgba(11, 118, 80, .55); }
.ga .sm-knopf--linie { box-shadow: inset 0 0 0 1.5px rgba(11, 118, 80, .4); }
.ga .sm-titelkarte__link { border-bottom-color: rgba(255, 138, 92, .55); }
.ga .sm-titelkarte__nutzen { margin-top: 1.4rem !important; max-width: 40rem; font-size: 1.05rem; line-height: 1.55; color: var(--sm-grau); }
.ga .sm-titelkarte__nutzen b { display: inline-block; margin-right: .5rem; padding: .2rem .55rem; border-radius: 6px; background: var(--sm-mint-hell); color: var(--sm-petrol); font: 700 .78rem/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; vertical-align: .1em; }
.ga .sm-baustein li:nth-child(3) { background: #fff2ec; }
.ga .sm-baustein li:nth-child(4) { background: var(--sm-mint-hell); }
.ga .sm-faelle li a:hover { box-shadow: inset 0 0 0 2px var(--sm-petrol); }
.ga .sm-faelle__alle { border-bottom-color: rgba(255, 138, 92, .55); }
.ga .sm-leiste a.is-hier { background: #0b7650; }
.ga .sm-leiste a:hover { color: #0b7650 !important; }
.ga .sm-zeit__liste::before { background: #d5e4db; }

/* Hero: echte Startseite im Browserrahmen statt Illustration */
.ga .sm-held__bild.ga-fenster { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 50px 110px -50px rgba(11, 46, 34, .55), 0 0 0 1px var(--sm-linie); }
.ga .ga-fenster .sm-browser__leiste { background: var(--sm-creme); }
.ga .ga-fenster img { mix-blend-mode: normal; }
.ga .ga-fenster figcaption { margin: 0; padding: .55rem 0 .7rem; background: #fff; }
.ga .sm-marke img { height: 24px; }

/* Grosse Bildschirmfotos */
.ga .ga-gross { margin: clamp(2.5rem, 5vw, 4rem) auto 0; max-width: 76rem; }
.ga .ga-gross img { display: block; width: 100%; height: auto; }
.ga .ga-gross--abstand { margin-top: clamp(3rem, 6vw, 5rem); }
.ga-verzeichnis, .ga-scanner { padding-bottom: clamp(5rem, 10vw, 8rem); }
.ga-scanner .sm-lead + .sm-lead { margin-top: 1rem !important; }
.ga .sm-mess li { background: var(--sm-mint-hell); }
.ga .sm-mess li:nth-child(2) { background: #fff2ec; }
.ga .sm-mess li:nth-child(2) b { color: var(--sm-orange-text); }

/* Wand: vier Seiten in zwei Spalten, Bilder im Fenster ganz sichtbar */
.ga .ga-wand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ga .ga-wand .sm-entwurf__fenster { height: auto; aspect-ratio: 1600 / 1000; }
.ga .ga-wand .sm-entwurf__fenster img { height: 100%; object-fit: cover; object-position: 50% 0; transform: none !important; animation: none !important; }
.ga-report__zahlen { padding-bottom: clamp(5rem, 10vw, 8rem); }
.ga-report { padding-bottom: 0; }

/* Der grosse Moment: die Karte ---------------------------------------------------------- */
.ga-karte { position: relative; background: #0b2e22; color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; scroll-margin-top: var(--nav-h, 74px); }
.ga-karte__kopf { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: clamp(1rem, 4vw, 4rem); align-items: end; }
.ga-karte__zahl { margin: 0; }
.ga-karte__zahl b { display: block; font: 600 clamp(3.2rem, 9vw, 7.5rem)/.9 var(--font-display); letter-spacing: -.05em; color: #b6f2d6; font-variant-numeric: tabular-nums; }
.ga-karte__zahl span { display: block; margin-top: .5rem; font: 600 clamp(1rem, 1.6vw, 1.25rem)/1.3 var(--font-display); color: rgba(255, 255, 255, .78); }
.ga-karte.is-akt2 .ga-karte__zahl b { color: #ff8a5c; }
.ga-karte__akte { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 34rem; justify-self: end; }
.ga-karte__akte li { padding-left: 1rem; border-left: 3px solid rgba(255, 255, 255, .18); }
.ga-karte__akte li:last-child { border-left-color: rgba(255, 138, 92, .7); }
.ga-karte__akte b { display: block; font: 600 clamp(1.05rem, 1.5vw, 1.3rem)/1.25 var(--font-display); }
.ga-karte__akte span { display: block; margin-top: .25rem; color: rgba(255, 255, 255, .72); line-height: 1.5; font-size: .98rem; }
.ga-karte__feld { position: relative; width: min(100% - 2 * var(--sm-pad), 76rem); margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; aspect-ratio: 1000 / 633; }
.ga-karte__bild { display: block; width: 100%; height: 100%; }
.ga-karte__feld canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.ga-karte__legende { width: min(100% - 2 * var(--sm-pad), 76rem); margin: 1rem auto 0 !important; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .88rem; color: #a9bdb4; }
.ga-punkt { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; }
.ga-punkt--gruen { background: #7ce2b0; }
.ga-punkt--orange { background: #ff8a5c; margin-left: .6rem; }

/* Mit Bewegung: klebende Bühne, Leinwand statt Bild, Akte nacheinander */
.ga-an .ga-karte { height: 320svh; padding: 0; }
.ga-an .ga-karte__klebt { position: sticky; top: var(--nav-h, 74px); height: calc(100svh - var(--nav-h, 74px)); display: flex; flex-direction: column; justify-content: center; padding: 3.8rem 0 1.2rem; overflow: hidden; }
.ga-an .ga-karte__feld { flex: 0 1 auto; width: min(100% - 2 * var(--sm-pad), 76rem, calc((100svh - var(--nav-h, 74px) - 16rem) * 1.58)); min-height: 0; }
.ga-an .ga-karte__bild { visibility: hidden; }
.ga-an .ga-karte__feld canvas { display: block; }
.ga-an .ga-karte__akte li { opacity: .32; transition: opacity .5s ease; }
.ga-an .ga-karte__akte li.is-hier { opacity: 1; }

@media (max-width: 900px) {
  .ga-karte__kopf { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ga-karte__akte { justify-self: start; }
  .ga-an .ga-karte__akte li:not(.is-hier) { display: none; }
  .ga-an .ga-karte__klebt { padding-top: 3.4rem; }
  .ga .ga-wand { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ga-karte__legende { font-size: .8rem; }
  .ga-an .ga-karte__feld { width: calc(100% - 1rem); }
}
@media (max-height: 700px) and (min-width: 901px) {
  .ga-an .ga-karte__akte span { display: none; }
}

/* Hero: der lange Name braucht eine kleinere Schrift als smino */
.ga .sm-held__titel { font-size: clamp(2rem, 4.4vw, 4rem); max-width: 15ch; }

/* Die Karte lebt und verlinkt (20.11.2026, Daniel: "the map could be animated, and it could be a sick backlink").
   Jeder Ort öffnet seine Seite auf genossenschaftsatlas.ch; darunter die grössten Orte als echte Links. */
.ga-still .ga-karte__bild { visibility: hidden; }
.ga-still .ga-karte__feld canvas { display: block; }
.ga-karte__info { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 16px)); min-width: 11rem; padding: .65rem .85rem; border-radius: 12px;
  background: #fff; color: #0b2e22; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); pointer-events: none; max-width: min(17rem, 80vw); }
.ga-karte__info.is-unten { transform: translate(-50%, 16px); }
.ga-karte__info b { display: block; font: 700 1rem/1.2 var(--font-display); }
.ga-karte__info span { display: block; margin-top: .15rem; font-size: .86rem; color: #3e5c51; }
.ga-karte__info em { display: block; margin-top: .35rem; font-style: normal; font: 700 .8rem/1.2 var(--font-display); color: #0b7650; }
.ga-karte__tipp { display: none; }
.is-fertig .ga-karte__tipp { display: inline; }
.ga-karte__unten { background: #0b2e22; padding: 0 0 clamp(4rem, 8vw, 6rem); }
.ga-karte__orte { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 0; }
.ga-karte__orte ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; flex: 1 1 32rem; min-width: 0; }
.ga-karte__orte a { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem .8rem; border-radius: 999px; text-decoration: none;
  color: #fff !important; font: 600 .9rem/1 var(--font-display); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background .2s ease, box-shadow .2s ease; }
.ga-karte__orte a:hover { background: rgba(182, 242, 214, .14); box-shadow: inset 0 0 0 1px #7ce2b0; }
.ga-karte__orte small { font-size: .78rem; color: #7ce2b0; }
.ga .ga-knopf-hell { background: #b6f2d6; color: #0b2e22 !important; }
.ga .ga-knopf-hell:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(182, 242, 214, .5); }
.ga .ga-karte a:focus-visible { box-shadow: inset 0 0 0 2px #fff; }
@media (max-width: 560px) {
  .ga-karte__orte a { min-height: 44px; }
  .ga .ga-knopf-hell { width: 100%; justify-content: center; text-align: center; }
}

/* Marke (20.11.2026): Logo, App-Icon, Zeichen auf Dunkel, Farben, Illustrationen */
.ga-marke { padding-bottom: clamp(5rem, 10vw, 8rem); }
.ga-marke__buehne { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.ga-marke__buehne figure { margin: 0; min-width: 0; display: grid; place-items: center; align-content: center; gap: 1.2rem; padding: clamp(1.6rem, 4vw, 3.5rem) 1.2rem 1.2rem; border-radius: 24px; aspect-ratio: 1 / 1; }
.ga-marke__buehne figcaption { font: 600 .9rem/1.3 var(--font-display); text-align: center; }
.ga-marke__logo { background: #fff; box-shadow: inset 0 0 0 1px var(--sm-linie), 0 40px 80px -50px rgba(11, 46, 34, .45); grid-row: span 1; }
.ga-marke__logo img { width: min(78%, 22rem); height: auto; }
.ga-marke__logo figcaption { color: var(--sm-leise); }
.ga-marke__icon { background: var(--sm-mint-hell); }
.ga-marke__icon img { width: min(52%, 11rem); height: auto; border-radius: 22.5%; box-shadow: 0 30px 50px -24px rgba(11, 46, 34, .55); }
.ga-marke__icon figcaption { color: var(--sm-grau); }
.ga-marke__dunkel { background: #0b2e22; }
.ga-marke__dunkel img { width: min(40%, 8rem); height: auto; }
.ga-marke__dunkel figcaption { color: #b6f2d6; }
.ga .ga-farben ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ga-farben { padding-top: clamp(5rem, 10vw, 8rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.ga-illus { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.4rem); }
.ga-illus li { min-width: 0; display: grid; grid-template-rows: 1fr auto; gap: 1rem; padding: clamp(1rem, 2.5vw, 1.8rem); border-radius: 20px; background: var(--sm-creme); box-shadow: inset 0 0 0 1px var(--sm-linie); }
.ga-illus img { width: 100%; height: clamp(8rem, 16vw, 12rem); object-fit: contain; }
.ga-illus span { font: 600 1rem/1.3 var(--font-display); color: var(--sm-petrol-tief); text-align: center; }
.ga-illu-gross { margin: clamp(1rem, 2vw, 1.4rem) 0 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 24px; background: var(--sm-mint-hell); }
.ga-illu-gross img { width: 100%; height: auto; max-height: 30rem; }
.ga-illu-gross figcaption { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--sm-grau); }
.ga-illu-gross figcaption b { display: block; margin-bottom: .5rem; font: 600 clamp(1.4rem, 2.6vw, 2.2rem)/1.15 var(--font-display); letter-spacing: -.03em; color: var(--sm-petrol-tief); }
@media (max-width: 900px) {
  .ga-marke__buehne { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ga-marke__logo { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .ga .ga-farben ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ga-illus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ga-illu-gross { grid-template-columns: minmax(0, 1fr); }
  .ga-illu-gross img { max-height: 22rem; }
}
/* Zahlen wie «173 Std.» brauchen mehr Platz als bei smino */
.ga .sm-mess li { grid-template-columns: 9.5rem minmax(0, 1fr); }
@media (max-width: 560px) { .ga .sm-mess li { grid-template-columns: minmax(0, 1fr); } }
