/* ==========================================================================
   Haneg Produkte – Stylesheet (Design «Klassisch»)
   Farben aus dem Logo (Frosch mit Handorgel): Gelb, Rot, Grün.
   Keine externen Schriften oder Dienste: alles lokal, datenschutzfreundlich.
   ========================================================================== */

:root {
  /* Farben aus dem Logo */
  --logo-yellow: #ffff00;
  --logo-red:    #e01b00;   /* leicht abgedunkelt, damit weisse Schrift lesbar bleibt */
  --logo-green:  #80ff00;

  --white:  #ffffff;
  --light:  #fffde3;        /* hellgelber Abschnittsgrund */
  --ink:    #1a1a1a;        /* Text */
  --steel:  #565656;        /* Sekundärtext */
  --rule:   #e3e3d8;        /* Linien */
  --wire:   #b31600;        /* Links, Fokus, Hover: dunkles Logo-Rot */

  /* Gelbes Band (Tampondruck) */
  --band-muted: #3f3f2a;
  --band-line:  rgba(26, 26, 26, 0.25);

  /* Schrift: runde Systemschriften wie im Logo für Titel, Systemschrift für Text */
  --font-display: "Arial Rounded MT Bold", "VAG Rounded", "Nunito", "Varela Round",
                  system-ui, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;

  /* Massstab (Quarte, 1.333) */
  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.333rem;
  --step-2:  1.777rem;
  --step-3:  2.369rem;
  --step-4:  clamp(1.9rem, 1rem + 5vw, 3.958rem);

  --measure: 66ch;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Grundlagen ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

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

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;   /* Notbremse für lange Wörter auf sehr schmalen Bildschirmen */
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }

p, ul, ol, dl { margin: 0 0 1em; }
p, li { max-width: var(--measure); }

a { color: var(--wire); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

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

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

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--ink); color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  line-height: 1;
  margin-right: auto;
}
/* Wortmarke im Stil des Logo-Schriftzugs */
.wordmark b {
  font-size: 1.75rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--logo-red);
}
.wordmark span { font-size: 1.05rem; color: var(--logo-red); }

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
}
.main-nav a:hover { text-decoration: underline; }

.call-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--logo-red);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 0.55rem 1rem;
  border-radius: 3px;
  white-space: nowrap;
}
.call-button:hover { background: var(--wire); text-decoration: none; }
.call-button svg { width: 1rem; height: 1rem; }

@media (max-width: 52rem) {
  .main-nav { display: none; }
}
/* Schmale Bildschirme: «Produkte» unter den Namen umbrechen statt ausblenden */
@media (max-width: 30rem) {
  .site-header .wrap { gap: 1rem; }
  .wordmark { flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: 0; }
  .wordmark b { font-size: 1.5rem; }
  .wordmark span { font-size: 0.9rem; }
  .site-header .call-button { font-size: 1rem; padding: 0.5rem 0.8rem; }
}

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

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.hero h1 { max-width: 18ch; margin-bottom: 0.45em; }
.hero-lead {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--steel);
  max-width: 34ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
.hero-actions .call-button { font-size: 1.3rem; padding: 0.8rem 1.3rem; }
.hero-actions .plain-link { font-weight: 500; }
.hero-place {
  margin-top: 2.25rem;
  font-size: var(--step--1);
  color: var(--steel);
}

/* Logo im Einstieg. Es läuft am Rand weiss aus, deshalb bleibt der Einstieg weiss. */
.hero-logo {
  width: min(100%, 25rem);
  height: auto;
  justify-self: center;
}

@media (max-width: 48rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-logo { order: -1; width: 15rem; }
}

/* ---------- Leistungsübersicht ---------- */

.overview { padding-bottom: clamp(3rem, 7vw, 5rem); }
.overview ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.overview li {
  border-top: 4px solid var(--logo-red);
  padding-top: 1rem;
}
.overview a {
  color: var(--ink);
  text-decoration: none;
  display: block;
}
.overview h2 {
  font-size: var(--step-2);
  margin-bottom: 0.35em;
}
.overview a:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.overview p { color: var(--steel); margin: 0; font-size: var(--step--1); line-height: 1.55; }

@media (max-width: 48rem) {
  .overview ul { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

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

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--light { background: var(--light); }
.section--band { background: var(--logo-yellow); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head p { font-size: var(--step-1); line-height: 1.5; color: var(--steel); }
.section--band .section-head p { color: var(--band-muted); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (max-width: 52rem) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.ticks { list-style: none; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 0.9rem; height: 0.9rem;
  border-radius: 50%;
  background: var(--logo-green);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.note {
  border-left: 4px solid var(--logo-red);   /* Gelb wäre auf dem hellgelben Grund kaum sichtbar */
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0 0;
}
.note p { margin: 0 0 0.5rem; }
.note p:last-child { margin-bottom: 0; }
.note + .small { margin-top: 1.25rem; }

.small { font-size: var(--step--1); color: var(--steel); }

/* Abschnittstitel mit Foto (Fachkraft) */
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.section-intro .section-head { margin-bottom: 0; }

.figure { margin: 0; }
.figure img { width: 100%; height: auto; border-radius: 3px; }
.figure figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--steel); }

@media (max-width: 52rem) {
  .section-intro { grid-template-columns: minmax(0, 1fr); }
  .figure { max-width: 30rem; }
}

/* ---------- Tampondruck: Ablauf ---------- */

.process {
  list-style: none;
  counter-reset: step;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
.process li {
  counter-increment: step;
  position: relative;
  padding-top: 3.25rem;
}
.process li::before {
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  background: var(--logo-red);
  border-radius: 50%;
  color: var(--white);
}
.process li::after {           /* Verbindungslinie zum nächsten Schritt */
  content: "";
  position: absolute;
  top: 1.2rem; left: 3rem; right: -1.6rem;
  border-top: 2px dotted var(--ink);
}
.process li:nth-child(3n)::after,
.process li:last-child::after { display: none; }
.process h3 { margin-bottom: 0.35em; }
.process p { color: var(--band-muted); margin: 0; font-size: var(--step--1); line-height: 1.6; }

@media (max-width: 52rem) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .process li { padding: 0 0 0 3.5rem; }
  .process li::after { display: none; }
}

.band-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--band-line);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
}
.band-cta p { margin: 0; max-width: 40ch; }

/* ---------- Fachkraft ---------- */

.rates {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-variant-numeric: tabular-nums;
}
.rates th, .rates td {
  text-align: left;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.rates th { font-weight: 400; }
.rates td {
  text-align: right;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  white-space: nowrap;
  padding-left: 1rem;
}

@media (max-width: 24rem) {
  .rates td { font-size: var(--step-0); }
}

.career { list-style: none; padding: 0; margin: 0; }
.career li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: none;
}
.career + .small { margin-top: 1rem; }
.career .years {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.subhead { margin-top: 2.5rem; }

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

.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.contact-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6.5vw, 4.4rem);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--logo-yellow), var(--logo-yellow)) 0 88% / 100% 0.28em no-repeat;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.25rem;
}
.contact-phone:hover { background-size: 100% 0.45em; }
.contact address { font-style: normal; line-height: 1.7; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; margin: 0; }
.contact dt { color: var(--steel); }
.contact dd { margin: 0; }
@media (max-width: 48rem) { .contact .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- Fusszeile ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem;
  font-size: var(--step--1);
  color: var(--steel);
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between;
}
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; }
.site-footer a { color: var(--ink); }
.site-footer p { margin: 0; }

/* ---------- Rechtliche Seiten ---------- */

.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.legal .wrap { max-width: 50rem; }
.legal h1 { font-size: var(--step-3); }
.legal h2 {
  font-size: var(--step-1);
  margin-top: 2.25em;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.legal .meta { color: var(--steel); font-size: var(--step--1); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.35rem; }
.back { display: inline-block; margin-bottom: 2rem; font-size: var(--step--1); }

/* ---------- Bewegung & Druck ---------- */

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

@media print {
  .site-header, .skip-link { display: none; }
  body { background: #fff; }
  .section--band { background: #fff; color: #000; }
  .process p { color: #000; }
  a { color: #000; }
}
