/* ===== Design tokens ===== */
:root {
  --paper: #FBF6EC;
  --ink: #161410;
  --coral: #FF5B39;
  --amber: #FFC46B;
  --blue: #6C8CFF;
  --muted: #4B4638;
  --muted-2: #79725F;
  --footer-muted: #C9C4B6;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  --font-hand: 'Caveat', cursive;

  --border-w: 3px;
  --shadow-lg: 10px 10px 0 var(--ink);
  --shadow-md: 7px 7px 0 var(--ink);
  --shadow-sm: 5px 5px 0 var(--ink);

  --container: 1240px;
  --gutter: 56px;
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
    --border-w: 2px;
    --shadow-lg: 6px 6px 0 var(--ink);
    --shadow-md: 5px 5px 0 var(--ink);
    --shadow-sm: 4px 4px 0 var(--ink);
  }
}

@media (max-width: 520px) {
  :root { --gutter: 18px; }
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
}
p { margin: 0; }
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px var(--gutter);
}
@media (max-width: 700px) {
  .section-inner { padding: 56px var(--gutter); }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ===== Subtle scroll reveals (homepage) ===== */
.scroll-reveal-enabled .scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 560ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    transform 560ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal-enabled .scroll-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .scroll-reveal-enabled .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Buttons & tags ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: var(--border-w) solid var(--ink);
  white-space: nowrap;
  font-weight: 800;
  text-transform: uppercase;
  font-family: var(--font-body);
  padding: 18px 30px;
  font-size: 16px;
  border-radius: 0;
}
.btn-primary { background: var(--coral); color: var(--ink); box-shadow: var(--shadow-md); }
.btn-outline { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--amber); }
.btn-small { padding: 11px 20px; font-size: 13px; box-shadow: 4px 4px 0 var(--ink); }

.tag {
  display: inline-flex;
  background: var(--ink);
  color: var(--amber);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 28px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 14px;
}
.eyebrow-coral { color: var(--coral); }
.eyebrow-amber { color: var(--amber); }
.eyebrow-ink { color: var(--ink); }

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 13px;
}
.pill-amber { background: var(--amber); color: var(--ink); }

/* ===== Image placeholder slots ===== */
.img-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(135deg, rgba(22,20,16,.06) 0 10px, rgba(22,20,16,.02) 10px 20px);
  border: var(--border-w) solid var(--ink);
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 16px;
  min-height: 120px;
}
.img-slot--rect { border-radius: 0; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: var(--border-w) solid var(--ink);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 700;
}
.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; border: 2px solid var(--ink); }
.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  padding: 8px 12px;
  cursor: pointer;
}
.lang-btn + .lang-btn { border-left: 2px solid var(--ink); }
.lang-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 73px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 32px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(22,20,16,.12);
    font-size: 18px;
  }
  .main-nav a.btn {
    margin-top: 16px;
    border-bottom: var(--border-w) solid var(--ink);
    width: auto;
  }
}

/* ===== Hero ===== */
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter) 90px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 0.96;
  margin: 0 0 28px;
}
.hero h1 .highlight { background: var(--coral); padding: 0 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 460px;
  margin: 0 0 36px;
  font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-media { position: relative; }
.hero-accent {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  max-width: 200px;
  background: var(--amber);
  border: var(--border-w) solid var(--ink);
  transform: rotate(-6deg);
  right: 8%;
  top: 4%;
  z-index: 0;
}
.hero-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/5;
  width: min(100%, 380px);
  margin-left: auto;
  border: var(--border-w) solid var(--ink);
  background: #fff;
  box-shadow: 14px 14px 0 var(--ink);
  transform: rotate(3deg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0;
    padding-top: 48px;
    padding-bottom: 56px;
    isolation: isolate;
  }
  .hero-copy { grid-area: 1 / 1 / 2 / 9; position: relative; z-index: 2; min-width: 0; }
  /* One shared column lets 20% of the photo sit behind the copy. */
  .hero-media { grid-area: 1 / 8 / 2 / 13; align-self: start; margin-top: 64px; min-width: 0; z-index: 1; }
  .hero-photo { margin-left: auto; transform: none; box-shadow: 8px 8px 0 var(--ink); }
  .hero-accent { display: none; }
}

@media (max-width: 359px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy, .hero-media { grid-area: auto; }
  .hero-media { width: 100%; max-width: 240px; margin: 0 auto; }
  .hero-photo { margin: 0 auto; }
  .hero-actions .btn { width: 100%; }
}

/* ===== Services ===== */
.services { background: var(--ink); color: var(--paper); border-top: var(--border-w) solid var(--ink); border-bottom: var(--border-w) solid var(--ink); }
.services h2 { max-width: 680px; margin-bottom: 52px; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.02; }

.card-grid { display: grid; gap: 28px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
}

.service-card { border: var(--border-w) solid var(--paper); padding: 34px; color: var(--ink); }
.service-card--coral { background: var(--coral); }
.service-card--amber { background: var(--amber); }
.service-card--blue { background: var(--blue); }
.service-card h3 { font-size: 23px; margin: 24px 0 10px; }
.service-card .service-desc { font-size: 15px; line-height: 1.6; margin: 0 0 14px; font-weight: 600; }
.service-card .service-meta { font-size: 13.5px; line-height: 1.6; font-weight: 600; opacity: .72; }

/* ===== Products ===== */
.products h2, .projects h2, .process h2, .team h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 52px; }

.product-card { background: #fff; border: var(--border-w) solid var(--ink); box-shadow: var(--shadow-lg); padding: 28px; }
.product-photo { aspect-ratio: 16/9; margin-bottom: 22px; }
.product-card h3 { font-size: 25px; margin: 16px 0 8px; }
.product-card p { font-size: 15px; line-height: 1.6; color: var(--muted); font-weight: 500; }
.product-card-cta { margin-top: 20px; }

.product-media {
  aspect-ratio: 16/9;
  margin-bottom: 22px;
  border: var(--border-w) solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-media img { max-width: 55%; max-height: 88%; object-fit: contain; }
.product-media--blue { background: linear-gradient(160deg, #EAF1FF, #D7E4FF); }
.product-media--amber { background: linear-gradient(160deg, #FFF3E2, #FFE3BE); }

/* ===== Projects ===== */
.projects { background: var(--ink); color: var(--paper); border-top: var(--border-w) solid var(--ink); border-bottom: var(--border-w) solid var(--ink); }
.project-card { background: #221F19; border: var(--border-w) solid var(--amber); padding: 26px; }
.project-photo { aspect-ratio: 4/3; margin-bottom: 24px; color: var(--footer-muted); border-color: var(--amber); background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 10px, rgba(255,255,255,.02) 10px 20px); }
.tag-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.project-card h3 { font-size: 25px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.project-preview { display: block; }
.project-screenshot { display: block; width: 100%; height: auto; object-fit: cover; border: var(--border-w) solid var(--amber); }
.project-description { color: var(--footer-muted); line-height: 1.65; margin: 16px 0 20px; }
.project-link { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-weight: 700; text-underline-offset: 5px; }
.project-link:hover { color: var(--paper); }
.project-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; }

/* ===== Process ===== */
.process { position: relative; }
.process h2 { max-width: 640px; line-height: 1.05; }
.process-note {
  float: right;
  max-width: 220px;
  transform: rotate(-3deg);
  margin: -8px 0 24px 24px;
  color: var(--ink);
}
.process-note-arrow { display: block; margin-left: -30px; }
.process-note p { font-family: var(--font-hand); font-weight: 700; font-size: 28px; line-height: 1.15; }

.step-card { border: var(--border-w) solid var(--ink); padding: 24px; box-shadow: var(--shadow-md); }
.step-num { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--coral); margin-bottom: 18px; }
.step-card h4 { font-size: 18px; margin: 0 0 8px; text-transform: none; }
.step-card p { font-size: 14px; line-height: 1.6; color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .process-note { float: none; max-width: none; margin: 0 0 32px; transform: none; display: flex; align-items: center; gap: 12px; }
  .process-note-arrow { display: none; }
}

/* ===== Team ===== */
.team { background: var(--ink); color: var(--paper); border-top: var(--border-w) solid var(--ink); }
.team .eyebrow-ink { color: var(--amber); }
.team-intro { font-size: 16px; line-height: 1.6; color: var(--paper); max-width: 640px; margin: 0 0 52px; font-weight: 600; }
.founder-card { background: var(--paper); color: var(--ink); border: var(--border-w) solid var(--ink); padding: 28px; display: flex; gap: 22px; }
.founder-photo { width: 100px; height: 100px; flex: none; border-width: 2px; font-size: 11px; }
.founder-photo--filled { border: 2px solid var(--ink); background: #fff; overflow: hidden; }
.founder-photo--filled img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.founder-info h3 { font-size: 20px; margin: 0 0 2px; text-transform: none; }
.founder-role { font-size: 13px; font-weight: 800; color: var(--coral); margin-bottom: 10px; text-transform: uppercase; }
.founder-info p:not(.founder-role):not(.founder-edu) { font-size: 14px; line-height: 1.55; color: #4B4638; margin: 0 0 8px; font-weight: 500; }
.founder-edu { font-size: 13px; color: #79725F; font-weight: 600; }
.stack-line { margin-top: 36px; font-size: 13px; font-weight: 700; color: var(--paper); }

@media (max-width: 560px) {
  .founder-card { flex-direction: column; }
  .founder-photo { width: 100%; height: 140px; }
}

/* ===== Contact CTA ===== */
.contact-cta { background: var(--coral); color: var(--ink); text-align: center; border-top: var(--border-w) solid var(--ink); }
.contact-cta h2 { font-size: clamp(32px, 6vw, 56px); margin: 0 0 22px; }
.contact-cta p { font-size: clamp(16px, 2.5vw, 19px); font-weight: 600; margin: 0 0 38px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--footer-muted); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-logo { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--paper); text-transform: uppercase; }
.footer-cols { display: flex; gap: 48px; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.footer-cols a:hover { color: var(--paper); }

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; }
  .footer-cols { gap: 28px; }
}

/* ===== Legal pages (Impressum / Datenschutz) ===== */
.legal-page { padding-top: 64px; padding-bottom: 96px; max-width: 760px; }
.legal-page h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 32px; }
.legal-page .legal-updated { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); margin: 0 0 28px; }
.legal-page .legal-intro { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 40px; }

.legal-card {
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  margin: 0 0 48px;
  font-size: 15px;
  line-height: 1.8;
}
.legal-card p { margin: 4px 0; }
.legal-card .legal-note { margin-top: 16px; font-size: 13px; color: var(--muted-2); font-style: italic; }

.legal-group-title { font-size: clamp(24px, 3.5vw, 32px); margin: 0 0 32px; }

.legal-section { margin: 0 0 36px; }
.legal-section h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 14px;
}
.legal-section p a { text-decoration: underline; color: var(--ink); font-weight: 700; }

.legal-back-link { margin-top: 24px; }

@media (max-width: 700px) {
  .legal-card { padding: 22px 20px; }
}

/* ===== Contact page ===== */
.contact-hero { padding-top: 64px; padding-bottom: 24px; }
.contact-hero h1 { font-size: clamp(36px, 6vw, 60px); margin: 0 0 20px; max-width: 780px; }
.contact-hero .lead { font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: var(--muted); max-width: 560px; font-weight: 500; margin: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 96px;
}

.contact-direct {
  border: var(--border-w) solid var(--ink);
  background: var(--amber);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.contact-direct h2 { font-size: 20px; margin: 0 0 20px; }
.contact-direct-item { margin: 0 0 20px; }
.contact-direct-item:last-child { margin-bottom: 0; }
.contact-direct-item .label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin-bottom: 6px; }
.contact-direct-item a { font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: underline; }
.contact-direct-item p { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.6; }

.contact-form-card {
  border: var(--border-w) solid var(--ink);
  background: #fff;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-row { margin: 0 0 22px; }
.form-row label { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 8px; }
.form-row .required-mark { color: var(--coral); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
  appearance: none;
}
.form-row select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) center, calc(100% - 16px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}
.form-row textarea { resize: vertical; min-height: 140px; }

.form-row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-privacy-notice {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0 0 24px;
}
.form-privacy-notice a { text-decoration: underline; color: var(--ink); font-weight: 700; }

.form-status {
  display: none;
  border: 2px solid var(--ink);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 22px;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--amber); }
.form-status.is-error { background: var(--coral); }

.contact-form button[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 26px; box-shadow: var(--shadow-md); }
  .form-row-pair { grid-template-columns: 1fr; gap: 0; }
}

/* Keep the statutory objection notice distinct from the other rights. */
.legal-objection { border-left: 3px solid var(--ink); padding-left: 1rem; font-weight: 600; }
