
/* Ossenbrüggen-CI: Blau #0059a3, Sugo nur groß in Versalien, sonst Roboto */
@font-face { font-family: "Sugo"; font-weight: 700; src: local("SugoProClassic-Bold"), local("Sugo Pro Classic Bold"); }
:root {
  --blau: #0059a3; --blau-dunkel: #00427a; --blau-hell: #e3eef8; --grau: #5f6b78; --linie: #dfe6ee;
  --text: #14233a; --hg: #f3f6f9; --weiss: #fff; --pink: #e6007e; --gruen: #00b33c;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { background: #cfd9e3; font-family: "Roboto", system-ui, sans-serif; color: var(--text); display: flex; justify-content: center; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }

/* Handy-Rahmen: auf dem Handy volle Fläche, am Rechner als Telefon dargestellt */
.handy { position: relative; width: 100%; max-width: 430px; height: 100vh; height: 100dvh; background: var(--hg); overflow: hidden; overflow: clip; display: flex; flex-direction: column; }
@media (min-width: 600px) { body { align-items: center; } .handy { height: 860px; max-height: 96vh; border-radius: 36px; box-shadow: 0 30px 80px rgba(0,40,80,.35), 0 0 0 10px #14233a; } }

/* Kopf: Titel links, Logobalken läuft oben rechts über den Rand (nie freistehend) */
.kopf { position: relative; background: var(--weiss); padding: 18px 16px 12px; border-bottom: 1px solid var(--linie); flex-shrink: 0; }
.kopf .logo { position: absolute; top: 18px; left: 46%; right: -2px; height: 20px; overflow: hidden; }
.kopf .logo img { height: 20px; display: block; max-width: none; }
.kopf h1 { font-family: "Sugo", "Roboto", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1; color: var(--blau); letter-spacing: .01em; margin-top: 26px; }
.kopf .unter { font-size: 13px; font-weight: 500; color: var(--grau); margin-top: 4px; }

main { flex: 1; overflow-y: auto; padding: 14px 14px 90px; -webkit-overflow-scrolling: touch; }
.seite { display: none; } .seite.aktiv { display: block; animation: rein .25s ease; }
@keyframes rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.label { font-weight: 700; font-size: 13px; color: var(--grau); margin: 18px 2px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.label:first-child { margin-top: 2px; }
.karte { background: var(--weiss); border-radius: 14px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(20,35,58,.06); }

/* Nachrichten */
.news .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blau); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.news .wer { font-weight: 700; font-size: 14px; } .news .wann { font-size: 12px; color: var(--grau); }
.chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--blau-hell); color: var(--blau); margin-left: auto; white-space: nowrap; }
.chip.wichtig { background: var(--pink); color: #fff; }
.news h3 { font-size: 16px; line-height: 1.3; margin-bottom: 4px; }
.news p { font-size: 14px; line-height: 1.45; color: #2b3a4f; }
.reaktionen { display: flex; gap: 6px; margin-top: 10px; }
.reaktionen button { border: 1px solid var(--linie); border-radius: 99px; padding: 4px 10px; font-size: 13px; }
.reaktionen button.an { border-color: var(--blau); background: var(--blau-hell); }

/* Kacheln auf der Startseite */
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.kachel { border-radius: 14px; padding: 14px; color: #fff; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.kachel b { font-size: 15px; line-height: 1.2; } .kachel span { font-size: 12px; opacity: .85; }
.kachel .ico { font-size: 24px; }
.k-blau { background: var(--blau); } .k-pink { background: var(--pink); } .k-gruen { background: var(--gruen); } .k-dunkel { background: var(--text); }

/* Inas Gruß */
.gruss { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--blau), var(--blau-dunkel)); color: #fff; }
.play { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--blau); font-size: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.welle { display: flex; align-items: center; gap: 2px; height: 26px; margin-top: 6px; }
.welle i { display: block; width: 3px; border-radius: 2px; background: rgba(255,255,255,.45); }
.welle i.gespielt { background: #fff; }
.gruss small { font-size: 12px; opacity: .8; }

/* Formulare */
.feld { width: 100%; border: 1px solid var(--linie); border-radius: 10px; padding: 11px 12px; font-size: 15px; background: #fff; margin-bottom: 10px; }
textarea.feld { min-height: 90px; resize: vertical; }
.knopf { width: 100%; background: var(--blau); color: #fff; font-weight: 700; font-size: 15px; padding: 13px; border-radius: 12px; }
.knopf.pink { background: var(--pink); }
.knopf.zweit { background: var(--blau-hell); color: var(--blau); }
.schalter { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.schalter input { width: 44px; height: 26px; accent-color: var(--blau); }

/* Fragen */
.frage .f { font-weight: 700; font-size: 15px; line-height: 1.35; }
.frage .von { font-size: 12px; color: var(--grau); margin-top: 4px; }
.frage .antwort { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--blau); background: var(--blau-hell); border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.45; }
.frage .antwort b { display: block; font-size: 12px; color: var(--blau); margin-bottom: 2px; }
.frage .offen { margin-top: 10px; font-size: 13px; color: var(--pink); font-weight: 700; }
.plus { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--grau); margin-top: 8px; }
.plus.an { color: var(--blau); font-weight: 700; }

/* Umfrage */
.option { position: relative; width: 100%; text-align: left; border: 1px solid var(--linie); border-radius: 10px; padding: 12px; margin-bottom: 8px; overflow: hidden; font-size: 15px; display: flex; justify-content: space-between; }
.option .balken { position: absolute; inset: 0 auto 0 0; background: var(--blau-hell); transition: width .6s ease; z-index: 0; }
.option span { position: relative; z-index: 1; } .option .pz { font-weight: 700; color: var(--blau); }
.option.meine { border-color: var(--blau); }

/* Danke */
.danke { color: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; position: relative; overflow: hidden; }
.danke .an { font-size: 12px; opacity: .85; } .danke .txt { font-size: 15px; line-height: 1.4; margin: 6px 0 8px; font-weight: 500; }
.danke .gross-ico { position: absolute; right: -6px; bottom: -14px; font-size: 64px; opacity: .2; }
.farben { display: flex; gap: 8px; margin-bottom: 12px; }
.farben button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; }
.farben button.an { border-color: var(--text); }

/* Kaffee-Roulette */
.roulette { text-align: center; padding: 22px 14px; }
.roulette .tasse { font-size: 54px; display: inline-block; }
.roulette .tasse.dreht { animation: dreh .9s ease-in-out; }
@keyframes dreh { 0% { transform: rotate(0); } 50% { transform: rotate(200deg) scale(1.2); } 100% { transform: rotate(360deg); } }
.roulette .name { font-size: 22px; font-weight: 900; color: var(--blau); margin: 10px 0 2px; min-height: 28px; }
.roulette .abt { font-size: 13px; color: var(--grau); min-height: 18px; margin-bottom: 14px; }

/* Teil des Monats */
.teil svg { width: 100%; height: auto; display: block; border-radius: 10px; background: var(--blau-hell); margin-bottom: 10px; }
.teil h3 { font-size: 17px; } .teil p { font-size: 14px; line-height: 1.45; color: #2b3a4f; margin-top: 4px; }
.liste-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); font-size: 14px; }
.liste-zeile:last-child { border-bottom: 0; } .liste-zeile .r { margin-left: auto; font-size: 12px; color: var(--grau); }

/* Untere Navigation */
nav { position: absolute; left: 0; right: 0; bottom: 0; background: var(--weiss); border-top: 1px solid var(--linie); display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--grau); padding: 4px 0; }
nav button .i { font-size: 21px; filter: grayscale(1); opacity: .6; }
nav button.aktiv { color: var(--blau); font-weight: 700; } nav button.aktiv .i { filter: none; opacity: 1; }
.punkt { position: absolute; margin-left: 16px; margin-top: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }

/* Absender-Knopf (nur für die 2–3 Absender sichtbar) */
.senden-fab { position: absolute; right: 16px; bottom: 82px; background: var(--pink); color: #fff; font-weight: 700; font-size: 14px; padding: 13px 18px; border-radius: 99px; box-shadow: 0 6px 18px rgba(230,0,126,.4); display: none; z-index: 5; }
.absender .senden-fab { display: block; }

/* Push-Banner wie eine echte Benachrichtigung */
.push { position: absolute; left: 10px; right: 10px; top: -120px; background: rgba(250,250,252,.97); backdrop-filter: blur(10px); border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; gap: 10px; z-index: 30; transition: top .45s cubic-bezier(.2,.9,.3,1.2); }
.push.zeigen { top: 10px; }
.push .app-ico { width: 38px; height: 38px; border-radius: 9px; background: var(--blau); color: #fff; font-family: "Sugo", "Roboto"; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.push .t1 { font-size: 12px; color: var(--grau); } .push .t2 { font-size: 14px; font-weight: 700; } .push .t3 { font-size: 13px; color: #333; }

/* Bottom-Sheet für Formulare */
.sheet-hg { position: absolute; inset: 0; background: rgba(20,35,58,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 20; }
.sheet { position: absolute; left: 0; right: 0; bottom: -100%; background: var(--weiss); border-radius: 20px 20px 0 0; padding: 10px 16px 24px; z-index: 21; transition: bottom .3s ease, visibility 0s .3s; max-height: 90%; overflow-y: auto; visibility: hidden; }
.offen-sheet .sheet-hg { opacity: 1; pointer-events: auto; } .offen-sheet .sheet { bottom: 0; visibility: visible; transition: bottom .3s ease; }
.sheet .griff { width: 40px; height: 5px; border-radius: 3px; background: var(--linie); margin: 0 auto 12px; }
.sheet h2 { font-size: 19px; margin-bottom: 12px; }

/* Anmeldung */
.login { position: absolute; inset: 0; background: var(--blau); color: #fff; z-index: 40; display: flex; flex-direction: column; padding: 0 26px 34px; }
.login .logo-weiss { position: absolute; top: 34px; left: 40%; right: -2px; height: 24px; overflow: hidden; background: #fff; border-radius: 12px 0 0 12px; padding: 4px 0 4px 10px; }
.login .logo-weiss img { height: 16px; display: block; max-width: none; }
.login .mitte { margin-top: auto; }
.login h1 { font-family: "Sugo", "Roboto"; font-weight: 900; text-transform: uppercase; font-size: 44px; line-height: .95; }
.login p { font-size: 15px; line-height: 1.45; opacity: .9; margin: 12px 0 24px; }
.login .feld { border: 0; text-align: center; letter-spacing: .15em; font-weight: 700; font-size: 18px; text-transform: uppercase; }
.login .knopf { background: #fff; color: var(--blau); }
.login small { display: block; text-align: center; font-size: 12px; opacity: .75; margin-top: 12px; }
.login.weg { transform: translateY(-100%); transition: transform .5s ease; }

.konfetti { position: absolute; top: -10px; width: 8px; height: 12px; z-index: 50; pointer-events: none; animation: fall 1.6s linear forwards; }
@keyframes fall { to { transform: translateY(900px) rotate(720deg); opacity: .4; } }
.hinweis-demo { font-size: 12px; color: var(--grau); text-align: center; margin: 16px 0 4px; line-height: 1.4; }

/* ---- Ergänzungen für die echte App ---- */
.leer { text-align: center; color: var(--grau); font-size: 14px; padding: 26px 10px; line-height: 1.5; }
.fehler { color: #c00; font-size: 13px; min-height: 18px; margin: -4px 0 8px; }
.login .fehler { color: #ffd6e8; text-align: center; margin: 0 0 10px; }
.aktion { font-size: 13px; font-weight: 700; color: var(--blau); padding: 6px 0; }
.aktion.rot { color: #c00; }
.zeile-aktionen { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.hinweis-karte { background: #fff6d6; border: 1px solid #f1d98a; border-radius: 14px; padding: 14px; margin-bottom: 10px; font-size: 14px; line-height: 1.45; }
.hinweis-karte b { display: block; margin-bottom: 4px; }
.hinweis-karte .knopf { margin-top: 10px; }
.absender-leiste { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.absender-leiste button { background: var(--weiss); border: 1px dashed var(--pink); color: var(--pink); font-weight: 700; font-size: 13px; padding: 10px 8px; border-radius: 12px; }
.rec { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rec .punkt-rot { width: 14px; height: 14px; border-radius: 50%; background: #c00; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.teil img { width: 100%; border-radius: 10px; display: block; margin-bottom: 10px; max-height: 260px; object-fit: cover; background: var(--blau-hell); }
.danke .loeschen { position: absolute; top: 8px; right: 10px; color: #fff; opacity: .7; font-size: 13px; }
.option .neu-weg { position: relative; z-index: 1; color: var(--grau); }
.option-feld { display: flex; gap: 6px; } .option-feld .feld { flex: 1; }
.lade { opacity: .5; pointer-events: none; }
nav .punkt { display: none; } nav .punkt.an { display: block; }
[hidden] { display: none !important; }
.absender main { padding-bottom: 150px; }
