/* zwerg-pudel.de – Farben aus den eigenen Fotos: Fell-Schwarz/Marine, Deckentürkis, Leinenrot */

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

:root {
  --marine: #14213a;
  --marine-hell: #24365c;
  --tuerkis: #0b7a82;
  --tuerkis-blass: #e2f2f2;
  --leine: #c2132b;
  --leine-dunkel: #9a0d20;
  --papier: #ffffff;
  --nebel: #eef2f6;
  --linie: #d3dce5;
  --grau: #56627a;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --titel: "Bricolage Grotesque", var(--schrift);
  --radius: 14px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nebel);
  color: var(--marine);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

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

h1, h2, h3 { font-family: var(--titel); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 750; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.45rem, 1.25rem + 0.9vw, 1.85rem); font-weight: 700; margin: 2.2em 0 0.5em; }
h3 { font-size: 1.2rem; font-weight: 650; margin: 1.8em 0 0.4em; }
p, ul, ol, dl, table, figure { margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--tuerkis); }

.rahmen { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: -999px; top: 0; background: var(--papier); padding: 0.6em 1em; z-index: 10; }
.sprung:focus { left: 0.5rem; top: 0.5rem; }

/* Kopf */
.kopf { background: var(--papier); border-bottom: 1px solid var(--linie); position: relative; z-index: 5; }
.kopf__zeile { display: flex; align-items: center; justify-content: space-between; padding-block: 0.6rem; }
.marke { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--marine); text-decoration: none;
  font-family: var(--titel); font-weight: 750; font-size: 1.35rem; letter-spacing: -0.02em; }
.marke small { font-size: 1em; font-weight: 400; color: var(--grau); }
.marke:hover { color: var(--marine); }
.menue-knopf { font: inherit; font-weight: 600; color: var(--marine); background: var(--nebel); border: 1px solid var(--linie);
  border-radius: 999px; padding: 0.45em 1.1em; cursor: pointer; }
.menue-knopf::after { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.55em;
  border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-0.2em) rotate(45deg); }
.menue-knopf[aria-expanded="true"]::after { transform: translateY(0.1em) rotate(-135deg); }

.nav { display: none; border-top: 1px solid var(--linie); }
.nav--offen { display: block; }
.nav ul { list-style: none; margin-block: 0; padding-block: 0.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.nav li { margin: 0; }
.nav a { display: block; padding: 0.6em 0; color: var(--marine); text-decoration: none; font-weight: 550; }
.nav a:hover { color: var(--leine); }
.nav a[aria-current="page"] { color: var(--leine); }

@media (min-width: 62em) {
  .menue-knopf { display: none; }
  .nav { display: block; border-top: 0; }
  .nav ul { display: flex; flex-wrap: wrap; gap: 0 0.9rem; justify-content: space-between; padding-block: 0 0.2rem; }
  .nav a { padding: 0.45em 0 0.6em; font-size: 0.94rem; border-bottom: 3px solid transparent; }
  .nav a[aria-current="page"] { border-bottom-color: var(--leine); color: var(--marine); }
}

/* Startseite: Bühne mit Lockenkante */
.held { background: var(--marine); color: #fff; position: relative; padding-block: 2.5rem 4.5rem; }
.held::after { /* Lockenkante: der untere Rand kräuselt sich wie Pudelfell */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: radial-gradient(circle at 26px 30px, var(--nebel) 25px, transparent 26px) repeat-x;
  background-size: 52px 26px;
}
.held__raster { display: grid; gap: 2rem; align-items: center; }
.held h1 { color: #fff; }
.held__text p { font-size: 1.15rem; max-width: 34em; color: #dbe3ee; }
.held__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6em; }
.held__bild { margin: 0; }
.held .held__bild img { border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; aspect-ratio: 7 / 6; object-fit: cover; width: 100%;
  border: 6px solid var(--marine-hell); }
@media (min-width: 48em) {
  .held { padding-block: 3.5rem 5.5rem; }
  .held__raster { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
}

/* Seitenraster */
.seite { display: grid; gap: 2.5rem; padding-block: 2rem 4rem; }
.inhalt { background: var(--papier); border-radius: var(--radius); padding: 1.5rem 1.25rem 2rem; min-width: 0; }
.inhalt > p, .inhalt > ul, .inhalt > ol, .inhalt > h2, .inhalt > h3 { max-width: 44rem; }
@media (min-width: 40em) { .inhalt { padding: 2.25rem 2.5rem 3rem; } }
@media (min-width: 62em) {
  .seite { grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; }
  .rand { position: sticky; top: 1.5rem; }
}
.start .inhalt > h2:first-child { margin-top: 0; }

.krumen { font-size: 0.9rem; color: var(--grau); margin-bottom: 1rem; }
.krumen a { color: var(--grau); }
.stand { font-size: 0.9rem; color: var(--grau); margin-top: -0.6em; }
.vorspann { font-size: 1.2rem; line-height: 1.55; }

/* Bilder */
.bild img { border-radius: var(--radius); width: 100%; }
.bild figcaption { font-size: 0.88rem; color: var(--grau); margin-top: 0.5em; }
.bild--hoch { max-width: 22rem; }
@media (min-width: 40em) { .bild--hoch { float: right; margin: 0.3rem 0 1.2rem 2rem; width: 42%; } }
.inhalt h2 { clear: none; }
.inhalt::after { content: ""; display: block; clear: both; }

/* Knöpfe */
.knopf { display: inline-block; background: var(--leine); color: #fff; font-weight: 650; text-decoration: none;
  padding: 0.7em 1.3em; border-radius: 999px; border: 2px solid var(--leine); line-height: 1.2; text-align: center; }
.knopf:hover { background: var(--leine-dunkel); border-color: var(--leine-dunkel); color: #fff; }
.knopf--hell { background: transparent; border-color: #8fa0bd; color: #fff; }
.knopf--hell:hover { background: #fff; border-color: #fff; color: var(--marine); }
.knopf--klein { font-size: 0.92rem; padding: 0.55em 1em; white-space: nowrap; }

/* Steckbrief */
.steckbrief { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 2px solid var(--marine); max-width: 44rem; }
.steckbrief div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
.steckbrief dt { font-weight: 650; }
.steckbrief dd { margin: 0; }

/* Größenvergleich der vier Pudel-Schläge (Schulterhöhe 20–60 cm) */
.groessen { margin: 1.5rem 0 2rem; max-width: 44rem; }
.groessen__zeile { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 0.75rem; margin-bottom: 0.55rem; font-size: 0.95rem; }
.groessen__spur { position: relative; height: 2rem; background: repeating-linear-gradient(90deg, var(--linie) 0 1px, transparent 1px 25%) var(--nebel); border-radius: 6px; }
.groessen__balken { position: absolute; top: 0.3rem; bottom: 0.3rem; border-radius: 999px; background: #9fb0c8;
  color: var(--marine); font-size: 0.8rem; font-weight: 650; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.groessen__zeile--zwerg { font-weight: 700; }
.groessen__zeile--zwerg .groessen__balken { background: var(--leine); color: #fff; }
.groessen__achse { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; font-size: 0.8rem; color: var(--grau); }
.groessen__achse div { display: flex; justify-content: space-between; }

/* Tabellen */
.tabelle-rahmen { overflow-x: auto; margin-bottom: 1.3em; }
table { border-collapse: collapse; width: 100%; max-width: 44rem; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.6em 0.8em 0.6em 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { border-bottom: 2px solid var(--marine); font-family: var(--titel); }
td.zahl, th.zahl { text-align: right; white-space: nowrap; padding-right: 0; }
tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--marine); }

/* Merkkasten */
.merke { background: var(--tuerkis-blass); border-left: 5px solid var(--tuerkis); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem; max-width: 44rem; margin: 1.5rem 0; }
.merke > :last-child { margin-bottom: 0; }
.merke strong:first-child { font-family: var(--titel); }
.warnung { background: #fdecee; border-left-color: var(--leine); }

.haken { list-style: none; padding-left: 0; }
.haken li { padding-left: 1.7em; position: relative; }
.haken li::before { content: ""; position: absolute; left: 0.2em; top: 0.42em; width: 0.9em; height: 0.5em;
  border-left: 3px solid var(--tuerkis); border-bottom: 3px solid var(--tuerkis); transform: rotate(-45deg); }

/* Kaufempfehlungen und Vergleichsrechner */
.kauf, .vergleich { border: 2px solid var(--marine); border-radius: var(--radius); padding: 1.25rem; margin: 2rem 0; max-width: 46rem; position: relative; clear: both; }
.kauf__kennung { font-size: 0.78rem; color: var(--grau); margin: 0 0 0.3rem; }
.kauf__titel, .vergleich__titel { margin: 0 0 0.5rem; font-size: 1.3rem; }
.kauf__intro { color: var(--grau); }
.kauf__liste { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.kauf__liste li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.25rem;
  padding: 0.85rem 0; border-top: 1px solid var(--linie); margin: 0; }
.kauf__liste li div { flex: 1 1 16rem; }
.kauf__liste strong { display: block; }
.kauf__liste span { color: var(--grau); font-size: 0.95rem; }
.kauf__hinweis { font-size: 0.82rem; color: var(--grau); margin: 0.8rem 0 0; }
.vergleich { background: var(--marine); color: #fff; border-color: var(--marine); }
.vergleich .kauf__kennung, .vergleich .kauf__hinweis { color: #b9c5d8; }
.anzeige { margin: 2rem 0; clear: both; }

/* Themenübersicht */
.themen { list-style: none; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 1.2rem 0 2rem; }
.themen li { margin: 0; }
.themen a { display: block; height: 100%; padding: 1rem 1.1rem; background: var(--nebel); border-radius: var(--radius); text-decoration: none; color: var(--marine); }
.themen a:hover { background: var(--tuerkis-blass); color: var(--marine); }
.themen strong { display: block; font-family: var(--titel); font-size: 1.15rem; }
.themen span { font-size: 0.93rem; color: var(--grau); }

/* Fragen */
.faq { max-width: 44rem; clear: both; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq details:first-of-type { border-top: 2px solid var(--marine); }
.faq summary { cursor: pointer; font-weight: 650; padding: 0.9rem 2rem 0.9rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.55rem; font-size: 1.5rem; font-weight: 400; color: var(--tuerkis); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; }

/* Rand */
.rand h2 { font-size: 1.15rem; margin: 0 0 0.8rem; }
.rand__liste { list-style: none; padding: 0; margin: 0; }
.rand__liste li { margin: 0; border-top: 1px solid var(--linie); }
.rand__liste a { display: block; padding: 0.65rem 0; text-decoration: none; color: var(--marine); }
.rand__liste strong { display: block; }
.rand__liste span { font-size: 0.87rem; color: var(--grau); line-height: 1.4; display: block; }
.rand__liste a:hover strong { color: var(--leine); }
@media (max-width: 61.99em) { .rand__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 1.5rem; } }

/* Navigation in Gruppen */
.nav ul.nav__gruppen { display: block; padding-block: 0.25rem 1rem; }
.nav__gruppe { margin: 0; }
.nav__titel { font: inherit; font-family: var(--titel); font-weight: 700; font-size: 0.85rem; color: var(--grau); background: none; border: 0;
  padding: 0.9rem 0 0.1rem; cursor: default; text-align: left; }
.nav__gruppe > ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.nav__gruppe > ul a { padding: 0.5em 0; }
@media (min-width: 62em) {
  .nav ul.nav__gruppen { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 0 1.75rem; padding-block: 0; }
  .nav__gruppe { position: relative; }
  .nav__titel { font-family: var(--schrift); font-weight: 550; font-size: 1rem; color: var(--marine); cursor: pointer;
    padding: 0.5em 0 0.65em; border-bottom: 3px solid transparent; }
  .nav__titel::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.5em;
    border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-0.2em) rotate(45deg); opacity: 0.6; }
  .nav__gruppe--aktiv > .nav__titel { border-bottom-color: var(--leine); }
  .nav__gruppe > ul { display: none; position: absolute; left: -1rem; top: 100%; z-index: 6; min-width: 15rem;
    background: var(--papier); border: 1px solid var(--linie); border-radius: 0 0 var(--radius) var(--radius);
    padding: 0.5rem 1rem 0.75rem; box-shadow: 0 12px 24px rgba(20, 33, 58, 0.14); }
  .nav__gruppe:hover > ul, .nav__gruppe:focus-within > ul { display: block; }
  .nav__gruppe > ul a { padding: 0.45em 0; font-size: 0.98rem; border-bottom: 0; white-space: nowrap; }
  .nav__gruppe > ul a[aria-current="page"] { color: var(--leine); }
}

.themen__gruppe { margin: 1.6em 0 0; font-size: 1.05rem; color: var(--grau); }
.themen__gruppe + .themen { margin-top: 0.6rem; margin-bottom: 0.5rem; }
.rand__alle { margin-top: 1rem; font-size: 0.95rem; }

/* Rechner */
.rechner { border: 2px solid var(--marine); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0 2rem; max-width: 46rem; }
.rechner fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.rechner legend { font-family: var(--titel); font-weight: 700; font-size: 1.2rem; padding: 0; margin-bottom: 0.6rem; }
.rechner__felder { display: grid; gap: 0.9rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: end; }
.rechner label { display: block; font-size: 0.93rem; font-weight: 550; }
.rechner input, .rechner select { display: block; width: 100%; margin-top: 0.3rem; font: inherit; font-size: 1.05rem; color: var(--marine);
  padding: 0.55em 0.7em; border: 1px solid #9aa8ba; border-radius: 8px; background: #fff; }
.rechner input:focus, .rechner select:focus { outline: 3px solid var(--tuerkis); outline-offset: 1px; border-color: var(--tuerkis); }
.rechner__summen { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.75rem; }
.rechner__summen div { background: var(--marine); color: #fff; border-radius: 10px; padding: 0.8rem 1rem; }
.rechner__summen span { display: block; font-size: 0.85rem; color: #c9d3e2; }
.rechner__summen strong { font-family: var(--titel); font-size: 1.55rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rechner__ergebnis { font-size: 1.2rem; margin: 1.2rem 0 0.3rem; }
.rechner__ergebnis strong { font-family: var(--titel); color: var(--leine); }
.rechner__hinweis { font-size: 0.92rem; color: var(--grau); margin: 0.8rem 0 0; min-height: 1.4em; }
tbody th { font-weight: 650; white-space: nowrap; }

/* Checkliste und Namenslisten */
.abhaken { list-style: none; padding: 0; max-width: 44rem; }
.abhaken li { margin: 0; border-bottom: 1px solid var(--linie); }
.abhaken label { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.6rem 0; cursor: pointer; }
.abhaken input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; flex: none; accent-color: var(--tuerkis); }
.abhaken input:checked + span { color: var(--grau); text-decoration: line-through; }
.namen { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; max-width: 46rem; }
.namen li { margin: 0; background: var(--nebel); border-radius: 999px; padding: 0.25em 0.9em; }
code { font-size: 0.92em; background: var(--nebel); padding: 0.25em 0.55em; border-radius: 6px; overflow-wrap: anywhere; }

/* Fuß */
.fuss { background: var(--marine); color: #c9d3e2; font-size: 0.94rem; padding-block: 2.5rem 1.5rem; }
.fuss a { color: #fff; }
.fuss__raster { display: grid; gap: 2rem; }
.fuss__marke { font-family: var(--titel); font-weight: 750; font-size: 1.3rem; color: #fff; margin-bottom: 0.4em; }
.fuss ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.fuss li { break-inside: avoid; margin-bottom: 0.2em; }
.fuss__recht { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--marine-hell); display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
@media (min-width: 48em) { .fuss__raster { grid-template-columns: 1fr 1fr 1.2fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .kopf, .rand, .fuss, .kauf, .vergleich, .anzeige { display: none; } body { background: #fff; } }
