/*
Theme Name: MyTacklebox
Description: Dunkles, mobiles Theme für das Angeltagebuch. Inspiriert vom reduzierten Stil großer Angelmarken.
Version: 0.1.0
Text Domain: mytacklebox
*/

@font-face { font-family: "Instrument Sans"; font-weight: 100 900; font-display: swap; src: url("fonts/instrument.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-weight: 100 900; font-display: swap; src: url("fonts/instrument-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--bg: #08080a;
	--surface: #121216;
	--surface-2: #1a1a20;
	--line: #26262e;
	--text: #f5f5f7;
	--muted: #9a9aa6;
	--accent: #8b5cf6;
	--accent-rgb: 139,92,246;
	--accent-2: #a78bfa;
	--accent-hi: #a78bfa;
	--accent-ink: #0b0614;
	--danger: #f0605d;
	--danger-text: #ffb3b1;
	--bar-bg: rgba(8,8,10,.72);
	--tabs-bg: rgba(18,18,22,.86);
	--tabs-shadow: rgba(0,0,0,.55);
	--overlay-bg: rgba(8,8,10,.78);
	--scrim: rgba(0,0,0,.6);
	--card-a: #14131a;
	--card-b: #0d0d11;
	--hero-a: #15131c;
	--hero-b: #0e0d13;
	--radius: 14px;
	--tab-h: 64px;
	--safe-b: env(safe-area-inset-bottom, 0px);
}

/* Tagmodus: heller Hintergrund, Petrol als Highlight */
html[data-theme="day"] {
	--bg: #f3f6f6;
	--surface: #ffffff;
	--surface-2: #e8eeee;
	--line: #d6dede;
	--text: #0f1515;
	--muted: #566262;
	--accent: #0e7c86;
	--accent-rgb: 14,124,134;
	--accent-2: #0b6a73;
	--accent-hi: #3cc6d1;
	--accent-ink: #ffffff;
	--danger: #c8302c;
	--danger-text: #a8231f;
	--bar-bg: rgba(243,246,246,.82);
	--tabs-bg: rgba(255,255,255,.92);
	--tabs-shadow: rgba(10,40,45,.18);
	--overlay-bg: rgba(255,255,255,.9);
	--scrim: rgba(5,25,28,.45);
	--card-a: #ffffff;
	--card-b: #eff5f5;
	--hero-a: #f4fbfb;
	--hero-b: #d9eef0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; }
html[data-theme="day"] { color-scheme: light; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font: 16px/1.45 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 800; line-height: 1.1; }
a { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Layout ---------- */
#mtb-app { min-height: 100dvh; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
.mtb-top {
	position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
	padding: 14px 18px; background: var(--bar-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.mtb-logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.mtb-logo sup { color: var(--accent); font-size: .5em; margin-left: 2px; }
.mtb-user { color: var(--muted); font-size: .85rem; text-decoration: none; }
.mtb-view { max-width: 720px; margin: 0 auto; padding: 22px 18px; }
.mtb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mtb-head h1 { font-size: 2.1rem; }
.mtb-sub { color: var(--muted); margin: 4px 0 0; font-size: .92rem; }

/* ---------- Tab-Leiste ---------- */
.mtb-tabs {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
	height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
	background: var(--tabs-bg); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.mtb-tabs a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600;
}
.mtb-tabs a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mtb-tabs a.on { color: var(--accent-2); }

/* ---------- Bausteine ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-weight: 700; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(240,96,93,.4); background: transparent; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.btn.block { width: 100%; }
.fab {
	position: fixed; right: 18px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 25;
	width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink);
	font-size: 2rem; font-weight: 300; line-height: 1; box-shadow: 0 8px 28px rgba(var(--accent-rgb),.45); cursor: pointer;
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list { display: grid; gap: 12px; }
.row-card { display: flex; gap: 14px; padding: 14px; align-items: center; cursor: pointer; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.row-card:active { background: var(--surface-2); }
.row-card .ttl { font-weight: 700; }
.row-card .meta { color: var(--muted); font-size: .85rem; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(var(--accent-rgb),.16); color: var(--accent-2); font-size: .78rem; font-weight: 700; }
.thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; }
.empty { text-align: center; color: var(--muted); padding: 48px 12px; }

/* Tacklebox-Kacheln */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -18px 16px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { text-align: left; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.tile .ph { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--line); font-size: 2.4rem; }
.tile .tx { padding: 10px 12px 12px; }
.tile .nm { font-weight: 700; font-size: .95rem; }
.tile .mt { color: var(--muted); font-size: .8rem; }

/* Formulare als Sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 720px; max-height: 94dvh; overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 20px 18px calc(24px + var(--safe-b)); }
.sheet h2 { font-size: 1.6rem; margin-bottom: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none;
}
.field textarea { padding: 12px 14px; min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions .btn { flex: 1; }
.photo-pick { display: flex; align-items: center; gap: 12px; }
.photo-pick img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.photo-pick input[type=file] { display: none; }
.err { color: var(--danger); font-size: .9rem; margin: 6px 0; }

/* Karte */
.map { height: 260px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 8px; background: var(--surface); }
.map-big { height: 340px; }
.leaflet-container { font-family: inherit; }
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.5); }
.coords { color: var(--muted); font-size: .82rem; margin-bottom: 12px; }

/* Fänge im Formular */
.catch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.catch-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* Dashboard / Statistik */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; }
.kpi b { display: block; font-size: 1.9rem; letter-spacing: -0.03em; }
.kpi span { color: var(--muted); font-size: .78rem; }
.section { margin: 24px 0 10px; font-size: 1.1rem; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(80px, 48%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.bar .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .tr { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar .tr i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }
.bar .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.record { background: linear-gradient(135deg, rgba(var(--accent-rgb),.22), rgba(var(--accent-rgb),.04)); border: 1px solid rgba(var(--accent-rgb),.35); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.record b { font-size: 1.5rem; letter-spacing: -0.02em; }
.wx { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.wx span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .84rem; }
.photos { display: flex; gap: 10px; overflow-x: auto; }
.photos img { width: 130px; height: 130px; object-fit: cover; border-radius: 12px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 90px); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; z-index: 99; font-size: .9rem; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, rgba(var(--accent-rgb),.28), transparent 60%), var(--bg); }
.login { width: 100%; max-width: 380px; }
.login h1 { font-size: 3rem; margin-bottom: 8px; }
.login h1 sup { color: var(--accent); font-size: .35em; }
.login p { color: var(--muted); margin: 0 0 28px; }
.login label { display: block; margin-bottom: 14px; }
.login label span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.login input[type=text], .login input[type=password] { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; }
.login input:focus { border-color: var(--accent); }
.login .forgetmenot { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .9rem; margin: 6px 0 18px; }
.login input[type=submit] { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1rem; cursor: pointer; }
.login .lost { display: block; text-align: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.login .msg { background: rgba(240,96,93,.12); border: 1px solid rgba(240,96,93,.35); color: var(--danger-text); padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; font-size: .9rem; }

/* wp-login.php (Fehler, Passwort vergessen) im selben Stil */
body.login { background: var(--bg); color: var(--text); }
body.login #login h1 a { background: none; font: 800 2rem "Instrument Sans", sans-serif; text-indent: 0; width: auto; height: auto; color: var(--text); }
body.login form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
body.login label, body.login #nav a, body.login #backtoblog a { color: var(--muted); }
body.login input[type=text], body.login input[type=password] { background: var(--bg); border-color: var(--line); color: var(--text); }
body.login .button-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
body.login .message, body.login #login_error { background: var(--surface); color: var(--text); border-left-color: var(--accent); }

@media (min-width: 760px) {
	.grid { grid-template-columns: repeat(3, 1fr); }
	.sheet-wrap { align-items: center; }
	.sheet { border-radius: 22px; }
}

/* ================= Feinschliff v2 ================= */
body { background: radial-gradient(700px 380px at 85% -60px, rgba(var(--accent-rgb),.16), transparent 70%), var(--bg); background-attachment: fixed; }
.mtb-top { background: var(--bar-bg); border-bottom-color: transparent; }
.mtb-logo { font-size: 1.15rem; letter-spacing: -0.04em; }
.mtb-user { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.mtb-head h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); letter-spacing: -0.045em; line-height: .98; }
.mtb-head .mtb-sub, .eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; color: var(--muted); }
.mtb-view { animation: mtb-in .28s ease both; }
@keyframes mtb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Schwebende Tab-Leiste */
.mtb-tabs {
	left: 50%; right: auto; transform: translateX(-50%); width: min(440px, calc(100% - 24px));
	bottom: calc(12px + var(--safe-b)); height: 60px; padding: 0 6px; border: 1px solid var(--line); border-radius: 22px;
	background: var(--tabs-bg); box-shadow: 0 12px 40px var(--tabs-shadow);
}
.mtb-tabs a { border-radius: 16px; margin: 6px 0; transition: background .2s, color .2s; }
.mtb-tabs a.on { background: rgba(var(--accent-rgb),.16); }
#mtb-app { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 40px); }
.fab { bottom: calc(var(--tab-h) + var(--safe-b) + 34px); }
.toast { bottom: calc(var(--tab-h) + var(--safe-b) + 100px); }

/* Start: Hero */
.hero { position: relative; padding: 26px 22px 24px; margin-bottom: 14px; border-radius: 24px; border: 1px solid rgba(var(--accent-rgb),.3); overflow: hidden;
	background: radial-gradient(420px 260px at 100% 0, rgba(var(--accent-rgb),.42), transparent 70%), linear-gradient(180deg, var(--hero-a), var(--hero-b)); }
.hero .eyebrow { display: block; color: var(--accent-2); }
.hero-num { font-size: clamp(5rem, 28vw, 8rem); font-weight: 800; letter-spacing: -0.06em; line-height: .95; margin: 10px 0 2px; }
.hero-lbl { color: var(--muted); margin-bottom: 22px; font-size: 1rem; }
.kpis.two { grid-template-columns: 1fr 1fr; }
a.kpi { text-decoration: none; color: inherit; }
.kpi b { font-size: 2.2rem; letter-spacing: -0.04em; }

/* Tagebuch: Cover-Karten */
.covers { display: grid; gap: 14px; }
.cover { position: relative; display: block; width: 100%; aspect-ratio: 16 / 11; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; cursor: pointer; background: var(--surface); transition: transform .18s; }
.cover:active { transform: scale(.985); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.nophoto { background: radial-gradient(300px 200px at 20% 10%, rgba(var(--accent-rgb),.5), transparent 70%), repeating-linear-gradient(115deg, #17151f 0 18px, #1b1824 18px 36px); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5,5,8,.9)); }
.cover-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(8,8,10,.7); backdrop-filter: blur(8px); font-size: .78rem; font-weight: 700; }
.cover-tx { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: grid; gap: 2px; }
.cover-date { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.7); font-weight: 600; }
.cover-ttl { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.cover-best { color: var(--accent-hi); font-weight: 700; font-size: .9rem; }

/* Tacklebox: Kacheln */
.tile { border-radius: 18px; transition: transform .18s, border-color .18s; }
.tile:active { transform: scale(.98); }
.tile .tx { padding: 12px 14px 14px; }
.tile .nm { font-size: 1rem; letter-spacing: -0.01em; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

@media (min-width: 900px) {
	.mtb-view { max-width: 920px; padding-top: 36px; }
	.covers { grid-template-columns: 1fr 1fr; }
	.grid { grid-template-columns: repeat(4, 1fr); }
	.kpis { gap: 14px; }
	.fab { right: calc(50% - 440px); }
}
@media (prefers-reduced-motion: reduce) { .mtb-view { animation: none; } .cover, .tile { transition: none; } }

/* ================= Gerätebox, Profil, Community ================= */
.mtb-tabs { width: min(480px, calc(100% - 24px)); }
.mtb-tabs a { position: relative; font-size: .68rem; }
.mtb-tabs .dot { position: absolute; top: 8px; right: calc(50% - 20px); width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }

.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: var(--surface-2); }
.avatar.ph { display: inline-grid; place-items: center; font-weight: 800; color: var(--accent-2); background: rgba(var(--accent-rgb),.18); border: 1px solid rgba(var(--accent-rgb),.35); letter-spacing: 0; }
.mtb-me { display: inline-flex; border-radius: 50%; }
.mtb-me .avatar { border: 1px solid var(--line); }

.card.pad { padding: 18px; }
.row-actions { display: flex; gap: 8px; flex: none; }
.row-card[href], a.row-card { display: flex; }

.author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cover-badge.who { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; }

.reacts { display: flex; flex-wrap: wrap; gap: 8px; }
.react { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .92rem; cursor: pointer; }
span.react { min-height: 36px; cursor: default; }
.react b { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.react.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.react.on b { color: var(--accent-ink); }

.mtb-me, .mtb-me:hover { text-decoration: none; }
.mtb-me .avatar.ph { text-decoration: none; }

/* ================= In Memoriam ================= */
.memorial { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px; cursor: pointer; border-radius: var(--radius);
	border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-a), var(--card-b)); }
.memorial .thumb { filter: grayscale(1) contrast(.95); opacity: .85; display: grid; place-items: center; color: var(--muted); font-size: 1.6rem; }
.memo-stat { margin-top: 6px; color: var(--accent-2); font-size: .85rem; font-weight: 600; }
.memo-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; filter: grayscale(1) contrast(.95); }
.sheet .eyebrow { display: block; margin-bottom: 4px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; }
.catch.lost { border-color: rgba(var(--accent-rgb),.3); background: linear-gradient(180deg, var(--hero-a), var(--hero-b)); }
.memorial { color: var(--text); font: inherit; }
.memorial .ttl { font-weight: 700; }
.memorial .meta { color: var(--muted); font-size: .85rem; }

/* ================= Anzahl, Link-Import ================= */
.tile { position: relative; }
.qty-badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 11px; border-radius: 999px; background: var(--overlay-bg); backdrop-filter: blur(8px); border: 1px solid rgba(var(--accent-rgb),.45); color: var(--accent-2); font-weight: 800; font-size: .82rem; }
.field .hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: .8rem; }
.field input[type=url] { flex: 1; min-width: 0; }
.coords a { color: var(--accent-2); }

/* Hardbait-Angaben */
.hard[hidden] { display: none; }
.tile .hard-info { color: var(--accent-2); font-weight: 600; }

/* Lesezeichen-Import */
.linklike { align-self: flex-start; padding: 6px 0; border: 0; background: none; color: var(--accent-2); text-decoration: underline; text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; cursor: pointer; text-align: left; }
.steps { margin: 0 0 14px; padding-left: 22px; color: var(--text); }
.steps li { margin-bottom: 8px; }
.sheet textarea[readonly] { position: absolute; left: -9999px; }
a.btn { text-decoration: none; }

/* Köder nach Hersteller gruppiert */
.maker-head { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 10px; }
.maker-group:first-child .maker-head { margin-top: 6px; }

/* Rekorde nebeneinander */
.records { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.records .record { margin-bottom: 0; padding: 14px; min-width: 0; overflow-wrap: anywhere; }
.records .record b { font-size: 1.25rem; }
.records .record > span { display: block; font-size: .8rem; }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; margin-bottom: 14px; }
.hero-stat { min-width: 0; }
.hero-stats .hero-num { font-size: clamp(2.3rem, 12vw, 4.4rem); white-space: nowrap; margin: 6px 0 2px; }
.hero-stats .hero-lbl { margin-bottom: 0; font-size: .82rem; line-height: 1.3; }
.hero-num .pct { font-size: .45em; letter-spacing: 0; margin-left: 2px; color: var(--muted); }
.hero > .rank { margin: 0 0 22px; display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(var(--accent-rgb),.2); border: 1px solid rgba(var(--accent-rgb),.45); color: var(--accent-2); font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.valuebox .kpis { margin-bottom: 14px; }
.valuebox .kpi b { font-size: 1.15rem; letter-spacing: -0.02em; }
.valuebox .kpi.accent { border-color: rgba(var(--accent-rgb), .5); }
.fav-badge { width: auto; padding: 0 9px; border-radius: 999px; height: 24px; font-size: .68rem; font-weight: 700; }


/* Tagebuch nach Jahr und Monat */
.diary-year { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 1.9rem; letter-spacing: -0.03em; }
.diary-year .mtb-sub { font-size: .85rem; font-weight: 400; letter-spacing: 0; }
.diary-month { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; font-size: 1.05rem; color: var(--accent-2); }
.mtb-view > .diary-year:first-of-type { margin-top: 14px; }

/* Cover-Karten liegen auf Fotos: in beiden Modi dunkel mit heller Schrift */
.cover { color: #f5f5f7; }
.cover-badge { color: #f5f5f7; }
html[data-theme="day"] .cover.nophoto { background: radial-gradient(300px 200px at 20% 10%, rgba(var(--accent-rgb),.55), transparent 70%), repeating-linear-gradient(115deg, #101d20 0 18px, #14262a 18px 36px); }
html[data-theme="day"] .cover-badge { background: rgba(6,14,16,.72); }

/* Tag/Nacht-Schalter */
.mtb-top-r { display: flex; align-items: center; gap: 10px; }
.mtb-mode { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mtb-mode svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="day"] .btn.primary, html[data-theme="day"] .fab { box-shadow: 0 6px 22px rgba(var(--accent-rgb),.5); }

/* ---------- Neue Funktionen ---------- */
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.live { margin-bottom: 14px; padding: 18px; border-radius: 22px; border: 1px solid rgba(var(--accent-rgb), .5); background: linear-gradient(180deg, rgba(var(--accent-rgb), .18), rgba(var(--accent-rgb), .05)); }
.live-head { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .02em; color: var(--accent-2); text-transform: uppercase; font-size: .78rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); animation: mtb-pulse 1.8s infinite; }
@keyframes mtb-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .55); } 70% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.live-meta { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.live-nums { font-size: 1.1rem; margin: 10px 0 14px; }
.live-nums b { font-size: 2.6rem; letter-spacing: -0.04em; margin-right: 4px; }
.live-act { display: flex; flex-wrap: wrap; gap: 10px; }
.live .linklike { margin-top: 12px; }
.toast { display: flex; align-items: center; gap: 12px; }
.toast-act { border: 0; background: transparent; color: var(--bg); font-weight: 800; text-decoration: underline; cursor: pointer; padding: 0; }
.fav-badge { position: absolute; top: 10px; left: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--overlay-bg); color: var(--accent-2); font-size: .95rem; border: 1px solid rgba(var(--accent-rgb), .45); }
.buddies { display: grid; gap: 4px; }
.comments { display: grid; gap: 10px; margin-bottom: 10px; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment .ctext { overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); outline: none; }
.year-prev { max-width: 460px; margin: 0 auto; }
.year-canvas { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); display: block; }
.rank-n { min-width: 26px; font-size: 1.3rem; text-align: center; color: var(--accent-2); }
.row-card.me { border-color: rgba(var(--accent-rgb), .55); }

/* Statistik: Vorjahresvergleich */
.cmp-row { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(var(--accent-rgb), .2); }
.cmp-row:first-of-type { border-top: 0; }
.cmp-row span:first-child { flex: 1; }
.cmp-row b { font-size: 1.15rem; }
.record .cmp-row { font-size: .95rem; }
