/* Canuma Studio – Styles */
@font-face { font-family: "Adventor"; src: url("fonts/texgyreadventor-regular.woff2") format("woff2"); font-display: swap; }
:root {
  --beige: #eee8dd;        /* Grundfläche überall */
  --beige-2: #e4ddd0;      /* leicht abgesetzte Fläche */
  --ink: #1c1c1c;          /* Anthrazit: Logo, Text, Linien, Karten */
  --muted: #5e5a54;        /* Nebentext auf Beige */
  --line: #cfc7b8;
  --display: "Adventor", "Century Gothic", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { background: var(--beige); }
body { margin: 0; background: var(--beige); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

header { position: fixed; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(16px, 4vw, 48px); z-index: 10; background: linear-gradient(var(--beige) 55%, rgba(238,232,221,0)); }
header .mini { width: 28px; height: 28px; color: var(--ink); }
nav { display: flex; gap: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
nav a:hover { color: var(--ink); }
nav a::before { content: "/"; opacity: .5; margin-right: 4px; }

/* Bühne: bleibt stehen, während man scrollt – die Kamera fliegt durch den Ring */
.stage { height: 330vh; position: relative; }
.sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sticky svg.logo { display: none; }

.hud { position: absolute; left: clamp(16px, 4vw, 48px); right: clamp(16px, 4vw, 48px); bottom: 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); pointer-events: none; }
.hud .right { text-align: right; }
.type::after { content: "▍"; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.scale { position: relative; display: flex; gap: 6px; align-items: end; height: 18px; }
.scale i { width: 1px; height: 6px; background: currentColor; opacity: .7; }
.scale i:nth-child(5n+1) { height: 14px; }
.scale b { position: absolute; bottom: 0; width: 2px; height: 18px; background: var(--ink); }

.inside { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; pointer-events: none; }
.inside .label { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 20px; }
.inside h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 6vw, 76px); line-height: 1.05; margin: 0 auto; max-width: 14ch; }
.inside p { color: var(--muted); max-width: 46ch; margin: 24px auto 0; font-size: clamp(16px, 1.8vw, 20px); }
/* Die Überschrift wird aus Scherben gebaut (script.js) und erst am Ende als echter Text eingeblendet */
.inside h2 { opacity: 0; }
.inside .label, .inside p { opacity: var(--a, 0); transform: translateY(calc((1 - var(--a, 0)) * 24px)); filter: blur(calc((1 - var(--a, 0)) * 8px)); }

section.block { max-width: 1100px; margin: 0 auto; padding: clamp(64px, 12vw, 140px) clamp(16px, 4vw, 48px); }
#kontakt { border-top: 1px solid var(--line); }
.label { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 24px; }

.mail { font-family: var(--display); font-size: clamp(30px, 7vw, 88px); text-decoration: none; display: inline-block; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.clock { font-variant-numeric: tabular-nums; }
footer { color: var(--muted); font-size: 13px; padding: 24px clamp(16px, 4vw, 48px); display: flex; justify-content: space-between; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  nav { gap: 14px; font-size: 11px; }
  .hud { grid-template-columns: 1fr auto; }
  .hud .type { display: none; }
}

/* ---------- Projekte: Reiter ---------- */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.work { max-width: 1240px; margin: 0 auto; padding: clamp(72px, 10vw, 120px) clamp(16px, 4vw, 48px) clamp(64px, 10vw, 120px); }
.work-head { margin-bottom: clamp(32px, 5vw, 56px); }
.work-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 80px); line-height: 1.02; margin: 0; }
.tabs { position: relative; display: flex; gap: clamp(22px, 4vw, 48px); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { appearance: none; background: none; border: 0; padding: 0 0 14px; font: 13px/1 var(--mono); letter-spacing: .04em; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .2s; }
.tabs button span { opacity: .5; margin-right: 8px; }
.tabs button[aria-selected="true"], .tabs button:hover { color: var(--ink); }
.tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.tab-ink { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ink); transition: transform .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1); }

.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.panel[hidden] { display: none; }
.panel.in .panel-text > * { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.panel.in .panel-text > :nth-child(2) { animation-delay: .04s; }
.panel.in .panel-text > :nth-child(3) { animation-delay: .08s; }
.panel.in .panel-text > :nth-child(n+4) { animation-delay: .12s; }
.panel.in .visual { animation: rise .7s .06s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.panel-text .kicker { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.panel-text h3 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.02; margin: 0 0 18px; }
.panel-text p { color: var(--muted); margin: 0 0 24px; max-width: 42ch; font-size: clamp(16px, 1.5vw, 18px); }
.facts { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; text-decoration: none; background: var(--ink); color: var(--beige); padding: 13px 20px; border-radius: 999px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cta:hover { transform: translateY(-2px); }
.cta.soon { background: none; color: var(--muted); border: 1px dashed #a39d92; cursor: default; transform: none; }
.cta.soon em { font-style: normal; background: var(--beige-2); color: var(--ink); padding: 2px 8px; border-radius: 999px; }
.visual { position: relative; background: var(--ink); border-radius: 20px; height: min(66svh, 560px); min-height: 440px; overflow: hidden; display: grid; place-items: center; }
.visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, -300px) var(--my, -300px), rgba(238,232,221,.1), transparent 60%); pointer-events: none; }

/* ChefKlick: Handy im echten App-Design (hell), Beispieldaten */
.phone { container-type: inline-size; height: min(560px, calc(100% - 44px)); aspect-ratio: 9 / 19.5; background: #0b0b0c; border-radius: 44px; padding: 9px; box-shadow: 0 0 0 1px #34343a, 0 40px 80px rgba(0,0,0,.45); }
.ck { position: relative; height: 100%; border-radius: 36px; background: #F3F1EC; color: #1c1c1c; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--sans); font-size: calc((100cqw - 18px) / 30); line-height: 1.25; }
.ck::before { content: ""; position: absolute; top: .9em; left: 50%; width: 8em; height: 2.3em; margin-left: -4em; background: #0b0b0c; border-radius: 99em; z-index: 3; }
.ck svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ck-status { position: absolute; inset: 0 0 auto; height: 4em; background: linear-gradient(#F3F1EC 70%, rgba(243,241,236,0)); padding: 0 2.3em 0 2.8em; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.ck-time { font-weight: 600; font-size: 1.15em; font-variant-numeric: tabular-nums; }
.ck-sys { display: flex; gap: .45em; align-items: center; }
.ck-sys svg { height: .95em; width: auto; fill: currentColor; stroke: none; }
.ck-sys svg:nth-child(2) { fill: none; stroke: currentColor; stroke-width: 1.6; }
.ck-scroll { position: absolute; inset: 0 0 auto; padding: 6.8em 1.85em 10em; transform: translateY(calc(var(--y, 0) * -1px)); transition: transform 1.5s cubic-bezier(.65,0,.25,1); will-change: transform; }
.ck-word { text-align: center; font-family: "Montserrat", var(--sans); font-weight: 700; font-size: 3.85em; letter-spacing: -.015em; line-height: 1; margin: 0 0 .32em; }
.ck-word b { color: #163A7C; } .ck-word i { font-style: normal; color: #1c1c1c; }
.ck-card { background: #fff; border: 1px solid #dcd8d0; border-radius: 1.6em; margin-bottom: 1.6em; }
.ck-hello { display: flex; align-items: center; justify-content: space-between; padding: 3em 1.6em 2.9em; }
.ck-hello strong { display: block; font-size: 1.8em; font-weight: 700; letter-spacing: -.01em; }
.ck-hello span { display: block; font-size: 1.25em; font-weight: 600; margin-top: .45em; }
.ck-hello svg { width: 1.75em; height: 1.75em; color: #163A7C; flex: none; }
.ck-today { padding: 1.6em 1.55em 2em; }
.ck h5 { margin: 0; font-size: 1.45em; font-weight: 700; color: #163A7C; letter-spacing: -.01em; }
.ck-rings { display: block; width: 11.2em; height: 11.2em; margin: 1.3em auto 1.3em; transform: rotate(-90deg); }
.ck-rings circle { fill: none; }
.ck-rings .t1 { stroke: #e5e8e5; stroke-width: 9.5; } .ck-rings .t2 { stroke: #e2ecf6; stroke-width: 9; }
.ck-rings .r1, .ck-rings .r2 { stroke-dasharray: 100; transition: stroke-dashoffset .25s linear; }
.ck-rings .r1 { stroke: #2f5d4b; stroke-width: 9.5; stroke-dashoffset: var(--o1, 100); }
.ck-rings .r2 { stroke: #1f6db3; stroke-width: 9; stroke-dashoffset: var(--o2, 100); }
.ck-pill { display: flex; align-items: center; gap: .9em; height: 2.6em; padding: 0 1.05em; border-radius: 99em; border: 1.5px solid transparent; margin-top: .35em; }
.ck-pill svg { width: 1.25em; height: 1.25em; flex: none; }
.ck-pill span { flex: 1; font-size: 1.25em; line-height: 1; }
.ck-pill em { font-style: normal; line-height: 1; color: #5a5a5a; font-variant-numeric: tabular-nums; }
.p-check { background: #e6ebe8; border-color: #2f5d4b; } .p-check svg { color: #2f5d4b; }
.p-temp { background: #e2ecf7; border-color: #1f6db3; } .p-temp svg { color: #1f6db3; }
.p-ware svg { color: #8a8a8a; }
.ck-month { padding: 1.6em 1.55em 1.7em; }
.ck-mhead { display: flex; justify-content: space-between; align-items: baseline; }
.ck-mhead span { color: #163A7C; font-size: 1.2em; }
.ck-ticks { display: block; width: 15em; height: 15em; margin: 1.8em auto 1.5em; }
.ck-ticks line { stroke-linecap: round; stroke-width: 3.6; transition: opacity .3s; }
.ck-ticks .g { stroke: #2e7d46; } .ck-ticks .r { stroke: #b83a3a; } .ck-ticks .f { stroke: #e7e3dc; }
.ck-ticks.hide line { opacity: 0; }
.ck-legend { display: flex; justify-content: center; gap: .6em; }
.ck-legend span { display: inline-flex; align-items: center; gap: .5em; border: 1px solid #dcd8d0; border-radius: 99em; padding: .55em 1em; color: #333; }
.ck-legend b { font-weight: 400; font-variant-numeric: tabular-nums; }
.ck-legend i { width: .6em; height: .6em; border-radius: 50%; }
.ck-legend .g { background: #2e7d46; } .ck-legend .r { background: #b83a3a; }
.ck-logout { margin-top: 2.7em; height: 3.9em; display: grid; place-items: center; background: #e8e5df; border: 1px solid #d6d2ca; border-radius: 1.3em; }
.ck-logout span { font-weight: 700; color: #555; font-size: 1.25em; }
.ck-tabs { position: absolute; left: 1.1em; right: 1.1em; bottom: 2.6em; height: 5.2em; padding: .35em; background: #fff; border-radius: 99em; box-shadow: 0 .4em 1.6em rgba(0,0,0,.13); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 2; }
.ck-tabs span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2em; color: #8a8a8a; font-size: .92em; border-radius: 99em; }
.ck-tabs svg { width: 1.75em; height: 1.75em; stroke-width: 1.6; }
.ck-tabs .on { background: #e1e8f4; color: #163A7C; font-weight: 700; }

/* Webseiten: Browserfenster – Skizze, Gestaltung, Handy */
.browser { width: min(86%, 560px); height: min(72%, 400px); background: var(--beige); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: width .9s cubic-bezier(.7,0,.2,1); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.browser.mobile { width: 190px; }
.bar { flex: none; display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; background: var(--beige-2); }
.bar i { width: 7px; height: 7px; border-radius: 50%; background: #c7bfb1; }
.bar span { margin: 0 auto; font: 10px var(--mono); color: var(--muted); background: var(--beige); padding: 3px 12px; border-radius: 99px; transform: translateX(-12px); white-space: nowrap; }
.site { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; container-type: inline-size; overflow: hidden; }
.s-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; }
.s-nav b { font-family: var(--display); font-weight: 400; font-size: 13px; }
.s-nav span { color: var(--muted); font-size: 10px; }
.s-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; flex: 1; min-height: 0; }
.s-img { border-radius: 8px; min-height: 90px; }
.s-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; }
.s-copy h4 { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.05; margin: 0; }
.s-copy p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
.s-btn { font: 10px var(--mono); background: var(--ink); color: var(--beige); padding: 6px 12px; border-radius: 99px; }
.s-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 22%; min-height: 44px; }
/* Skizzen-Zustand: Text als graue Balken, Flächen als gestrichelte Rahmen */
.w, .wb { transition: color .5s var(--d, 0s), background .6s var(--d, 0s), outline-color .6s var(--d, 0s), border-radius .6s var(--d, 0s); }
.browser:not(.styled) .w { color: transparent; background: #d8d0c2; border-radius: 3px; }
.browser:not(.styled) .s-btn { background: #d8d0c2; }
.wb { position: relative; border-radius: 8px; outline: 1.5px dashed #a39d92; outline-offset: -1.5px; background: transparent; }
.wb::after { content: attr(data-l); position: absolute; inset: 0; display: grid; place-items: center; font: 9px var(--mono); color: #a39d92; transition: opacity .4s var(--d, 0s); }
.browser.styled .wb { outline-color: transparent; }
.browser.styled .wb::after { opacity: 0; }
.browser.styled .s-img { background: linear-gradient(150deg, #d6a77a 0%, #9c5a35 55%, #4a2f22 100%); }
.browser.styled .s-row .wb:nth-child(1) { background: linear-gradient(160deg, #c9b79a, #7d6b55); }
.browser.styled .s-row .wb:nth-child(2) { background: linear-gradient(160deg, #a7a58f, #595a48); }
.browser.styled .s-row .wb:nth-child(3) { background: linear-gradient(160deg, #d9c3a8, #a0714e); }
@container (max-width: 300px) {
  .s-nav span { display: none; }
  .s-hero { grid-template-columns: 1fr; gap: 10px; }
  .s-img { min-height: 70px; }
  .s-copy h4 { font-size: 18px; }
  .s-row { grid-template-columns: 1fr 1fr; }
  .s-row .wb:nth-child(3) { display: none; }
}
.phase { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 22px; margin: 0; padding: 0; list-style: none; font: 11px var(--mono); color: #6d6960; }
.phase li { transition: color .3s; }
.phase li.on { color: var(--beige); }

/* Fotografie: Kamera-Sucher mit freigestelltem Teller */
#p-foto .visual { background: #0c0c0c; }
.vf { position: absolute; inset: 22px; display: grid; place-items: center; }
.plate { width: min(88%, calc(100% - 70px)); aspect-ratio: 1; max-height: calc(100% - 70px); animation: spin 140s linear infinite; will-change: transform; }
.plate img { width: 100%; height: 100%; display: block; object-fit: contain; filter: blur(14px) brightness(.75); transform: scale(1.05); transition: filter .55s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.plate.sharp img { filter: none; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.vf-ui { position: absolute; inset: 0; font: 10.5px var(--mono); color: rgba(255,255,255,.85); pointer-events: none; }
.vf-ui .c { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255,255,255,.85); }
.c.tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; } .c.tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.c.bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; } .c.br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.af { position: absolute; left: var(--ax, 50%); top: var(--ay, 50%); width: 64px; height: 48px; margin: -24px 0 0 -32px; border: 1.5px solid rgba(255,255,255,.9); transition: left .6s cubic-bezier(.2,.8,.2,1), top .6s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.af.hunt { animation: hunt .7s ease-out both; }
.af.gone { opacity: 0; }
@keyframes hunt { 0% { transform: scale(1.35); opacity: .4; } 60% { transform: scale(.95); } 80%, 100% { transform: scale(1); border-color: #7ddc8a; } }
.vf-top { position: absolute; top: 4px; left: 34px; }
.vf-exif { position: absolute; bottom: 4px; left: 34px; right: 34px; text-align: center; white-space: nowrap; overflow: hidden; }
.vf-flash { position: absolute; inset: -22px; background: #fff; opacity: 0; pointer-events: none; }
.vf-flash.go { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: 0; } 20% { opacity: .45; } 100% { opacity: 0; } }

/* ChefKlick: nur das Handy, ohne dunkle Fläche */
#p-app .visual { background: none; overflow: visible; }
#p-app .visual::before { display: none; }
#p-app .phone { box-shadow: 0 0 0 1px #2a2a2e, 0 30px 60px rgba(28,28,28,.28), 0 8px 20px rgba(28,28,28,.15); }

@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .visual { height: 520px; min-height: 0; }
}
@media (max-width: 480px) {
  .visual { height: 480px; }
  .browser { width: 90%; }
  .phase { gap: 14px; font-size: 10px; }
  .vf { inset: 12px; }
  .vf-flash { inset: -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .plate { animation: none; }
  .panel.in .panel-text > *, .panel.in .visual { animation: none; }
}

/* ---------- Unterseiten: Impressum, Datenschutz ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 140px clamp(16px, 4vw, 48px) 96px; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin: 0 0 40px; hyphens: manual; }
.legal h2 { font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: .04em; text-transform: lowercase; color: var(--ink); margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal p { margin: 0 0 14px; max-width: 62ch; }
.legal .lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink); }
.legal a { text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 56px; }
footer a[aria-current="page"] { text-decoration: none; color: var(--ink); }
