/* hundewolle.at – Gestaltung
   Farben aus dem Stoff selbst: ungefärbte Unterwolle, Zobelbraun, blauschwarzes Fell;
   dazu Enzianblau wie der Stempel auf einem Webetikett. */

@font-face {
  font-family: "Bitter";
  src: url("/fonts/bitter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --wolle: #f2f3ee;
  --papier: #ffffff;
  --tinte: #1c2431;
  --tinte-2: #4f5868;
  --linie: #cfd4ca;
  --linie-fein: #e2e5de;
  --enzian: #27398f;
  --enzian-tief: #1a2868;
  --enzian-hauch: #e7eaf6;
  --zobel: #8a5a2b;
  --zobel-hell: #cfae87;
  --zobel-hauch: #f3ebdf;
  --schrift: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --titel: "Bitter", Georgia, "Times New Roman", serif;
  --breit: 72rem;
  --text: 42rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--wolle);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.1875rem;
  line-height: 1.58;
  font-weight: 400;
  overflow-wrap: break-word;
}

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

.rahmen {
  max-width: var(--breit);
  margin-inline: auto;
  padding-inline: var(--rand);
}

a {
  color: var(--enzian);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--enzian-tief);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--enzian);
  outline-offset: 2px;
  border-radius: 2px;
}

.sprung {
  position: absolute;
  left: -100vw;
  top: 0;
  background: var(--tinte);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.sprung:focus {
  left: 0;
}

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

.kopf {
  border-bottom: 1px solid var(--linie);
}
.kopfzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  flex-wrap: wrap;
  padding-block: 0.9rem;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--tinte);
  text-decoration: none;
}
.marke:hover {
  color: var(--enzian);
}
.zeichen {
  color: var(--enzian);
  flex: none;
}
.zeichen .faden {
  stroke: var(--zobel);
}
.haupt ul {
  display: flex;
  gap: 0.25rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0.2rem 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.haupt a {
  display: block;
  padding: 0.35rem 0;
  color: var(--tinte);
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.0625rem;
  border-bottom: 2px solid transparent;
}
.haupt a:hover {
  border-bottom-color: var(--linie);
}
.haupt a[aria-current="page"] {
  border-bottom-color: var(--enzian);
  font-weight: 700;
}

/* ---------- Bühne (Startseite) ---------- */

.buehne {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}
.flausch {
  position: relative;
  display: inline-block;
  isolation: isolate;
  margin: 0;
  font-family: var(--titel);
  font-weight: 800;
  font-size: clamp(3.2rem, 13.6vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--tinte);
}
/* Der Flausch: dieselben Buchstaben noch einmal, ausgefranst wie die abstehenden Fasern des Garns. */
.flausch::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--zobel-hell);
  filter: url(#flausch);
  pointer-events: none;
}
.unterzeile {
  max-width: 46rem;
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 0;
  font-size: clamp(1.15rem, 2.1vw, 1.42rem);
  line-height: 1.5;
}

/* ---------- Banderole: die Eckdaten wie auf dem Etikett eines Wollknäuels ---------- */

.banderole {
  --zacke: 6px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: clamp(1.8rem, 4vw, 2.8rem) 0 0;
  padding: calc(var(--zacke) + 1.05rem) 0.4rem;
  background: var(--papier);
  /* gezackter Rand oben und unten, wie mit der Zackenschere geschnitten */
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--zacke)) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--zacke)) 51% repeat-x;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--zacke)) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--zacke)) 51% repeat-x;
}
.banderole > div {
  padding: 0.45rem 1.1rem;
  border-left: 2px solid var(--enzian);
  margin-block: 0.35rem;
}
.banderole dt {
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--tinte-2);
}
.banderole dd {
  margin: 0.1rem 0 0;
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.banderole.hoch {
  grid-auto-flow: row;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}
.banderole .fn {
  font-weight: 400;
}

/* ---------- Einstiege (Startseite) ---------- */

.einstiege {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
.einstiege h2,
.startinhalt h2,
.weiter h2 {
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.einstiege ul,
.weiter ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--tinte);
}
.einstiege li,
.weiter li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0.2rem 2.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--linie);
}
.einstiege a,
.weiter a {
  font-family: var(--titel);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.25;
  text-decoration: none;
}
.einstiege a:hover,
.weiter a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.einstiege span,
.weiter span {
  color: var(--tinte-2);
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------- Artikel ---------- */

.pfad ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 1.1rem 0 0;
  font-size: 0.95rem;
  color: var(--tinte-2);
}
.pfad li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--linie);
}

.artikel {
  display: grid;
  grid-template-columns: minmax(0, var(--text)) minmax(15rem, 19rem);
  grid-template-areas:
    "titel titel"
    "text rand";
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1.4rem, 3.5vw, 2.6rem) 3rem;
}
.titel {
  grid-area: titel;
  max-width: 54rem;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem);
}
.titel h1 {
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(2.05rem, 5vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.kurz {
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.34rem);
  line-height: 1.5;
  max-width: 46rem;
}
.rand {
  grid-area: rand;
  align-self: start;
  position: sticky;
  top: 1.25rem;
}
.fliesstext {
  grid-area: text;
  min-width: 0;
}

/* Seiten mit großen Tabellen: Eckdaten quer über die Breite, Text ohne Randspalte */
.artikel.breit {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "titel"
    "rand"
    "text";
}
.artikel.breit .rand {
  position: static;
  margin-bottom: 2rem;
}
.artikel.breit .banderole.hoch {
  grid-auto-flow: column;
  grid-template-columns: none;
}
.artikel.breit .aufderseite {
  display: none;
}
.artikel.breit .fliesstext > :not(.tabelle):not(.filter):not(.rechner):not(h3) {
  max-width: var(--text);
}

.stand {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: var(--tinte-2);
}

.aufderseite {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--linie);
}
.aufderseite h2 {
  font-family: var(--schrift);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.aufderseite ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  line-height: 1.4;
}
.aufderseite li {
  margin: 0.4rem 0;
}
.aufderseite a {
  color: var(--tinte);
  text-decoration: none;
}
.aufderseite a:hover {
  color: var(--enzian);
  text-decoration: underline;
}

/* ---------- Fließtext ---------- */

.fliesstext > :first-child {
  margin-top: 0;
}
.fliesstext h2 {
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 2.7rem 0 0.8rem;
  text-wrap: balance;
}
.fliesstext h3 {
  font-family: var(--titel);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 1.9rem 0 0.5rem;
}
.fliesstext h4 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}
.fliesstext p {
  margin: 0 0 1.1em;
}
.fliesstext ul,
.fliesstext ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}
.fliesstext li {
  margin: 0.35em 0;
}
.fliesstext li::marker {
  color: var(--enzian);
  font-weight: 700;
}
.fliesstext strong {
  font-weight: 700;
}
.fliesstext code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--papier);
  padding: 0.08em 0.3em;
  border: 1px solid var(--linie-fein);
}
.fliesstext blockquote {
  margin: 1.4em 0;
  padding-left: 1.1em;
  border-left: 3px solid var(--zobel-hell);
  color: var(--tinte-2);
}
/* Abbildungen im Text */
.fliesstext img {
  max-width: 100%;
  height: auto;
}
.fliesstext figure.bild {
  margin: 1.8em 0;
}
.fliesstext figure.bild img {
  display: block;
  background: var(--papier);
}
.fliesstext figure.bild figcaption {
  margin-top: 0.55em;
  padding-left: 0.8em;
  border-left: 3px solid var(--zobel-hell);
  font-size: 0.9em;
  line-height: 1.45;
  color: var(--tinte-2);
}
.fn {
  line-height: 0;
  vertical-align: baseline;
  position: relative;
  top: -0.45em;
  font-size: 1em;
}
.fn + .fn {
  margin-left: 0.1em;
}
.fn a {
  font-size: 0.72em;
  font-weight: 700;
  text-decoration: none;
  padding: 0 0.12em;
  font-variant-numeric: tabular-nums;
}
.fn a:hover {
  text-decoration: underline;
}
.hinweis {
  background: var(--zobel-hauch);
  border-left: 3px solid var(--zobel);
  padding: 0.8rem 1rem;
}
.leer {
  color: var(--tinte-2);
}

/* ---------- Tabellen ---------- */

.tabelle {
  overflow-x: auto;
  margin: 1.4rem 0 1.8rem;
  background: var(--papier);
  border-top: 2px solid var(--tinte);
  border-bottom: 1px solid var(--linie);
}
.tabelle table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.42;
}
.tabelle caption {
  caption-side: bottom;
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--tinte-2);
  border-top: 1px solid var(--linie-fein);
}
.tabelle th,
.tabelle td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
}
.tabelle thead th {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tinte-2);
  border-bottom: 1px solid var(--linie);
  white-space: nowrap;
  vertical-align: bottom;
}
.tabelle tbody tr + tr > * {
  border-top: 1px solid var(--linie-fein);
}
.tabelle tbody th {
  font-weight: 700;
  min-width: 9.5rem;
}
.tabelle .a-right {
  text-align: right;
}
.tabelle .a-center {
  text-align: center;
}
.tabelle .zahl {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 700;
}
.tabelle time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
tr[hidden] {
  display: none;
}

.eignung {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.skala {
  display: inline-flex;
  gap: 3px;
}
.skala i {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  border: 1.5px solid var(--enzian);
}
.skala i.an {
  background: var(--enzian);
}

/* ---------- Filter und Rechner ---------- */

.filter,
.rechner .eingabe {
  display: grid;
  gap: 0.9rem 1.5rem;
}
.filter {
  grid-template-columns: minmax(12rem, 22rem) minmax(10rem, 14rem) 1fr;
  align-items: end;
  margin: 1.2rem 0 0;
}
.filter p,
.rechner p {
  margin: 0;
}
.filter .treffer {
  color: var(--tinte-2);
  font-size: 0.95rem;
  padding-bottom: 0.6rem;
}
label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
input,
select {
  width: 100%;
  font: inherit;
  color: var(--tinte);
  background: var(--papier);
  border: 1.5px solid var(--tinte-2);
  border-radius: 3px;
  padding: 0.55rem 0.7rem;
  min-height: 2.9rem;
}
input:focus-visible,
select:focus-visible {
  outline-offset: 0;
  border-color: var(--enzian);
}
.rechner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: start;
  margin: 1.2rem 0 2rem;
}
.rechner .eingabe input {
  max-width: 11rem;
}
.rechner .hilfe {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--tinte-2);
}
.rechner .ergebnis {
  background: var(--papier);
  border-left: 4px solid var(--enzian);
  padding: 1.3rem 1.4rem;
  position: sticky;
  top: 1.25rem;
}
.rechner .ergebnis p + p {
  margin-top: 0.8rem;
}
.rechner .gross {
  font-family: var(--titel);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}
.rechner .gross strong {
  font-weight: 800;
  color: var(--enzian);
}

/* ---------- Listen: Themen, Änderungen, Glossar, Quellen, Fragen ---------- */

.themengruppe {
  margin: 0 0 1.6rem;
}
.themen,
.aenderungen {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fliesstext .themen,
.fliesstext .aenderungen {
  padding-left: 0;
}
.themen li {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 0.1rem 1.5rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--linie-fein);
  margin: 0;
}
.themen a {
  font-weight: 700;
}
.themen span {
  color: var(--tinte-2);
  font-size: 1rem;
}
.aenderungen li {
  display: flex;
  gap: 1rem;
  padding: 0.3rem 0;
  margin: 0;
}
.aenderungen time {
  flex: none;
  width: 6.2rem;
  color: var(--tinte-2);
  font-variant-numeric: tabular-nums;
}

.glossar {
  margin: 0;
}
.glossar > div {
  padding: 0.95rem 0;
  border-top: 1px solid var(--linie);
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 0.2rem 1.5rem;
}
.glossar dt {
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.12rem;
}
.glossar dd {
  margin: 0;
}

.angaben {
  margin: 0 0 1.5rem;
}
.angaben > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.2rem 1.5rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--linie-fein);
}
.angaben dt {
  color: var(--tinte-2);
}
.angaben dd {
  margin: 0;
  font-weight: 700;
}

.fragen .frage {
  padding: 1.1rem 0 0.2rem;
  border-top: 1px solid var(--linie);
}
.fragen .frage h3,
.fragen.flach .frage h2 {
  font-family: var(--titel);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.3;
  margin: 0 0 0.45rem;
  letter-spacing: 0;
}
.fragen .frage p {
  margin: 0 0 0.9em;
}

.quellenblock {
  margin-top: 3rem;
}
.quellen {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--tinte-2);
  padding-left: 1.6em;
}
.quellen li {
  margin: 0.5em 0;
}
.quellen li:target {
  background: var(--enzian-hauch);
  outline: 0.35rem solid var(--enzian-hauch);
}
.abruf {
  white-space: nowrap;
}

/* ---------- Weiterlesen, Startinhalt, Fuß ---------- */

.weiter {
  padding-block: 0.5rem 3.5rem;
}
.startinhalt {
  padding-block: 1rem 3.5rem;
}
.startinhalt .fliesstext > h2:first-child {
  margin-top: 1rem;
}
.startinhalt .fliesstext > p,
.startinhalt .fliesstext > ol,
.startinhalt .fliesstext > ul:not(.aenderungen) {
  max-width: var(--text);
}

.fuss {
  border-top: 2px solid var(--tinte);
  background: var(--papier);
  padding-block: 2.2rem 2.5rem;
  font-size: 1rem;
}
.fussgruppen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem 2rem;
}
.fussgruppen h2 {
  font-family: var(--titel);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fussgruppen li {
  margin: 0.3rem 0;
}
.fuss a {
  color: var(--tinte);
  text-decoration: none;
}
.fuss a:hover {
  color: var(--enzian);
  text-decoration: underline;
}
.fusszeile {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--linie);
  color: var(--tinte-2);
}
.fusszeile p {
  margin: 0 0 0.6rem;
}
.fusszeile ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  margin-bottom: 0.6rem;
}
.vorschauhinweis {
  margin: 0;
  padding: 0.5rem var(--rand);
  background: var(--zobel);
  color: #fff;
  font-weight: 700;
}
/* Solange die Website nicht für Suchmaschinen freigeschaltet ist */
.vorschauband {
  margin: 0;
  padding: 0.45rem var(--rand);
  background: var(--zobel-hauch);
  border-bottom: 1px solid var(--zobel-hell);
  color: var(--tinte);
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 58rem) {
  .artikel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "titel"
      "rand"
      "text";
  }
  .rand {
    position: static;
    margin-bottom: 2rem;
  }
  .banderole,
  .banderole.hoch,
  .artikel.breit .banderole.hoch {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .aufderseite {
    display: none;
  }
  .rechner {
    grid-template-columns: minmax(0, 1fr);
  }
  .rechner .ergebnis {
    position: static;
  }
}

@media (max-width: 40rem) {
  body {
    font-size: 1.125rem;
  }
  .flausch::before {
    filter: url(#flausch-klein);
  }
  .kopfzeile {
    padding-block: 0.7rem 0.4rem;
  }
  .haupt {
    width: 100%;
    margin-inline: calc(-1 * var(--rand));
    width: calc(100% + 2 * var(--rand));
  }
  .haupt ul {
    padding-inline: var(--rand);
  }
  .einstiege li,
  .weiter li,
  .themen li,
  .glossar > div,
  .angaben > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .banderole,
  .banderole.hoch,
  .artikel.breit .banderole.hoch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banderole > div {
    padding-inline: 0.75rem;
  }
  .filter {
    grid-template-columns: minmax(0, 1fr);
  }
  .filter .treffer {
    padding-bottom: 0;
  }
  .tabelle th,
  .tabelle td {
    padding: 0.6rem 0.7rem;
  }
}

@media print {
  .kopf nav,
  .fuss,
  .weiter,
  .aufderseite,
  .vorschauband,
  .sprung {
    display: none;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
  .artikel {
    display: block;
  }
  a {
    color: inherit;
  }
}
