/* Anica Boldt – Büroservice für Handwerksbetriebe
   Farben aus dem Foto (Schiefer/Blaugrau) + Zollstock-Gelb als einziger Akzent. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

:root {
  --ink: #1C2733;        /* Schiefer, fast schwarz */
  --slate: #3D5366;      /* Blaugrau aus dem Foto */
  --mist: #8A9BA8;       /* gedämpftes Grau für Nebentext auf dunkel */
  --paper: #F2F3EF;      /* kühles Papierweiß */
  --white: #FFFFFF;
  --line: #CED5D7;
  --yellow: #F3C01C;     /* Zollstock-Gelb */
  --yellow-deep: #D9A800;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --condensed: 72%;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);

  /* Typoskala (Quarte, 1.333) */
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: 1.3rem;
  --t-h3: 1.4rem;
  --t-h2: clamp(2rem, 4.2vw, 3.2rem);
  --t-h1: clamp(3rem, 8.4vw, 6.6rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--white);
  font-weight: 650; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; border-radius: 3px;
  border: 2px solid var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--slate); border-color: var(--slate); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #FFD43D; border-color: #FFD43D; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 243, 239, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 32px;
  min-height: 72px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand__name {
  font-size: 1.45rem; font-weight: 800; font-stretch: var(--condensed);
  letter-spacing: -0.005em;
}
.brand__tag { font-size: 0.8rem; color: var(--slate); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--slate); }
.nav a:hover { color: var(--ink); }

@media (max-width: 880px) {
  .nav { display: none; }
  .site-header__inner { justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero__text { padding-bottom: clamp(32px, 5vw, 64px); }
.hero__place {
  display: inline-block;
  font-size: var(--t-small); font-weight: 600; color: var(--slate);
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 4px solid var(--yellow);
}
.hero__title {
  font-size: var(--t-h1);
  font-weight: 850;
  font-stretch: 64%;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
  hyphens: manual;
  margin-bottom: 28px;
}
.hero__lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  max-width: 34em;
  color: var(--slate);
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero__facts {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-size: 0.95rem; font-weight: 550;
}
.hero__facts li { display: flex; align-items: center; gap: 9px; }
.hero__facts li::before {
  content: ""; width: 14px; height: 9px; flex: none;
  border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg) translate(1px, -2px);
}

.hero__photo { position: relative; align-self: stretch; }
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 20%;
  aspect-ratio: 4 / 5;
  border-radius: 3px 3px 0 0;
}
.hero__photo figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--white);
  font-size: 0.82rem; font-weight: 500;
  padding: 8px 14px;
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { padding-bottom: 0; }
  .hero__photo { max-width: 520px; }
  .hero__photo img { aspect-ratio: 5 / 4; object-position: 30% 22%; }
}

/* ---------- Zollstock ---------- */
.ruler {
  position: relative;
  background: var(--yellow);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.ruler__track {
  position: relative;
  height: 74px;
  /* Millimeter-, Halbzentimeter- und Zentimeterstriche */
  background-image:
    linear-gradient(to right, var(--ink) 2px, transparent 2px),
    linear-gradient(to right, var(--ink) 1.5px, transparent 1.5px),
    linear-gradient(to right, var(--ink) 1px, transparent 1px);
  background-size: 60px 30px, 30px 20px, 6px 11px;
  background-repeat: repeat-x;
  background-position: 0 0, 0 0, 0 0;
}
/* Gelenke des Zollstocks alle 20 cm */
.ruler__track::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, transparent 0 calc(100% - 2px), rgba(28,39,51,.55) calc(100% - 2px)),
    radial-gradient(circle at calc(100% - 12px) 58px, var(--ink) 0 3.5px, transparent 4px);
  background-size: 600px 100%, 600px 100%;
  background-repeat: repeat-x;
  pointer-events: none;
}
.ruler__nums {
  position: absolute; top: 30px; left: 0; right: 0;
  display: flex; white-space: nowrap; overflow: hidden;
  font-size: 0.9rem; font-weight: 700; font-stretch: 80%;
  font-variant-numeric: tabular-nums;
}
.ruler__nums span { flex: 0 0 60px; text-align: right; padding-right: 5px; }
.ruler__span {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 9px;
  display: flex; align-items: center;
}
.ruler__label {
  background: var(--ink); color: var(--yellow);
  font-size: 0.95rem; font-weight: 650;
  padding: 6px 14px;
  border-radius: 2px;
}
@media (max-width: 640px) {
  .ruler__track { height: 118px; }
  .ruler__track::after { background-image: linear-gradient(to right, transparent 0 calc(100% - 2px), rgba(28,39,51,.55) calc(100% - 2px)); }
  .ruler__span { left: var(--gutter); right: var(--gutter); bottom: 8px; }
  .ruler__label { font-size: 0.85rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.h2 {
  font-size: var(--t-h2);
  font-weight: 800;
  font-stretch: var(--condensed);
  letter-spacing: -0.005em;
  line-height: 1.02;
  text-wrap: balance;
}
.h2--wide { max-width: 18em; margin-bottom: clamp(36px, 5vw, 60px); }
.h2--light { color: var(--white); }

.prose { max-width: 36em; font-size: 1.125rem; line-height: 1.65; }

/* Problem */
.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 6vw, 96px);
}
@media (max-width: 860px) { .problem__grid { grid-template-columns: 1fr; } }

/* Leistungen */
.services { background: var(--white); border-block: 1px solid var(--line); }
.services__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.service {
  padding: 32px 40px 40px 0;
  border-bottom: 1px solid var(--line);
}
.service:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.service h3 {
  font-size: var(--t-h3); font-weight: 750; font-stretch: 85%;
  margin-bottom: 12px;
}
.service p { color: var(--slate); max-width: 32em; }
@media (max-width: 760px) {
  .services__list { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 26px 0 30px; border-left: 0; }
}

/* Vergleich */
.compare__intro { font-size: var(--t-lead); color: var(--slate); margin: -28px 0 36px; max-width: 34em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare__table {
  width: 100%; min-width: 620px;
  border-collapse: collapse;
  font-size: 1rem;
}
.compare__table th,
.compare__table td {
  text-align: left; vertical-align: top;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.compare__table thead th {
  font-size: 1.05rem; font-weight: 750; font-stretch: 85%;
  border-bottom: 2px solid var(--ink);
  vertical-align: bottom;
  padding-block: 14px;
}
.compare__table tbody th { font-weight: 650; width: 20%; }
.compare__table td { color: var(--slate); width: 40%; }
.compare__table .is-us { background: var(--white); color: var(--ink); font-weight: 550; }
.compare__table thead .is-us { background: var(--yellow); border-bottom-color: var(--ink); }
.compare__table tbody td.is-us { box-shadow: inset 4px 0 0 var(--yellow); }
.fineprint { margin-top: 20px; font-size: var(--t-small); color: var(--slate); max-width: 46em; }

/* Ablauf */
.steps { background: var(--white); border-block: 1px solid var(--line); }
.steps__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  counter-reset: step;
}
.steps__list li { counter-increment: step; position: relative; padding-top: 74px; }
.steps__list li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-size: 3.6rem; font-weight: 850; font-stretch: 64%; line-height: 1;
  color: var(--ink);
}
.steps__list li::after {
  content: ""; position: absolute; top: 26px; left: 44px; right: 0;
  height: 2px; background: var(--line);
}
.steps__list li:last-child::after { background: linear-gradient(to right, var(--line), transparent); }
.steps__list h3 { font-size: var(--t-h3); font-weight: 750; font-stretch: 85%; margin-bottom: 10px; }
.steps__list p { color: var(--slate); max-width: 26em; }
@media (max-width: 820px) { .steps__list { grid-template-columns: 1fr; } }

/* FAQ */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
}
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }
.faq__list { border-top: 2px solid var(--ink); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-size: 1.15rem; font-weight: 650;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { color: var(--slate); max-width: 38em; padding-bottom: 24px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .faq__list summary::after { transition: none; } }

/* Kontakt */
.contact { background: var(--ink); color: #DCE3E8; padding-block: var(--section); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.contact__text p { font-size: 1.15rem; max-width: 32em; margin-top: 24px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.contact__mail { font-size: 0.95rem !important; color: var(--mist); margin-top: 18px !important; }
.hours {
  margin-top: 44px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.16);
  max-width: 34em;
}
.hours__title { font-size: 1.25rem; font-weight: 750; font-stretch: 85%; color: var(--white); margin-bottom: 14px; }
.hours__list { margin: 0; }
.hours__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px;
  padding: 12px 0 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  border-left: 4px solid transparent;
}
.hours__row.is-today { border-left-color: var(--yellow); }
.hours__row dt { color: #DCE3E8; }
.hours__row dd { margin: 0; color: var(--white); font-weight: 650; font-variant-numeric: tabular-nums; }
.contact__text .hours__status { font-size: 0.95rem; color: var(--yellow); font-weight: 600; margin-top: 14px; }
.contact__text .hours__note { font-size: 0.98rem; color: var(--mist); margin-top: 14px; }
.contact__text .hours__note--strong { color: #DCE3E8; font-weight: 600; }
@media (max-width: 480px) { .hours__row { grid-template-columns: 1fr; } }
.contact__card { background: var(--white); color: var(--ink); padding: 12px 12px 18px; max-width: 340px; justify-self: end; border-radius: 3px; }
.contact__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.contact__card figcaption { padding: 14px 6px 0; font-size: 0.95rem; color: var(--slate); line-height: 1.4; }
.contact__card strong { display: block; color: var(--ink); font-size: 1.15rem; font-stretch: 85%; }
@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__card { justify-self: start; max-width: 280px; }
}

/* Footer */
.site-footer { background: var(--ink); color: var(--mist); border-top: 1px solid rgba(255,255,255,.1); font-size: var(--t-small); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 26px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: #DCE3E8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Rechtstexte */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: var(--t-h2); font-weight: 800; font-stretch: var(--condensed); margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; font-stretch: 85%; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--slate); max-width: 40em; }
.todo { background: #FFF3C4; padding: 1px 4px; }
