/* Seite "Digitaler Projektrundgang": weiße Stadt Dresden als Architekturmodell auf Vereins-Petrol. */
.rg { --rg-petrol: #064566; --rg-creme: #fbf5e8; --rg-gold: #e3a92b; --rg-schlag: #0f6e8c; --rg-voliere: #3f7a52;
  --zeichen-schlag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 .9 15.4 7.3 14 8.8l-.9-.8V15H2.9V8l-.9.8L.6 7.3ZM8 6.4a1.9 1.9 0 1 0 0 3.8 1.9 1.9 0 0 0 0-3.8Z'/%3E%3C/svg%3E");
  --zeichen-station: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 14.8S1 10.4 1 5.5C1 3.3 2.7 1.6 4.8 1.6c1.3 0 2.5.7 3.2 1.8.7-1.1 1.9-1.8 3.2-1.8 2.1 0 3.8 1.7 3.8 3.9 0 4.9-7 9.3-7 9.3Z'/%3E%3C/svg%3E");
  --zeichen-voliere: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M14.8 1.2C9.6 1 4.8 4.5 3.8 9.6l-.5 2.5-2 2 .7.7 2-2 2.5-.5c5.1-1 8.5-5.8 8.3-11.1ZM12.4 3.5 4.7 11.2l.5.5 7.7-7.7Z'/%3E%3C/svg%3E"); max-width: 1560px; margin: 0 auto; padding: 12px 16px 24px; }
.rg-raster { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.rg-buehne { min-width: 0; }

.rg-huelle { position: relative; height: clamp(460px, calc(100vh - 240px), 860px); border-radius: 18px; overflow: hidden; background: radial-gradient(130% 100% at 50% 30%, #11789f 0%, #0b5f86 42%, #063e5c 100%); box-shadow: 0 8px 26px rgba(6, 40, 60, .28); touch-action: none; user-select: none; -webkit-user-select: none; outline-offset: 3px; }
.rg-huelle:focus-visible { outline: 3px solid var(--rg-gold); }
.rg-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; outline: none; opacity: 0; transition: opacity .6s ease; }
.rg-huelle.ist-bereit .rg-canvas { opacity: 1; }
.rg-marker { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.rg-kopfkarte { position: absolute; top: 12px; left: 12px; max-width: min(320px, calc(100% - 96px)); padding: 10px 16px 11px; border-radius: 14px; background: rgba(251, 245, 232, .95); box-shadow: 0 4px 14px rgba(6, 40, 60, .22); }
.rg-kopfkarte h1 { margin: 0; font-size: 1.12rem; line-height: 1.25; color: var(--rg-petrol); }
.rg-kopfkarte p { margin: 2px 0 0; font-size: 1rem; color: #43606f; }

.rg-werkzeuge { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; }
.rg-werkzeug { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(251, 245, 232, .96); color: var(--rg-petrol); font: inherit; font-size: 1.4rem; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 3px 10px rgba(6, 40, 60, .25); display: flex; align-items: center; justify-content: center; }
.rg-werkzeug--text { font-size: 1rem; }
.rg-werkzeug:hover { background: #fff; }
.rg-werkzeug:focus-visible { outline: 3px solid var(--rg-gold); outline-offset: 2px; }

.rg-osm { position: absolute; right: 10px; bottom: 8px; margin: 0; padding: 2px 8px; border-radius: 8px; background: rgba(251, 245, 232, .88); font-size: 1rem; line-height: 1.3; }
.rg-osm a { color: #1d4f6b; }

.rg-laden { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: radial-gradient(130% 100% at 50% 30%, #11789f 0%, #0b5f86 42%, #063e5c 100%); color: #fff; }
.rg-laden[hidden] { display: none; }
.rg-laden__inhalt { width: min(320px, 80%); text-align: center; }
.rg-laden progress { width: 100%; height: 10px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .22); accent-color: var(--rg-gold); }
.rg-laden progress::-webkit-progress-bar { background: rgba(255, 255, 255, .22); border-radius: 6px; }
.rg-laden progress::-webkit-progress-value { background: var(--rg-gold); border-radius: 6px; }
.rg-laden progress::-moz-progress-bar { background: var(--rg-gold); border-radius: 6px; }
.rg-laden p { margin: 12px 0 0; font-weight: 600; }
.rg-laden.ist-fehler p { color: #ffe3d6; }
.rg-ohne3d { position: absolute; left: 14px; right: 14px; top: 50%; transform: translateY(-50%); margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--rg-creme); color: #1d3b4b; text-align: center; font-weight: 600; }

.rg-bedienung { margin: 8px 2px 0; font-size: 1rem; color: var(--muted, #5a6b75); }

/* Marker: pulsierender Punkt an der Stelle, Stiel nach oben, Kopf mit Schild */
.rg-pin { position: absolute; left: 0; top: 0; width: 0; height: 0; --hub: 26px; will-change: transform; }
.rg-pin__puls { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--farbe); opacity: .5; animation: rg-puls 2.2s ease-out infinite; }
.rg-pin__puls::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--farbe); border: 2px solid #fff; box-sizing: content-box; margin: -2px; }
.ist-ungefaehr .rg-pin__puls { left: -16px; top: -16px; width: 32px; height: 32px; opacity: .28; }
.ist-ungefaehr .rg-pin__puls::after { left: 12px; top: 12px; background: transparent; border: 2px dashed #fff; }
.rg-pin__stiel { position: absolute; left: -1px; top: calc(-1 * var(--hub)); width: 2px; height: var(--hub); background: var(--farbe); box-shadow: 0 0 0 1px rgba(255, 255, 255, .85); }
.rg-pin__kopf { pointer-events: auto; position: absolute; left: -15px; top: calc(-1 * var(--hub) - 15px); width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: var(--farbe); box-shadow: 0 2px 7px rgba(0, 0, 0, .38); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.rg-pin__kopf::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.rg-pin__kopf:hover { transform: scale(1.12); }
.rg-pin__kopf:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--rg-petrol); }
.ist-ungefaehr .rg-pin__kopf { border-style: dashed; }
.ist-aktiv .rg-pin__kopf { transform: scale(1.22); box-shadow: 0 0 0 4px rgba(255, 255, 255, .55), 0 2px 7px rgba(0, 0, 0, .4); }
.rg-pin__punkt { width: 9px; height: 9px; background: #fff; border-radius: 50%; }
/* Vereinsorte (#2357): Farbe nach Rolle plus Zeichen im Kopf, ruhig statt Alarm. Gilt nur für die drei Arten des Rundgangs;
   die Notfallkarte (data-art="notfall") behält Punkt, Rot und Pulsieren. */
[data-art="schlag"] { --zeichen: var(--zeichen-schlag); }
[data-art="station"] { --zeichen: var(--zeichen-station); --zeichen-farbe: var(--rg-petrol); }
[data-art="voliere"] { --zeichen: var(--zeichen-voliere); }
:is([data-art="station"], [data-art="schlag"], [data-art="voliere"]) .rg-pin__puls { animation: none; opacity: .3; }
:is([data-art="station"], [data-art="schlag"], [data-art="voliere"]).ist-ungefaehr .rg-pin__kopf { border-style: solid; }
[data-art="station"]:not(.ist-aktiv) .rg-pin__kopf { box-shadow: 0 0 0 2.5px #064566, 0 2px 7px rgba(0, 0, 0, .38); }
:is([data-art="station"], [data-art="schlag"], [data-art="voliere"]) .rg-pin__punkt { width: 17px; height: 17px; border: 0; border-radius: 0; transform: none; background: var(--zeichen-farbe, #fff); -webkit-mask: var(--zeichen) center / contain no-repeat; mask: var(--zeichen) center / contain no-repeat; }
.rg-pin__schild { display: none; position: absolute; top: 50%; left: calc(100% + 5px); transform: translateY(-50%); padding: 4px 11px; border-radius: 999px; white-space: nowrap; background: rgba(6, 69, 102, .95); color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.3; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); pointer-events: auto; }
.zeigt-schild .rg-pin__schild { display: block; }
.schild-links .rg-pin__schild { left: auto; right: calc(100% + 5px); }
@keyframes rg-puls { 0% { transform: scale(.55); opacity: .65; } 100% { transform: scale(2.3); opacity: 0; } }

/* Karte des Standorts */
.rg-karte { position: absolute; left: 12px; bottom: 34px; z-index: 10; width: min(350px, calc(100% - 24px)); max-height: calc(100% - 52px); overflow: auto; padding: 14px 16px 12px; border-radius: 16px; background: var(--rg-creme); border-top: 6px solid var(--farbe, var(--rg-gold)); box-shadow: 0 10px 28px rgba(6, 30, 50, .35); color: #1f3340; touch-action: pan-y; }
.rg-karte[hidden] { display: none; }
.hat-karte .rg-kopfkarte { display: none; }
.rg-karte__zu { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #476070; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.rg-karte__zu:hover { background: rgba(6, 69, 102, .1); }
.rg-karte__art { margin: 0 0 2px; font-size: 1rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8a5b00; }
[data-art="schlag"].rg-karte .rg-karte__art { color: #0b5a73; }
[data-art="voliere"].rg-karte .rg-karte__art { color: #35693f; }
.rg-karte__titel { margin: 0 36px 6px 0; font-size: 1.2rem; line-height: 1.25; color: var(--rg-petrol); outline: none; }
.rg-karte__lage { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; padding: 6px 10px; border-radius: 10px; background: rgba(6, 69, 102, .08); font-size: 1rem; }
.rg-karte__lagepunkt { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 2px dashed var(--rg-petrol); box-sizing: border-box; }
.rg-karte__text { margin: 0 0 12px; font-size: 1rem; line-height: 1.5; }
.rg-karte__aktionen { margin-bottom: 10px; }
.rg-karte__ziel { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }
.rg-karte__nochnicht { display: inline-block; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(6, 69, 102, .09); color: #43606f; font-weight: 600; font-size: 1rem; }
.rg-karte__weg { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(6, 69, 102, .15); }
.rg-karte__nav { min-height: 44px; padding: 6px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--rg-petrol); font: inherit; font-weight: 700; cursor: pointer; }
.rg-karte__nav:hover { background: rgba(6, 69, 102, .09); }
.rg-karte__nr { font-size: 1rem; color: #5a6b75; }

/* Liste der Standorte (Weg ohne 3D) */
.rg-leiste { background: var(--surface, #fff); border: 1px solid var(--border, #d8dde0); border-radius: 16px; padding: 14px 14px 10px; box-shadow: 0 2px 8px rgba(20, 40, 60, .08); }
.rg-leiste h2 { margin: 0 0 6px; font-size: 1.1rem; }
.rg-legende { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0 0 8px; padding: 0; font-size: 1rem; color: var(--muted, #5a6b75); }
.rg-legende li { display: flex; align-items: center; gap: 6px; }
.rg-legende__punkt, .rg-eintrag__punkt[data-art] { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; }
.rg-legende__punkt::after, .rg-eintrag__punkt[data-art]::after { content: ""; position: absolute; inset: 4px; background: var(--zeichen-farbe, #fff); -webkit-mask: var(--zeichen) center / contain no-repeat; mask: var(--zeichen) center / contain no-repeat; }
.rg-legende__punkt--station { background: var(--rg-gold); --zeichen: var(--zeichen-station); --zeichen-farbe: var(--rg-petrol); }
.rg-legende__punkt--schlag { background: var(--rg-schlag); --zeichen: var(--zeichen-schlag); }
.rg-legende__punkt--voliere { background: var(--rg-voliere); --zeichen: var(--zeichen-voliere); }
.rg-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rg-eintrag { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rg-eintrag:hover { background: rgba(6, 69, 102, .07); }
.rg-eintrag[aria-current="true"] { background: rgba(227, 169, 43, .16); border-color: rgba(227, 169, 43, .55); }
.rg-eintrag__punkt { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.rg-eintrag__punkt[data-art] { width: 26px; height: 26px; }
.rg-eintrag__punkt[data-art]::after { inset: 5px; }
.rg-eintrag__text { display: flex; flex-direction: column; min-width: 0; }
.rg-eintrag__name { font-weight: 700; line-height: 1.3; }
.rg-eintrag__art { font-size: 1rem; color: var(--muted, #5a6b75); }
.rg-eintrag:focus-visible { outline: 3px solid var(--rg-petrol); outline-offset: 2px; }

.rg-quelle { margin: 12px 2px 0; font-size: 1rem; color: var(--muted, #5a6b75); }

@media (max-width: 900px) {
  .rg { padding: 8px 10px 20px; }
  .rg-raster { grid-template-columns: minmax(0, 1fr); }
  .rg-huelle { height: clamp(420px, 66vh, 640px); border-radius: 14px; }
  .rg-kopfkarte p { display: none; }
  .rg-kopfkarte h1 { font-size: 1rem; }
  #rg-links, #rg-rechts { display: none; }
  .rg-karte { padding-bottom: 6px; }
  .rg-karte__text { font-size: 1rem; line-height: 1.42; margin-bottom: 8px; }
  .rg-kopfkarte { padding: 8px 12px; }
  .rg-karte { left: 8px; right: 8px; width: auto; bottom: 30px; max-height: 66%; }
  .rg-bedienung { display: none; }
}
@media (pointer: coarse) {
  .rg-pin__kopf { width: 34px; height: 34px; left: -17px; top: calc(-1 * var(--hub) - 17px); }
}
@media (prefers-reduced-motion: reduce) {
  .rg-pin__puls { animation: none; opacity: .35; }
  .rg-canvas, .rg-pin__kopf { transition: none; }
}

/* Bedienhilfe am Handy (#2079) */
.rg-hilfe { position: absolute; left: 12px; right: 68px; bottom: 40px; z-index: 12; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px 8px; border-radius: 14px; background: rgba(251, 245, 232, .97); box-shadow: 0 4px 14px rgba(6, 40, 60, .25); color: #1f3340; }
.rg-hilfe p { margin: 0; font-size: 1rem; line-height: 1.4; }
.rg-hilfe__zu { min-height: 44px; padding: 6px 16px; border: 0; border-radius: 10px; background: var(--rg-petrol); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.rg-hilfe__zu:focus-visible { outline: 3px solid var(--rg-gold); outline-offset: 2px; }
.hat-karte .rg-hilfe { display: none; }
