/* heisse-flirts.com: Design "Sommertag". Hell, freundlich, Pastellkarten.
   Von Michael am 19.11.2026 gewählt. Beschreibung in doku/4-design.md. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-grund: #FFFBF4;
  --c-weiss: #FFFFFF;
  --c-tinte: #2A2140;
  --c-leise: #5E5673;
  --c-linie: #ECE4D8;
  --c-beere: #D81B60;
  --c-beere-tief: #A80F47;
  --c-butter: #FFE48F;
  --c-butter-hell: #FFF3C9;
  --c-minze: #C4F0DC;
  --c-minze-tief: #0F6B4F;
  --c-flieder: #E2D9FF;
  --c-rose: #FFD3E0;
  --c-himmel: #CFE8FF;
  --c-pfirsich: #FFDCC6;
  --c-titel: "Outfit", "Trebuchet MS", sans-serif;
  --c-text: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --c-hand: "Caveat", "Segoe Script", cursive;
  --c-rand: 32px;
  /* Eine Spaltenbreite für alles auf den Unterseiten (Michael, 19.11.2026: drei Breiten wirkten unruhig) */
  --c-spalte: 820px;
  --c-schwung: cubic-bezier(0.2, 0.9, 0.3, 1.3);
  --c-schatten: 0 18px 40px -22px rgba(42, 33, 64, 0.35);
}

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

/* clip statt hidden: schneidet seitlich ab, ohne die klebende Sprungmarken-Leiste abzuschalten */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--c-grund);
  color: var(--c-tinte);
  font-family: var(--c-text);
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: break-word;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol { margin: 0; }
img, svg { max-width: 100%; }

a { color: var(--c-beere-tief); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { color: var(--c-tinte); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--c-tinte);
  outline-offset: 3px;
}

::selection { background: var(--c-butter); color: var(--c-tinte); }

[hidden] { display: none !important; }

.hf-sprung {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--c-tinte);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.hf-sprung:focus { top: 16px; color: #FFFFFF; }

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

.hf-huelle {
  max-width: 1224px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--c-rand);
  padding-right: var(--c-rand);
}
.hf-c-block { padding-bottom: 104px; }
.hf-c-mitte { text-align: center; }

.hf-pfeil { vertical-align: -4px; transition: transform 0.25s var(--c-schwung); }
a:hover > .hf-pfeil { transform: translateX(4px); }

/* Stufen-Anzeige */
.hf-hitze { display: inline-flex; gap: 4px; margin-right: 10px; vertical-align: middle; }
.hf-hitze__punkt { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0.2; }
.hf-hitze__punkt--an { background: var(--c-beere); opacity: 1; }

/* Kopf */
.hf-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  padding-bottom: 22px;
  position: relative;
  z-index: 3;
}
.hf-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-tinte); }
.hf-logo:hover { color: var(--c-tinte); }
.hf-logo svg { width: 38px; height: 38px; transition: transform 0.35s var(--c-schwung); }
.hf-logo:hover svg { transform: rotate(-12deg) scale(1.1); }
.hf-logo svg path:first-child { fill: var(--c-beere); }
.hf-logo svg path:last-child { fill: #FFFFFF; }
.hf-logo__schrift { font-family: var(--c-titel); font-weight: 700; font-size: 25px; letter-spacing: -0.6px; }
/* Menü: am Rechner eine Leiste mit aufklappenden Unterpunkten */
.hf-nav { font-weight: 700; font-size: 16px; }
.hf-nav__liste {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 4px;
  background: var(--c-weiss);
  border: 1px solid var(--c-linie);
  border-radius: 999px;
  padding: 5px;
}
.hf-nav__gruppe { position: relative; }
.hf-nav__punkt {
  display: block;
  color: var(--c-tinte);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.hf-nav__punkt:hover, .hf-nav__gruppe:hover > .hf-nav__punkt { background: var(--c-butter-hell); color: var(--c-tinte); }
.hf-nav__punkt--aktiv, .hf-nav__punkt--aktiv:hover, .hf-nav__gruppe:hover > .hf-nav__punkt--aktiv { background: var(--c-tinte); color: #FFFFFF; }
.hf-nav__unter {
  list-style: none;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 250px;
  padding: 14px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.hf-nav__unter::before {
  content: "";
  position: absolute;
  inset: 8px 0 0;
  z-index: -1;
  background: var(--c-weiss);
  border: 1px solid var(--c-linie);
  border-radius: 20px;
  box-shadow: var(--c-schatten);
}
.hf-nav__gruppe:last-child .hf-nav__unter { left: auto; right: 0; }
.hf-nav__gruppe:hover .hf-nav__unter, .hf-nav__gruppe:focus-within .hf-nav__unter {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.hf-nav__unter a {
  display: block;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--c-tinte);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.hf-nav__unter a:hover { background: var(--c-butter-hell); color: var(--c-tinte); }
.hf-nav__unter a[aria-current="page"] { background: var(--c-minze); }

/* Menü-Knopf fürs Handy */
.hf-menueknopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--c-linie);
  background: var(--c-weiss);
  color: var(--c-tinte);
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}
.hf-menueknopf__striche, .hf-menueknopf__striche::before, .hf-menueknopf__striche::after {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hf-menueknopf__striche { position: relative; }
.hf-menueknopf__striche::before, .hf-menueknopf__striche::after { content: ""; position: absolute; left: 0; }
.hf-menueknopf__striche::before { top: -6px; }
.hf-menueknopf__striche::after { top: 6px; }
.hf-menueknopf[aria-expanded="true"] .hf-menueknopf__striche { background: transparent; }
.hf-menueknopf[aria-expanded="true"] .hf-menueknopf__striche::before { transform: translateY(6px) rotate(45deg); }
.hf-menueknopf[aria-expanded="true"] .hf-menueknopf__striche::after { transform: translateY(-6px) rotate(-45deg); }

/* Ab hier kein Platz mehr für fünf Reiter: Menü-Knopf mit aufgeklappter Liste */
@media (max-width: 1100px) {
  .hf-mit-skript .hf-nav { display: none; width: 100%; }
  .hf-mit-skript .hf-nav.hf-nav--offen { display: block; }
  .hf-nav { width: 100%; }
  .hf-nav__liste {
    flex-direction: column;
    gap: 6px;
    border-radius: 26px;
    padding: 10px;
    box-shadow: var(--c-schatten);
  }
  .hf-nav__punkt { font-size: 18px; padding: 10px 14px; }
  .hf-nav__unter {
    position: static;
    min-width: 0;
    padding: 0 0 8px 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .hf-nav__unter::before { display: none; }
  .hf-nav__gruppe + .hf-nav__gruppe { border-top: 1px solid var(--c-linie); padding-top: 6px; }
}

/* Überschriften */
.hf-dach {
  align-self: center;
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c-minze-tief);
  background: var(--c-minze);
  padding: 7px 16px;
  border-radius: 999px;
}
.hf-h1 {
  font-family: var(--c-titel);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  text-wrap: balance;
}
.hf-h1--start { font-size: clamp(42px, 6.6vw, 96px); line-height: 1; letter-spacing: -3px; }
/* Hervorgehobene Worte: wie mit dem Textmarker angestrichen */
.hf-marke {
  white-space: nowrap;
  background: linear-gradient(transparent 56%, var(--c-butter) 56%, var(--c-butter) 92%, transparent 92%);
  padding: 0 0.08em;
  border-radius: 6px;
}
.hf-h2 {
  font-family: var(--c-titel);
  font-weight: 700;
  font-size: clamp(32px, 4.3vw, 54px);
  line-height: 1.06;
  letter-spacing: -1.4px;
  text-wrap: balance;
}
.hf-h3 { font-family: var(--c-titel); font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.3px; }

/* Knöpfe */
.hf-knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.hf-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--c-schwung), background-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}
.hf-knopf:hover { transform: translateY(-3px); }
.hf-knopf:active { transform: translateY(0) scale(0.97); }
.hf-knopf--rot { background: var(--c-beere); color: #FFFFFF; box-shadow: 0 12px 26px -12px rgba(216, 27, 96, 0.75); }
.hf-knopf--rot:hover { background: var(--c-beere-tief); color: #FFFFFF; box-shadow: 0 18px 32px -12px rgba(216, 27, 96, 0.8); }
.hf-knopf--hell { background: var(--c-weiss); color: var(--c-tinte); border-color: var(--c-tinte); }
.hf-knopf--hell:hover { background: var(--c-tinte); color: #FFFFFF; }

/* Einstieg: mittig, mit weichen Farbflecken und einer Reihe Zettel */
.hf-c-einstieg { position: relative; padding: 40px 0 96px; overflow: hidden; }
.hf-c-fleck { position: absolute; border-radius: 50%; z-index: 0; }
.hf-c-fleck--1 { width: 460px; height: 460px; background: var(--c-rose); left: -170px; top: 10px; }
.hf-c-fleck--2 { width: 360px; height: 360px; background: var(--c-himmel); right: -120px; top: -90px; }
.hf-c-fleck--3 { width: 220px; height: 220px; background: var(--c-butter); right: 9%; top: 330px; }
.hf-c-einstieg__innen {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.hf-c-einstieg .hf-h1 { max-width: 1040px; }
.hf-vorspann { font-size: 21px; max-width: 620px; color: var(--c-leise); }
.hf-c-einstieg .hf-knopfreihe { justify-content: center; }
.hf-fakten {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
}
.hf-fakten li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-weiss);
  border: 1px solid var(--c-linie);
  border-radius: 999px;
  padding: 6px 18px 6px 8px;
}
.hf-fakten strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--c-butter);
  font-family: var(--c-titel);
  font-weight: 700;
  font-size: 19px;
}
.hf-fakten li:nth-child(2) strong { background: var(--c-minze); }
.hf-fakten li:nth-child(3) strong { background: var(--c-flieder); }

/* Zettelreihe: fünf Karten, leicht gefächert */
.hf-c-zettel {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0 var(--c-rand);
  margin: 64px auto 0;
  max-width: 1320px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.hf-c-zettel__blatt {
  flex: 0 1 250px;
  min-width: 0;
  min-height: 190px;
  display: flex;
  align-items: center;
  padding: 24px 22px;
  margin: 0 -10px;
  border-radius: 26px;
  font-family: var(--c-titel);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.3px;
  box-shadow: var(--c-schatten);
  transition: transform 0.35s var(--c-schwung);
}
.hf-c-zettel__blatt--1 { background: var(--c-butter); transform: rotate(-7deg) translateY(26px); }
.hf-c-zettel__blatt--2 { background: var(--c-minze); transform: rotate(-3deg) translateY(6px); }
.hf-c-zettel__blatt--3 { background: var(--c-weiss); transform: rotate(1deg); z-index: 2; border: 1px solid var(--c-linie); }
.hf-c-zettel__blatt--4 { background: var(--c-flieder); transform: rotate(4deg) translateY(8px); }
.hf-c-zettel__blatt--5 { background: var(--c-rose); transform: rotate(8deg) translateY(30px); }
.hf-c-zettel__blatt:hover { transform: rotate(0deg) translateY(-14px) scale(1.04); z-index: 3; }

/* Kurz gesagt */
.hf-c-kurz {
  background: var(--c-weiss);
  border: 1px solid var(--c-linie);
  border-radius: 34px;
  padding: 40px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 44px;
  box-shadow: var(--c-schatten);
}
.hf-c-kurz__titel {
  flex: 0 0 auto;
  font-family: var(--c-hand);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--c-beere);
  transform: rotate(-4deg);
}
.hf-c-kurz__text { flex: 1 1 520px; min-width: 0; font-size: 21px; line-height: 1.55; }

/* Die drei Bereiche als Pastellkacheln */
.hf-c-wege { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 44px; }
.hf-c-weg {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 26px;
  border-radius: 34px;
  color: var(--c-tinte);
  text-decoration: none;
  transition: transform 0.3s var(--c-schwung), box-shadow 0.3s ease;
}
.hf-c-weg:hover { transform: translateY(-10px) rotate(-1deg); color: var(--c-tinte); box-shadow: var(--c-schatten); }
.hf-c-weg--1 { background: var(--c-rose); }
.hf-c-weg--2 { background: var(--c-butter); }
.hf-c-weg--3 { background: var(--c-flieder); }
.hf-c-weg__probe {
  align-self: flex-start;
  background: var(--c-weiss);
  border-radius: 20px 20px 20px 6px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 34px;
  transform: rotate(-2deg);
}
.hf-c-weg--2 .hf-c-weg__probe { align-self: flex-end; border-radius: 20px 20px 6px 20px; transform: rotate(2deg); }
.hf-c-weg__name { font-family: var(--c-titel); font-weight: 700; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.05; letter-spacing: -1px; hyphens: auto; }
.hf-c-weg__text { flex: 1 1 auto; }
.hf-c-weg__mehr { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; margin-top: 12px; }
.hf-c-weg__kreis {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-tinte);
  color: #FFFFFF;
  transition: transform 0.3s var(--c-schwung), background-color 0.2s ease;
}
.hf-c-weg:hover .hf-c-weg__kreis { transform: rotate(-45deg) scale(1.08); background: var(--c-beere); }

/* Kostproben */
.hf-c-proben__kopf { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 36px; }
.hf-c-proben__kopf > p { color: var(--c-leise); }
.hf-schalter { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-c-proben__kopf .hf-schalter { justify-content: center; margin-top: 8px; }
.hf-stufe {
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  min-height: 46px;
  padding: 9px 22px;
  border-radius: 999px;
  border: 2px solid var(--c-linie);
  background: var(--c-weiss);
  color: var(--c-tinte);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--c-schwung);
}
.hf-stufe:hover { border-color: var(--c-tinte); color: var(--c-tinte); transform: translateY(-2px); }
.hf-stufe[aria-pressed="true"], .hf-stufe--aktiv, .hf-stufe--aktiv:hover { background: var(--c-tinte); border-color: var(--c-tinte); color: #FFFFFF; }
.hf-feld { display: flex; flex-direction: column; gap: 22px; }
.hf-feld .hf-blasen { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.hf-feld__titel { font-family: var(--c-titel); font-weight: 700; font-size: 28px; }
.hf-mit-skript .hf-feld__titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hf-feld__hinweis { text-align: center; font-family: var(--c-hand); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--c-beere-tief); }

/* Spruchkarten in wechselnden Pastellfarben */
.hf-blasen {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.hf-blase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 180px;
  padding: 26px 24px 22px;
  border-radius: 28px;
  background: var(--c-butter-hell);
  transition: transform 0.3s var(--c-schwung), box-shadow 0.3s ease;
}
.hf-blase:nth-child(5n+2) { background: var(--c-minze); }
.hf-blase:nth-child(5n+3) { background: var(--c-flieder); }
.hf-blase:nth-child(5n+4) { background: var(--c-rose); }
.hf-blase:nth-child(5n+5) { background: var(--c-himmel); }
.hf-blase:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--c-schatten); }
.hf-blase:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.hf-blase__text { font-family: var(--c-titel); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.3px; }
/* Kompakte Karten für einzelne Wörter (Kosenamen) */
/* In der Spalte der Unterseiten passen drei Sprechblasen nebeneinander */
@media (min-width: 641px) { .hf-seite .hf-blasen:not(.hf-blasen--kompakt) { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.hf-blasen--kompakt { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.hf-blasen--kompakt .hf-blase__text { min-width: 0; overflow-wrap: anywhere; }
.hf-blasen--kompakt .hf-blase {
  min-height: 0;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 22px;
  border-radius: 22px;
}
.hf-blasen--kompakt .hf-blase__text { font-size: 20px; }
.hf-blasen--kompakt .hf-kopieren { align-self: center; flex: 0 0 auto; }
.hf-kopieren {
  align-self: flex-start;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--c-weiss);
  color: var(--c-tinte);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--c-schwung);
}
.hf-kopieren:hover { background: var(--c-tinte); color: #FFFFFF; transform: scale(1.05); }
.hf-kopieren--fertig, .hf-kopieren--fertig:hover { background: var(--c-minze-tief); color: #FFFFFF; }

/* Zufallstreffer */
.hf-c-automat {
  position: relative;
  background: var(--c-himmel);
  border-radius: 44px;
  padding: clamp(32px, 5vw, 68px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
  overflow: hidden;
}
.hf-c-automat::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--c-butter);
  right: -110px;
  bottom: -170px;
}
.hf-c-automat__kopf {
  position: relative;
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hf-c-automat__kopf .hf-dach { align-self: flex-start; background: var(--c-weiss); color: var(--c-tinte); }
.hf-c-automat__karte {
  position: relative;
  flex: 1.2 1 420px;
  min-width: 0;
  background: var(--c-weiss);
  border-radius: 34px;
  padding: clamp(26px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: rotate(-1.5deg);
  box-shadow: var(--c-schatten);
}
.hf-c-automat__mitte { min-height: 190px; display: flex; align-items: center; }
.hf-c-automat__satz { font-family: var(--c-titel); font-weight: 600; font-size: clamp(26px, 3.1vw, 42px); line-height: 1.12; letter-spacing: -1px; text-wrap: balance; }

/* Lesetext */
.hf-c-lesen__kopf { max-width: 760px; margin: 0 auto 40px; text-align: center; display: flex; flex-direction: column; gap: 16px; }
.hf-c-lesen__kopf p { color: var(--c-leise); }
.hf-c-lesen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.hf-c-punkt {
  background: var(--c-weiss);
  border: 1px solid var(--c-linie);
  border-radius: 30px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hf-c-punkt__nr {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--c-rose);
  font-family: var(--c-titel);
  font-weight: 700;
  font-size: 22px;
  transform: rotate(-6deg);
  margin-bottom: 4px;
}
.hf-c-punkt--2 .hf-c-punkt__nr { background: var(--c-butter); transform: rotate(5deg); }
.hf-c-punkt--3 .hf-c-punkt__nr { background: var(--c-minze); }
.hf-c-punkt--4 .hf-c-punkt__nr { background: var(--c-flieder); transform: rotate(6deg); }
.hf-c-punkt .hf-h3 { font-size: 25px; }
.hf-c-punkt p { color: var(--c-leise); }
.hf-c-punkt a { font-weight: 800; }

/* Kasten zum Einvernehmen */
.hf-kasten {
  min-width: 0;
  background: var(--c-minze);
  border-radius: 30px;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hf-c-regeln { margin-top: 20px; }
.hf-kasten__titel { font-family: var(--c-titel); font-weight: 700; font-size: 28px; line-height: 1.12; letter-spacing: -0.6px; }
.hf-kasten__liste { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 32px; font-weight: 600; }
.hf-kasten__liste li { position: relative; padding-left: 36px; }
.hf-kasten__liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-minze-tief) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.500l3.300 3.300L17 9' fill='none' stroke='%23fff' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
}

/* Fragen */
.hf-c-fragen__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; margin-top: 40px; }
.hf-frage {
  background: var(--c-weiss);
  border: 1px solid var(--c-linie);
  border-radius: 28px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hf-frage p { color: var(--c-leise); }

/* Unterseiten: Auftakt */
.hf-auftakt { position: relative; overflow: hidden; }
.hf-auftakt__innen {
  position: relative;
  z-index: 1;
  max-width: calc(var(--c-spalte) + 2 * var(--c-rand));
  margin: 0 auto;
  padding: 36px var(--c-rand) 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hf-auftakt__innen .hf-dach { align-self: flex-start; }
.hf-auftakt__form {
  position: absolute;
  right: -120px;
  top: -150px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--c-rose);
}
.hf-krumen { font-size: 15px; color: var(--c-leise); }
.hf-krumen a { color: var(--c-leise); padding: 10px 0; }

/* Unterseiten: Inhalt */
.hf-seite {
  position: relative;
  z-index: 1;
  max-width: calc(var(--c-spalte) + 2 * var(--c-rand));
  margin: 0 auto;
  padding: 0 var(--c-rand) 110px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}
.hf-kurz {
  background: var(--c-weiss);
  border: 1px solid var(--c-linie);
  border-radius: 30px;
  padding: 30px 34px;
  box-shadow: var(--c-schatten);
}
.hf-kurz__titel { font-family: var(--c-hand); font-weight: 700; font-size: 32px; line-height: 1; color: var(--c-beere); margin-bottom: 10px; transform: rotate(-2deg); transform-origin: left center; }
.hf-kurz__text { font-size: 20px; line-height: 1.55; }

.hf-marken {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: -18px calc(var(--c-rand) * -1);
  padding: 12px var(--c-rand);
  background: rgba(255, 251, 244, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow-x: auto;
  scrollbar-width: none;
}
.hf-marken::-webkit-scrollbar { display: none; }
.hf-marken .hf-stufe { min-height: 44px; padding: 7px 18px; flex: 0 0 auto; font-size: 15px; }
/* Schmal: seitlich wischen. Weicher Rand zeigt, dass es weitergeht (Klassen setzt hf.js). */
.hf-marken--rechts { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); }
.hf-marken--links { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent); }
.hf-marken--links.hf-marken--rechts { -webkit-mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
/* Schmal (Handy, kleines Tablet): Der Kopf mit Logo und Menü-Knopf läuft mit,
   die Sprungmarken scrollen mit dem Inhalt weg (Michael, 19.11.2026). */
@media (max-width: 899px) {
  .hf-kopf {
    position: sticky;
    top: 0;
    z-index: 20;
    max-width: none;
    background: rgba(255, 251, 244, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--c-linie);
  }
  /* Offenes Menü passt in den Bildschirm und lässt sich darin scrollen */
  .hf-mit-skript .hf-nav.hf-nav--offen { max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
  .hf-marken { position: static; margin: -18px calc(var(--c-rand) * -1); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Breit: Marken umbrechen statt abschneiden, mit der Maus gibt es kein Wischen */
@media (min-width: 900px) {
  .hf-marken { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .hf-marken .hf-stufe { min-height: 40px; padding: 6px 15px; font-size: 14.5px; }
  .hf-seite .hf-abschnitt { scroll-margin-top: 136px; }
}

.hf-abschnitt { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 88px; }
.hf-h2--seite { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -1px; line-height: 1.1; }
.hf-h2--seite .hf-hitze__punkt, .hf-h3--gross .hf-hitze__punkt { width: 12px; height: 12px; }
.hf-h2--kasten { font-size: 30px; }
.hf-h3--gross { font-size: 26px; margin-top: 6px; }
.hf-abschnitt > .hf-blasen { margin-top: 4px; }
.hf-abschnitt > ul:not(.hf-blasen), .hf-abschnitt > ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hf-abschnitt > ul:not(.hf-blasen) > li { position: relative; padding-left: 30px; }
.hf-abschnitt > ul:not(.hf-blasen) > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-butter);
  border: 3px solid var(--c-beere);
}
.hf-abschnitt > ol { counter-reset: hf-schritt; gap: 12px; }
.hf-abschnitt > ol > li {
  counter-increment: hf-schritt;
  position: relative;
  background: var(--c-weiss);
  border: 1px solid var(--c-linie);
  border-radius: 22px;
  padding: 18px 22px 18px 72px;
  min-height: 64px;
}
.hf-abschnitt > ol > li::before {
  content: counter(hf-schritt);
  position: absolute;
  left: 16px;
  top: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--c-butter);
  font-family: var(--c-titel);
  font-weight: 700;
  font-size: 20px;
  transform: rotate(-5deg);
}
.hf-abschnitt > ol > li:nth-child(4n+2)::before { background: var(--c-minze); transform: rotate(4deg); }
.hf-abschnitt > ol > li:nth-child(4n+3)::before { background: var(--c-flieder); }
.hf-abschnitt > ol > li:nth-child(4n+4)::before { background: var(--c-rose); transform: rotate(5deg); }
.hf-abschnitt a { font-weight: 800; }
.hf-kasten--schmal .hf-kasten__liste { grid-template-columns: 1fr; }

/* Tabellen */
.hf-tabelle { background: var(--c-weiss); border: 1px solid var(--c-linie); border-radius: 26px; overflow: hidden; }
.hf-tabelle table { width: 100%; border-collapse: collapse; font-size: 17px; }
.hf-tabelle th, .hf-tabelle td { text-align: left; vertical-align: top; padding: 16px 20px; }
.hf-tabelle thead th { background: var(--c-butter); font-family: var(--c-titel); font-weight: 600; }
.hf-tabelle tbody tr + tr > * { border-top: 1px solid var(--c-linie); }
.hf-tabelle tbody th { font-family: var(--c-titel); font-weight: 700; font-size: 19px; white-space: nowrap; }

/* Bilder */
.hf-auftaktbild { margin: 10px 0 0; }
.hf-auftaktbild img, .hf-c-bild img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--c-butter-hell);
  box-shadow: var(--c-schatten);
}
.hf-auftaktbild img { aspect-ratio: 16 / 9; border-radius: 30px; }
.hf-c-bild {
  position: relative;
  z-index: 1;
  max-width: 1224px;
  margin: 56px auto 0;
  padding: 0 var(--c-rand);
}
.hf-c-bild img { aspect-ratio: 2 / 1; border-radius: 40px; }
.hf-c-zettel--auf-bild { margin-top: -120px; }
@media (max-width: 640px) {
  .hf-auftaktbild img { border-radius: 22px; }
  .hf-c-bild { margin-top: 40px; }
  .hf-c-bild img { aspect-ratio: 4 / 3; border-radius: 26px; }
  .hf-c-zettel--auf-bild { margin-top: -40px; }
}

/* Quellen zum Aufklappen */
.hf-quellen {
  background: var(--c-weiss);
  border: 1px solid var(--c-linie);
  border-radius: 22px;
}
.hf-quellen__kopf {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  font-family: var(--c-titel);
  font-weight: 600;
  font-size: 18px;
}
.hf-quellen__kopf::-webkit-details-marker { display: none; }
.hf-quellen__kopf::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.hf-quellen[open] .hf-quellen__kopf::before { transform: rotate(45deg); }
.hf-quellen__kopf:hover { color: var(--c-beere-tief); }
.hf-quellen__zahl { font-family: var(--c-text); font-weight: 600; font-size: 15px; color: var(--c-leise); }
.hf-quellen__liste { list-style: none; padding: 0 22px 18px 41px; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.hf-quellen__liste a { font-weight: 700; }
.hf-quellen summary:focus-visible { outline: 3px solid var(--c-tinte); outline-offset: 2px; border-radius: 22px; }

/* Weiterlesen */
.hf-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.hf-kachel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--c-flieder);
  color: var(--c-tinte);
  border-radius: 24px;
  padding: 22px 24px;
  font-family: var(--c-titel);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.3s var(--c-schwung), background-color 0.2s ease, color 0.2s ease;
}
.hf-kachel:nth-child(4n+2) { background: var(--c-butter); }
.hf-kachel:nth-child(4n+3) { background: var(--c-minze); }
.hf-kachel:nth-child(4n+4) { background: var(--c-rose); }
.hf-kachel:hover { background: var(--c-tinte); color: #FFFFFF; transform: translateY(-4px) rotate(-1deg); }
.hf-stand { font-size: 15px; color: var(--c-leise); }

/* 404 */
.hf-fehlt {
  max-width: 1012px;
  margin: 0 auto;
  padding: 70px var(--c-rand) 130px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hf-fehlt .hf-dach { align-self: flex-start; }
.hf-fehlt > p:not(.hf-dach) { color: var(--c-leise); max-width: 560px; }

/* Fuß */
.hf-fuss { background: var(--c-tinte); color: #FFFFFF; font-size: 16px; overflow: hidden; border-radius: 44px 44px 0 0; }
.hf-fuss__innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 56px; padding-top: 64px; padding-bottom: 12px; }
.hf-fuss__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hf-fuss__text p { color: #D9D2EA; max-width: 520px; }
.hf-fuss__nav { display: flex; flex-direction: column; gap: 2px; }
.hf-fuss__nav a { color: #FFFFFF; padding: 9px 0; text-decoration: none; font-weight: 700; }
.hf-fuss__nav a:hover { color: var(--c-butter); }
.hf-fuss a:focus-visible { outline-color: #FFFFFF; }
.hf-fuss__marke {
  font-family: var(--c-titel);
  font-weight: 800;
  font-size: clamp(60px, 16.6vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  color: var(--c-butter);
  margin-bottom: -0.1em;
  user-select: none;
}

/* Mittlere und schmale Bildschirme */
@media (max-width: 980px) {
  .hf-c-zettel { flex-wrap: nowrap; overflow: hidden; padding-bottom: 46px; }
  .hf-c-zettel__blatt--1, .hf-c-zettel__blatt--5 { display: none; }
  .hf-c-fleck--3 { display: none; }
}
@media (max-width: 640px) {
  :root { --c-rand: 20px; }
  body { font-size: 17px; }
  .hf-kopf { padding-top: 16px; padding-bottom: 10px; }

  .hf-c-einstieg { padding: 24px 0 60px; }
  .hf-c-fleck--1 { width: 280px; height: 280px; left: -150px; }
  .hf-c-fleck--2 { width: 220px; height: 220px; right: -110px; }
  .hf-h1--start { letter-spacing: -1.8px; }
  .hf-vorspann { font-size: 19px; }
  .hf-c-zettel { margin-top: 44px; flex-direction: column; align-items: stretch; gap: 0; overflow: visible; padding-bottom: 0; }
  .hf-c-zettel__blatt { flex: 0 0 auto; min-height: 0; margin: -8px 0 0; font-size: 20px; padding: 22px; }
  .hf-c-zettel__blatt--2 { transform: rotate(-2deg); margin-right: 26px; }
  .hf-c-zettel__blatt--3 { transform: rotate(1.5deg); margin-left: 26px; }
  .hf-c-zettel__blatt--4 { transform: rotate(-1deg); margin-right: 14px; }
  .hf-c-block { padding-bottom: 72px; }
  .hf-c-kurz { padding: 28px 24px; border-radius: 28px; }
  .hf-c-kurz__text { font-size: 19px; }
  .hf-c-wege { margin-top: 30px; }
  .hf-c-weg { padding: 24px; border-radius: 28px; }
  .hf-blasen { grid-template-columns: 1fr; gap: 14px; }
  .hf-blasen--kompakt { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hf-blasen--kompakt .hf-blase { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .hf-blasen--kompakt .hf-blase__text { font-size: 18px; }
  .hf-blasen--kompakt .hf-kopieren { align-self: flex-start; }
  .hf-blase { min-height: 0; padding: 22px 22px 20px; }
  .hf-blase__text { font-size: 21px; }
  .hf-c-automat { border-radius: 32px; }
  .hf-c-automat__mitte { min-height: 150px; }
  .hf-c-punkt { padding: 24px; border-radius: 26px; }
  .hf-kasten { padding: 26px 24px; }
  .hf-frage { padding: 24px; }
  .hf-auftakt__innen { padding-top: 22px; padding-bottom: 34px; }
  .hf-auftakt__form { width: 240px; height: 240px; right: -130px; top: -110px; }
  .hf-seite { gap: 42px; padding-bottom: 80px; }
  .hf-kurz { padding: 24px; }
  .hf-kurz__text { font-size: 18px; }
  .hf-fuss { border-radius: 30px 30px 0 0; }
  /* Tabellen: jede Zeile wird zu einer Karte */
  .hf-tabelle { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .hf-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hf-tabelle table, .hf-tabelle tbody, .hf-tabelle tr, .hf-tabelle th, .hf-tabelle td { display: block; }
  .hf-tabelle tbody { display: flex; flex-direction: column; gap: 12px; }
  .hf-tabelle tr { background: var(--c-weiss); border: 1px solid var(--c-linie); border-radius: 22px; padding: 20px; }
  .hf-tabelle th, .hf-tabelle td { padding: 0; }
  .hf-tabelle tbody tr + tr > * { border-top: 0; }
  .hf-tabelle tbody th { font-size: 22px; margin-bottom: 10px; white-space: normal; }
  .hf-tabelle td + td { margin-top: 10px; }
  .hf-tabelle td::before {
    content: attr(data-hf-spalte);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--c-beere-tief);
  }
}

/* Bewegung nur, wenn sie erwünscht ist */
@media (prefers-reduced-motion: no-preference) {
  .hf-c-einstieg__innen > * { animation: hf-c-auf 0.8s var(--c-schwung) both; }
  .hf-c-einstieg__innen > *:nth-child(2) { animation-delay: 0.07s; }
  .hf-c-einstieg__innen > *:nth-child(3) { animation-delay: 0.14s; }
  .hf-c-einstieg__innen > *:nth-child(4) { animation-delay: 0.21s; }
  .hf-c-einstieg__innen > *:nth-child(5) { animation-delay: 0.28s; }
  @keyframes hf-c-auf {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
  /* Zettel fallen nacheinander an ihren Platz */
  .hf-c-zettel__blatt { animation: hf-c-zettel 0.8s var(--c-schwung) backwards; }
  .hf-c-zettel__blatt--1 { animation-delay: 0.35s; }
  .hf-c-zettel__blatt--2 { animation-delay: 0.45s; }
  .hf-c-zettel__blatt--3 { animation-delay: 0.55s; }
  .hf-c-zettel__blatt--4 { animation-delay: 0.65s; }
  .hf-c-zettel__blatt--5 { animation-delay: 0.75s; }
  @keyframes hf-c-zettel {
    from { opacity: 0; transform: translateY(70px) rotate(0deg) scale(0.9); }
  }
  /* Farbflecken schweben ganz langsam */
  .hf-c-fleck { animation: hf-c-schweben 14s ease-in-out infinite alternate; }
  .hf-c-fleck--2 { animation-duration: 18s; animation-direction: alternate-reverse; }
  .hf-c-fleck--3 { animation-duration: 11s; }
  @keyframes hf-c-schweben {
    from { transform: translate(0, 0); }
    to { transform: translate(26px, 34px); }
  }
  .hf-automat__satz--neu { animation: hf-c-plopp 0.45s var(--c-schwung) both; }
  @keyframes hf-c-plopp {
    from { opacity: 0; transform: scale(0.85) rotate(-2deg); }
    to { opacity: 1; transform: none; }
  }
  .hf-feld:not([hidden]) .hf-blase { animation: hf-c-auf 0.5s var(--c-schwung) both; }
  .hf-feld .hf-blase:nth-child(2) { animation-delay: 0.07s; }
  .hf-feld .hf-blase:nth-child(3) { animation-delay: 0.14s; }
  .hf-mit-skript [data-hf-zeig] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s var(--c-schwung); }
  .hf-mit-skript [data-hf-zeig].hf-da { opacity: 1; transform: none; }
  .hf-mit-skript .hf-c-weg[data-hf-zeig].hf-da { transition: opacity 0.7s ease, transform 0.3s var(--c-schwung), box-shadow 0.3s ease; }
  .hf-mit-skript .hf-c-weg[data-hf-zeig].hf-da:hover { transform: translateY(-10px) rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (min-width: 1101px) {
  .hf-menueknopf { display: none !important; }
}

/* Hinweis auf Entwürfen der Redaktion, nur in der Vorschau */
.hf-entwurf { background: var(--c-butter); color: var(--c-tinte); font-weight: 800; font-size: 15px; text-align: center; padding: 10px 16px; border-bottom: 2px solid var(--c-tinte); }
