@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* Weiß, schlicht, 1000px mittig (Airbnb-Anmutung). Markenfarben nur als Akzent. */
:root {
  --navy: #1a2438;
  --blue: #1e9be9;
  --blue-dark: #1478b8;
  --red: #c8232c;
  --brand: #e0185e;       /* MediChart-Pink aus dem Logo */
  --brand-dark: #b8124b;
  --bg: #fff;
  --soft: #f7f7f7;
  --text: #222;
  --muted: #717171;
  --border: #ebebeb;
  --border-strong: #dddddd;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.5; display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--text); }
.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 460px; }
.container-prose { max-width: 760px; }
.mono { font-family: var(--mono); }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.accent { color: var(--brand); }
.accent-red { color: var(--red); }
.center { text-align: center; }
.is-disabled { opacity: .45; pointer-events: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Header / Footer ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: block; flex: none; } .brand:hover { text-decoration: none; }
.logo { display: block; height: var(--logo-size, 1.6rem); width: auto; max-width: 100%; object-fit: contain; }
.logo-md { --logo-size: 1.4rem; } .logo-lg { --logo-size: 2.4rem; } .logo-xl { --logo-size: 3.2rem; }
.brand .logo { --logo-size: 2rem; }
.main-nav { display: flex; gap: 1.5rem; align-items: center; font-weight: 500; font-size: .95rem; }
.main-nav a { color: var(--text); } .main-nav a:hover { text-decoration: none; color: var(--muted); }
.main-nav a.active { font-weight: 700; }
.main-nav .btn { padding: .5rem 1rem; font-size: .9rem; }
.main-nav .btn-primary, .main-nav .btn-primary:hover { color: #fff; }
.nav-search input { padding: .5rem .9rem; border: 1px solid var(--border-strong); border-radius: 0; font: inherit; font-size: .9rem; width: 170px; background: #fff; }
.nav-search input:focus { outline: none; border-color: var(--text); }
.main-nav a.active { color: var(--brand); }

.site-footer { background: var(--soft); border-top: 1px solid var(--border); padding: 2.5rem 0 2rem; margin-top: 4rem; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 3rem; align-items: start; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; } .footer-brand .mono { color: var(--muted); font-size: .8rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer a { color: var(--text); }
.muted-dark { color: var(--muted); grid-column: 1 / -1; }

/* ---------- Buttons, Chips ---------- */
.btn { display: inline-block; padding: .7rem 1.3rem; border-radius: 0; font-weight: 600; border: 1px solid transparent; font-size: .95rem; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); } .btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline, .btn-ghost { background: #fff; border-color: var(--text); color: var(--text); } .btn-outline:hover, .btn-ghost:hover { background: var(--soft); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; } .btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .9rem; border: 1px solid var(--border-strong); background: #fff; color: var(--text); font-weight: 500; font-size: .9rem; }
.chip:hover { border-color: var(--text); text-decoration: none; } .chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.chip .mono { color: var(--muted); font-size: .75rem; } .chip.active .mono { color: #ccc; }
.chips-sm .chip { padding: .3rem .75rem; font-size: .85rem; }
.eyebrow { color: var(--muted); font-size: .8rem; margin: 0 0 .75rem; }
.breadcrumbs a { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; margin: 0 0 1.5rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Sektionen ---------- */
.section { padding: 3rem 0; }
.section-alt { border-top: 1px solid var(--border); }
.section-title { font-size: 1.4rem; margin: 0 0 1.25rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.page-header, .bp-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); }
.page-header h1, .bp-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 .6rem; }
.page-header .lead, .bp-header .lead { margin-bottom: 1rem; }
.hero { padding: 3rem 0; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 1rem; }
.hero-narrow { padding: 3rem 0 4rem; }

/* Startseite */
.intro { padding: 3.5rem 0 1.5rem; }
.intro h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .4rem; }
.intro .lead { font-size: 1.3rem; color: var(--text); font-weight: 500; margin-bottom: 1.75rem; }
.section-blueprints { padding-bottom: 2rem; }
.more { margin-top: 2.5rem; }

/* ---------- Workflow-Zeile (Skizze: Text links, Video + JackMaster rechts, Buttons darunter) ---------- */
.rows-bp { display: flex; flex-direction: column; }
.wf { display: grid; grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "main side" "btns btns"; gap: 1.25rem 2rem; padding: 2.25rem 0; border-top: 1px solid var(--border); }
.rows-bp > .wf:last-child { border-bottom: 1px solid var(--border); }
.wf-main { grid-area: main; min-width: 0; }
.wf-kicker { font-family: var(--mono); font-size: .75rem; color: var(--brand); margin: 0 0 .4rem; letter-spacing: .02em; }
.wf h3 { font-size: 1.5rem; margin: 0 0 .6rem; }
.wf h3 a { color: var(--text); } .wf h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wf-text { margin: 0 0 .75rem; color: var(--muted); font-size: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wf-side { grid-area: side; display: flex; flex-direction: column; gap: .6rem; }
.wf-video { position: relative; display: block; aspect-ratio: 16/10; background: var(--soft); border: 1px solid var(--border); overflow: hidden; }
.wf-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wf-play { position: absolute; right: .6rem; bottom: .6rem; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: .8rem; padding-left: 3px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.wf-master { display: flex; flex-direction: column; gap: .1rem; color: var(--text); } .wf-master:hover { text-decoration: none; }
.wf-master-label { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wf-master-label img { width: 14px; height: 14px; border-radius: 50%; }
.wf-master-name { font-weight: 600; font-size: .95rem; } .wf-master:hover .wf-master-name { text-decoration: underline; }
.wf-btns { grid-area: btns; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.wf-btn { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem .75rem; border: 1px solid var(--border-strong); background: #fff; color: var(--text); font-weight: 600; font-size: .9rem; white-space: nowrap; }
a.wf-btn:hover { border-color: var(--text); text-decoration: none; }
.wf-btn.is-level { background: var(--soft); border-color: var(--soft); }
.wf-btn.is-off { color: #b0b0b0; border-style: dashed; }
.wf-check { color: #1c8c43; font-weight: 800; }
.bp-header .wf-btns { max-width: 720px; margin-top: 1.25rem; }

.sponsor-badge { display: inline-block; padding: .15rem .5rem; border: 1px solid var(--border-strong); color: var(--muted); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.sponsor-badge:hover { color: var(--text); border-color: var(--text); text-decoration: none; }

/* Kacheln (falls noch genutzt) */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card-bp { border: 1px solid var(--border); display: flex; flex-direction: column; }
.card-bp-media { position: relative; aspect-ratio: 16/9; background: var(--soft); display: block; overflow: hidden; }
.card-bp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-bp-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 2rem; }
.card-bp-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-bp-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .8rem; }
.card-bp h3 { margin: 0; font-size: 1.1rem; } .card-bp p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-bp-author { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .6rem; font-size: .85rem; font-weight: 600; }
.play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(255,255,255,.95); color: var(--text); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; padding-left: 3px; }
.diff { padding: .1rem .5rem; background: var(--soft); }
.tool { padding: .1rem .5rem; background: var(--soft); color: var(--text); }

/* Avatare (bleiben rund) */
.card-bp-author img, .avatar-fallback { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--text); font-weight: 700; border: 1px solid var(--border); }
.avatar-md { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; font-size: 1.3rem; flex: none; }
.avatar-xl { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; font-size: 3rem; flex: none; }

/* JackMaster */
.grid-authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card-author { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--border); padding: 1rem 1.25rem; color: var(--text); }
.card-author:hover { text-decoration: none; border-color: var(--text); }
.card-author div { display: flex; flex-direction: column; gap: .1rem; } .card-author strong { font-weight: 700; }
.author-hero { display: flex; gap: 2rem; align-items: center; }
.author-header { padding-bottom: 2.5rem; }

/* Liste mit Sidebar */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.sidebar h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.5rem 0 .6rem; font-weight: 600; } .sidebar h3:first-child { margin-top: 0; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list a { display: flex; justify-content: space-between; padding: .45rem .6rem; color: var(--text); }
.sidebar-list a:hover { background: var(--soft); text-decoration: none; } .sidebar-list a.active { background: var(--text); color: #fff; } .sidebar-list a.active .muted { color: #ccc; }
.pagination { display: flex; gap: 1.5rem; justify-content: center; margin-top: 2.5rem; }
.layout-sidebar .wf { grid-template-columns: minmax(0, 1fr) 240px; gap: 1rem 2rem; }

/* Detailseite */
.bp-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; color: var(--muted); }
.bp-body { padding: 2.5rem 1.5rem; }
.preview-bar { background: var(--red); color: #fff; text-align: center; padding: .5rem; font-size: .85rem; } .preview-bar a { color: #fff; text-decoration: underline; }
.gallery { margin-bottom: 2.5rem; }
.gallery-stage { aspect-ratio: 16/9; background: #111; overflow: hidden; position: relative; }
.gallery-stage img, .gallery-stage iframe { width: 100%; height: 100%; object-fit: contain; display: block; border: 0; }
.yt-poster { width: 100%; height: 100%; border: 0; background-size: cover; background-position: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #fff; }
.yt-play { width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; padding-left: 5px; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.yt-hint { background: rgba(0,0,0,.65); padding: .3rem .7rem; }
.gallery-caption { margin: .5rem 0 0; min-height: 1.2em; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.gallery-thumb { position: relative; flex: none; width: 110px; aspect-ratio: 16/10; border: 2px solid transparent; overflow: hidden; padding: 0; background: var(--soft); cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .gallery-thumb.active { border-color: var(--text); }
.gallery-thumb .play-badge { width: 26px; height: 26px; font-size: .65rem; }
.bp-tags { margin-top: 2rem; }
.download-box, .author-box, .sponsor-box { border: 1px solid var(--border-strong); padding: 1.25rem; margin-bottom: 1rem; }
.download-box h3, .sidebar .download-box h3 { margin: 0 0 .6rem; font-size: 1.05rem; text-transform: none; letter-spacing: -.01em; color: var(--text); font-weight: 700; } .download-box .btn { margin: .75rem 0 .5rem; }
.download-box details { margin-top: .5rem; } .download-box summary { cursor: pointer; color: var(--muted); }
.author-box { display: flex; gap: 1rem; align-items: center; } .author-box div { display: flex; flex-direction: column; gap: .15rem; } .author-box a { text-decoration: underline; }
.sponsor-box { display: flex; flex-direction: column; gap: .4rem; }
.sponsor-box .sponsor-logo img { max-width: 100%; max-height: 72px; width: auto; height: auto; display: block; margin: .3rem 0; }
.sponsor-box p { margin: 0; } .sponsor-links { display: flex; flex-direction: column; gap: .2rem; margin-top: .3rem; } .sponsor-links a { text-decoration: underline; }
.sponsor-head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; } .sponsor-head h1 { margin: 0 0 .3rem; }
.sponsor-head-logo { max-width: 220px; max-height: 110px; width: auto; height: auto; border: 1px solid var(--border); padding: .75rem; }
.sponsor-desc { max-width: 44rem; margin-top: 1rem; }
.side-stats { text-align: center; }

.prose { font-size: 1.05rem; line-height: 1.7; } .prose-sm { font-size: .95rem; }
.prose a { color: var(--brand-dark); text-decoration: underline; }
.prose h1, .prose h2, .prose h3 { margin: 1.8em 0 .6em; } .prose h2 { font-size: 1.45rem; } .prose h3 { font-size: 1.2rem; }
.prose pre { background: #1d1f21; color: #eee; padding: 1rem 1.25rem; overflow: auto; font-size: .9rem; line-height: 1.5; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: .1em .35em; } .prose pre code { background: none; padding: 0; }
.prose img { max-width: 100%; } .prose blockquote { border-left: 3px solid var(--border-strong); margin: 1.5em 0; padding: .3em 1.2em; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; } .prose th, .prose td { border: 1px solid var(--border); padding: .5rem .7rem; text-align: left; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.search-form { display: flex; gap: .5rem; max-width: 560px; margin-top: 1rem; } .search-form input { flex: 1; padding: .75rem 1rem; border: 1px solid var(--border-strong); font: inherit; } .search-form .btn { font: inherit; }

/* ---------- Formulare, Konto ---------- */
.card { background: #fff; border: 1px solid var(--border-strong); padding: 1.5rem; margin-bottom: 1rem; }
.card-danger { border-color: #f3b4b8; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; border: 1px solid var(--border-strong); border-radius: 0; font: inherit; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form .btn { width: 100%; font: inherit; font-weight: 600; }
.form label.check { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400; }
.form label.check input { width: auto; margin-top: .3rem; }
.form h3 { margin-top: 0; }
.flashes { margin-bottom: 1rem; } .flashes-top { padding-top: 1rem; }
.flash { padding: .7rem 1rem; margin-bottom: .5rem; font-weight: 600; }
.flash-success { background: #e8f6ec; color: #1c6b31; } .flash-error { background: #fdecee; color: #8a1c24; } .flash-info { background: #eaf4fb; color: #0f4f7a; }
.row-2 { display: grid; grid-template-columns: 1fr 2fr; gap: .75rem; }
.subnav { display: flex; gap: 1.25rem; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.subnav a { padding: .7rem 0; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a.active { color: var(--text); border-bottom-color: var(--text); } .subnav a:hover { text-decoration: none; color: var(--text); }
.subnav-logout { margin-left: auto; } .subnav-logout .link, .notice .link, button.link { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; font: inherit; cursor: pointer; }
.notice { background: #fff8e1; color: #7a5b00; padding: .8rem 1rem; margin-bottom: 1.5rem; }
.notice-info { background: #eaf4fb; color: #0f4f7a; } .notice-info a { color: #0f4f7a; font-weight: 700; }
.notice form.inline { display: inline; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.tile { border: 1px solid var(--border); padding: 1rem; display: flex; flex-direction: column; }
.tile-num { font-size: 1.7rem; font-weight: 700; font-family: var(--mono); } .tile-num.mono-sm { font-size: 1.1rem; }
.tile span:last-child { color: var(--muted); font-size: .85rem; }
.list-plain { list-style: none; padding: 0; margin: 0 0 1rem; } .list-plain li { padding: .6rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.table th, .table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--border); } .table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--soft); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .layout-sidebar, .grid-2, .row-2 { grid-template-columns: 1fr; }
  .nav-search { display: none; }
  .author-hero { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section { padding: 2.5rem 0; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 60px; flex-wrap: wrap; justify-content: center; padding-top: .7rem; padding-bottom: .7rem; gap: .6rem; }
  .main-nav { gap: 1rem; font-size: .9rem; width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .intro { padding: 2.25rem 0 1rem; }
  .wf, .layout-sidebar .wf { grid-template-columns: 1fr; grid-template-areas: "side" "main" "btns"; gap: 1rem; padding: 1.75rem 0; }
  .wf-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Reel der Woche ---------- */
.reel-stage { width: 100%; max-width: 400px; margin: 0 auto; }
.reel-poster { position: relative; display: block; width: 100%; aspect-ratio: 9/16; padding: 0; border: 1px solid var(--border); background: #111 center / cover no-repeat; cursor: pointer; overflow: hidden; }
.reel-poster.is-empty { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 60%, var(--navy) 100%); }
.reel-poster-name { position: absolute; left: 1.25rem; right: 1.25rem; top: 1.25rem; color: #fff; font-weight: 700; font-size: 1.3rem; text-align: left; }
.reel-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; padding-left: 5px; box-shadow: 0 4px 20px rgba(0,0,0,.25); transition: transform .15s; }
.reel-poster:hover .reel-play { transform: translate(-50%, -50%) scale(1.08); }
.reel-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; background: rgba(0,0,0,.55); color: #fff; text-align: center; }
.reel-stage iframe { display: block; width: 100%; height: 760px; border: 1px solid var(--border); background: #fff; }

/* ---------- Auszeichnung „Reel der Woche“ (Startseite) ---------- */
/* Logo-Stil: Pink #e0185e als Rand/Akzent, dunkle Bühne, technischer Dial (partials/award_seal) */
:root { --stage: #0f1626; --stage-2: #1a2438; --brand-glow: rgba(224,24,94,.35); }
.is-home main { padding-bottom: 1rem; }
.award-stage {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  border-top: 4px solid var(--brand);
  background:
    radial-gradient(ellipse 55% 50% at 50% 28%, var(--brand-glow), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, var(--stage-2) 0%, var(--stage) 100%);
  padding: 2.5rem 0 9rem;
}
.award-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--brand), transparent); }
.award-head { position: relative; z-index: 1; max-width: 820px; }
.award-seal { width: 220px; height: 220px; display: block; margin: 0 auto 1rem; filter: drop-shadow(0 10px 30px var(--brand-glow)); }
.seal-ring-out { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1; }
.seal-ticks line { stroke-width: 2; stroke-linecap: round; }
.t-on { stroke: var(--brand); } .t-off { stroke: rgba(255,255,255,.22); }
.seal-arc { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 0; animation: seal-arc 1.4s cubic-bezier(.2,.8,.2,1) both; }
.seal-dot { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.seal-core { stroke: var(--brand); stroke-width: 2.5; }
.seal-core-line { fill: none; stroke: rgba(255,255,255,.14); stroke-dasharray: 1 3; }
.seal-mark { fill: var(--brand); }
.seal-rule { stroke: var(--brand); stroke-width: 2; }
.seal-kicker { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1.8px; fill: rgba(255,255,255,.78); }
.seal-big { font-family: var(--sans); font-size: 37px; font-weight: 800; letter-spacing: -.5px; fill: #fff; }
.seal-small { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; fill: var(--brand); }
@keyframes seal-arc { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.award-kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 0 0 .5rem; }
.award-kicker::before { content: "▲ "; color: var(--brand); }
.award-winner { font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .9rem; line-height: 1.15; }
.award-winner a { color: #fff; text-decoration: none; background: linear-gradient(var(--brand), var(--brand)) bottom / 100% 3px no-repeat; padding-bottom: .12em; }
.award-winner a:hover { color: #ffd1e1; }
.award-title { color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 500; font-style: italic; line-height: 1.45; margin: 0 auto; max-width: 40rem; letter-spacing: 0; }

.award-body { max-width: 760px; margin-top: -7rem; position: relative; z-index: 2; text-align: center; }
.award-frame { position: relative; width: 100%; max-width: 400px; margin: 0 auto; padding: 5px; background: var(--brand); box-shadow: 0 24px 60px rgba(15,22,38,.35), 0 0 0 1px rgba(255,255,255,.08); }
.award-frame::before, .award-frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid var(--brand); pointer-events: none; }
.award-frame::before { left: -12px; top: -12px; border-right: 0; border-bottom: 0; }
.award-frame::after { right: -12px; bottom: -12px; border-left: 0; border-top: 0; }
.award-frame .reel-stage { max-width: none; }
.award-frame .reel-poster { border: 0; }
.award-sash { position: absolute; z-index: 3; top: 18px; right: -10px; background: #fff; color: var(--brand); border: 2px solid var(--brand); font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .4rem .8rem; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.award-sash::after { content: ""; position: absolute; right: -2px; bottom: -12px; border-left: 10px solid var(--brand-dark); border-bottom: 10px solid transparent; }

.award-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; max-width: 560px; margin: 2rem auto 0; }
.award-stats div { border: 1px solid var(--border); border-top: 3px solid var(--brand); padding: .9rem .5rem .8rem; background: #fff; }
.award-stats dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.award-stats dd { margin: .2rem 0 0; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.award-text { font-size: 1.1rem; line-height: 1.65; color: var(--text); margin: 2rem auto 0; max-width: 40rem; text-align: left; border-left: 3px solid var(--brand); padding-left: 1.1rem; }
.award-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 0; }
.award-how { color: var(--muted); max-width: 36rem; margin: 2.25rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.award-how strong { color: var(--text); }
.award-empty { padding-bottom: 4rem; }
.award-empty .award-title { font-style: normal; color: #fff; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .75rem; }

@media (max-width: 560px) {
  .award-seal { width: 180px; height: 180px; }
  .award-stage { padding-bottom: 8rem; }
  .award-stats { gap: .4rem; } .award-stats dd { font-size: 1.15rem; }
  .award-sash { right: -6px; font-size: .65rem; }
  .award-frame::before, .award-frame::after { width: 16px; height: 16px; }
  .award-frame::before { left: -9px; top: -9px; } .award-frame::after { right: -9px; bottom: -9px; }
}
@media (prefers-reduced-motion: reduce) { .seal-arc { animation: none; } }

/* ---------- Blättern: Dial-Pfeile neben dem Siegel ---------- */
.dial { display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 3vw, 2rem); margin: 0 auto 1rem; }
.dial .award-seal { margin: 0; flex: none; }
.dial-btn { width: 92px; flex: none; display: flex; align-items: center; justify-content: center; gap: .35rem; color: #fff; text-decoration: none; }
.dial-btn:hover { text-decoration: none; }
.dial-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; line-height: 1; padding-bottom: 4px; transition: transform .2s, border-color .2s, background .2s; }
.dial-label { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.6); white-space: nowrap; }
.dial-btn:hover .dial-arrow, .dial-btn:focus-visible .dial-arrow { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 24px var(--brand-glow); }
.dial-older:hover .dial-arrow { transform: translateX(-4px) rotate(-12deg); }
.dial-newer:hover .dial-arrow { transform: translateX(4px) rotate(12deg); }
.dial-btn:hover .dial-label { color: #fff; }
.dial-btn.is-off { visibility: hidden; }
/* Siegel „dreht“ beim Blättern wie ein Drehregler */
.is-turning-older .award-seal { animation: dial-turn-l .35s ease-in forwards; }
.is-turning-newer .award-seal { animation: dial-turn-r .35s ease-in forwards; }
@keyframes dial-turn-l { to { transform: rotate(-35deg) scale(.92); opacity: .5; } }
@keyframes dial-turn-r { to { transform: rotate(35deg) scale(.92); opacity: .5; } }

/* ---------- Ruhmeshalle: Trophäen-Regal mit allen Gewinnern ---------- */
.hall { margin-top: 4rem; padding: 2.5rem 0 1rem; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--soft), #fff 70%); }
.hall-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.hall-kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 .3rem; }
.hall-kicker::before { content: "▲ "; }
.hall-title { margin: 0; font-size: clamp(1.4rem, 3vw, 1.8rem); display: flex; align-items: center; gap: .6rem; }
.hall-count { font-family: var(--mono); font-size: .8rem; background: var(--brand); color: #fff; padding: .15rem .5rem; letter-spacing: 0; }
.hall-tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.hall-tools .btn-primary, .hall-tools .btn-primary:hover { color: #fff; }
.dice { display: inline-block; transition: transform .2s; }
.hall-dice:hover .dice { transform: rotate(-20deg) scale(1.15); }
.hall-dice.is-rolling .dice { animation: dice-roll .6s cubic-bezier(.3,.7,.4,1) infinite; }
@keyframes dice-roll { 0% { transform: rotate(0) translateY(0); } 40% { transform: rotate(200deg) translateY(-8px); } 100% { transform: rotate(360deg) translateY(0); } }

.hall-shelf { position: relative; margin-top: 1rem; }
/* Regalbrett unter den Karten */
.hall-shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1.4rem; height: 10px; background: linear-gradient(180deg, var(--stage-2), var(--stage)); border-top: 2px solid var(--brand); box-shadow: 0 10px 20px rgba(15,22,38,.18); z-index: 0; }
.hall-strip { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 1.5rem max(1.5rem, calc(50vw - 500px + 1.5rem)) 2.3rem; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.hall-strip > :first-child { margin-left: auto; } .hall-strip > :last-child { margin-right: auto; }
.hall-year { flex: none; align-self: stretch; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-weight: 700; font-size: .8rem; letter-spacing: .3em; color: var(--muted); border-left: 1px dashed var(--border-strong); padding: 0 .4rem 0 0; text-align: center; }

.trophy { flex: none; width: 168px; scroll-snap-align: center; display: flex; flex-direction: column; background: #fff; color: var(--text); padding: 6px 6px 0; border: 1px solid var(--border); box-shadow: 0 6px 16px rgba(15,22,38,.12); transform: rotate(var(--tilt, 0deg)); transform-origin: 50% 100%; transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s; }
.trophy:hover, .trophy:focus-visible { text-decoration: none; transform: rotate(0) translateY(-10px) scale(1.04); box-shadow: 0 18px 34px rgba(15,22,38,.22); outline: none; }
.trophy:focus-visible { box-shadow: 0 0 0 3px var(--brand), 0 18px 34px rgba(15,22,38,.22); }
.trophy.is-here { transform: none; width: 188px; padding: 5px 5px 0; background: var(--brand); border-color: var(--brand); box-shadow: 0 14px 34px var(--brand-glow); }
.trophy.is-here .trophy-body { background: #fff; margin: 0 -5px; padding-left: calc(.55rem + 5px); padding-right: calc(.55rem + 5px); }
.trophy-media { position: relative; display: block; aspect-ratio: 9/14; background: #111 center / cover no-repeat; overflow: hidden; }
.trophy-media.is-empty { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 60%, var(--navy) 100%); }
.trophy-ph { position: absolute; left: .6rem; right: .6rem; top: .6rem; color: #fff; font-weight: 700; font-size: .9rem; line-height: 1.25; }
.trophy-badge { position: absolute; left: 0; bottom: .6rem; background: #fff; color: var(--brand); font-family: var(--mono); font-weight: 700; font-size: .75rem; letter-spacing: .05em; padding: .2rem .5rem; border: 2px solid var(--brand); border-left: 0; }
.trophy-here { position: absolute; right: .4rem; top: .4rem; background: var(--brand); color: #fff; font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .4rem; }
.trophy-here.is-new { background: var(--stage); }
.trophy-body { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .55rem .7rem; }
.trophy-name { font-size: .85rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trophy-title { font-size: .78rem; font-style: italic; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trophy-views { font-family: var(--mono); font-size: .66rem; color: var(--muted); margin-top: .2rem; }
.hall-hint { margin-top: 0; }
.hall-hint kbd { font-family: var(--mono); font-size: .75rem; border: 1px solid var(--border-strong); border-bottom-width: 2px; padding: 0 .35rem; background: #fff; }
@media (hover: none) { .hall-hint { display: none; } }

@media (max-width: 560px) {
  .dial-btn { width: 52px; }
  .dial-label { display: none; }
  .dial-arrow { width: 42px; height: 42px; }
  .trophy { width: 140px; } .trophy.is-here { width: 156px; }
  .hall-strip { gap: 1rem; }
}

/* ---------- Seitenwechsel als View Transition (Chrome/Safari; sonst normaler Seitenwechsel) ---------- */
@view-transition { navigation: auto; }
.award-seal { view-transition-name: seal; }
.award-frame { view-transition-name: reel; }
.hall-strip { view-transition-name: hall; }
::view-transition-group(seal) { animation-duration: .45s; }
html:active-view-transition-type(older) ::view-transition-old(reel) { animation: vt-out-r .35s ease-in both; }
html:active-view-transition-type(older) ::view-transition-new(reel) { animation: vt-in-l .4s cubic-bezier(.2,.8,.2,1) both; }
html:active-view-transition-type(newer) ::view-transition-old(reel) { animation: vt-out-l .35s ease-in both; }
html:active-view-transition-type(newer) ::view-transition-new(reel) { animation: vt-in-r .4s cubic-bezier(.2,.8,.2,1) both; }
html:active-view-transition-type(random) ::view-transition-new(reel) { animation: vt-pop .5s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes vt-out-r { to { transform: translateX(40%) rotate(6deg); opacity: 0; } }
@keyframes vt-out-l { to { transform: translateX(-40%) rotate(-6deg); opacity: 0; } }
@keyframes vt-in-l { from { transform: translateX(-40%) rotate(-6deg); opacity: 0; } }
@keyframes vt-in-r { from { transform: translateX(40%) rotate(6deg); opacity: 0; } }
@keyframes vt-pop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .trophy, .trophy:hover { transform: none; transition: none; }
  .is-turning-older .award-seal, .is-turning-newer .award-seal, .hall-dice.is-rolling .dice { animation: none; }
}
