/* ==========================================================================
   ElektroPrüfservice Sauerland — Design route "Prüfplakette"
   Built around the round inspection sticker: its month ring supplies the
   four accent colours (yellow, red, blue, green) that tint services, steps
   and details. White ground, ink-navy text, rounded shapes.
   Static site, no external requests.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-var-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Ground and text */
  --bg: #ffffff;
  --soft: #f4f7fa;
  --ink: #15283b;
  --ink-deep: #0e1d2c;
  --muted: #4a5b6c;
  --line: #e1e8ef;
  --line-strong: #c9d4de;

  /* Plakette colours: strong for marks, soft for surfaces */
  --green: #48a72f;
  --green-ink: #2e7d1c;
  --green-soft: #e5f4df;
  --yellow: #f2c230;
  --yellow-ink: #8a6500;
  --yellow-soft: #fff4cc;
  --marker: #fde68a;
  --blue: #1e73be;
  --blue-soft: #e3effa;
  --red: #e7593b;
  --red-soft: #fde8e2;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 18px 40px -22px rgba(21, 40, 59, 0.38);
  --shadow-sm: 0 6px 18px -12px rgba(21, 40, 59, 0.4);
  --wrap: 1180px;
  --header: 76px;
}

/* Reset ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

picture {
  display: block;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--marker);
  color: var(--ink);
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(21, 40, 59, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: auto;
  height: 50px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav a:hover {
  background: var(--soft);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta .icon {
  width: 17px;
  height: 17px;
}

.header-cta:hover {
  background: #d4edca;
  transform: translateY(-1px);
}

.header-cta--right {
  margin-left: auto;
}

.header-call {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

.menu-toggle .icon--close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon--menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon--close {
  display: block;
}

.mobile-nav {
  position: fixed;
  inset: var(--header) 0 0;
  z-index: 55;
  overflow-y: auto;
  padding: 16px 24px 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mobile-nav__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
}

.mobile-nav__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav__contact a:first-child {
  background: var(--green-soft);
  color: var(--green-ink);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 64px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(var(--yellow) 0 90deg, var(--red) 90deg 180deg, var(--blue) 180deg 270deg, var(--green) 270deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 4px, #000 4.5px);
  mask: radial-gradient(circle, transparent 4px, #000 4.5px);
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(52px, 7.2vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.marker {
  display: inline-block;
  padding: 0 0.12em;
  border-radius: 0.14em;
  background: var(--marker);
  transform: rotate(-1.5deg);
}

.lede {
  max-width: 34em;
  margin-bottom: 32px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 24px;
  border: 0;
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--green-ink);
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(46, 125, 28, 0.9);
}

.btn--primary:hover {
  background: #266a16;
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--soft);
  color: var(--ink);
}

.btn--ghost:hover {
  background: #e8eef4;
  transform: translateY(-2px);
}

.btn--text {
  padding-inline: 12px;
  background: transparent;
  color: var(--muted);
}

.btn--text:hover {
  color: var(--ink);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--marker);
  transform: translateY(-2px);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 36px;
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.hero__facts .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-ink);
  stroke-width: 2.6;
}

/* Hero visual: photo, sticker, protocol card */

.hero__visual {
  position: relative;
  padding: 40px 0 0 40px;
}

.hero__photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 4.6;
  background: var(--soft);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plakette {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  filter: drop-shadow(0 14px 18px rgba(21, 40, 59, 0.28));
  transform: rotate(-10deg);
  animation: plakette-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.plakette__months text {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-anchor: middle;
}

.plakette__top,
.plakette__norm {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-anchor: middle;
  fill: var(--muted);
}

.plakette__year {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-anchor: middle;
  fill: var(--ink);
}

@keyframes plakette-in {
  from {
    opacity: 0;
    transform: rotate(-40deg) scale(0.6);
  }
  to {
    opacity: 1;
    transform: rotate(-10deg) scale(1);
  }
}

.protocol-card {
  position: absolute;
  right: -20px;
  bottom: -32px;
  z-index: 2;
  width: min(300px, 80%);
  padding: 18px 20px 14px;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow);
}

.protocol-card__head {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.protocol-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.protocol-row span {
  color: var(--muted);
}

.protocol-row strong {
  font-weight: 600;
  text-align: right;
}

.protocol-row .ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 6px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-ink);
}

.protocol-row .ok .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.8;
}

/* Trust strip ------------------------------------------------------------ */

.trust {
  background: var(--soft);
}

.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px 0;
}

.trust__label {
  margin-right: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust__item {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Sections --------------------------------------------------------------- */

.section {
  padding: 112px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 52px;
}

.section-head h2,
.about__copy h2,
.thermal h2 {
  font-size: clamp(38px, 4.6vw, 58px);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ink);
}

.label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.label--light {
  color: var(--yellow);
}

.label--light::before {
  background: var(--yellow);
}

.section-intro {
  max-width: 34em;
  margin: 0;
  justify-self: end;
  font-size: 18px;
  color: var(--muted);
}

/* Services: 4-column grid, first card spans two (7 cards fill 2 rows) ---- */

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service {
  --tint: var(--yellow-soft);
  --mark: var(--yellow);
  --mark-ink: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 26px 24px 24px;
  border-radius: var(--r-lg);
  background: var(--tint);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service:nth-child(4n + 2) {
  --tint: var(--blue-soft);
  --mark: var(--blue);
  --mark-ink: #fff;
}

.service:nth-child(4n + 3) {
  --tint: var(--green-soft);
  --mark: var(--green);
  --mark-ink: #fff;
}

.service:nth-child(4n + 4) {
  --tint: var(--red-soft);
  --mark: var(--red);
  --mark-ink: #fff;
}

.service:first-child {
  grid-column: span 2;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mark);
  color: var(--mark-ink);
}

.service__icon .icon {
  width: 24px;
  height: 24px;
}

.service__body {
  flex: 1;
}

.service__body h3 {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.service:first-child .service__body h3 {
  font-size: 30px;
}

.service__body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}

.service:first-child .service__body p {
  max-width: 30em;
  font-size: 17px;
}

.service__tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.service__tag--new {
  background: var(--ink);
  color: #fff;
}

/* Process ---------------------------------------------------------------- */

#ablauf {
  background: var(--soft);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 32px;
  right: calc(25% - 47px);
  border-top: 3px dashed var(--line-strong);
}

.step {
  position: relative;
  min-width: 0;
}

.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border: 5px solid var(--soft);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.step:nth-child(2) .step__num {
  background: var(--red);
  color: #fff;
}

.step:nth-child(3) .step__num {
  background: var(--blue);
  color: #fff;
}

.step:nth-child(4) .step__num {
  background: var(--green);
  color: #fff;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.step p {
  margin: 0;
  max-width: 24em;
  font-size: 16px;
  color: var(--muted);
}

/* Thermal ---------------------------------------------------------------- */

.thermal {
  position: relative;
  padding: 112px 0;
  background: var(--ink);
  color: #e4ebf2;
  overflow: hidden;
}

.thermal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.thermal h2 {
  margin-bottom: 22px;
  color: #fff;
}

.thermal p {
  color: #b8c6d4;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 28px 0 34px;
}

.ticks li {
  position: relative;
  padding-left: 36px;
  font-weight: 500;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.ticks--light li {
  color: #fff;
}

.thermal__figure {
  margin: 0;
}

.thermal__frame {
  position: relative;
  padding: 10px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.07);
}

.thermal__frame::after {
  content: "108,3 °C";
  position: absolute;
  top: -14px;
  left: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.thermal__frame img {
  width: 100%;
  border-radius: calc(var(--r-lg) - 8px);
}

.thermal__figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #8fa2b5;
}

.thermal__figure figcaption a {
  color: #c9d6e2;
}

/* About ------------------------------------------------------------------ */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 72px;
}

.about__figure {
  margin: 0;
}

.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.about__figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.about__copy h2 {
  margin-bottom: 22px;
}

.about__copy p {
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 0;
}

.facts div {
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--yellow-soft);
}

.facts div:nth-child(2) {
  background: var(--blue-soft);
}

.facts div:nth-child(3) {
  background: var(--green-soft);
}

.facts dt {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sectors {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin-top: 72px;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: var(--soft);
}

.sectors__title {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sectors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sectors li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}

.sectors .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

/* FAQ -------------------------------------------------------------------- */

#faq {
  background: var(--soft);
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq__item {
  border-radius: var(--r);
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.faq__item[open] {
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px 20px 26px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--soft);
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq summary:hover .icon {
  background: var(--marker);
}

.faq__item[open] summary .icon {
  background: var(--green);
  color: #fff;
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 72px 22px 26px;
  color: var(--muted);
}

/* Contact ---------------------------------------------------------------- */

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.contact-card__main {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 36px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-line .icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: var(--yellow-ink);
}

a.contact-line:nth-child(1) .icon {
  background: var(--green-soft);
  color: var(--green-ink);
}

a.contact-line:nth-child(2) .icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.contact-line small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.contact-line strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

a.contact-line:hover strong {
  color: var(--green-ink);
}

.contact-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 6px;
  font-size: 15px;
  color: var(--muted);
}

.contact-note .icon {
  width: 18px;
  height: 18px;
}

.contact-card .actions {
  margin-top: 14px;
}

.contact-card__map {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--blue-soft);
}

.radius-map {
  width: 100%;
  height: auto;
  overflow: visible;
}

.radius-map__rings circle {
  fill: rgba(255, 255, 255, 0.4);
  stroke: #a9c8e6;
  stroke-width: 1.25;
  stroke-dasharray: 4 6;
}

.radius-map__rings circle:last-of-type {
  fill: rgba(255, 255, 255, 0.55);
  stroke: var(--blue);
  stroke-dasharray: none;
  stroke-width: 2;
}

.radius-map__ring-labels text {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--blue);
  paint-order: stroke;
  stroke: var(--blue-soft);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.radius-map__north path {
  fill: var(--ink);
}

.radius-map__north text {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  fill: var(--ink);
}

.radius-map__towns circle {
  fill: var(--muted);
}

.radius-map__towns text {
  paint-order: stroke;
  stroke: #f1f7fd;
  stroke-width: 4px;
  stroke-linejoin: round;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  fill: var(--muted);
}

.radius-map__towns .is-edge circle {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.25;
}

.radius-map__towns .is-edge text {
  font-weight: 500;
  font-style: italic;
}

.radius-map__pulse {
  fill: var(--green);
  opacity: 0.35;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s ease-out infinite;
}

.radius-map__dot {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 3;
}

.radius-map__center {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  fill: var(--ink);
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.45;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

.contact-card__map-note {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
}

.radius-map__key {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 0;
}

.radius-map__key--hq {
  background: var(--green);
}

/* Legal pages ------------------------------------------------------------ */

.legal-page {
  padding: 56px 0 104px;
}

.legal-page .wrap {
  width: min(860px, calc(100% - 48px));
}

.legal-page .legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.legal-back::before {
  content: "←";
  font-size: 16px;
  line-height: 1;
}

.legal-page .legal-back:hover {
  background: #e8eef4;
}

.legal-page h1 {
  margin-bottom: 10px;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.045em;
}

.legal-updated {
  display: inline-block;
  margin-bottom: 44px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--yellow-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow-ink);
}

.legal-page h2 {
  margin: 40px 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page p,
.legal-page li {
  max-width: 72ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-page ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  list-style: disc;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--blue);
}

.legal-page a:hover {
  color: var(--ink);
}

.legal-page #bildnachweise,
.legal-page h2 {
  scroll-margin-top: calc(var(--header) + 24px);
}

/* SEO additions: H1 kicker, service links, service area ----------------- */

.hero h1 .kicker {
  display: flex;
  width: fit-content;
  font-family: var(--sans);
  letter-spacing: normal;
  line-height: 1.4;
}

.service__more {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service__more:hover {
  color: var(--ink);
}

.btn--text-light {
  color: #d5dee7;
}

.btn--text-light:hover {
  color: #fff;
}

.areas__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.areas__list li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}

/* Guide pages (Ratgeber) ------------------------------------------------- */

.guide .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.guide .breadcrumbs li {
  margin: 0;
  font-size: 14px;
}

.guide .breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--muted);
}

.guide .lede {
  max-width: 40em;
  margin: 18px 0 20px;
}

.guide h3 {
  margin: 26px 0 8px;
  font-size: 19px;
}

.guide ol.list {
  margin: 0 0 1em;
  padding-left: 1.4em;
  list-style: decimal;
}

.answer-box {
  margin: 0 0 36px;
  padding: 22px 26px;
  border-left: 5px solid var(--green);
  border-radius: var(--r);
  background: var(--green-soft);
}

.answer-box p {
  margin: 0;
  color: var(--ink);
}

.answer-box strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
}

.toc {
  margin: 0 0 40px;
  padding: 20px 26px;
  border-radius: var(--r);
  background: var(--soft);
}

.toc p {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ink);
}

.toc ol {
  margin: 0;
}

.table-wrap {
  margin: 18px 0 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.guide caption {
  padding: 14px 18px 0;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
}

.guide th,
.guide td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide thead th {
  background: var(--soft);
  font-weight: 700;
  color: var(--ink);
}

.guide tbody tr:last-child td,
.guide tbody tr:last-child th {
  border-bottom: 0;
}

.guide td {
  color: var(--muted);
}

.guide .table-note {
  font-size: 14px;
}

.guide .faq {
  margin-top: 14px;
}

.guide .faq__item {
  border: 1px solid var(--line);
}

.guide .faq__answer p {
  margin: 0;
}

.guide-cta {
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--ink-deep);
  color: #fff;
}

.guide-cta h2 {
  margin: 0 0 10px !important;
  color: #fff;
}

.guide-cta p {
  color: #b8c6d4 !important;
}

.guide-cta .actions {
  margin-top: 20px;
}

.guide-cta a.btn--light {
  color: var(--ink);
}

.guide-cta a.btn--text-light {
  color: #d5dee7;
}

.guide-cta a.btn--text-light:hover {
  color: #fff;
}

.guide-related {
  margin-top: 48px;
}

.guide-related ul {
  list-style: none !important;
  padding-left: 0 !important;
}

.guide-meta {
  font-size: 14px !important;
}

/* Footer ----------------------------------------------------------------- */

.footer {
  position: relative;
  padding: 72px 0 28px;
  background: var(--ink-deep);
  color: #d5dee7;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--yellow) 0 25%, var(--red) 25% 50%, var(--blue) 50% 75%, var(--green) 75% 100%);
}

.footer a {
  color: #d5dee7;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand img {
  width: auto;
  height: 50px;
  margin-bottom: 18px;
}

.footer__brand p {
  max-width: 36ch;
  margin: 0;
  color: #9fb0c1;
  font-size: 15px;
  line-height: 1.6;
}

.footer .footer__heading {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.footer__nav,
.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 15px;
}

.footer__contact p {
  margin: 0 0 4px;
  color: #9fb0c1;
  font-size: 15px;
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 13.5px;
  color: #8397aa;
}

.footer__bottom p {
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__credit {
  flex-basis: 100%;
}

/* Motion ----------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1120px) {
  .header-inner {
    gap: 16px;
  }

  .nav a {
    padding-inline: 10px;
    font-size: 14.5px;
  }

  .hero__grid,
  .thermal__grid,
  .about__grid {
    gap: 48px;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  :root {
    --header: 68px;
  }

  .nav,
  .header-cta:not(.header-cta--right) {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: 8px;
  }

  .header-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-ink);
    text-decoration: none;
  }

  .brand img {
    height: 42px;
  }

  .hero {
    padding: 48px 0 80px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero__visual {
    width: min(560px, 100%);
    padding: 32px 0 0 32px;
  }

  .protocol-card {
    right: 12px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .section-intro {
    justify-self: start;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .steps::before {
    display: none;
  }

  .thermal__grid,
  .about__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .thermal__figure,
  .about__figure {
    width: min(640px, 100%);
  }

  .sectors {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .radius-map {
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .legal-page .wrap {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .lede {
    font-size: 17px;
  }

  .plakette {
    width: 120px;
    height: 120px;
  }

  .hero__visual {
    padding: 24px 0 0 24px;
  }

  .protocol-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -40px 12px 0;
  }

  .trust__label {
    flex-basis: 100%;
  }

  .section,
  .thermal {
    padding: 76px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-head h2,
  .about__copy h2,
  .thermal h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
  }

  .service:first-child {
    grid-column: auto;
  }

  .service:first-child .service__body h3 {
    font-size: 24px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 18px;
    padding-bottom: 28px;
  }

  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 56px;
    bottom: 0;
    left: 27px;
    border-left: 3px dashed var(--line-strong);
  }

  .step__num {
    grid-row: span 2;
    width: 56px;
    height: 56px;
    margin: 0;
    font-size: 21px;
  }

  .step h3 {
    padding-top: 12px;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .sectors {
    margin-top: 48px;
    padding: 22px 18px;
  }

  .faq summary {
    gap: 14px;
    padding: 18px 16px 18px 20px;
    font-size: 17px;
  }

  .faq__answer {
    padding: 0 20px 20px;
  }

  .contact-card__main {
    padding: 22px 20px 24px;
  }

  .contact-card__map {
    padding: 22px 16px;
  }

  .footer {
    padding-top: 56px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 36px;
  }

  .footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .header-cta--right {
    padding: 9px 14px;
    font-size: 14px;
  }
}

/* Staging feedback widget ------------------------------------------------ */
/* The widget ships with the staging deploy (vendor/staging-feedback). These
   overrides keep the launcher and picker in the Prüfplakette palette. */

:root:root {
  --fb-accent: var(--blue);
}

.fb[data-feedback-widget] {
  --fb-on-accent: #ffffff;
  --fb-ink: var(--ink);
  --fb-paper: var(--bg);
  --fb-muted: var(--muted);
  --fb-font: var(--sans);
  --fb-mono: var(--sans);
}
