/* ==========================================================================
   VENDWERK · style.css
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Components  6. Sections  7. Legal pages
   ========================================================================== */

/* 1. Fonts: Inter, self-hosted (SIL OFL, see /fonts/LICENSE.txt) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/Inter-Bold.woff2") format("woff2"); }

/* 2. Tokens -------------------------------------------------------------- */
:root {
  /* Brand colors */
  --ink: #171717;          /* anthracite: dark sections, text */
  --cream: #F3F1EB;        /* light sections, buttons on dark */
  --grey: #858585;         /* decoration only, never body text on cream */
  --sage: #C5D0BF;         /* the one accent */
  --white: #FFFFFF;        /* cards */
  --line: #D6D2C8;         /* 1px dividers on cream */

  /* Derived (all text pairs ≥ 4.5:1) */
  --muted: #5F5F5F;        /* secondary text on cream (5.6:1), white (6.4:1) */
  --on-dark: #F3F1EB;      /* text on anthracite */
  --on-dark-muted: #A8A8A8;/* secondary text on anthracite (7.5:1) */
  --line-dark: #2E2E2E;    /* dividers on anthracite */
  --ph-light: #E4E0D6;     /* image placeholder on cream */
  --ph-dark: #262626;      /* image placeholder on anthracite */

  /* Type */
  --font: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --fs-h1: clamp(2.75rem, 1.95rem + 3.4vw, 4.75rem);      /* 44 → 76px */
  --fs-h2: clamp(1.875rem, 1.4rem + 2.1vw, 3.375rem);     /* 30 → 54px */
  --fs-h3: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);    /* 19 → 22px */
  --fs-lead: clamp(1.125rem, 1.03rem + .4vw, 1.375rem);   /* 18 → 22px */
  --fs-body: clamp(1.0625rem, 1.02rem + .18vw, 1.1875rem);/* 17 → 19px */
  --fs-small: .9375rem;                                   /* 15px */
  --fs-eyebrow: .875rem;                                  /* 14px */
  --lh-body: 1.58;

  /* Space */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1.25rem, .8rem + 2.4vw, 3rem);
  --max: 1200px;

  /* Shape */
  --r-media: 16px;
  --r-btn: 10px;
  --header-h: 4.5rem;
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s-5); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (min-width: 600px) { html { scroll-padding-top: calc(var(--header-h) + var(--s-4)); } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.012em; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--sage); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-btn);
  background: var(--ink); color: var(--cream); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 4. Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; } /* the hairline on .section-head separates them */
.dark { background: var(--ink); color: var(--on-dark); }

/* 5. Components ---------------------------------------------------------- */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dark .eyebrow { color: var(--sage); }

.lead { font-size: var(--fs-lead); line-height: 1.5; }
.dark .lead { color: var(--on-dark-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 3.25rem;
  padding: .8125rem 1.5rem;
  border-radius: var(--r-btn);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--white); }

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration-color: var(--grey);
}
.link-quiet:hover { text-decoration-color: currentColor; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-7);
}

/* Section head: hairline, numbered eyebrow, headline */
.section-head {
  display: grid;
  gap: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.section-intro {
  margin-top: var(--s-5);
  max-width: 34em;
  color: var(--muted);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 3fr 9fr; gap: var(--s-6); }
  .section-head > .eyebrow { padding-top: .55rem; }
  .section-head--stack { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* Images & placeholders. Real photos: <img class="media r-4x3"> etc. */
.media { width: 100%; height: auto; object-fit: cover; border-radius: var(--r-media); background: var(--ph-light); }
.dark .media { background: var(--ph-dark); }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-4x3 { aspect-ratio: 4 / 3; }
.r-3x2 { aspect-ratio: 3 / 2; }
.ph {
  display: grid;
  place-items: center;
  padding: var(--s-4);
  border-radius: var(--r-media);
  background: var(--ph-light);
  color: var(--muted);
  text-align: center;
}
.ph--dark { background: var(--ph-dark); color: var(--on-dark-muted); }
.ph__label { font-size: .8125rem; letter-spacing: .02em; }


/* 6. Sections ------------------------------------------------------------ */

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--s-4);
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}
.nav { display: flex; margin: 0 -.625rem 0 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .625rem;
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { text-decoration: underline; }
/* Language switch: last nav item, set off by a short hairline */
.nav__lang { display: flex; align-items: center; }
.nav__lang::before { content: ""; width: 1px; height: 1.1em; margin-inline: .25rem; background: var(--grey); }
@media (max-width: 479px) { .nav__opt { display: none; } } /* "Konzept" is also linked from the hero */
@media (max-width: 419px) {
  .wordmark { font-size: 1rem; }
  .nav { margin-right: -.4rem; }
  .nav a { padding-inline: .4rem; font-size: .875rem; }
  .site-header__inner { column-gap: var(--s-2); }
}
@media (max-width: 359px) { /* very narrow phones: nav drops below the wordmark */
  .nav { margin-left: -.4rem; }
  .site-header__inner { padding-block: var(--s-2); }
}
@media (min-width: 600px) {
  .site-header { position: sticky; top: 0; z-index: 10; }
}

/* Hero */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) var(--section-y); }
.hero__grid { display: grid; gap: var(--s-8); }
.hero h1 { margin-top: var(--s-5); }
.hero h1 span { display: block; }
.hero .lead { margin-top: var(--s-5); max-width: 31em; }
@media (min-width: 600px) and (max-width: 899px) { /* tablet: full-width 4:5 would be too tall */
  .hero .r-4x5 { aspect-ratio: 4 / 3; }
  .hero__img { object-position: 70% 45%; } /* keep the machine in frame */
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 3fr 2fr; align-items: center; gap: clamp(3rem, 6vw, 6rem); }
  /* keep each H1 line on one line: shrink with the column if needed */
  .hero__text { container-type: inline-size; }
  .hero h1 { font-size: min(var(--fs-h1), 11.2cqi); }
}

/* 01 Konzept */
.features { display: grid; gap: var(--s-7); }
.icon {
  width: 28px;
  height: 28px;
  margin-bottom: var(--s-5);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin-bottom: var(--s-2); }
.feature p { max-width: 26em; color: var(--muted); }
@media (min-width: 600px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-6); }
}
@media (min-width: 1100px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

/* 02 Powerbanks */
.split { display: grid; gap: var(--s-7); }
.split__text h2 { margin-bottom: var(--s-6); }
.split__text p { max-width: 34em; }
.split__text p + p { margin-top: var(--s-4); }
/* Longer copy: body text in grey, key phrases dark and semibold so the eye can skim */
.split__text p, .about__text p:not(.signature) { color: var(--muted); }
.split__text strong, .about__text p:not(.signature) strong { color: var(--ink); font-weight: 600; }
.actions--inline { margin-top: var(--s-6); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(3rem, 6vw, 6rem); }
}

/* 03 Standorte */
.tiles { display: grid; gap: var(--s-6) var(--s-5); }
.tile h3 { margin-top: var(--s-4); font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }
.tile p { margin-top: var(--s-1); font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

/* 04 Ablauf */
.steps { display: grid; gap: var(--s-4); }
.step {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--r-media);
  background: var(--white);
}
.step__num {
  align-self: flex-start;
  padding: .25rem .625rem;
  border-radius: 999px;
  background: var(--sage);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
}
.step h3 { margin: var(--s-7) 0 var(--s-2); }
.step p { color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .step { min-height: 17rem; }
  .step h3 { margin-top: auto; padding-top: var(--s-7); }
}

/* 05 Über uns */
.section-head--solo { margin-bottom: var(--s-7); }
.about { display: grid; gap: var(--s-7); }
.about__media { width: 100%; max-width: 30rem; }
.about__text h2 { margin-bottom: var(--s-6); }
.about__text p:not(.signature) { max-width: 34em; }
.about__text p + p { margin-top: var(--s-4); }
.about__text .signature {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  max-width: 34em;
}
.signature strong { font-weight: 600; }
.signature span { color: var(--muted); }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); }
}

/* 06 FAQ */
.faq-layout { display: grid; }
.faq-layout .section-head { margin-bottom: var(--s-6); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 44px;
  padding-block: var(--s-5);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-weight: 500; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 36em; padding: 0 2.5rem var(--s-5) 0; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform .2s ease; }
}
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: 5fr 7fr; gap: var(--s-6); align-items: start; }
  .faq-layout .section-head { margin-bottom: 0; }
}

/* 07 Kontakt */
.contact { padding-block: var(--section-y); }
.contact__grid { display: grid; gap: var(--s-7); }
.contact h2 { max-width: 13em; margin-top: var(--s-5); }
.contact .lead { margin-top: var(--s-5); }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; column-gap: .35em; margin-top: var(--s-5); color: var(--on-dark-muted); }
.contact__mail a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); font-weight: 500; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
}

/* Contact form (dark background) */
.lead-form { display: grid; gap: var(--s-5); }
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend, .field label { margin-bottom: var(--s-2); padding: 0; font-size: var(--fs-small); font-weight: 500; color: var(--on-dark); }
.field label { display: block; }
.field__opt { font-weight: 400; color: var(--on-dark-muted); }
.choice__options { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid #6B6B6B; border-radius: var(--r-btn);
  font-size: var(--fs-small); font-weight: 500; color: var(--on-dark);
}
.choice__opt input:checked + span { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 3px; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: .75rem 1rem;
  border: 1px solid #6B6B6B; border-radius: var(--r-btn);
  background: #212121; color: var(--on-dark);
  font: inherit; font-size: 1rem; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input::placeholder, .field textarea::placeholder { color: #8C8C8C; opacity: 1; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.lead-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form-note { font-size: .875rem; line-height: 1.5; color: var(--on-dark-muted); }
.form-note a { color: var(--on-dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-dark); font-size: var(--fs-small); color: var(--on-dark-muted); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-5);
}
.footer-links { display: flex; gap: var(--s-5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); }

/* 7. Legal pages & 404 --------------------------------------------------- */
.legal { padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--section-y); }
.legal .wrap > * { max-width: 44rem; }
.legal h1 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.03em; margin-top: var(--s-5); }
.legal h2 {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -.012em;
}
.legal h3 { margin-top: var(--s-5); font-size: 1.0625rem; }
.legal p, .legal ul, .legal address { margin-top: var(--s-3); }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: var(--s-1); }
.legal .muted { color: var(--muted); }
.draft-note {
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: var(--fs-small);
}
/* Visible marker for data the owner still has to deliver */
.todo { padding: 0 .3em; border-radius: 4px; background: var(--sage); color: var(--ink); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-7); font-weight: 500; }

.notfound { padding-block: var(--section-y); min-height: 60vh; }
.notfound h1 { margin-top: var(--s-5); max-width: 12em; }
.notfound p:not(.eyebrow) { margin-top: var(--s-5); max-width: 30em; }
.notfound .actions { margin-top: var(--s-6); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #000; }
