/* Geschichte „Tausendmal gespeichert.“ (projekte/getraenkekarte): die Getränkekarte der Galander Bar auf dem iPad.
   Szene: ein iPad vor der Ziegelwand der Karte (Original: resources/images/mauer.jpg), darin die Bildschirme des
   Originals zum Antippen; die Anleitung von damals als Blatt in ihren eigenen Farben; die 1.034 Sicherungen als Balken
   auf dem Papier der Karte (Original: paper.jpg); ein Abend im September 2016 als Zettel.
   Farben aus der Karte: Papier #F9E3BA, Messing #DFC697/#95784B, Braun #3B301F, Nacht #252326.
   Der Text folgt dem Licht des Raums Projekte. Bewegung nur mit .lebt am <html>. Alle Selektoren unter .gkarte. */
.gkarte{position:relative;max-width:1180px;margin:auto;padding:clamp(100px,12vw,160px) clamp(20px,6vw,84px) 80px;
  --gk-papier:#f9e3ba;--gk-hell:#dfc697;--gk-messing:#95784b;--gk-braun:#3b301f;--gk-nacht:#252326}
.gkarte h2{font-size:clamp(2.5rem,5.4vw,4.6rem);line-height:1.06;margin-bottom:1.2rem}
.gkarte h3{font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.2;margin:0 0 .8rem}
.gkarte p{line-height:1.8}
.gkarte__intro{font-size:clamp(1.12rem,1.8vw,1.3rem);line-height:1.7;max-width:44rem}
.gkarte__notiz{font-size:.9rem;opacity:.8}
.gkarte details{border-top:1px solid #8886;padding:1rem 0;max-width:46rem}
.gkarte details:first-of-type{margin-top:clamp(3rem,7vw,5rem)}
.gkarte summary{cursor:pointer}
.gkarte figure{margin:0}
.gkarte figcaption{font-size:.85rem;color:var(--leise);margin-top:.8rem;line-height:1.5}
.gkarte figcaption p{margin:.4rem 0;line-height:1.5}

/* Zeile über jeder Station: ein Wort, davor ein Messingstrich wie die Kante der Kopfleiste */
.gkarte__zeile{display:inline-flex;align-items:center;gap:.6em;font:800 .78rem/1.3 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--warm);margin:0 0 .8rem}
.gkarte__zeile::before{content:"";width:1.6em;height:.34em;border-radius:99px;background:linear-gradient(var(--gk-hell),var(--gk-messing));flex:none}

/* Stationen: Text und Bild nebeneinander */
.gkarte .stufe{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,4rem);align-items:center;margin-top:clamp(3.5rem,8vw,6.5rem)}
.gkarte .stufe--links>figure{order:-1}

/* Die Bühne: erst der Text in zwei Spalten, dann das iPad in voller Breite */
.gkarte__buehne{margin-top:clamp(2.5rem,6vw,4.5rem)}
.gkarte__spalte{columns:2;column-gap:clamp(1.5rem,4vw,4rem);margin-bottom:clamp(1.4rem,3vw,2.2rem)}
.gkarte__spalte .gkarte__zeile,.gkarte__spalte h3{column-span:all}
.gkarte__spalte .gkarte__zeile{display:flex}
.gkarte__spalte p{margin-top:0;break-inside:avoid}

/* Das iPad vor der Ziegelwand */
.gkarte .tablet__wand{padding:clamp(.7rem,4vw,2.8rem);border-radius:14px;background:#4a3b28 url(../../../bilder/getraenkekarte-mauer.jpg);
  box-shadow:inset 0 0 110px #000b,0 26px 60px -30px #000}
.gkarte .tablet__geraet{position:relative;max-width:860px;margin:auto;padding:3.4% 8.6%;border-radius:clamp(12px,3.2vw,30px);
  background:linear-gradient(160deg,#1c1c1e,#0a0a0b);box-shadow:0 0 0 2px #2c2c2e,0 0 0 3px #000,0 30px 50px -20px #000d}
.gkarte .tablet__geraet.gesperrt{box-shadow:0 0 0 2px #2c2c2e,0 0 0 3px #000,0 0 0 6px #dfc69766,0 30px 50px -20px #000d}
.lebt .gkarte .tablet__geraet.gesperrt{animation:gk-ruck .32s ease-in-out}
@keyframes gk-ruck{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.gkarte .tablet__kamera{position:absolute;left:4.3%;top:50%;width:1.1%;aspect-ratio:1;border-radius:50%;background:#26262a;box-shadow:inset 0 0 0 1px #3a3a3e;transform:translate(-50%,-50%)}
.gkarte .tablet__schirm{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--gk-nacht);box-shadow:0 0 0 1px #000}
.gkarte .tablet__schirm img{display:block;width:100%;height:100%;object-fit:cover}
.gkarte .tablet__schirm img[hidden]{display:none}
.gkarte .tablet__home{position:absolute;right:4.3%;top:50%;width:5.2%;min-width:22px;aspect-ratio:1;padding:0;border-radius:50%;cursor:pointer;
  background:radial-gradient(circle at 40% 35%,#232326,#0a0a0b);border:1px solid #3a3a3e;transform:translate(50%,-50%)}
.gkarte .tablet__home::after{content:"";position:absolute;inset:30%;border:1.5px solid #6e6e73;border-radius:22%}
.gkarte .tablet__home:focus-visible{outline:2px solid var(--gk-hell);outline-offset:3px}

/* Tippflächen über der Aufnahme (legt das Skript an) */
.gkarte .tablet__zonen{position:absolute;inset:0}
.gkarte .tablet__zonen button{position:absolute;padding:0;border:0;border-radius:6px;background:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.gkarte .tablet__zonen button:hover,.gkarte .tablet__zonen button:focus-visible{background:#fff3;outline:2px solid #fff;outline-offset:1px}
.gkarte .tablet__zonen button.blitz{background:#745e3b99}
.gkarte .tablet__zonen button.wink::after{content:"";position:absolute;left:50%;top:50%;width:clamp(22px,4.6vw,40px);aspect-ratio:1;border-radius:50%;
  border:2px solid #fff;box-shadow:0 0 0 2px #3b301f99,0 0 14px #fff8;transform:translate(-50%,-50%);pointer-events:none}
.lebt .gkarte .tablet__zonen button.wink::after{animation:gk-wink 1.8s ease-out infinite}
@keyframes gk-wink{0%{transform:translate(-50%,-50%) scale(.55);opacity:1}80%,100%{transform:translate(-50%,-50%) scale(1.25);opacity:0}}

/* Tasten und Stand unter dem iPad */
.gkarte .tablet__tasten{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 .7rem}
.gkarte .tablet__tasten button{font:inherit;font-weight:700;min-height:44px;display:inline-flex;align-items:center;padding:.4rem 1rem;border-radius:7px;cursor:pointer;
  color:var(--gk-braun);background:linear-gradient(#e9d5ad,#c4a672);border:1px solid #584e3a}
.gkarte .tablet__tasten button:first-child{border:2px solid #fff;box-shadow:2px 2px 7px #0007}
.gkarte .tablet__tasten button:hover{background:linear-gradient(#f4e4c3,#d2b98a)}
.gkarte .tablet__tasten button:focus-visible{outline:2px solid var(--warm);outline-offset:2px}
.gkarte .tablet__tasten button[hidden]{display:none}
.gkarte figcaption .tablet__status{font-size:1rem;font-weight:600;color:inherit;min-height:3em;margin:.2rem 0 .6rem;max-width:52rem}
.gkarte .tablet figcaption{color:inherit}
.gkarte .tablet figcaption p:last-child{font-size:.85rem;color:var(--leise);max-width:60rem}

/* Bilder aus dem Ordner */
.gkarte__foto img{display:block;width:100%;height:auto;border-radius:8px;border:1px solid #584e3a;box-shadow:0 24px 50px -28px #000}

/* Der eine Satz aus der Anleitung */
.gkarte__satz{margin:0 0 1.2rem;padding:0 0 0 clamp(.9rem,2vw,1.4rem);border-left:5px solid var(--gk-messing)}
.gkarte__satz p{font-size:clamp(1.15rem,2.1vw,1.55rem);line-height:1.45;font-weight:600;margin:0}

/* Die Anleitung als Blatt, in ihren eigenen Farben (documentation.html) */
.gkarte .anleitung__blatt{padding:clamp(.9rem,2.4vw,1.4rem);border-radius:4px;color:#222;background:#fff;border:1px solid #c9c2b4;
  box-shadow:0 22px 44px -28px #000;font:.9rem/1.5 Calibri,Arial,Helvetica,sans-serif}
.gkarte .anleitung__blatt p{line-height:1.5;margin:0 0 .6rem}
.gkarte .anleitung__titel{background:#d2b98a;color:#fff;font-weight:700;font-size:1.05rem;padding:.1rem .7rem;border:1px solid #fff;box-shadow:1px 1px 4px #666}
.gkarte .anleitung__code{margin:0 0 1rem;padding:.5rem .6rem;background:#ccc;color:#111;font:.82rem/1.55 "Courier New",Courier,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.gkarte .anleitung__code:last-child{margin-bottom:0}
.gkarte .anleitung__code mark{background:#b3261e;color:#fff;padding:0 .3em;border-radius:3px;font-weight:700}

/* Die Sicherungen: Balken je Monat und ein Streifen für die Uhrzeit, auf dem Papier der Karte */
.gkarte .logbuch{margin-top:clamp(3.5rem,8vw,6.5rem)}
.gkarte .logbuch__text{max-width:52rem}
.gkarte .logbuch__bild{margin:clamp(1.2rem,3vw,2rem) 0}
.gkarte .logbuch__papier{padding:clamp(1rem,3vw,2rem) clamp(.8rem,3vw,2rem);border-radius:10px;color:var(--gk-braun);
  background:var(--gk-papier) url(../../../bilder/getraenkekarte-papier.jpg);border:1px solid var(--gk-messing);box-shadow:inset 0 0 50px #95784b44,0 22px 44px -28px #000}
.gkarte .logbuch__jahre{display:flex;align-items:flex-end;gap:clamp(3px,1vw,12px)}
.gkarte .logbuch__jahr{flex:var(--m) 1 0;min-width:0;display:grid;justify-items:center;gap:.1rem}
.gkarte .logbuch__balken{display:flex;align-items:flex-end;gap:1px;width:100%;height:clamp(130px,22vw,210px);border-bottom:2px solid var(--gk-messing)}
.gkarte .logbuch__balken i{flex:1 1 0;min-width:0;height:calc(var(--n) / 177 * 100%);background:linear-gradient(#95784b,#584e3a);border-radius:2px 2px 0 0;transform-origin:bottom}
.lebt .gkarte .logbuch.da .logbuch__balken i{animation:gk-wachsen 1.1s cubic-bezier(.2,.7,.2,1) .2s both}
@keyframes gk-wachsen{from{transform:scaleY(0)}}
.gkarte .logbuch__jahr b{font-size:clamp(.72rem,1.4vw,.92rem);margin-top:.3rem}
.gkarte .logbuch__jahr span{font-size:clamp(.66rem,1.2vw,.8rem);opacity:.8}
.gkarte .logbuch__papier .logbuch__legende{font-size:.8rem;line-height:1.4;margin:.6rem 0 0;opacity:.85}
.gkarte .logbuch__uhr{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:2px;margin-top:clamp(1.2rem,3vw,2rem)}
.gkarte .logbuch__uhr i{height:clamp(18px,3vw,26px);border-radius:2px;background:rgb(59 48 31 / calc(.05 + var(--n) / 149 * .95));box-shadow:inset 0 0 0 1px #95784b66}
.gkarte .logbuch__uhr i[data-leer]{background:none;box-shadow:inset 0 0 0 1px #95784b66}
.gkarte .logbuch__papier .logbuch__stunden{display:flex;justify-content:space-between;font-size:.72rem;line-height:1.3;margin:.25rem 0 0}

/* Ein Abend als Zettel */
.gkarte .bon__zettel{max-width:19rem;margin:auto;padding:1.2rem 1.1rem 1.3rem;color:#222;background:#fffdf6;border:1px solid #d8d2c2;border-bottom:2px dashed #b9b3a3;
  box-shadow:0 22px 44px -26px #000;font:.9rem/1.5 ui-monospace,Consolas,"Courier New",monospace;transform:rotate(-1.4deg)}
.gkarte .bon__zettel p{line-height:1.5;margin:0}
.gkarte .bon__kopf{text-align:center;font-weight:700;padding-bottom:.6rem;border-bottom:1px dashed #999}
.gkarte .bon__liste{list-style:none;margin:.6rem 0;padding:0}
.gkarte .bon__liste li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.6rem;padding:.12rem 0}
.gkarte .bon__liste b{color:#1f7a3d}
.gkarte .bon__liste .bon__aus{color:#b3261e}
.gkarte .bon__fuss{text-align:center;padding-top:.6rem;border-top:1px dashed #999;font-weight:700}

/* Der Schluss */
.gkarte__schluss{margin-top:clamp(3.5rem,8vw,6.5rem);padding:clamp(1.3rem,3vw,2.4rem) clamp(1.2rem,3.4vw,2.8rem);border-radius:14px;
  border:1px solid var(--gk-messing);background:color-mix(in srgb,var(--papier) 72%,transparent);box-shadow:0 0 80px -44px var(--gk-messing)}
.gkarte__schluss p{max-width:52rem}
.gkarte__schluss p:last-child{margin-bottom:0}

@media(max-width:860px){
  .gkarte .stufe{grid-template-columns:minmax(0,1fr)}
  .gkarte .stufe--links>figure{order:0}
  .gkarte__spalte{columns:1}
}
@media(max-width:560px){
  .gkarte .tablet__wand{margin-inline:-8px}
  .gkarte .tablet__geraet{padding:3% 7.4%}
  .gkarte .bon__zettel{transform:none}
}
