@font-face {
  font-family: "Young Serif";
  src: url("fonts/youngserif-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --emaille: #F7F9FB;   /* cool enamel white */
  --kobalt: #1E40A0;    /* enamel-sign blue */
  --kobalt-tief: #0D2466;
  --tinte: #16213E;     /* text */
  --kirsch: #B3122E;    /* actions */
  --kirsch-tief: #8F0E25;
  --stein: #D9E0E8;     /* lines, image wells */
  --nebel: #5A6683;     /* secondary text */
  --senf: #F6C445;      /* steam, warm accent on blue */
  /* image-well tints per audience */
  --ton-kochen: #DCE5F7;
  --ton-backen: #F8DFE3;
  --ton-kaffee: #EFE3D3;
  --ton-familie: #DCEBE1;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--emaille);
  color: var(--tinte);
  font: 400 1.0625rem/1.55 var(--sans);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--kirsch); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.logo { font: 1.5rem/1 var(--serif); text-decoration: none; color: var(--kobalt); }
.site-header nav { display: flex; gap: 1.75rem; font-weight: 500; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

/* Hero: the enamel sign */
.schild {
  background: var(--kobalt);
  color: #fff;
  border-radius: 28px;
  padding: 10px;
  margin-top: .5rem;
  box-shadow: 0 1px 0 var(--kobalt-tief), 0 18px 40px -24px var(--kobalt-tief);
  /* faint enamel speckle */
  background-image:
    radial-gradient(circle at 20% 30%, rgb(255 255 255 / .06) 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgb(0 0 0 / .08) 0 1.5px, transparent 2px);
  background-size: 23px 19px, 31px 27px;
}
.schild-inner {
  border: 3px solid #fff;
  border-radius: 20px;
  padding: clamp(1.75rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}
.motiv.motiv-hero {
  width: clamp(220px, 28vw, 340px);
  --ink: #fff; --fill: #2A4FB5; --akzent: var(--senf);
}
.schild h1 {
  font: 400 clamp(2.4rem, 5.2vw, 4.25rem)/1.12 var(--serif);
  margin: 0;
  max-width: 18ch;
  letter-spacing: -.01em;
}
.picker {
  margin-top: 2.25rem;
  font: 400 clamp(1.25rem, 2.6vw, 2rem)/2 var(--serif);
  max-width: 30em;
}
.picker select {
  font: inherit;
  /* own compact line-height so the pill never grows taller than the sentence's line spacing */
  line-height: 1.25;
  height: auto;
  vertical-align: baseline;
  color: var(--kobalt);
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: .12em 1.6em .12em .7em;
  max-width: 100%;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--kobalt) 50%), linear-gradient(135deg, var(--kobalt) 50%, transparent 50%);
  background-position: right .8em center, right .55em center;
  background-size: .28em .28em;
  background-repeat: no-repeat;
  cursor: pointer;
}
.picker-actions { margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.picker-note { font: 400 .95rem/1.4 var(--sans); opacity: .85; }

.btn {
  display: inline-block;
  font: 700 1rem/1 var(--sans);
  padding: 1rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.btn-hero { background: #fff; color: var(--kobalt); }
.btn-hero:hover { background: var(--stein); }
/* Shared affiliate action: warm accent, strong contrast and a generous touch target. */
.btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  min-height: 48px;
  padding: .9rem 1.2rem;
  border: 1px solid #ddb039;
  border-radius: 12px;
  background: var(--senf);
  color: var(--tinte);
  font: 750 .95rem/1.4 var(--sans);
  text-decoration: none;
  box-shadow: 0 2px 0 #c99b25, 0 4px 10px rgb(22 33 62 / 8%);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-amazon::after {
  content: "";
  width: .6rem;
  height: .6rem;
  flex: 0 0 .6rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
@media (hover: hover) {
  .btn-amazon:hover {
    background: #ffd568;
    color: var(--tinte);
    transform: translateY(-2px);
    box-shadow: 0 3px 0 #c99b25, 0 7px 16px rgb(22 33 62 / 12%);
  }
}
.btn-amazon:focus-visible {
  outline: 3px solid var(--kobalt);
  outline-offset: 4px;
}
.btn-amazon:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #c99b25;
}
@media (prefers-reduced-motion: reduce) {
  .btn-amazon { transition: none; }
  .btn-amazon:hover, .btn-amazon:active { transform: none; }
}

/* Sections */
.block { padding-top: 4.5rem; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--tinte); padding-bottom: .9rem;
}
h2 { font: 400 clamp(1.75rem, 3vw, 2.4rem)/1.2 var(--serif); margin: 0; }
.stand { color: var(--nebel); font-size: .95rem; }

/* Product image well: real image if available, otherwise the brand name */
.bild {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--stein);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: .75rem;
  text-align: center;
}
.bild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.motiv { display: block; width: 78%; height: auto; overflow: visible; --ink: var(--kobalt); --fill: #fff; --akzent: var(--kirsch); }
.ton-kochen { background: var(--ton-kochen); }
.ton-backen { background: var(--ton-backen); }
.ton-kaffee { background: var(--ton-kaffee); }
.ton-familie { background: var(--ton-familie); }
.bild[class*="ton-"] { border-color: transparent; }

/* Top 5 ranking */
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li {
  display: grid;
  grid-template-columns: 3.5rem 132px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--stein);
  counter-increment: r;
}
.rank li::before {
  /* rank number as a small enamel house-number sign */
  content: counter(r);
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 1.6rem/1 var(--serif); color: #fff; background: var(--kobalt);
  box-shadow: inset 0 0 0 3px var(--kobalt), inset 0 0 0 5px #fff;
}
.rank h3 { font: 700 1.2rem/1.3 var(--sans); margin: 0 0 .3rem; }
.rank p { margin: 0; color: var(--nebel); max-width: 52ch; }
.fuer { margin-top: .55rem; font-size: .9rem; font-weight: 500; color: var(--kobalt); }

/* Finder results */
.filter { display: grid; gap: .9rem; margin: 1.5rem 0 2rem; }
.filter-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filter-row > span { font-weight: 500; min-width: 4.5rem; color: var(--nebel); }
.chip {
  font: 500 1rem/1 var(--sans); padding: .7rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--tinte); background: transparent; color: var(--tinte); cursor: pointer;
}
.chip:hover { background: var(--stein); }
.chip[aria-pressed="true"] { background: var(--tinte); color: #fff; }
.treffer { color: var(--nebel); font-size: .95rem; }

.ideen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; }
.idee { display: flex; flex-direction: column; }
.idee[hidden] { display: none; }
.idee .bild { aspect-ratio: 4/3; }
.idee h3 { font: 700 1.1rem/1.3 var(--sans); margin: .9rem 0 .3rem; }
.idee p { margin: 0 0 .6rem; color: var(--nebel); font-size: .98rem; flex: 1; }
.idee .beachten { font-size: .9rem; margin: 0 0 .6rem; color: var(--nebel); flex: none; }
.rank .beachten { font-size: .9rem; margin: .3rem 0 0; color: var(--nebel); }
.idee .link-amazon { width: 100%; margin-top: .65rem; }

.leer {
  border: 2px dashed var(--stein); border-radius: 20px; padding: 2rem; text-align: left;
}
.leer p { margin: 0 0 1rem; max-width: 50ch; }
.leer .chip { border-color: var(--kobalt); color: var(--kobalt); }

/* Text pages */
.text { max-width: 68ch; padding: 2.5rem 0 1rem; }
.text h1 { font: 400 clamp(2rem, 4vw, 3rem)/1.15 var(--serif); margin: 0 0 1.5rem; }
.text h2 { font-size: 1.5rem; margin: 2.25rem 0 .6rem; }
.text p, .text li { line-height: 1.65; }
.platzhalter { background: #FFF3C4; padding: 0 .2em; border-radius: 3px; }

/* Breadcrumbs */
.brotkrumen { padding: 1.25rem 0 0; font-size: .92rem; color: var(--nebel); }
.brotkrumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.brotkrumen li + li::before { content: "/"; margin-right: .5rem; }
.brotkrumen a { text-underline-offset: 3px; }

/* List pages */
.liste { padding-bottom: 1rem; }
.liste h1 { font: 400 clamp(2rem, 4.4vw, 3.25rem)/1.15 var(--serif); margin: 1.5rem 0 1.25rem; max-width: 22ch; }
.liste .intro { max-width: 68ch; font-size: 1.12rem; margin: 0; }
.liste .block { padding-top: 3rem; }
.liste h2 a { text-decoration: none; }
.liste h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.liste .ideen { margin-top: 1.75rem; }
.hinweise ul { margin: 1.25rem 0 0; padding-left: 1.2rem; max-width: 68ch; }
.hinweise li { margin-bottom: .6rem; line-height: 1.6; }
.liste .stand { display: block; margin: 1.5rem 0 0; }

/* Link rows (budget pages, related pages) */
.budget-links { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.budget-links a.chip { display: inline-block; text-decoration: none; line-height: 1.25; text-wrap: balance; }

/* Audience cards on the home page; whole card is clickable via the heading link */
.personen { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.person { position: relative; }
.person .bild { aspect-ratio: 4/3; }
.person h3 { font: 700 1.1rem/1.3 var(--sans); margin: .9rem 0 .2rem; }
.person h3 a { text-decoration: none; }
.person h3 a::after { content: ""; position: absolute; inset: 0; }
.person:hover h3 a, .person h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.person p { margin: 0; color: var(--nebel); font-size: .95rem; }
.fuer a { text-underline-offset: 3px; }

/* Footer */
footer { margin-top: 5rem; border-top: 1px solid var(--stein); padding: 2rem 0 3rem; color: var(--nebel); font-size: .92rem; }
footer .wrap { display: grid; gap: 2rem; }
footer p { margin: 0; max-width: 60ch; }
.footer-navs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; max-width: 60rem; }
footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
footer nav a { text-underline-offset: 3px; }
footer a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }
footer .fn-titel { font-weight: 700; color: var(--tinte); margin: 0 0 .25rem; }

@media (max-width: 860px) {
  .schild-inner { grid-template-columns: 1fr; }
  .motiv-hero { display: none; }
  .ideen { grid-template-columns: repeat(2, 1fr); }
  .personen { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-header nav { gap: 1rem; font-size: .95rem; }
  .site-header nav .nav-optional { display: none; }
  .schild-inner { padding: 1.75rem 1.25rem; }
  .rank li { grid-template-columns: 2.25rem 84px 1fr; gap: 1rem; }
  .rank li::before { width: 2.25rem; height: 2.25rem; font-size: 1.15rem; box-shadow: inset 0 0 0 2px var(--kobalt), inset 0 0 0 3.5px #fff; }
  .rank li .btn-amazon { grid-column: 2 / -1; }
  .filter-row > span { width: 100%; }
}
@media (max-width: 640px) {
  .footer-navs { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ideen { grid-template-columns: 1fr; gap: 0; }
  .personen { gap: 1rem; }
  .idee {
    display: grid; grid-template-columns: 96px 1fr; column-gap: 1rem; align-items: start;
    padding: 1.1rem 0; border-bottom: 1px solid var(--stein);
  }
  .idee .bild { aspect-ratio: 1; grid-row: 1 / span 4; padding: .4rem; }
  .idee h3 { margin-top: 0; }
  .idee .link-amazon { grid-column: 1 / -1; margin-top: .85rem; }
}
