/* =========================================================
   deingeldsack.de — Design-System "Leinen & Tinte"
   Landingpage nach T.O.M.-Gestaltungsrichtlinie
   Mobile first. Keine externen Requests.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper:      #FAF7F1;
  --linen:      #F1E9DA;
  --jute:       #D9C4A0;
  --ink:        #1B2740;
  --ink-soft:   #2C3A57;
  --graphite:   #5A5A52;
  --line:       #DED3BF;

  --cta:        #C2540A;   /* 4,7:1 auf Weiß — WCAG AA */
  --cta-hover:  #A34507;
  --cta-ink:    #FFFFFF;

  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 1px 2px rgba(27,39,64,.06), 0 8px 24px rgba(27,39,64,.07);
  --shadow-lg:  0 2px 4px rgba(27,39,64,.08), 0 18px 44px rgba(27,39,64,.12);

  --wrap:       1180px;
  --wrap-narrow: 780px;
  --gap:        clamp(1.25rem, 4vw, 2.5rem);
  --section-y:  clamp(3.5rem, 9vw, 6.5rem);

  /* Schriften: Systemstack. Zum Umstellen auf self-hosted Fonts
     siehe assets/fonts/README.txt */
  --font-head: "Segoe UI Variable Display", "Segoe UI", -apple-system,
               BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", -apple-system,
               BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono",
               "Roboto Mono", monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  /* Sehr dezente Gewebe-Textur, rein als CSS, kein Bildrequest */
  background-image:
    repeating-linear-gradient(90deg, rgba(27,39,64,.022) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg,  rgba(27,39,64,.022) 0 1px, transparent 1px 4px);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.35rem + 3.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.9vw, 2.4rem); font-weight: 750; }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); font-weight: 700; }
p  { margin: 0 0 1em; }
ul, ol, dl { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; }

.mono { font-family: var(--font-mono); font-size: .94em; letter-spacing: -.02em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); }
.section--linen { background: var(--linen); }
.section--ink   { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: #fff; }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section__lead { color: var(--graphite); font-size: 1.08em; margin: 0; }
.section--ink .section__lead { color: #C3CBDA; }
.section__cta { margin: clamp(2.25rem, 5vw, 3.25rem) 0 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--graphite); margin: 0 0 1rem;
}

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Fokus ---------- */
:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--ink :focus-visible { outline-color: var(--jute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: .9em 1.5em; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn--primary {
  background: var(--cta); color: var(--cta-ink);
  box-shadow: 0 2px 0 rgba(0,0,0,.12), var(--shadow);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--cta-hover); transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(0,0,0,.12), var(--shadow-lg);
}
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); color: var(--paper); }
.btn--lg { font-size: 1.1rem; padding: 1.05em 1.9em; }
.btn--sm { font-size: .9rem; padding: .55em 1em; border-radius: var(--radius-sm); }
.btn--block { display: flex; width: 100%; justify-content: center; text-align: center; }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; font-family: var(--font-head);
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
}
.brand__mark {
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--jute);
  font-family: var(--font-mono); font-size: 1.05rem; line-height: 1;
}
.brand__tld { color: var(--graphite); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 5.5rem); }
.hero__inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.hero__headline { text-wrap: balance; margin-bottom: .45em; }
.hero__sub {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  color: var(--graphite); max-width: 34em; margin-bottom: 1.9em;
}
.hero__cta { margin-bottom: .9rem; }
.microtrust { font-size: .92rem; color: var(--graphite); margin: 0; }
.microtrust strong { color: var(--ink); }
.hero__media { margin: 0; }
.hero__media img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10; object-fit: cover; width: 100%;
  border: 1px solid var(--line);
}

@media (min-width: 60rem) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; align-items: center; }
}

/* ---------- Anwendungen ---------- */
.uses { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 34rem) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .uses { grid-template-columns: repeat(4, 1fr); } }
.use {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.use img {
  aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
  display: block; background: var(--jute);
}
.use__ai {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .02em;
  color: var(--graphite); background: var(--linen);
  margin: 0; padding: .35rem .9rem; border-bottom: 1px solid var(--line);
}
.use h3 {
  margin: 1rem 1.1rem .4em; font-size: 1.08rem;
}
.use > p:not(.use__ai) {
  font-size: .93rem; color: var(--graphite); margin: 0 1.1rem 1.1rem;
}

/* ---------- USPs ---------- */
.usps { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .usps { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.usp {
  background: var(--linen); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem);
}
.usp--strong {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink); box-shadow: var(--shadow-lg);
}
.usp--strong h3 { color: #fff; }
.usp__num {
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .1em;
  color: var(--graphite); margin: 0 0 .9rem;
}
.usp--strong .usp__num { color: var(--jute); }
.usp p:last-child { margin-bottom: 0; }
.usp__note { font-size: .93rem; color: #C3CBDA; margin: .9rem 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.chip {
  font-family: var(--font-mono); font-size: .85rem;
  padding: .3em .6em; border-radius: var(--radius-sm);
  background: rgba(217,196,160,.18); color: var(--jute);
  border: 1px solid rgba(217,196,160,.35);
}

/* ---------- Features ---------- */
.features { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature {
  display: grid; gap: .15rem;
  padding-block: 1.05rem; border-bottom: 1px solid var(--line);
}
.feature dt { font-weight: 700; font-family: var(--font-head); }
.feature dd { margin: 0; color: var(--graphite); }
.feature__list { display: grid; gap: .3rem; }
.feature__list li { position: relative; padding-left: 1.1rem; }
.feature__list li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: .38rem; height: .38rem; border-radius: 50%; background: var(--cta);
}
@media (min-width: 48rem) {
  .feature { grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: baseline; }
}

/* ---------- Zeitstrahl ---------- */
.steps { display: grid; gap: 0; position: relative; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding-bottom: 2.25rem; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 1.4rem; top: 3rem; bottom: -.25rem;
  width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step__num {
  display: grid; place-items: center;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--ink); color: var(--jute);
  font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700;
  position: relative; z-index: 1;
}
.step__body h3 { margin-bottom: .3em; }
.step__body p { color: var(--graphite); margin: 0; }

/* ---------- Abgrenzung ---------- */
.compare { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col {
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 1.9rem); background: rgba(255,255,255,.04);
}
.compare__col h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .9em; }
.compare__col--yes h3 span { color: #8FD19E; }
.compare__col--no  h3 span { color: #E9A08C; }
.compare__col li {
  padding-left: 1.15rem; position: relative; margin-bottom: .6em; color: #DCE2EC;
}
.compare__col li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: .4rem; height: .4rem; border-radius: 50%; background: var(--jute);
}
.compare__col li:last-child { margin-bottom: 0; }

/* ---------- Vertrauen ---------- */
.quotes { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--linen); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.35rem, 3vw, 1.75rem);
  display: flex; flex-direction: column; justify-content: space-between;
}
.quote blockquote { margin: 0 0 1rem; }
.quote blockquote p { font-size: 1.02rem; margin: 0; }
.quote__src {
  font-family: var(--font-mono); font-size: .82rem; color: var(--graphite); margin: 0;
}

.facts {
  display: grid; gap: 1rem; margin-top: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 56rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li {
  border-top: 3px solid var(--ink); padding-top: .85rem;
}
.facts strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.1;
}
.facts span { display: block; font-size: .9rem; color: var(--graphite); margin-top: .2rem; }

/* ---------- Verzweigung ---------- */
.branch { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .branch { grid-template-columns: 1fr 1fr; } }
.branchcard {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.branchcard:hover, .branchcard:focus-within {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.branchcard__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--jute); }
.branchcard__body {
  padding: clamp(1.35rem, 3vw, 2rem);
  display: flex; flex-direction: column; flex: 1;
}
.branchcard__kicker {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--graphite); margin: 0 0 .35rem;
}
.branchcard h3 { margin-bottom: 1rem; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }

.spec { border-top: 1px solid var(--line); margin-bottom: 1.35rem; }
.spec > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem;
  padding-block: .6rem; border-bottom: 1px solid var(--line);
}
.spec dt { font-size: .86rem; color: var(--graphite); }
.spec dd { margin: 0; font-size: .95rem; }

.price { margin: 0 0 1.25rem; margin-top: auto; }
.price__value {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); letter-spacing: -.02em;
}
.price__unit { font-size: .9rem; color: var(--graphite); }

/* ---------- Größentabelle ---------- */
.sizes { margin-top: clamp(2.5rem, 6vw, 4rem); }
.sizes h3 { margin-bottom: 1rem; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
thead th {
  text-align: left; background: var(--ink); color: #fff;
  font-family: var(--font-head); font-weight: 700; padding: .8rem 1rem; white-space: nowrap;
}
tbody th, tbody td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; white-space: nowrap; }
.note { font-size: .9rem; color: var(--graphite); margin: .9rem 0 0; }

/* ---------- Großmengen ---------- */
.bulk {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 2px dashed var(--jute); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem); background: rgba(217,196,160,.16);
}
.bulk h3 { margin-bottom: .4em; }
.bulk p { color: var(--graphite); max-width: 42em; }

.bulk__form { max-width: 32em; margin-top: 1.25rem; }
.bulk__row { margin-bottom: 1rem; }
.bulk__row label {
  display: block; font-size: .88rem; font-weight: 700;
  font-family: var(--font-head); margin-bottom: .35rem;
}
.bulk__row label span { color: var(--cta); margin-left: .2em; }
.bulk__row input, .bulk__row textarea {
  width: 100%; font: inherit; font-size: .95rem;
  padding: .7em .85em; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); resize: vertical;
}
.bulk__row input:focus, .bulk__row textarea:focus {
  outline: none; border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(194,84,10,.15);
}
/* Honeypot: für Menschen unsichtbar, für Bots ein Köder. */
.bulk__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C3CBDA; padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.site-footer__inner { display: grid; gap: 1.25rem; }
.site-footer__brand {
  font-family: var(--font-head); font-weight: 800; color: #fff;
  font-size: 1.1rem; margin: 0;
}
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: #fff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--jute); }
.disclaimer { font-size: .84rem; line-height: 1.6; max-width: 62em; margin: 0; color: #99A4B8; }

/* ---------- Rechtsseiten ---------- */
.legal h1 { margin-bottom: .8em; }
.legal h2 {
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  margin-top: 2.25em; margin-bottom: .5em;
}
.legal p { max-width: 42em; }
.legal a:not(.btn) { color: var(--cta); text-underline-offset: 3px; }
.legal a:not(.btn):hover { color: var(--cta-hover); }
.legal__notice {
  background: var(--linen); border-left: 4px solid var(--cta);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem; margin-bottom: 2.5rem;
  font-size: .93rem; color: var(--graphite); max-width: 46em;
}
.legal__notice strong { color: var(--ink); display: block; margin-bottom: .3em; }

/* ---------- Scroll-Reveal ---------- */
.js-reveal { opacity: 1; }
.js-on .js-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.js-on .js-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js-on .js-reveal { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .section__cta, .skip-link { display: none; }
  body { background: #fff; }
}
