/* Partnerportal Immovisio. Markenwerte wie immovisio.net (Jost, Papier, Messing, Tinte); helles und dunkles Farbschema. */
@font-face { font-family: 'Jost'; src: url(fonts/jost-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(fonts/jost-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
:root {
  color-scheme: light;
  --font-display: 'Jost', 'Avenir Next', 'Century Gothic', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --bg: #fbfaf7; --surface: #ffffff; --surface-2: #f3f0ea; --surface-3: #ebe6dc;
  --text: #1c1e21; --text-2: #565a61; --line: #e2ddd3; --line-strong: #c9c1b2;
  --brass: #e8b326; --brass-hover: #f2c140; --brass-text: #875a00; --brass-tint: #fdf1cf;
  --gold-grad: linear-gradient(135deg, #fbd86a 0%, #e8b326 48%, #c98a0c 100%);
  --on-brass: #1c1e21; --focus: #1f5fcf;
  --dark: #16181b; --dark-2: #1e2125; --on-dark: #f3efe7; --on-dark-2: #bcb5a9; --brass-on-dark: #f2c140;
  --shadow: 0 1px 2px rgba(28, 24, 16, .06), 0 8px 24px rgba(28, 24, 16, .08);
  --radius: 16px; --radius-sm: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #131416; --surface: #1b1d20; --surface-2: #22252a; --surface-3: #2b2f35;
    --text: #efe9dd; --text-2: #aba497; --line: #2e3238; --line-strong: #43484f;
    --brass-text: #f2c140; --brass-tint: #3a2f12; --focus: #8ab4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131416; --surface: #1b1d20; --surface-2: #22252a; --surface-3: #2b2f35;
  --text: #efe9dd; --text-2: #aba497; --line: #2e3238; --line-strong: #43484f;
  --brass-text: #f2c140; --brass-tint: #3a2f12; --focus: #8ab4ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.55 var(--font-body); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Kopf */
.top { position: sticky; top: 0; z-index: 30; background: var(--dark); color: var(--on-dark); border-bottom: 1px solid #000; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); flex: none; }
.brand img { height: 30px; width: auto; }
.brand span { font: 500 12px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-on-dark); border-left: 1px solid #3a3e44; padding-left: 12px; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { font: 500 14.5px/1 var(--font-display); text-decoration: none; color: var(--on-dark-2); padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--on-dark); background: #24282d; }
.nav a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 8px 8px 0 0; }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.lang { appearance: none; background: #24282d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23bcb5a9' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--on-dark); border: 1px solid #3a3e44; border-radius: 8px; font: 500 14px/1 var(--font-display); padding: 9px 30px 9px 12px; cursor: pointer; }
.btn-ghost { background: none; border: 1px solid #3a3e44; color: var(--on-dark-2); font: 500 13.5px/1 var(--font-display); padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.btn-ghost:hover { color: var(--on-dark); border-color: #555a61; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .top .wrap { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .nav { order: 3; flex-basis: 100%; }
  .brand span { display: none; }
}

/* Inhalt */
main { padding-block: 32px 72px; }
.eyebrow { font: 600 12px/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-text); }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; padding-block: 8px 36px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.04; margin-block: 10px 14px; }
.hero p { color: var(--text-2); max-width: 60ch; margin: 0 0 20px; font-size: 16.5px; }
.hero .shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; max-height: 460px; justify-self: end; width: min(100%, 380px); background: var(--surface-2); }
.hero .shot video, .hero .shot img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero .shot { justify-self: start; max-height: 360px; } }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.stats b { font: 600 24px/1 var(--font-display); display: block; color: var(--text); }
.stats li { color: var(--text-2); font-size: 13.5px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font-display); text-decoration: none; padding: 12px 18px; border-radius: 10px; border: 0; cursor: pointer; }
.btn-gold { background: var(--gold-grad); color: var(--on-brass); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-line { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }
.btn-line:hover { border-color: var(--text-2); }
.btn-sm { padding: 8px 12px; font-size: 13.5px; border-radius: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
section.block { margin-top: 44px; display: grid; gap: 18px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.head h2 { font-size: 24px; }
.head a { font: 500 14px/1 var(--font-display); color: var(--brass-text); text-decoration: none; }
.muted { color: var(--text-2); }

/* Kacheln Materialarten */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.tile { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; }
.tile:hover { border-color: var(--brass); }
.tile b { font: 600 17px/1.2 var(--font-display); }
.tile span { color: var(--text-2); font-size: 13.5px; }
.tile i { font: 600 13px/1 var(--font-mono); font-style: normal; color: var(--brass-text); }

/* Kampagnen */
.camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.camp { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; text-decoration: none; }
.camp:hover { box-shadow: var(--shadow); }
.camp .cover { aspect-ratio: 16 / 9; background: var(--surface-2); }
.camp .cover img { width: 100%; height: 100%; object-fit: cover; }
.camp .body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.camp h3 { font-size: 19px; }
.camp p { margin: 0; color: var(--text-2); font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--text-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--font-display); padding: 5px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.chip.gold { background: var(--brass-tint); color: var(--brass-text); }

/* Bibliothek */
.lib { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .lib { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 84px; display: grid; gap: 18px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 4px; }
@media (max-width: 960px) { .filters { position: static; max-height: none; display: none; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); } .filters.open { display: grid; } }
.fgroup { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup legend { font: 600 12px/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; padding: 0; }
.fgroup label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.fgroup label span.n { margin-left: auto; color: var(--text-2); font: 12px/1 var(--font-mono); }
.fgroup input { accent-color: var(--brass); width: 16px; height: 16px; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.search { flex: 1 1 220px; min-width: 0; font: 15px var(--font-body); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); }
.select { font: 500 14px var(--font-display); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); }
.count { color: var(--text-2); font-size: 14px; }
.toggle-filters { display: none; }
@media (max-width: 960px) { .toggle-filters { display: inline-flex; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; min-width: 0; }
.card .th { position: relative; aspect-ratio: 1; background: var(--surface-2); cursor: pointer; border: 0; padding: 0; width: 100%; }
.card .th img, .card .th video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card .th .kind { position: absolute; left: 8px; top: 8px; }
.card .th .dur { position: absolute; right: 8px; bottom: 8px; font: 500 12px/1 var(--font-mono); background: rgba(16, 18, 20, .78); color: #fff; padding: 4px 6px; border-radius: 6px; }
.card .th .play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(16, 18, 20, .66); display: grid; place-items: center; }
.card .th .play::after { content: ''; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.card .cb { padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; }
.card h3 { font-size: 15.5px; line-height: 1.25; }
.card .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.empty { padding: 40px; text-align: center; color: var(--text-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--brass-tint); color: var(--text); font-size: 14px; }

/* Detail */
dialog.detail { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
dialog.detail::backdrop { background: rgba(10, 11, 13, .62); }
.dwrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); max-height: calc(100vh - 32px); }
@media (max-width: 820px) { .dwrap { grid-template-columns: 1fr; overflow: auto; } }
.dmedia { background: #0e0f11; display: grid; place-items: center; min-height: 260px; }
.dmedia video, .dmedia img { max-height: calc(100vh - 32px); width: auto; max-width: 100%; object-fit: contain; }
.dinfo { padding: 22px 24px 26px; display: grid; gap: 14px; align-content: start; overflow: auto; }
.dinfo h2 { font-size: 22px; }
.close { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(16, 18, 20, .7); color: #fff; font-size: 20px; cursor: pointer; z-index: 2; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.dl-list { display: grid; gap: 8px; }
.dl-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: 14px; }
.dl-list a:hover { border-color: var(--brass); }
.dl-list a b { font-family: var(--font-display); font-weight: 600; }
.copy { font: 14px/1.45 var(--font-body); background: var(--surface-2); padding: 10px 12px; border-radius: 10px; white-space: pre-wrap; }

/* Marke */
.brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.logo-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.logo-card .lv { display: grid; place-items: center; height: 150px; padding: 24px; }
.logo-card .lv img { max-height: 70px; width: auto; }
.logo-card .lv.dark { background: var(--dark); }
.logo-card .lv.light { background: #fbfaf7; }
.logo-card .lb { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.swatch { display: grid; grid-template-rows: 90px auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.swatch .sw { border-bottom: 1px solid var(--line); }
.swatch .sb { padding: 10px 12px; display: grid; gap: 2px; font-size: 13.5px; }
.swatch code { font: 13px var(--font-mono); }
.prose { max-width: 75ch; display: grid; gap: 12px; }
.prose p, .prose li { color: var(--text); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font: 600 12px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.tscroll { overflow-x: auto; }
footer.foot { border-top: 1px solid var(--line); padding-block: 22px 32px; color: var(--text-2); font-size: 13.5px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Anmeldung */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--dark); color: var(--on-dark); }
.login .side { position: relative; overflow: hidden; }
.login .side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.login .form { display: grid; align-content: center; gap: 18px; padding: 48px max(24px, env(safe-area-inset-right, 0px)) 48px max(24px, env(safe-area-inset-left, 0px)); max-width: 520px; width: 100%; justify-self: center; }
.login h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.06; }
.login p { color: var(--on-dark-2); margin: 0; }
.login label { font: 500 14px var(--font-display); color: var(--on-dark-2); display: grid; gap: 6px; }
.login input { font: 16px var(--font-body); padding: 12px 14px; border-radius: 10px; border: 1px solid #3a3e44; background: #1e2125; color: var(--on-dark); }
.login .err { color: #ffb4a8; min-height: 1.4em; font-size: 14px; }
.login .lang { justify-self: start; }
@media (max-width: 820px) { .login { grid-template-columns: 1fr; } .login .side { display: none; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.login form label { flex: 1 1 220px; }
.login form .btn { align-self: end; }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card .cb { padding: 9px 10px 11px; }
  .card h3 { font-size: 14px; }
  .card .meta { font-size: 12px; }
  .card .acts .btn { padding: 7px 9px; font-size: 12.5px; }
}
.hero .stats { margin-top: 22px; }
.camphero .shot { aspect-ratio: 16 / 9; width: min(100%, 520px); max-height: none; }
