/* PEAK ROAST – Design «Morgenkarte» */

/* Schriften (liegen auf der eigenen Website, nichts wird von Google geladen) */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #f3efe8; --surface: #fbf9f5; --soft: #e4e9da; --fg: #33261f; --muted: #7a6c63;
  --line: #ddd5c9; --sage: #7f9668; --contour: rgba(127,150,104,.15);
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* Grundlagen */
* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 18px; line-height: 1.65; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); position: relative; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: .95; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
p { margin: 0 }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
section { padding-block: 96px; position: relative; }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--sage); }
.mark { display: inline-block; background: currentColor; -webkit-mask: url(../bilder/logo-maske.png) center / contain no-repeat; mask: url(../bilder/logo-maske.png) center / contain no-repeat; aspect-ratio: 1; flex: none; width: 24px; }
canvas.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ph { overflow: hidden; max-width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* Knöpfe */
.btn { display: inline-block; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease; font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; letter-spacing: .06em; text-transform: uppercase; padding: 12px 28px; border-radius: 999px; border: 1.5px solid var(--fg); color: var(--fg); background: none; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--fg); color: var(--bg); }
button.btn { justify-self: start; }
button.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Navigation */
nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.navin { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; }
.brand .mark { color: var(--sage); width: 28px; }
.links { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.links a { color: inherit; text-decoration: none; font-weight: 600; }
.links .pill { background: var(--fg); color: var(--bg); font-family: var(--f-display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 1.05rem; padding: 7px 20px; border-radius: 999px; }
@media (max-width: 640px) { .links .hide { display: none } }

/* 1 Titel */
.hero { text-align: center; overflow: hidden; position: relative; }
.hero .wrap { padding-block: 80px 0; display: grid; justify-items: center; gap: 22px; }
.lockup { display: grid; justify-items: center; gap: 6px; color: var(--fg); }
.lockup .mark { width: clamp(104px, 13vw, 148px); }
.hero .rule { width: 56px; height: 2px; background: var(--sage); margin-block: 18px 6px; }
.hero .kicker { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .24em; padding-left: .24em; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--sage); line-height: 1; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14ch; }
.hero .sub { font-size: 1.3rem; color: var(--muted); }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.band { position: relative; z-index: 1; margin-top: 64px; aspect-ratio: 21 / 9; max-height: 560px; width: 100%; }
.band img { object-position: 50% 45%; }
@media (max-width: 700px) { .band { aspect-ratio: 4 / 3 } }

/* 2 Draussen oder zu Hause */
.sechead { display: grid; gap: 10px; margin-bottom: 44px; justify-items: center; text-align: center; }
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.world { margin: 0; display: grid; gap: 14px; min-width: 0; }
.world .ph { aspect-ratio: 4 / 5; }
.world figcaption { display: grid; gap: 2px; text-align: center; }
.world figcaption b { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .03em; }
.world figcaption span { color: var(--muted); }
@media (max-width: 640px) { .wgrid { grid-template-columns: 1fr } }

/* 3 Der Kaffee */
.coffee { background: var(--soft); }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cimg { aspect-ratio: 4 / 5; }
.info { display: grid; gap: 22px; min-width: 0; max-width: 32rem; }
.notes { display: flex; flex-wrap: wrap; gap: 8px; }
.notes span { background: var(--surface); padding: 6px 16px; border-radius: 999px; font-family: var(--f-mono); font-size: .82rem; font-weight: 500; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; padding-block: 18px; border-block: 1px solid var(--line); }
.kv dt { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; font-weight: 500; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.kv dd { margin: 0; }
.buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.price { font-family: var(--f-display); font-weight: 700; font-size: 2.8rem; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--f-body); font-size: 1rem; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
@media (max-width: 820px) { .cgrid { grid-template-columns: 1fr; gap: 40px } .cimg { max-width: 420px } }

/* 4 Über PEAK ROAST */
.sgrid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.portrait { aspect-ratio: 1; width: 100%; max-width: 260px; border-radius: 50%; }
.portrait img { object-position: 30% 45%; }
.stext { display: grid; gap: 18px; max-width: 40rem; }
.stext h2 { font-size: clamp(2.2rem, 4.4vw, 3rem); }
.stext .lead { font-size: 1.25rem; }
@media (max-width: 760px) { .sgrid { grid-template-columns: 1fr; gap: 24px } .portrait { max-width: 180px } }

/* 5 Bestellen */
.order { overflow: hidden; background: var(--surface); }
.ogrid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.ointro { display: grid; gap: 22px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--f-mono); font-size: .85rem; font-weight: 500; color: var(--sage); padding-top: 3px; }
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; gap: 0 } }
.dm { color: var(--muted); }
.dm a, footer a { color: inherit; text-underline-offset: 3px; }
.dm a:hover { color: var(--fg); }
.card { background: var(--bg); color: var(--fg); padding: 28px; display: grid; gap: 18px; min-width: 0; border-radius: 20px; }
.qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 42px; height: 42px; border: 0; background: none; color: var(--fg); font-size: 1.2rem; cursor: pointer; }
.qty output { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 5px; font-size: .92rem; font-weight: 600; }
input, textarea { font: inherit; font-size: 1rem; padding: 11px 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); width: 100%; border-radius: 12px; }
textarea { min-height: 72px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
legend { font-size: .92rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-weight: 400; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--fg); }
.opt input { width: auto; accent-color: var(--fg); }
.opt small { margin-left: auto; color: var(--muted); text-align: right; }
.lines { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.lines .total { font-weight: 700; font-size: 1.25rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.hint { font-size: .92rem; font-weight: 600; min-height: 1em; color: var(--sage); }
.agbhint { font-size: .85rem; color: var(--muted); }
.agbhint a { color: inherit; text-underline-offset: 3px; }
.err { color: #c0392b; font-size: .92rem; min-height: 1em; }
.ok { padding: 16px; display: grid; gap: 4px; background: var(--soft); border-radius: 12px; }
.falle { position: absolute; left: -9999px; }
@media (max-width: 820px) { .ogrid { grid-template-columns: 1fr; gap: 36px } }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr } }

/* 6 Fussbereich */
footer { padding-block: 32px; font-size: .95rem; background: var(--fg); color: var(--bg); }
footer .brand { font-size: 1.15rem; }
footer .brand .mark { color: var(--sage); }
.fin { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fl { display: flex; gap: 20px; flex-wrap: wrap; }

/* Rechtstexte */
.legal { padding-block: 64px 96px; min-height: 60vh; }
.lwrap { max-width: 720px; display: grid; gap: 28px; }
.legal article { display: grid; gap: 16px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 8px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.legal .stand { color: var(--muted); font-size: .9rem; }
.back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.back:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important } }
