/* =========================================================
   Dörfer-Bildschirme – Prototyp
   Gestaltung bewusst neutral. Farben und Schrift stehen hier
   oben gesammelt, damit die Öffentlichkeitsarbeit sie leicht
   anpassen kann.
   ========================================================= */
:root {
    --rdb-blau:        #004388;   /* Grundfarbe Rahmen (EJiR-Blau) */
    --rdb-blau-hell:   #0066b3;
    --rdb-hintergrund: #f4f6f9;
    --rdb-text:        #1a1f2b;
    --rdb-text-leise:  #5a6375;
    --rdb-cafe:        #c4541b;   /* warme Farbe für Verpflegung */
    --rdb-cafe-hell:   #fbeee6;
    --rdb-aktuell:     #e8590c;
    --rdb-eigen:       #1e8e4f;   /* „Hier bei uns“ – Grün wie „angenommen“ auf der Website */
    --rdb-schrift:     "Fira Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --rdb-band-hoehe:  9vh;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--rdb-hintergrund); color: var(--rdb-text); font-family: var(--rdb-schrift); cursor: none; }

.rdb-buehne { position: absolute; inset: 0 0 var(--rdb-band-hoehe) 0; }

/* ---------- Folie allgemein ---------- */
.rdb-folie {
    position: absolute; inset: 0;
    display: grid; grid-template-columns: 1fr 22vw; gap: 4vw;
    padding: 6vh 5vw 5vh;
    opacity: 0; transition: opacity .8s ease;
    --akzent: var(--rdb-blau);
}
.rdb-folie.rdb-sichtbar { opacity: 1; }
.rdb-folie::before { /* Akzentstreifen links – hier wirkt das Branding des Projekts */
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.4vw; background: var(--akzent);
}
.rdb-inhalt { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.rdb-kopf { display: flex; align-items: center; gap: 1.6vw; margin-bottom: 3vh; }
.rdb-logo-platz {
    width: 7vw; height: 7vw; border-radius: 1vw; flex: none;
    display: grid; place-items: center; text-align: center;
    border: .25vw dashed var(--akzent); color: var(--akzent);
    font-size: 1vw; font-weight: 600; line-height: 1.2;
}
.rdb-schild {
    display: inline-block; padding: .6vh 1.2vw; border-radius: 99px;
    font-size: 1.6vw; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
    background: var(--akzent); color: #fff;
}
.rdb-schild--eigen { background: var(--rdb-eigen); }
.rdb-titel { font-size: 4.6vw; line-height: 1.08; font-weight: 800; color: var(--akzent); margin-bottom: 2vh; }
.rdb-traeger { font-size: 2vw; color: var(--rdb-text-leise); margin-bottom: 3.5vh; font-weight: 500; }
.rdb-text { font-size: 2.2vw; line-height: 1.4; max-width: 55vw; }

.rdb-seite { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2vh; }
.rdb-qr { background: #fff; padding: 1.2vw; border-radius: 1vw; box-shadow: 0 .4vh 2vh rgba(0,0,0,.08); }
.rdb-qr svg, .rdb-qr img { display: block; width: 15vw; height: 15vw; }
.rdb-qr-text { font-size: 1.4vw; color: var(--rdb-text-leise); text-align: center; }

.rdb-beispiel {
    display: inline-block; margin-left: .8vw; padding: .2vh .7vw; border-radius: .4vw;
    background: #fff3bf; color: #7a5b00; font-size: 1.1vw; font-weight: 700; vertical-align: middle; text-transform: uppercase;
}

/* ---------- Café-Folie ---------- */
.rdb-folie--cafe { background: var(--rdb-cafe-hell); --akzent: var(--rdb-cafe); }
.rdb-symbol { font-size: 6vw; line-height: 1; }
.rdb-chips { display: flex; flex-wrap: wrap; gap: 1.2vw; margin-top: 3vh; }
.rdb-chip {
    background: #fff; border: .2vw solid var(--rdb-cafe); color: var(--rdb-cafe);
    border-radius: 99px; padding: 1vh 1.6vw; font-size: 2vw; font-weight: 700;
}
.rdb-frage { font-size: 2.4vw; font-weight: 700; margin-top: 3vh; }

/* ---------- Sammelfolie „Hunger? Durst?“ ---------- */
.rdb-folie--sammel::before, .rdb-folie--aktuell::before { display: none; }
.rdb-folie--sammel { grid-template-columns: 1fr; background: var(--rdb-cafe); color: #fff; --akzent: #fff; }
.rdb-folie--sammel .rdb-titel { color: #fff; font-size: 5.4vw; }
.rdb-liste { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(26vw, 1fr)); gap: 2vw; margin-top: 3vh; }
.rdb-liste li { background: rgba(255,255,255,.14); border-radius: 1vw; padding: 2.4vh 1.8vw; }
.rdb-liste strong { display: block; font-size: 2.2vw; margin-bottom: .8vh; }
.rdb-liste span { font-size: 1.7vw; opacity: .9; }

/* ---------- Aktuelles ---------- */
.rdb-folie--aktuell { grid-template-columns: 1fr; background: var(--rdb-aktuell); color: #fff; --akzent: #fff; }
.rdb-folie--aktuell .rdb-zeit { font-size: 3vw; font-weight: 700; opacity: .95; margin-bottom: 2vh; }
.rdb-folie--aktuell .rdb-titel { color: #fff; font-size: 5vw; }
.rdb-folie--aktuell .rdb-traeger { color: rgba(255,255,255,.9); }

/* ---------- Band unten (fester Rahmen, für alle gleich) ---------- */
.rdb-band {
    position: absolute; left: 0; right: 0; bottom: 0; height: var(--rdb-band-hoehe);
    background: var(--rdb-blau); color: #fff;
    display: grid; grid-template-columns: 1fr auto auto; gap: 2.5vw; align-items: center; padding: 0 3vw;
}
.rdb-band-links { display: flex; align-items: baseline; white-space: nowrap; overflow: hidden; }
.rdb-marke { font-size: 2.2vw; font-weight: 800; margin-right: 1.4vw; }
.rdb-unterzeile { font-size: 1.4vw; opacity: .85; }
.rdb-band-mitte { font-size: 2.4vw; font-weight: 700; font-variant-numeric: tabular-nums; }
.rdb-band-rechts { text-align: right; }
.rdb-band-rechts img { height: 6.5vh; background: #fff; border-radius: .6vh; padding: .5vh .8vh; }
.rdb-fortschritt { position: absolute; left: 0; right: 0; top: 0; height: .5vh; background: rgba(255,255,255,.2); }
#rdb-balken { height: 100%; width: 0; background: #fff; }

.rdb-test {
    position: absolute; top: 1.2vh; right: 1.2vw; z-index: 5;
    background: rgba(0,0,0,.65); color: #fff; font-size: 1vw; padding: .5vh .8vw; border-radius: .4vw;
}
.rdb-offline {
    position: absolute; top: 1.2vh; left: 2.4vw; z-index: 5;
    background: #b00020; color: #fff; font-size: 1vw; padding: .5vh .8vw; border-radius: .4vw;
}
