/* edgarkohn.de */
:root {
  --bg: #08080a;
  --bg2: #101013;
  --line: #24242a;
  --text: #f1eee8;
  --mute: #96938c;
  --dim: #5f5d58;
  --acc: #e9e2d0;
  --sans: "Helvetica Neue", "Neue Haas Grotesk Text Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: 3px; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--acc); color: #000; }

/* Sprache */
html[data-lang="de"] .en, html[data-lang="en"] .de { display: none !important; }

/* Kopf */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--pad); mix-blend-mode: normal; }
.top::before { content: ""; position: absolute; inset: 0 0 -24px; background: linear-gradient(rgba(8,8,10,.85), transparent); pointer-events: none; z-index: -1; }
.brand { font: 600 18px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand i { font: italic 400 19px/1 var(--serif); color: var(--acc); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nav a { text-decoration: none; color: #b5b2ab; padding: 10px 0; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .num { color: var(--dim); margin-right: 6px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.lang button { border: 0; background: none; color: var(--mute); font: inherit; letter-spacing: inherit; padding: 9px 13px; cursor: pointer; }
html[data-lang="de"] .lang [data-set="de"], html[data-lang="en"] .lang [data-set="en"] { background: var(--text); color: #000; }
.lock { display: inline-flex; }
.lock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.menu-btn { display: none; }

/* Typo */
.label { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.035em; line-height: .98; margin: 0; }
h1 { font-size: clamp(44px, 8.4vw, 132px); }
h2 { font-size: clamp(32px, 5vw, 68px); }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; line-height: 1.15; }
h1 em, h2 em, h3 em { font: italic 400 1.02em/1 var(--serif); letter-spacing: -.02em; color: var(--acc); }
.lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.5; color: #d6d2ca; max-width: 34em; }
p { margin: 0 0 1em; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 99px; background: var(--text); color: #000; text-decoration: none; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, background .2s; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); background: #fff; }
.btn.ghost { background: none; color: var(--text); box-shadow: inset 0 0 0 1px #3a3a41; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--text); background: none; }

/* ---------- Start ---------- */
.home { min-height: 100dvh; }
.home-grid { position: relative; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: clamp(32px, 5vw, 96px); align-items: center; padding: 110px var(--pad) 80px; max-width: 1720px; margin: 0 auto; }
.home-copy .label { margin: 0 0 clamp(18px, 3vh, 30px); }
.home-copy h1 { font-size: clamp(56px, 7.4vw, 136px); white-space: nowrap; }
.home-copy .lead { margin: clamp(18px, 3vh, 30px) 0 0; max-width: 25em; font-size: clamp(17px, 1.4vw, 21px); }
.areas { position: relative; list-style: none; margin: clamp(30px, 6vh, 60px) 0 0; padding: 0; max-width: 560px; }
.areas a { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 16px; padding: clamp(14px, 2vh, 19px) 16px; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .15s, border-color .15s; }
.areas li:nth-child(2) a { border-top: 1px solid var(--line); }
.areas .n { font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--dim); transition: color .15s; }
.areas b { font: 600 clamp(20px, 1.9vw, 27px)/1.1 var(--sans); letter-spacing: -.025em; flex: 1; white-space: nowrap; }
.areas .s { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); transition: color .15s; }
/* Markierung: weißes Feld, das federnd auf den Eintrag einrastet, Text wird schwarz */
.areas .hl { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 10px; background: var(--text); border-radius: 6px; opacity: 0; transform: translateY(0) scaleX(.96);
  transition: transform .42s cubic-bezier(.3, 1.55, .5, 1), height .3s cubic-bezier(.3, 1.4, .5, 1), opacity .18s; pointer-events: none; }
.areas.active .hl { opacity: 1; }
.areas a.cur { color: #08080a; border-color: transparent; }
.areas a.cur .n, .areas a.cur .s { color: #4a4843; }
/* Video-Rahmen: im Ruhezustand unsichtbar, ploppt beim Hovern auf */
.frame-wrap { display: flex; justify-content: center; align-items: center; }
.frame { position: relative; width: 100%; max-width: 760px; aspect-ratio: 5 / 4; max-height: 68dvh; border-radius: 22px; overflow: hidden; background: #111114; box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07);
  opacity: 0; transform: scale(.9) translateY(14px); transition: opacity .22s ease, transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.frame.show { opacity: 1; transform: none; }
.frame video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.frame video.on { opacity: 1; }
.home-foot { position: absolute; z-index: 4; right: var(--pad); bottom: 24px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); display: flex; gap: 18px; }
.home-foot a { text-decoration: none; } .home-foot a:hover { color: var(--text); }

/* ---------- Unterseiten ---------- */
.page { min-height: 100dvh; }
.hero { position: relative; min-height: 86dvh; display: flex; align-items: flex-end; padding: 140px var(--pad) clamp(40px, 7vh, 80px); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; z-index: 0; background: #111 center/cover; }
.hero .bg video, .hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, rgba(8,8,10,.55) 45%, rgba(8,8,10,.35)), linear-gradient(90deg, rgba(8,8,10,.6), transparent 70%); }
.hero .in { position: relative; z-index: 1; max-width: 1100px; }
.hero .label { margin-bottom: 22px; }
.hero .lead { margin-top: 26px; }
.hero.small { min-height: 0; padding-top: clamp(130px, 20vh, 200px); padding-bottom: 10px; }
.wrap { padding: clamp(48px, 9vh, 110px) var(--pad); max-width: 1500px; margin: 0 auto; }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 100px); align-items: start; }
.cols .label { position: sticky; top: 90px; }
.prose { max-width: 40em; color: #d3cfc7; }
.prose p { font-size: clamp(17px, 1.4vw, 20px); }
.prose strong { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: clamp(36px, 6vh, 70px); }
.facts div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.facts b { display: block; font: 600 clamp(22px, 2.4vw, 34px)/1.05 var(--sans); letter-spacing: -.03em; margin-bottom: 8px; }
.facts span { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(8px, 1.2vw, 18px); }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--bg2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 12px; bottom: 10px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); text-shadow: 0 1px 8px #000; }
.g-a { grid-column: span 8; aspect-ratio: 3 / 2; } .g-b { grid-column: span 4; aspect-ratio: 3 / 4.06; } .g-b img { object-position: 50% 30%; }
.g-v { grid-column: span 6; aspect-ratio: 1 / 1; }
.gallery video { width: 100%; height: 100%; object-fit: cover; }
.next { display: block; text-decoration: none; border-top: 1px solid var(--line); padding: clamp(36px, 7vh, 80px) var(--pad); }
.next .label { margin-bottom: 14px; }
.next h2 span { display: inline-block; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.next:hover h2 span { transform: translateX(14px); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 26px var(--pad); border-top: 1px solid var(--line); font: 500 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.foot a { text-decoration: none; margin-left: 16px; } .foot a:hover { color: var(--text); }

/* Timeline */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { border: 1px solid var(--line); background: none; color: var(--mute); border-radius: 99px; padding: 9px 14px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.filters button.on { background: var(--text); color: #000; border-color: var(--text); }
.tl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl li { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, .8fr) 150px; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background .25s, padding .25s; }
.tl li:hover { background: var(--bg2); padding-left: 14px; padding-right: 14px; }
.tl li[hidden] { display: none; }
.tl .y { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--mute); }
.tl .t { font: 600 clamp(18px, 1.8vw, 25px)/1.15 var(--sans); letter-spacing: -.025em; }
.tl .r { color: #cfcbc3; font-size: 15px; }
.tl .k { font: 500 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: right; }
.note { margin-top: 22px; font: 400 12px/1.5 var(--mono); color: var(--dim); max-width: 60em; }

/* Kontakt */
.mail { display: inline-block; font: 600 clamp(34px, 7.4vw, 120px)/1 var(--sans); letter-spacing: -.04em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .5s cubic-bezier(.2,.7,.2,1); padding-bottom: 8px; }
.mail:hover { background-size: 100% 3px; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 4vw, 60px); margin-top: clamp(40px, 8vh, 90px); }
.links h3 { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; transition: padding .25s; }
.links a:hover { padding-left: 8px; }
.links a span { color: var(--dim); }

/* Privat */
.priv { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--pad) 60px; max-width: 1300px; margin: 0 auto; }
.priv-form { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.priv-form input { flex: 0 1 320px; padding: 14px 18px; border-radius: 99px; border: 1px solid #36363d; background: #0d0d10; color: var(--text); font: 400 15px/1 var(--mono); outline: none; }
.priv-form input:focus { border-color: var(--text); }
.priv-err { min-height: 1.4em; margin-top: 12px; font: 400 12px/1.3 var(--mono); color: #ff7a5c; }
.shake { animation: shake .35s; } @keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.priv-out[hidden], .priv-lock[hidden] { display: none; }
.priv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; }
.priv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.goodie { margin: 0; transform: rotate(2deg); background: #f4f1ea; padding: 10px 10px 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.goodie img { width: 100%; }
.goodie figcaption { margin-top: 10px; color: #222; font: italic 400 16px/1.2 var(--serif); text-align: center; }
.board { border: 1px solid var(--line); background: var(--bg2); padding: 20px; border-radius: 6px; }
.board-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.board-status { flex: 1; font: 400 11px/1.3 var(--mono); color: var(--mute); }
.board-refresh { background: none; border: 0; color: var(--mute); font-size: 18px; cursor: pointer; }
.board-form { display: grid; grid-template-columns: 200px 1fr; gap: 8px; margin-bottom: 18px; }
.board-form input[name=name], .board-form textarea { padding: 11px 13px; border: 1px solid #36363d; border-radius: 6px; background: #0b0b0d; color: var(--text); font: 400 14px/1.4 var(--sans); outline: none; resize: none; }
.board-row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.board-row .btn { padding: 11px 16px; }
.board-colors { display: flex; gap: 8px; }
.board-colors input { position: absolute; opacity: 0; pointer-events: none; }
.board-colors i { display: block; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; }
.board-colors input:checked + i { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 3.5px var(--text); }
.board-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; padding: 6px 2px; }
.note-card { position: relative; padding: 14px 13px 10px; background: var(--nc); color: #1b1a17; transform: rotate(var(--rot)); box-shadow: 0 8px 18px rgba(0,0,0,.45); transition: transform .2s; }
.note-card:hover { transform: rotate(0) scale(1.02); }
.note-card::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #ff4a2b; box-shadow: 0 2px 3px rgba(0,0,0,.5); }
.note-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.note-card footer { display: flex; align-items: center; gap: 8px; font: 500 10px/1 var(--mono); color: rgba(27,26,23,.65); }
.note-card footer span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1b1a17; }
.note-del { border: 0; background: none; color: rgba(27,26,23,.5); font: 500 13px/1 var(--mono); cursor: pointer; }
.note-del.armed { color: #b3261e; font-size: 10px; }
.board-empty { margin: 0; font: 400 12px/1.4 var(--mono); color: var(--mute); }

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: 130px var(--pad) 80px; }
.legal h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 30px; }
.legal h2 { font: 600 16px/1.3 var(--sans); letter-spacing: 0; margin: 34px 0 8px; }
.legal p, .legal li { color: #c6c2ba; font-size: 16px; }
.draft { border: 1px dashed #5a4a2a; color: #d9c38a; padding: 12px 14px; font: 400 12px/1.5 var(--mono); margin-bottom: 26px; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; border: 1px solid var(--line); background: rgba(8,8,10,.6); color: var(--text); border-radius: 99px; padding: 9px 13px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: var(--pad); background: rgba(8,8,10,.97); font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .nav a { font: 600 34px/1 var(--sans); letter-spacing: -.03em; text-transform: none; color: var(--text); }
  .nav .num { font: 500 11px/1 var(--mono); vertical-align: middle; }
  body.menu .nav { opacity: 1; pointer-events: auto; }
  .home-grid { grid-template-columns: 1fr; align-items: start; gap: 28px; padding: 96px var(--pad) 72px; }
  .frame-wrap { order: -1; }
  .frame { aspect-ratio: 4 / 3; max-height: 40dvh; border-radius: 16px; }
  .home-copy h1 { white-space: normal; }
  .areas .s { text-align: right; font-size: 10px; letter-spacing: .08em; }
  .home-foot { left: var(--pad); right: auto; bottom: 22px; }
  .cols { grid-template-columns: 1fr; } .cols .label { position: static; }
  .facts { grid-template-columns: 1fr; }
  .gallery figure { grid-column: span 12 !important; }
  .tl li { grid-template-columns: 64px 1fr; gap: 6px 14px; }
  .tl .r { grid-column: 2; } .tl .k { grid-column: 2; text-align: left; }
  .links { grid-template-columns: 1fr; gap: 34px; }
  .priv-grid { grid-template-columns: 1fr; } .goodie { max-width: 260px; }
  .board-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .areas .hl, .frame, .frame video { transition: none; }
}
