/* Jens Alber – site styles. No inline styles anywhere, so the server can send a strict CSP. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #F2F4F1;
  --tint: #E3E9E4;
  --ink: #12211B;
  --ink-2: #33423B;
  --ink-3: #44524B;
  --rule: #C7D0CA;
  --accent: #1C5A43;
  --band: #143D2F;
  --on-band: #EAF1EC;
  --on-band-2: #D5E8DC;
  --on-band-num: #8FB8A3;
  --field: #FBFCFB;
  --field-border: #66756C;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 20px;
  --section: 88px;
}
@media (min-width: 700px) { :root { --gutter: 32px; --section: 112px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; --section: 128px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-3) var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  accent-color: var(--accent);
  caret-color: var(--accent);
  overflow-x: clip;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.h2 { font-size: clamp(2.125rem, 4.2vw, 3.5rem); }
.lede { color: var(--ink-2); max-width: 30em; }
.muted { color: var(--ink-3); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 12px 16px; background: var(--ink); color: var(--ground); border-radius: 6px;
}
.skip:focus, .skip:hover { color: var(--ground); }
.skip:focus { top: 12px; }

/* Buttons and links that act like buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 6px;
  background: var(--ink); color: var(--ground);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--accent); color: var(--ground); transform: translateY(-2px); }
.btn:active { transform: none; }
.btn[disabled] { background: var(--ink-3); cursor: progress; transform: none; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.nav__links { display: none; gap: 36px; font-size: 1rem; }
.nav__links a { padding: 10px 0; text-decoration: none; }
.nav__cta { font-size: 1rem; }
@media (min-width: 760px) { .nav__links { display: flex; } }

/* Hero */
.hero { display: grid; gap: 56px; align-items: center; padding-block: 32px 80px; }
.hero__title { font-size: clamp(2.75rem, 5.8vw, 5.25rem); }
.hero__title span { display: block; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lede { margin-top: 32px; max-width: 34em; font-size: 1.3125rem; color: var(--ink-2); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hero__portrait { max-width: 400px; }
.hero__portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.hero__portrait figcaption { margin-top: 20px; font-size: 1rem; color: var(--ink-3); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; padding-block: 48px 96px; }
  .hero__portrait { justify-self: end; width: 100%; }
}

/* Example flow: the one authored animation */
.flow { border-block: 1px solid var(--rule); }
.flow__inner { padding-block: 56px 64px; }
.flow__intro { max-width: 36em; color: var(--ink-2); }
.flow__list { margin-top: 36px; display: grid; gap: 32px 24px; }
@media (min-width: 560px) { .flow__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .flow__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow__bar { height: 3px; margin-bottom: 20px; background: var(--rule); }
.flow__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.flow__name { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.flow__note { margin-top: 8px; font-size: 1rem; color: var(--ink-3); }
.flow__list li:nth-child(1) .flow__bar span { animation: flow-1 12s linear infinite; }
.flow__list li:nth-child(2) .flow__bar span { animation: flow-2 12s linear infinite; }
.flow__list li:nth-child(3) .flow__bar span { animation: flow-3 12s linear infinite; }
.flow__list li:nth-child(4) .flow__bar span { animation: flow-4 12s linear infinite; }
@keyframes flow-1 { 0% { transform: scaleX(0); } 22%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes flow-2 { 0%, 23% { transform: scaleX(0); } 45%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes flow-3 { 0%, 46% { transform: scaleX(0); } 68%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes flow-4 { 0%, 69% { transform: scaleX(0); } 91%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* Services */
.services { padding-block: var(--section); }
.photo { width: 100%; object-fit: cover; border-radius: 4px; }
.service-lead { margin-top: 56px; display: grid; gap: 40px; align-items: center; }
.service-lead .photo { aspect-ratio: 3 / 2; }
.service-lead h3 { font-size: clamp(2rem, 3.4vw, 2.875rem); }
.service-lead p { margin-top: 20px; color: var(--ink-2); }
.ruled { margin-top: 28px; font-size: 1.0625rem; border-bottom: 1px solid var(--rule); }
.ruled li { padding: 12px 0; border-top: 1px solid var(--rule); }
.service-pair { margin-top: 88px; display: grid; gap: 64px; }
.service-pair .photo { aspect-ratio: 2 / 1; }
.service-pair h3 { margin-top: 32px; font-size: 2rem; }
.service-pair p { margin-top: 16px; color: var(--ink-2); }
.service-pair p.muted { font-size: 1.0625rem; color: var(--ink-3); }
@media (min-width: 900px) {
  .service-lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; }
  .service-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; margin-top: 104px; }
}

/* Process band */
.process { background: var(--band); color: var(--on-band); }
.process ::selection { background: var(--on-band); color: var(--band); }
.process :focus-visible { outline-color: var(--on-band); }
.process__inner { padding-block: var(--section); }
.process__head { display: grid; gap: 40px; align-items: center; }
.process__head p { margin-top: 24px; max-width: 30em; color: var(--on-band-2); }
.process__head .photo { aspect-ratio: 5 / 3; }
.process__line { height: 2px; margin: 72px 0 40px; background: var(--on-band); transform-origin: left; }
.process__steps { display: grid; gap: 40px 32px; counter-reset: step; }
.process__steps li { counter-increment: step; }
.process__steps li::before { content: counter(step); display: block; font-size: 3.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--on-band-num); }
.process__steps h3 { margin-top: 12px; font-size: 1.625rem; }
.process__steps p { margin-top: 10px; font-size: 1.0625rem; color: var(--on-band-2); }
@media (min-width: 560px) { .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .process__head { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; } }
@media (min-width: 960px) { .process__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Two-column text sections */
.split { display: grid; gap: 40px; padding-block: var(--section) 0; }
.split--last { padding-bottom: var(--section); }
.split .lede { margin-top: 24px; }
.split .lede + .lede { margin-top: 16px; }
.split .ruled { margin-top: 0; font-size: 1.125rem; align-self: center; }
.split .ruled li { padding: 20px 0; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; } }

.cv { font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--rule); }
.cv > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.cv dt { color: var(--ink-3); }
.cv > div:first-child dt { font-weight: 600; color: var(--accent); }
.cv strong { font-weight: 600; }
.cv span { display: block; font-size: 1rem; color: var(--ink-3); }

/* Contact */
.contact { background: var(--tint); }
.contact__inner { display: grid; gap: 48px; padding-block: var(--section); }
.contact__title { font-size: clamp(2.375rem, 5vw, 4.25rem); }
.contact__inner .lede { margin-top: 24px; max-width: 28em; }
.contact__links { margin-top: 36px; display: grid; justify-items: start; gap: 4px; font-size: 1.25rem; }
.contact__links a { padding: 8px 0; }
@media (min-width: 900px) { .contact__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; } }

/* Contact route switch: set data-kontakt on the section to "mail" or "formular" */
.contact[data-kontakt="mail"] .contact__form,
.contact[data-kontakt="mail"] .contact__links-mail,
.contact[data-kontakt="formular"] .contact__mail { display: none; }
.contact__mail { align-self: end; padding-block: 32px; border-block: 2px solid var(--accent); }
.contact__address { display: inline-block; padding: 8px 0; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact__mail p { margin-top: 12px; color: var(--ink-2); }

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 560px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 1rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 14px;
  background: var(--field); color: var(--ink);
  border: 1px solid var(--field-border); border-radius: 6px;
  font: inherit;
}
.field textarea { padding-block: 12px; min-height: 160px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__foot p { flex: 1 1 220px; font-size: .9375rem; color: var(--ink-3); }
.form__status { padding: 14px 16px; border: 1px solid #8A2B1E; border-radius: 6px; background: #FBEFEC; color: #6E2015; font-size: 1rem; }
.form__done { padding-block: 40px; border-block: 2px solid var(--accent); }
.form__done h3 { font-size: 2.125rem; }
.form__done p { margin: 16px 0 24px; color: var(--ink-2); }
.linkbtn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; cursor: pointer; }
.linkbtn:hover { color: var(--accent); }
/* Honeypot: kept out of sight and out of the tab order, but not display:none */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 32px; font-size: .9375rem; color: var(--ink-3); }
.footer ul { display: flex; flex-wrap: wrap; gap: 28px; }
.footer a { display: inline-block; padding: 12px 0; }

/* Legal and plain text pages */
.prose { max-width: 52ch; padding-block: 48px var(--section); }
.prose h1 { font-size: clamp(2.375rem, 5vw, 3.5rem); }
.prose h2 { margin-top: 56px; font-size: 1.75rem; }
.prose h3 { margin-top: 32px; font-size: 1.25rem; letter-spacing: -.01em; }
.prose h4 { margin: 24px 0 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.prose p, .prose ul, .prose address { margin-top: 16px; color: var(--ink-2); }
.prose address { font-style: normal; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose mark { background: #F6E3A1; color: var(--ink); padding: 0 .2em; border-radius: 2px; }
.notice { margin-top: 32px; padding: 16px 20px; border: 1px solid var(--field-border); border-radius: 6px; background: var(--tint); color: var(--ink-2); font-size: 1rem; }

/* Motion: one entrance, on the headline only */
.rise { animation: rise 1s var(--ease) both; }
.rise--2 { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes grow { from { transform: scaleX(0); } }
@supports (animation-timeline: view()) {
  .process__line { animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .nav__links, .nav__cta, .flow, .contact form, .skip { display: none; }
  .process { background: none; color: var(--ink); }
}
