/* Entwurf C – klare Seite mit handschriftlichen Randnotizen (Schriften: fonts.css) */

:root {
  --paper: #FFFFFF;
  --band: #EEF1F3;
  --ink: #1F272E;
  --ink-soft: #4B5761;
  --slate: #3F4C57;
  --line: #D3DADF;
  --field: #C3CCD2;
  --pen: #3F4C57;          /* Notizen in Logo-Schiefer */
  --action: #EE9414;
  --action-hover: #F7A330;
  --action-ink: #1A1206;
  --error: #B42318;
  --focus: #3F4C57;
  --slate-base: #3F4C57;   /* bleibt Schiefer, auch wo --slate umgefärbt wird */
  --ink-base: #1F272E;
  --key-light: #E9EDF0;    /* Linien und Häkchen auf Schiefer */
  --slate-raised: #45535F; /* Fläche auf Schiefer */
  --on-slate: #F2F4F6;
  --on-slate-soft: #C4CDD4;
  --on-slate-line: rgb(255 255 255 / .2);
  --trace: #FFAE42;        /* helles Logo-Orange: Fokus und Links auf Schiefer */

  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --hand: "Nanum Pen Script", "Segoe Print", cursive;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --max: 74rem;
  --pad: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; scrollbar-color: #9AA5AD var(--band); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--slate); color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--action); color: var(--action-ink); padding: .6rem .9rem; font-weight: 700; }
.skip:focus { top: 1rem; }

.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.4rem;
  border: 0;
  border-radius: 8px;
  background: var(--action);
  color: var(--action-ink);
  font: 700 1.0625rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(31 39 46 / .18);
  transition: background-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn:hover { background: var(--action-hover); transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgb(31 39 46 / .35); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--small { min-height: 44px; padding: .65rem 1rem; font-size: .9375rem; }
@media (min-width: 36.01rem) { .head .btn--small { white-space: nowrap; } }

/* ---------- Kopf ---------- */

.head {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.1rem var(--pad);
  flex-wrap: wrap;
}
.head__logo { display: flex; align-items: center; min-height: 44px; }
.head__logo img { height: 2.6rem; width: auto; }
.head__nav { display: flex; gap: 1.75rem; margin-left: auto; font-weight: 600; font-size: 1rem; }
.head__nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; text-decoration: none; padding-block: .3rem; border-bottom: 2px solid transparent; }
.head__nav a:hover { border-bottom-color: var(--slate); }
.head__contact { display: flex; align-items: center; gap: 1.25rem; }
.head__phone { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 44px; min-height: 44px; white-space: nowrap; font-weight: 600; text-decoration: none; }
.head__phone:hover span { text-decoration: underline; }

/* ---------- Randnotizen ---------- */

.note { display: flex; align-items: flex-end; gap: .35rem; color: var(--pen); }
.note__text {
  min-width: 0;
  font: 400 1.75rem/1.3 var(--hand);
  letter-spacing: .005em;
}
/* Umlaute in der Stiftschrift: Grundbuchstabe plus zwei gezeichnete Punkte (siehe Skript) */
.uml { position: relative; }
.uml::before { content: attr(data-base); content: attr(data-base) / ""; }
.uml::after {
  content: "";
  position: absolute;
  left: 50%;
  top: .04em;
  width: .34em;
  height: .09em;
  transform: translateX(-48%) rotate(-6deg);
  background:
    radial-gradient(closest-side, currentColor 75%, transparent) left / .11em 100% no-repeat,
    radial-gradient(closest-side, currentColor 75%, transparent) right / .11em 100% no-repeat;
}
.uml__real { display: inline-block; width: 1px; height: 1px; margin-right: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.note__arrow {
  flex: none;
  width: 4.5rem;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
/* Pfeile zeichnen sich einmal selbst, wenn der Abschnitt ins Bild kommt */
.will-draw .note__arrow path, .will-draw .scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.will-draw .note__text { opacity: 0; }
.is-drawn .note__arrow path, .is-drawn .scribble path { transition: stroke-dashoffset .7s var(--ease-out); stroke-dashoffset: 0; }
.scribble--reink.is-reinking path { stroke-dasharray: 1; animation: reink .5s var(--ease-out) both; }
@keyframes reink { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.is-drawn .note__arrow path + path { transition-delay: .55s; transition-duration: .25s; }
.is-drawn .note__text { opacity: 1; transition: opacity .45s .35s ease-out; }

/* ---------- Einstieg ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(20rem, .8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(3.5rem, 7vw, 6rem);
}
.hero__title {
  font-size: clamp(2.4rem, 1.1rem + 4.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
}
.hero__lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .75rem 2rem;
  margin-top: 2rem;
}
.strip { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); line-height: 1.3; }
.strip strong { font-weight: 800; color: var(--ink); font-size: 1.2em; letter-spacing: -.01em; }
.strip__dot { margin-inline: .45em; color: var(--line); font-weight: 800; }
.strip__item { white-space: nowrap; }
.hero__prices { flex-direction: column; gap: .15rem; }
.hero__prices > * { min-width: 0; max-width: 100%; }
.note--prices { margin-left: 5.5rem; }
.note--prices .note__arrow { width: 2.75rem; order: -1; margin-bottom: .55rem; }
.note--prices .note__text { font-size: 1.6rem; }

/* Handgezogene Unterstreichungen */
.underlined { position: relative; display: inline-block; }
.scribble {
  position: absolute;
  left: -.02em; right: -.02em; bottom: -.12em;
  width: calc(100% + .04em);
  height: .16em;
  min-height: 7px;
  fill: none;
  stroke: var(--pen);
  stroke-width: 2.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  overflow: visible;
}
.hero__title .scribble { stroke-width: 3; bottom: -.08em; }
.note__text .scribble { bottom: -.05em; height: .3em; stroke-width: 1.8; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2.25rem; }
.hero__or { color: var(--ink-soft); }
.hero__or a { color: var(--ink); font-weight: 600; }

/* Rechner */
.calc {
  position: relative;
  margin-top: .5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(31 39 46 / .06), 0 18px 36px -24px rgb(31 39 46 / .35);
}
.calc__title { font-size: 1.35rem; font-weight: 750; letter-spacing: -.01em; }
.calc__form { margin-top: .75rem; }
.calc__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .4rem .75rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.calc__row label { grid-column: 1 / -1; font-weight: 600; line-height: 1.25; }
.calc__hint { font-weight: 400; font-size: .875rem; color: var(--ink-soft); }
.calc__hint::before { content: "· "; }
.calc__field { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; min-width: 0; color: var(--ink-soft); }
.calc__field input {
  width: 4.25rem;
  max-width: 100%;
  min-height: 44px;
  padding: .45rem .55rem;
  border: 1.5px solid var(--field);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: 700 1.0625rem/1.2 var(--sans);
  text-align: right;
}
.calc__field input:hover { border-color: var(--slate); }
.calc__field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--slate); }
.calc__field input[aria-invalid="true"] { border-color: var(--error); }
.calc output { text-align: right; font-weight: 700; }
.calc__row--total { border-bottom: 0; padding-top: 1rem; }
.calc__row--total span:nth-child(2) { display: none; }
.calc__row--total span:first-child { font-weight: 750; }
.calc__row--total output { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.calc__err { margin-top: .4rem; color: var(--error); font-size: .9375rem; font-weight: 600; }
.note--calc { justify-content: flex-end; margin-top: .25rem; margin-right: 1rem; }
.note--calc .note__text { text-align: right; }
.note--calc .note__arrow { width: 3.25rem; margin-bottom: 1.1rem; order: 2; }

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

.band { background: var(--band); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section__title {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 4vw, 3.5rem);
  margin-top: 2.25rem;
}
.service { position: relative; padding-top: 1.1rem; border-top: 2px solid var(--slate); }
.service h3 { font-size: 1.35rem; font-weight: 750; letter-spacing: -.015em; }
.service > p { margin-top: .5rem; color: var(--ink-soft); text-wrap: pretty; }
.service ul { margin-top: 1rem; display: grid; gap: .35rem; }
.service li { position: relative; padding-left: 1.1rem; }
.service li::before { content: ""; position: absolute; left: 0; top: .78em; width: .5rem; height: 2px; background: var(--slate); }
.note--small { margin-top: .9rem; }
.note--small .note__arrow { width: 3rem; order: -1; margin-bottom: .7rem; }

.prices { display: grid; grid-template-columns: minmax(14rem, .7fr) minmax(0, 1.6fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prices__intro > p { margin-top: .75rem; color: var(--ink-soft); }
.prices { position: relative; }
.note--table { margin-top: 1.5rem; align-items: center; gap: .25rem; }
.note--table .note__arrow--right { width: 5.5rem; }
.note--table .note__arrow--down { display: none; width: 2.5rem; }
/* auf breiten Schirmen richtet das Skript die Notiz an der Tabellenzeile aus */
.note--table.is-aimed { position: absolute; margin: 0; }
.note--step { margin-top: .75rem; }
.note--step .note__arrow { width: 2.75rem; order: -1; margin-bottom: .6rem; }
.note--step .note__text { font-size: 1.55rem; }

.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { padding: 1.05rem .75rem; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line); }
.rates tr:first-child th, .rates tr:first-child td { border-top: 2px solid var(--slate); }
.rates th { padding-left: 0; font-weight: 650; }
.rates td:last-child { color: var(--ink-soft); padding-right: 0; }
.rates__price { text-align: right !important; white-space: nowrap; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.rates__price--word { font-size: 1.2rem; }
.rates__note { margin-top: 1.25rem; font-size: .9375rem; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(2rem, 4vw, 3.5rem); margin-top: 2.25rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--slate);
}
.steps h3 { margin-top: .6rem; font-size: 1.3rem; font-weight: 750; letter-spacing: -.015em; }
.steps p { margin-top: .4rem; color: var(--ink-soft); text-wrap: pretty; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(15rem, .75fr) minmax(0, 1.5fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__intro > p { margin-top: .75rem; color: var(--ink-soft); max-width: 24rem; }
.direct { margin-top: 1.75rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; }
.direct a { overflow-wrap: anywhere; }
.direct__lead { font-weight: 700; }
.direct a { font-weight: 600; }
.note--contact { max-width: calc(100% - .75rem); margin-top: 1.75rem; transform: rotate(-2deg); transform-origin: left center; }

.request__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label, .choice legend { display: block; margin-bottom: .4rem; font-size: .9375rem; font-weight: 650; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1.5px solid var(--field);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.45 var(--sans);
  caret-color: var(--slate);
  transition: border-color .15s;
}
.field input:hover, .field textarea:hover { border-color: var(--slate); }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field ::placeholder { color: #66727B; opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--slate); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { margin-top: .35rem; color: var(--error); font-size: .9375rem; font-weight: 600; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choice { border: 0; margin: 0; padding: 0; }
.choice__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__opt span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem .95rem;
  border: 1.5px solid var(--field);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  transition: background-color .15s, color .15s, border-color .15s;
}
.choice__opt:hover span { border-color: var(--slate); }
.choice__opt input:checked + span { background: var(--slate); border-color: var(--slate); color: #fff; }
.choice__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .75rem; align-items: start; }
.consent input {
  -webkit-appearance: none; appearance: none;
  width: 1.3rem; height: 1.3rem; margin: .15rem 0 0;
  border: 1.5px solid var(--field);
  border-radius: 4px;
  background: var(--paper);
  display: grid; place-items: center;
  cursor: pointer;
}
.consent input:checked { background: var(--slate); border-color: var(--slate); }
.consent input::after {
  content: ""; width: .65rem; height: .35rem;
  border: solid #fff; border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform .15s var(--ease-out);
}
.consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent input[aria-invalid="true"] { border-color: var(--error); }
.consent label { font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); }
.consent .field__error { grid-column: 2; }

.request__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.request__send[disabled] { cursor: progress; opacity: .8; transform: none; }
.request__status { max-width: 30rem; font-size: .9375rem; font-weight: 600; }
.request__status.is-error { color: var(--error); }
.request.is-sent .request__grid, .request.is-sent .request__send { display: none; }
.request.is-sent .request__status { font-size: 1.25rem; font-weight: 700; }

/* ---------- Fuß ---------- */

.foot { border-top: 1px solid var(--line); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding-block: 1.75rem 2.25rem; font-size: .9375rem; color: var(--ink-soft); }
.foot__mark { width: 2.25rem; height: 2.25rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-left: auto; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Responsiv ---------- */

@media (max-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  /* einspaltig: alles nutzt die volle Inhaltsbreite */
  .calc, .hero__lead, .contact__intro > p, .request__status { max-width: none; }
  .prices, .contact { grid-template-columns: minmax(0, 1fr); }
  .note--table { align-items: flex-end; }
  .note--table .note__arrow--right { display: none; }
  .note--table .note__arrow--down { display: block; }
}

@media (min-width: 54.01rem) and (max-width: 72rem) {
  .head { gap: 1rem 1.25rem; }
  .head__nav { gap: 1.1rem; }
  .head__contact { gap: .5rem; }
  .head__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 54rem) {
  .head__nav { display: none; }
  .head__contact { margin-left: auto; }
}

@media (max-width: 52rem) {
  .services, .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 36rem) {
  .head { padding-block: .85rem; gap: .75rem; }
  .head__logo img { height: 2rem; }
  .head__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .head__contact { gap: .25rem; }
  .head .btn--small { padding: .6rem .8rem; font-size: .875rem; white-space: nowrap; }
  .hero__prices { gap: .75rem 1.5rem; }
  .note--prices { margin-left: 1.25rem; max-width: calc(100% - 1.25rem); }
  .strip__dot { display: none; }
  .strip__item { display: block; white-space: normal; }
  .calc { padding: 1.25rem 1rem 1rem; }
  .rates th, .rates td { padding-inline: .4rem; }
  .rates tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); }
  .rates th { overflow-wrap: anywhere; }
  .rates th, .rates td { border: 0 !important; padding-block: .35rem; }
  .rates tr:first-child { border-top: 2px solid var(--slate); }
  .rates tr { padding-block: .6rem; }
  .rates td:last-child { grid-column: 1 / -1; padding-left: 0; font-size: .9375rem; }
  .request__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__nav { margin-left: 0; width: 100%; }
}

/* sehr schmal: Logo kleiner, Knopf nur „Anfrage“, damit der Kopf einzeilig bleibt */
@media (max-width: 24rem) {
  .head__logo img { height: 1.7rem; }
  .head__btn-more { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* Auf breiten Schirmen beginnt die Tabelle etwas tiefer, damit die Notiz waagerecht auf „Anfahrt unter 20 km“ zeigen kann */
@media (min-width: 62.01rem) {
  .prices .rates { margin-top: 3.5rem; }
}

/* ---------- TYPO3: Bestätigung nach dem Absenden, Inhaltsseiten ---------- */
.request__done { max-width: 34rem; padding: 1.5rem 1.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--band); }
.request__done .request__status { max-width: none; font-size: 1.25rem; font-weight: 700; }
.page-content { max-width: none; }
.page-content h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.page-content h2 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: .5rem; }
.page-content h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: .4rem; }
.page-content p, .page-content ul, .page-content ol { margin-bottom: 1rem; line-height: 1.6; color: var(--ink-soft); }
.page-content a { color: var(--ink); }
.field .f3-form-error, .consent input.f3-form-error { border-color: var(--error); }
