/* ==========================================================
   GKP Handelsgesellschaft GmbH – stylesheet
   Palette: stone paper, near-black ink, oxblood accent, deep wine
   ========================================================== */
:root {
  --bg: #ede8de;
  --bg-2: #e0d9ca;
  --paper: #f6f3ec;
  --ink: #1b1917;
  --muted: #5f584f;
  --line: rgba(27, 25, 23, .2);
  --accent: #8a2a35;
  --wine: #3f1520;
  --tint: #e8b9a8;
  --err: #a52a22;
  --ok: #2f6b3a;

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gut: clamp(1.25rem, 4vw, 3rem);
  --space: clamp(4.5rem, 10vw, 8.5rem);
  --gap: clamp(2rem, 6vw, 6rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); max-width: 14ch; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
section { padding-block: var(--space); }

/* ---------- Buttons & links ---------- */
.btn { display: inline-block; padding: .95rem 1.6rem; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 2px; font: 500 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; background: transparent; color: var(--ink); }
.btn-sm:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: color .25s, text-underline-offset .25s; }
.link:hover { color: var(--accent); text-underline-offset: 9px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: rgba(237, 232, 222, .97); border-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 5rem; transition: height .3s var(--ease); }
.site-header.scrolled .bar { height: 3.75rem; }
.logo, .menu-btn { position: relative; z-index: 2; }
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo b { font: 400 2.1rem/1 var(--serif); letter-spacing: .01em; }
.logo span { padding-left: .75rem; border-left: 1px solid var(--line); font-size: .74rem; line-height: 1.25; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2rem; font-size: .92rem; }
.nav a:not(.btn) { position: relative; text-decoration: none; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.menu-btn i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: top .3s var(--ease), transform .3s var(--ease); }
.menu-btn i:first-child { top: 18px; }
.menu-btn i:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: 8.5rem; padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--gap); align-items: center; }
.label { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.75rem; font-size: .9rem; color: var(--muted); }
.label::before { content: ""; width: 2.5rem; height: 1px; background: var(--accent); }
h1 { margin-bottom: 1.75rem; font-size: clamp(3.4rem, 8.6vw, 8rem); line-height: .92; letter-spacing: -.02em; }
h1 span { display: block; padding-left: .7em; }
.lead { max-width: 33rem; margin-bottom: 2.25rem; font-size: 1.15rem; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; }
.hero-art { position: relative; aspect-ratio: 4 / 5; margin: 0 1rem 1.5rem 1.75rem; }
.hero-art::before { content: ""; position: absolute; inset: 1.5rem -1.25rem -1.5rem 1.25rem; border: 1px solid var(--ink); }
.hero-art svg { position: relative; width: 100%; height: 100%; }
.tag { position: absolute; z-index: 2; padding: .35rem .75rem; background: var(--bg); border: 1px solid var(--ink); font-size: .8rem; }
.t1 { top: 1.25rem; left: -1.75rem; }
.t2 { bottom: 2.5rem; right: -1.5rem; }
.strip { display: flex; flex-wrap: wrap; margin: 4.5rem 0 0; padding: 0; list-style: none; border-block: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.strip li { flex: 1 1 auto; padding: 1rem 1.5rem; text-align: center; }
.strip li + li { border-left: 1px solid var(--line); }

/* ---------- About ---------- */
.about-top { display: grid; grid-template-columns: 5fr 7fr; gap: 2rem var(--gap); align-items: start; }
.cols { columns: 2; column-gap: 2.5rem; color: var(--muted); padding-top: .6rem; }
.cols p { break-inside: avoid; }
.about-visual { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 4rem; }
.ph { position: relative; margin: 0; overflow: hidden; background: var(--bg-2); }
.ph::before { content: ""; position: absolute; left: 8%; bottom: 0; width: 32%; height: 74%; background: var(--ink); border-radius: 999px 999px 0 0; }
.ph::after { content: ""; position: absolute; right: 14%; top: 16%; width: 20%; aspect-ratio: 1; background: var(--accent); border-radius: 50%; }
.ph figcaption { position: absolute; right: 1rem; bottom: .8rem; z-index: 1; font-size: .75rem; color: var(--muted); }
.ph.wide { grid-column: 1 / 10; grid-row: 1; aspect-ratio: 16 / 8; }
.ph.tall { aspect-ratio: 3 / 4; max-width: 22rem; }
.ph.tall::before { left: auto; right: 10%; background: var(--accent); }
.ph.tall::after { right: auto; left: 12%; top: 12%; background: var(--ink); }
.statement { grid-column: 8 / 13; grid-row: 1; align-self: end; position: relative; z-index: 1; margin: 0 0 -2.5rem; padding: 2rem; background: var(--wine); color: var(--bg); font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--serif); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 6rem 0 0; }
.facts div { padding-top: 1rem; border-top: 1px solid var(--ink); }
.facts dt { font: 400 clamp(2.6rem, 4.5vw, 3.6rem)/1 var(--serif); }
.facts dd { margin: .5rem 0 0; max-width: 18rem; font-size: .95rem; color: var(--muted); }
.note { max-width: 44rem; margin: 3rem 0 0; padding-left: 1rem; border-left: 2px solid var(--accent); font-size: .92rem; color: var(--muted); }

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap); }
.svc-intro { align-self: start; position: sticky; top: 6.5rem; }
.svc-intro p { margin: 1.5rem 0 2rem; color: var(--muted); }
.svc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.svc { display: grid; grid-template-columns: 3rem 28px 1fr; gap: 1rem 1.25rem; padding: 2rem 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease), background .35s; }
.svc:nth-child(even) { margin-left: clamp(0rem, 4vw, 3.5rem); }
.svc:hover { padding-left: 1rem; background: var(--bg-2); }
.svc .n { padding-top: .45rem; font-size: .9rem; color: var(--muted); transition: color .3s; }
.svc:hover .n { color: var(--accent); }
.ic { width: 28px; height: 28px; margin-top: .3rem; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.svc h3 { margin-bottom: .45rem; font-size: 1.9rem; }
.svc p { max-width: 34rem; margin: 0; color: var(--muted); }

/* ---------- Why / How we work ---------- */
.why { background: var(--wine); color: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 2rem; align-items: start; margin-top: 4.5rem; }
.why article { padding-top: 1.5rem; border-top: 1px solid rgba(237, 232, 222, .35); }
.why article:nth-child(even) { margin-top: 4rem; }
.big { display: block; margin-bottom: 1.5rem; font: italic 400 clamp(4rem, 7vw, 6rem)/1 var(--serif); color: var(--tint); }
.why h3 { margin-bottom: .75rem; font-size: 1.7rem; }
.why p { margin: 0; font-size: .98rem; color: rgba(237, 232, 222, .75); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.c-info p { margin: 1.5rem 0 0; max-width: 28rem; color: var(--muted); }
address { margin-top: 2.5rem; border-top: 1px solid var(--ink); font-style: normal; }
.row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.row > :first-child { font-size: .9rem; color: var(--muted); }
.row a { color: var(--accent); text-underline-offset: 3px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.75rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); border: 1px solid var(--ink); }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: .88rem; font-weight: 500; }
label small { font-weight: 400; color: var(--muted); }
input, textarea { width: 100%; padding: .6rem 0; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; transition: border-color .25s, box-shadow .25s; }
textarea { min-height: 7rem; resize: vertical; }
input:focus, textarea:focus { outline: 0; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
[aria-invalid="true"] { border-bottom-color: var(--err); }
.err { min-height: 1.1rem; font-size: .8rem; color: var(--err); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.status { grid-column: 1 / -1; margin: 0; padding: .7rem 1rem; font-size: .95rem; border-left: 3px solid; }
.status:empty { display: none; }
.status.ok { color: var(--ok); background: rgba(47, 107, 58, .08); }
.status.bad { color: var(--err); background: rgba(165, 42, 34, .08); }

/* ---------- Footer ---------- */
.site-footer { padding: 4rem 0 1.75rem; background: var(--bg-2); border-top: 1px solid var(--line); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 2.5rem; }
.foot-brand b { display: block; margin-bottom: .75rem; font: 400 1.6rem/1.1 var(--serif); }
.foot-brand p { max-width: 24rem; color: var(--muted); }
.site-footer h4 { margin: 0 0 1rem; font-size: .9rem; font-weight: 600; }
.site-footer ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; overflow-wrap: anywhere; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; }
.js .reveal.in { animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-top, .svc-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 26rem; }
  .svc-intro { position: static; }
  .svc-intro .ph { display: none; }
  .ph.wide, .statement { grid-column: 1 / -1; grid-row: auto; }
  .statement { margin: -2rem 0 0 2rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
  .why article:nth-child(even) { margin-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .strip li { flex: 1 1 33%; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.3rem; padding: var(--gut); background: var(--bg); font: 400 2.4rem/1.1 var(--serif); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav.open { opacity: 1; visibility: visible; }
  .nav .btn-sm { margin-top: .5rem; padding: .8rem 1.4rem; font: 500 .95rem var(--sans); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cols { columns: 1; }
  .facts { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 4.5rem; }
  .why-grid, .form, .foot-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1.8rem 24px 1fr; gap: .75rem; }
  .svc:nth-child(even) { margin-left: 0; }
  .svc h3 { font-size: 1.6rem; }
  .ic { width: 24px; height: 24px; }
  .row { grid-template-columns: 5.5rem 1fr; }
  .strip li { flex: 1 1 50%; }
  .t1 { left: -1rem; }
  .t2 { right: -.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; }
  .js .reveal.in { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
