/* Hartinger Solution – Layout: linksbündig, zweispaltiger Kopf (Aussage links, Laufzettel rechts), ruhige Abschnitte, ein dunkler Kontaktblock am Ende. */

@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");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Farbe */
  --navy: #232f5d;        /* Markenblau aus dem Logo */
  --navy-deep: #151c3b;   /* dunkle Flächen */
  --ink: #1a1f36;         /* Lauftext */
  --muted: #565d78;       /* Nebentext */
  --paper: #f2f4f9;       /* Grund, kühl */
  --surface: #ffffff;
  --tint: #e6e9f3;        /* helle Markenfläche */
  --line: #cfd5e3;
  --signal: #cf3524;      /* Signalrot: Schweiz und Japan */
  --signal-dark: #a92a1c;
  --on-dark: #eef0f7;
  --on-dark-muted: #aab1cb;
  --mark: #fff2b3;        /* Platzhalter-Markierung */

  /* Schrift */
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Mass */
  --gutter: clamp(16px, 4vw, 44px);
  --wrap: 1180px;
  --section: clamp(56px, 8vw, 112px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Schriftrollen ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2.25rem, 5.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--navy);
}
.h1 em { font-style: normal; color: var(--signal); }

.h2 {
  font-family: var(--display);
  font-weight: 750;
  font-stretch: 108%;
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 104%;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--navy);
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 34em; }
.prose { max-width: 38em; }
.prose > * + * { margin-top: 1em; }
.muted { color: var(--muted); }

/* ---------- Kopfzeile ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand__area {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
  padding-left: 14px; border-left: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--navy);
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--signal); }
.nav a.nav__tel { font-family: var(--mono); font-weight: 500; font-size: 0.92rem; white-space: nowrap; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  padding: 15px 22px; border: 2px solid transparent; border-radius: 3px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--signal); color: #fff; }
.btn--primary:hover { background: var(--signal-dark); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--on-dark { border-color: var(--on-dark-muted); color: var(--on-dark); background: transparent; }
.btn--on-dark:hover { background: var(--on-dark); color: var(--navy-deep); border-color: var(--on-dark); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.nav .btn { padding: 11px 18px; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--signal); padding-bottom: 2px;
}
.textlink:hover { color: var(--signal-dark); }
.textlink svg { width: 16px; height: 16px; }

/* ---------- Kopfbereich ---------- */

.hero { padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero__aside { min-width: 0; }

/* ---------- Laufzettel ---------- */

.sheet {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--navy);
  box-shadow: 10px 10px 0 var(--tint);
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.35;
}
.sheet__head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--navy); color: #fff;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.74rem;
}
.sheet__rows { padding: 4px 16px; }
.sheet__row {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding-block: 11px;
  border-bottom: 1px dashed var(--line);
}
.sheet__row:last-child { border-bottom: 0; }
.sheet__no { color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet__what { color: var(--ink); min-width: 0; }
.sheet__what small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.sheet__box {
  width: 22px; height: 22px; border: 1.5px solid var(--navy); background: var(--surface);
  display: grid; place-items: center;
}
.sheet__box svg { width: 16px; height: 16px; }
.sheet__box path {
  fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: square;
  stroke-dasharray: 24; stroke-dashoffset: 0;
}
.sheet__foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1.5px solid var(--navy);
  color: var(--navy); font-size: 0.8rem; letter-spacing: 0.04em;
}
.sheet__foot strong { font-weight: 500; color: var(--signal); }

@media (prefers-reduced-motion: no-preference) {
  .sheet__box path { animation: tick .35s ease-out backwards; animation-delay: calc(.35s + var(--i, 0) * .16s); }
  @keyframes tick { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
}

/* ---------- Abschnitte ---------- */

.section { padding-block: var(--section); }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section--tint { background: var(--tint); }
.hero + .section:not(.section--white) { padding-top: clamp(16px, 3vw, 40px); }
.section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 46em; }

/* Bereiche auf der Startseite */
.areas { border-top: 1.5px solid var(--navy); }
.area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 17.5em;
  gap: 18px clamp(20px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(24px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.area__name { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.area__name a { text-decoration: none; color: var(--navy); }
.area__name a:hover { color: var(--signal-dark); }
.area__title {
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.6rem, 2.7vw, 2.1rem); line-height: 1.05; letter-spacing: -0.015em;
}
.area__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.area__more { align-self: center; justify-self: end; }

.taglist { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.taglist li {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 4px 9px; border: 1px solid var(--line); background: var(--surface); color: var(--navy);
}

/* Drei Grundsätze / Karten ohne Kartenoptik */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 18px; border-top: 3px solid var(--navy); }

/* Leistungen */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(24px, 4vw, 56px); }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks svg { width: 20px; height: 20px; margin-top: 4px; }
.checks svg path { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: square; }
.checks strong { display: block; color: var(--navy); }

/* Ablauf */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1.5px solid var(--navy); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 4px 12px;
  padding-block: 20px; border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-weight: 500; font-size: 0.95rem; color: var(--signal); padding-top: 3px;
}
.steps__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* Zwei Angebote nebeneinander */
.offer {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  background: var(--surface); border: 1.5px solid var(--navy); padding: clamp(20px, 3vw, 32px);
}
.offer ul { display: flex; flex-direction: column; gap: 8px; }
.offer li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; }
.offer li::before { content: ""; width: 8px; height: 8px; margin-top: 0.6em; background: var(--signal); }

/* Referenzliste */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1.5px solid var(--navy); }
.refs li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding-block: 16px; border-bottom: 1px solid var(--line);
}
.refs strong { font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: 1.15rem; color: var(--navy); }
.refs span { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* Fragen */
.faq { border-top: 1.5px solid var(--navy); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 16px; align-items: center;
  padding-block: 18px;
  font-family: var(--display); font-weight: 700; font-stretch: 104%; font-size: 1.12rem; line-height: 1.3; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; justify-self: center;
  border-right: 2.5px solid var(--signal); border-bottom: 2.5px solid var(--signal);
  transform: translateY(-3px) rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq p { padding-bottom: 20px; max-width: 44em; }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.facts { display: flex; flex-direction: column; border-top: 1.5px solid var(--navy); }
.facts div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }

/* ---------- Kontakt ---------- */

.contact { background: var(--navy-deep); color: var(--on-dark); padding-block: var(--section); }
.contact .h2 { color: #fff; }
.contact .eyebrow { color: var(--on-dark-muted); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.contact__lines { display: flex; flex-direction: column; gap: 14px; }
.contact__lines a, .contact__lines span.val {
  font-family: var(--display); font-weight: 700; font-stretch: 106%;
  font-size: clamp(1.15rem, 2vw, 1.5rem); color: #fff; text-decoration: none; overflow-wrap: anywhere;
}
.contact__lines a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 5px; }
.contact__lines small { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 2px; }
.contact__note { color: var(--on-dark-muted); max-width: 30em; }

.form {
  background: var(--surface); color: var(--ink);
  padding: clamp(20px, 3vw, 34px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px;
  min-width: 0;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 3px; padding: 12px 13px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px var(--tint); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__legal { font-size: 0.85rem; color: var(--muted); flex: 1 1 16em; }
.form__legal a { color: var(--navy); }
.form__status {
  grid-column: 1 / -1; padding: 14px 16px; border: 1.5px solid var(--navy); background: var(--tint); color: var(--ink); font-size: 0.98rem;
}
.form__status--error { border-color: var(--signal); background: #fdecea; }
.form__status a { color: var(--navy); font-weight: 600; }

/* ---------- Fuss ---------- */

.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); border-top: 1px solid #2b345c; padding-block: 36px 44px; font-size: 0.92rem; }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.site-footer img { height: 34px; width: auto; margin-bottom: 6px; align-self: flex-start; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; }

/* Mobile Anrufleiste */
.callbar { display: none; }

/* ---------- Rechtstexte ---------- */

.legal { padding-block: clamp(40px, 6vw, 80px); }
.legal .h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 28px; }
.legal h2 { font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: 1.3rem; color: var(--navy); margin-top: 2em; margin-bottom: 0.5em; }
.legal p, .legal li { max-width: 44em; }
.legal p + p { margin-top: 0.9em; }
.legal ul { list-style: disc; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; margin-top: 0.6em; }
.legal a { color: var(--navy); font-weight: 600; }
.todo { background: var(--mark); padding: 1px 5px; font-family: var(--mono); font-size: 0.86em; }

/* ---------- Schmal ---------- */

@media (max-width: 900px) {
  .hero__grid, .contact__grid, .about { grid-template-columns: minmax(0, 1fr); }
  .area { grid-template-columns: minmax(0, 1fr); }
  .area__more { align-self: start; justify-self: start; }
  .cols, .cols--2 { grid-template-columns: minmax(0, 1fr); }
  .steps, .refs { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .brand img { height: 34px; }
  .brand__area { display: none; }
  .nav a.nav__tel, .nav a.btn { display: none; }
  .checks, .form { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sheet { box-shadow: 6px 6px 0 var(--tint); }
  .btn { padding: 14px 18px; }
  .hero .btn-row .btn { flex: 1 1 100%; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--navy-deep);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid #2b345c;
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 60px; font-weight: 600; text-decoration: none; color: #fff;
  }
  .callbar a.callbar__primary { background: var(--signal); }
  .callbar svg { width: 18px; height: 18px; }
}
