/* ===== Mission Dr. Noah – Design nach ChatGPT-Entwurf, Schriften lokal (DSGVO) ===== */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(fonts/dm-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(fonts/dm-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url(fonts/dm-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 800; font-display: swap; src: url(fonts/dm-sans-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Patrick Hand'; font-weight: 400; font-display: swap; src: url(fonts/patrick-hand-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 700; font-display: swap; src: url(fonts/fraunces-latin-700-normal.woff2) format('woff2'); }

:root {
  --ink: #243b48; --red: #c75e54; --cream: #f9f0df; --paper: #fffaf0;
  --mint: #a9cbc0; --yellow: #f3cd7c; --line: #e6d6c3; --muted: #5d6971;
  --ok: #2f7a4d; --err: #b3261e;
  --hand: 'Patrick Hand', 'Comic Sans MS', cursive;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); overflow-x: hidden; }
.shell { background-image: radial-gradient(#d8c9b4 .7px, transparent .7px); background-size: 20px 20px; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: auto; padding: 0 22px; }
.narrow-wrap { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.eyebrow { letter-spacing: 2px; font-size: 12px; font-weight: 800; color: var(--red); text-transform: uppercase; }
.hand { font: 24px var(--hand); color: var(--red); }
.sub { color: var(--muted); line-height: 1.7; max-width: 610px; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 20; background: #fff9edee; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 12px; }
.brand { font: 700 26px/1 var(--hand); text-decoration: none; white-space: nowrap; }
.brand small { font: 700 9px var(--sans); display: block; letter-spacing: 2.4px; color: var(--red); margin-top: 2px; }
.navlinks { display: flex; gap: 6px; }
.navlinks a { border-radius: 30px; padding: 9px 13px; font-size: 13px; font-weight: 800; text-decoration: none; }
.navlinks a:hover, .navlinks a:focus { background: var(--yellow); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.pill { background: #fff; border: 1.5px solid var(--ink); border-radius: 50px; padding: 9px 16px; font-weight: 800; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; white-space: nowrap; }
.pill.on { background: var(--yellow); }
.pill:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); padding: 6px; display: flex; flex-direction: column; }
.menu-name { padding: 8px 10px; font: 22px var(--hand); border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.menu-pop a, .menu-pop button { display: block; text-align: left; width: 100%; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); background: none; border: 0; font-weight: 700; font-size: 14px; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--yellow); }

/* ---------- Buttons ---------- */
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink); border-radius: 14px; padding: 13px 20px; font-weight: 800; box-shadow: 4px 4px 0 var(--ink); text-decoration: none; font-size: 15px; }
.primary { background: var(--red); color: #fff; }
.secondary { background: #fff8e8; color: var(--ink); }
.primary:active, .secondary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.primary:disabled { opacity: .6; cursor: progress; }
.link, .link-danger { background: none; border: 0; padding: 3px 0; font-size: .85rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-danger { color: var(--red); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 60px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(50px, 9vw, 100px); line-height: .98; letter-spacing: -3px; margin: 15px 0 25px; }
h1 em { font-family: var(--hand); font-weight: 400; color: var(--red); font-style: normal; white-space: nowrap; letter-spacing: -1px; }
.intro { max-width: 520px; font-size: 18px; line-height: 1.75; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.scribble { font: 26px var(--hand); transform: rotate(-3deg); color: var(--red); display: inline-block; margin-top: 22px; }

.stack { position: relative; height: 410px; }
.photo { position: absolute; display: block; background: #fff; padding: 12px 12px 10px; box-shadow: 0 9px 25px #68503537; border: 1px solid #e9e1d5; width: 52%; max-width: 260px; text-decoration: none; transition: transform .2s; }
.photo .pic { display: block; height: 230px; border-radius: 2px; position: relative; overflow: hidden; background: #e9dfcf; }
.photo .pic svg, .photo .pic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo .play { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: #263c47d9; color: #fff; display: grid; place-items: center; font-size: 15px; }
.photo .cap { display: block; font: 22px var(--hand); text-align: center; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo.p0 { left: 8%; top: 22px; transform: rotate(-11deg); }
.photo.p1 { right: 2%; top: 77px; transform: rotate(9deg); }
.photo.p2 { left: 29%; bottom: -5px; transform: rotate(-2deg); z-index: 2; }
.photo:hover { transform: rotate(0) scale(1.03); z-index: 4; }
.tape { position: absolute; height: 24px; width: 75px; background: #e6c77b99; top: -12px; left: 34%; transform: rotate(3deg); z-index: 2; }
.sticker { position: absolute; z-index: 3; background: var(--yellow); padding: 10px 16px; border: 1.5px dashed var(--ink); border-radius: 50%; font: 20px var(--hand); transform: rotate(12deg); right: 4%; top: 0; }

.strip { background: var(--ink); color: #fff9e9; padding: 15px 0; transform: rotate(-1.5deg); font: 24px var(--hand); letter-spacing: 1px; }
.strip .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Abschnitte ---------- */
.section { padding: 80px 0; }
.section .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section h2 { font: 700 clamp(36px, 5vw, 58px)/1.07 var(--serif); letter-spacing: -2px; margin: 4px 0 0; }
.section .head .hand { margin: 0; }

/* ---------- Video-Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 13px; padding: 16px; box-shadow: 6px 7px 0 #e9dbc9; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.card.is-new { border-color: var(--red); box-shadow: 6px 7px 0 #f0c4b8; }
.cover { position: relative; border-radius: 8px; overflow: hidden; background: #1d2b33; aspect-ratio: 4 / 5; }
.cover video, .taped video { width: 100%; height: 100%; display: block; object-fit: contain; background: #1d2b33; }
.photo-open { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.cover img.media, .taped img.media { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover.is-photo, .taped.is-photo { background: #efe3cf; }
.pic-empty { display: grid; place-items: center; height: 100%; font-size: 54px; background: #e9dfcf; }
.preview-img { display: block; width: 100%; max-height: 460px; object-fit: contain; background: #efe3cf; }
.badge { position: absolute; top: 10px; left: 10px; pointer-events: none; background: var(--red); color: #fff; font: 18px var(--hand); padding: 2px 12px; border-radius: 30px; transform: rotate(-4deg); border: 1.5px solid #fff; }
.tag { align-self: flex-start; display: inline-block; border-radius: 30px; background: #f3e5c9; color: #7a4c35; font-size: 11px; font-weight: 800; padding: 6px 11px; letter-spacing: .4px; margin-top: 15px; }
.card h3 { font: 28px/1.15 var(--hand); margin: 8px 0 6px; }
.msg { line-height: 1.6; color: #58656b; font-size: 14px; overflow-wrap: anywhere; margin-bottom: 8px; }
.card-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.from { display: flex; align-items: center; gap: 9px; }
.from-name { font-weight: 800; font-size: 14px; line-height: 1.2; }
.seen { color: var(--muted); margin-top: 6px; }
.del-form { margin: 0; }

/* ---------- Avatare ---------- */
.avatar { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 800; font-size: .82rem; border: 1.5px solid var(--ink); }
.avatar.sm { width: 34px; height: 34px; font-size: .76rem; }
.c0 { background: #243b48; } .c1 { background: #c75e54; } .c2 { background: #5f9a87; } .c3 { background: #8a6aa3; }
.c4 { background: #c9973a; } .c5 { background: #4f8aa3; } .c6 { background: #b2526e; } .c7 { background: #6f7f3c; }
.c8 { background: #8b6243; } .c9 { background: #4a64b8; } .c10 { background: #a8573f; } .c11 { background: #4c6e66; }

/* ---------- Leerer Zustand ---------- */
.empty { text-align: center; padding: 44px 20px; background: var(--paper); border: 2px dashed #cbb59a; border-radius: 14px; }
.empty-icon { font-size: 46px; }
.empty .sub { margin: 0 auto; }

/* ---------- USA-Diary ---------- */
.diary { background: #e4ede8; border-top: 1px solid #cfded4; border-bottom: 1px solid #cfded4; background-image: none; }
.diarybox { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.diary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.notebook { background: #fffaf1; border: 1px solid #d9cbb9; box-shadow: 9px 10px 0 #c3d8cd; border-radius: 5px; padding: 22px 22px 18px 46px; position: relative; background-image: repeating-linear-gradient(0deg, transparent 0, transparent 35px, #dae7ee 36px); scroll-margin-top: 90px; display: flex; flex-direction: column; }
.notebook::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 1px; background: #dcaaa0; }
.notebook:nth-child(odd) { transform: rotate(-1deg); }
.notebook:nth-child(even) { transform: rotate(.8deg); }
.notebook.demo { transform: rotate(-2deg); min-height: 320px; }
.notebook.is-new { box-shadow: 9px 10px 0 #f0c4b8; }
.notebook .date { font: 22px var(--hand); color: var(--red); }
.notebook h3 { font: 36px/1.1 var(--hand); margin: 14px 0 14px; }
.notebook .note { font: 23px/1.47 var(--hand); margin: 14px 0 6px; overflow-wrap: anywhere; }
.notebook .seal { position: absolute; right: 25px; bottom: 15px; transform: rotate(12deg); font: 19px var(--hand); border: 2px dashed var(--red); padding: 7px; color: var(--red); text-align: center; }
.notebook .card-foot { background: #fffaf1; }
.taped { position: relative; background: #fff; padding: 10px; border: 1px solid #e9e1d5; box-shadow: 0 6px 18px #6850352b; aspect-ratio: 4 / 5; max-height: 460px; }
.taped .badge { top: 18px; left: 18px; }

/* ---------- Öffnen, wenn … ---------- */
.envsec { background: #f2e4d6; }
.envelopes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.envelope { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 215px; background: #f8d9bd; border: 2px solid #bf907b; border-radius: 7px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; color: var(--ink); padding: 18px; }
.envelope:nth-child(2) { background: #d1dfe7; border-color: #8daec0; }
.envelope:nth-child(3) { background: #e3ddba; border-color: #adad7d; }
.envelope::before { content: ''; position: absolute; top: -100px; left: 0; right: 0; border-left: 200px solid transparent; border-right: 200px solid transparent; border-top: 180px solid #ffffff4b; }
.envelope:hover { transform: translateY(-5px); }
.envelope.open { transform: translateY(-5px); box-shadow: 5px 6px 0 var(--ink); border-color: var(--ink); }
.envelope .icon { font-size: 38px; z-index: 1; }
.envelope strong { font: 25px var(--hand); margin-top: 12px; z-index: 1; text-align: center; }
.envelope small { z-index: 1; font-weight: 700; margin-top: 5px; }
.env-new { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--red); color: #fff; font: 17px var(--hand); padding: 1px 10px; border-radius: 30px; transform: rotate(6deg); }
.env-list { margin-top: 34px; }
.hand-title { font: 32px var(--hand); margin: 0 0 18px; }

/* ---------- Kleine USA-Missionen ---------- */
.mission:nth-child(2) { transform: rotate(1deg); }
.mission:nth-child(3) { transform: rotate(-1deg); }
.mcover { height: 115px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 56px; position: relative; overflow: hidden; }
.mcover.a { background: #b8d6c4; } .mcover.b { background: #efc29c; } .mcover.c { background: #c1d2e2; }
.mission h3 { margin-top: 14px; }
.mission .stamp { position: absolute; right: 10px; bottom: 10px; font: 20px var(--hand); color: var(--red); border: 2px dashed var(--red); background: #fffaf0e6; padding: 2px 10px; transform: rotate(-8deg); }
.mission.done { border-color: #9cc3ad; }
.mlink { margin-top: auto; font-weight: 800; color: var(--red); text-decoration: none; padding-top: 6px; }
.mlink.muted { color: var(--muted); }
.mission-tag { margin: 0 0 6px; background: #fbe3d8; color: var(--red); }
.cards.missions { align-items: start; }
.rating { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); scroll-margin-top: 90px; }
.avg { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.stars-ro { color: #e0a526; letter-spacing: 1px; font-size: 18px; }
.stars-ro.small { font-size: 14px; }
.rate-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.stars-in { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-in label { font-size: 30px; line-height: 1; color: #dccdb7; cursor: pointer; transition: transform .1s; }
.stars-in label:hover, .stars-in label:hover ~ label, .stars-in input:checked ~ label { color: #e0a526; }
.stars-in label:hover { transform: scale(1.15); }
.stars-in input:focus-visible + label { outline: 2px solid var(--ink); border-radius: 4px; }
.rate-form textarea { font-size: 14px; padding: 9px 11px; }
.small-btn { padding: 9px 14px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); align-self: flex-start; }
.feedback { margin-top: 12px; }
.feedback summary { cursor: pointer; font-weight: 800; font-size: 14px; }
.feedback ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feedback li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 14px; }
.feedback li p { margin: 4px 0 0; color: #4c5961; overflow-wrap: anywhere; }
.fb-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff9ed; padding: 52px 0 90px; }
.footergrid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ribbon { background: var(--yellow); color: var(--ink); padding: 7px 12px; font: 18px var(--hand); display: inline-block; transform: rotate(-2deg); }
.footer-quote { font: 700 clamp(30px, 4vw, 45px)/1.15 var(--serif); margin: 17px 0 0; }

/* ---------- Formulare / Papier ---------- */
.paper { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 6px 7px 0 #e9dbc9; padding: 22px; margin: 22px 0; }
.form { display: flex; flex-direction: column; gap: 15px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: .9rem; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, textarea { font: inherit; font-weight: 500; color: var(--ink); padding: 12px 14px; border: 1.5px solid #d9c8b2; border-radius: 10px; background: #fff; width: 100%; }
input:focus, textarea:focus { outline: 2.5px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
textarea { resize: vertical; }
.flash { padding: 12px 16px; border-radius: 12px; margin: 16px 0; font-weight: 700; border: 1.5px solid; }
.flash.ok { background: #e3f1e7; color: var(--ok); }
.flash.err { background: #fbe5e3; color: var(--err); }
.notice { background: #f7edcf; border: 1px solid #dfcd9a; padding: 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.7; margin: 18px 0; }

.where { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.where legend { font-weight: 800; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.form label.opt { flex-direction: row; align-items: center; gap: 12px; font-weight: 500; background: #fff; border: 1.5px solid #e2d3bf; border-radius: 12px; padding: 11px 14px; cursor: pointer; }
.form label.opt:has(input:checked) { border-color: var(--ink); background: #fff3d6; box-shadow: 3px 3px 0 var(--ink); }
.opt b { font-weight: 800; }
.opt small { display: block; color: var(--muted); font-size: .8rem; }

.drop { border: 2px dashed #cbb59a; border-radius: 14px; background: #f9efdd; overflow: hidden; }
.form label.drop-inner { position: relative; align-items: center; justify-content: center; gap: 4px; min-height: 190px; padding: 20px; text-align: center; cursor: pointer; font-weight: 400; }
.drop-inner strong { font: 26px var(--hand); }
.drop-inner input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { font-size: 40px; }
.preview { display: block; width: 100%; max-height: 420px; background: #1d2b33; }
#repick { align-self: flex-start; margin-top: -6px; }
.progress .bar { height: 12px; background: #efe1c9; border-radius: 999px; overflow: hidden; border: 1.5px solid var(--ink); }
.progress .bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--red) 0 10px, #d9776d 10px 20px); transition: width .25s ease; }
.progress .muted { margin-top: 6px; }

/* ---------- Login ---------- */
.auth { min-height: 92vh; display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 8px 9px 0 var(--ink); padding: 32px 26px; text-align: center; position: relative; }
.auth-card::before { content: ''; position: absolute; height: 24px; width: 90px; background: #e6c77bbb; top: -12px; left: calc(50% - 45px); transform: rotate(-3deg); }
.auth-card h1 { font-size: 46px; letter-spacing: -1.5px; margin: 10px 0 6px; }
.auth-card .hand { margin-bottom: 4px; }
.auth-card .form { text-align: left; margin-top: 18px; }
.auth-card .primary { width: 100%; }
.checks { list-style: none; padding: 0; margin: 14px 0; text-align: left; font-size: .9rem; }
.checks .pass { color: var(--ok); } .checks .fail { color: var(--err); font-weight: 700; }

/* ---------- Admin ---------- */
.users { list-style: none; margin: 0; padding: 0; }
.users li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.users li:first-child { border-top: 0; }
.u-main { flex: 1; min-width: 0; }
.rename { display: flex; gap: 8px; align-items: center; margin: 0; }
.rename input { padding: 6px 9px; font-weight: 800; max-width: 220px; }
.u-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.u-actions form { margin: 0; }
.creds { border-color: var(--ok); }
.creds-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; margin: 6px 0 10px; background: #fffdf6; }
.paper h2 { font: 30px var(--hand); letter-spacing: 0; margin: 0 0 10px; }

/* ---------- Mobil-Knopf ---------- */
.fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff; display: none; place-items: center; font-size: 32px; line-height: 1; text-decoration: none; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); z-index: 15; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .nav { height: 64px; }
  .navlinks { display: none; }
  .pill { padding: 8px 12px; }
  .pill-txt { display: none; }
  .brand { font-size: 23px; }
  .hero { padding: 38px 0 50px; }
  .hero-grid, .diarybox { grid-template-columns: 1fr; }
  h1 { font-size: clamp(52px, 14vw, 75px); letter-spacing: -2.5px; }
  .intro { font-size: 16px; }
  .stack { height: 345px; margin-top: 10px; }
  .photo { width: 48%; padding: 9px 9px 8px; }
  .photo .pic { height: 175px; }
  .photo .cap { font-size: 18px; }
  .photo.p0 { left: 4%; } .photo.p1 { right: 3%; } .photo.p2 { left: 28%; }
  .sticker { font-size: 16px; }
  .strip { font-size: 19px; } .strip .wrap { gap: 5px; }
  .cards, .envelopes, .diary-grid { grid-template-columns: 1fr; }
  .section { padding: 55px 0; }
  .section .head { display: block; }
  .section .head .hand { margin-top: 8px; }
  .diarybox { gap: 30px; }
  .footergrid { display: block; } .footergrid .secondary { margin-top: 22px; }
  .row { grid-template-columns: 1fr; }
  .fab { display: grid; }
  .users li { flex-wrap: wrap; } .u-actions { flex-direction: row; gap: 14px; width: 100%; padding-left: 50px; }
}

/* ---------- Abstimmung über neue Missionen ---------- */
.mission .stamp.live { color: var(--ok); border-color: var(--ok); transform: rotate(6deg); }
.inline-form { display: inline; margin: 0; }
.mission .inline-form { margin-top: 6px; }
.vote-box { margin-top: 46px; background: var(--paper); border: 2px dashed #cbb59a; border-radius: 16px; padding: 24px; }
.vote-box > .hand { margin: 0; text-align: center; }
.vote-head .sub { margin-bottom: 14px; }
.proposals { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: rank; }
.proposal { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; scroll-margin-top: 100px; position: relative; }
.proposal::before { counter-increment: rank; content: counter(rank) "."; font: 22px var(--hand); color: var(--muted); min-width: 22px; }
.proposal:first-child { border-color: var(--yellow); box-shadow: 4px 4px 0 var(--yellow); }
.proposal.voted { background: #fff8e6; }
.p-icon { font-size: 34px; flex: none; }
.p-main { flex: 1; min-width: 0; }
.p-main b { font: 24px/1.1 var(--hand); }
.p-main p { margin: 3px 0 4px; color: #58656b; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.p-admin { display: flex; gap: 14px; margin-top: 4px; }
.p-vote { margin: 0; flex: none; }
.vote-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 62px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 3px 3px 0 var(--ink); font-weight: 800; }
.vote-btn .thumb { font-size: 22px; filter: grayscale(1); opacity: .6; }
.vote-btn .count { font-size: 15px; }
.vote-btn[aria-pressed="true"] { background: var(--yellow); }
.vote-btn[aria-pressed="true"] .thumb { filter: none; opacity: 1; }
.vote-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.propose summary { list-style: none; cursor: pointer; display: inline-flex; }
.propose summary::-webkit-details-marker { display: none; }
.propose-form { margin-top: 16px; }
.propose-row { grid-template-columns: 110px 1fr; }
.icon-input { font-size: 22px; text-align: center; }
@media (max-width: 760px) {
  .vote-box { padding: 18px 14px; }
  .proposal { flex-wrap: wrap; }
  .proposal::before { display: none; }
  .propose-row { grid-template-columns: 90px 1fr; }
}
