/* Zuchtring, Funktionsseiten unter /funktionen/<name>/ (30.11.2026). Baut auf startseite.css
   auf: gleiche Farben, gleicher Kopf und Fuß. Handy zuerst, keine externen Ressourcen. */

/* Einstieg ---------------------------------------------------------------- */

.seitenkopf { padding: 2rem 0 2.5rem; }
.seitenkopf-raster { display: grid; gap: 1.75rem; }
.seitenkopf-raster > * { min-width: 0; }
.seitenkopf h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem); letter-spacing: -0.03em; max-width: 40rem; }
.seitenkopf h1 em { font-style: normal; color: var(--korall-text); }
.seitenkopf .einleitung { font-size: 1.25rem; }
.seitenkopf .aktionen { margin-top: 1.5rem; }
.seitenkopf-bild img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2rem; box-shadow: var(--schatten-gross);
}
@media (min-width: 60rem) {
  .seitenkopf { padding: 3.5rem 0 4rem; }
  .seitenkopf-raster { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
  .seitenkopf-bild img { aspect-ratio: 4 / 3; }
}

/* Reiter: die fünf Funktionsseiten ------------------------------------------ */

.reiter { border-block: 1px solid var(--linie); background: var(--karte); }
.reiter ul { list-style: none; margin: 0; padding: 0.6rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.reiter a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px;
  color: var(--text); font-weight: 700; font-size: 1rem; text-decoration: none; background: var(--grund);
}
.reiter a:hover { background: var(--pfirsich); }
.reiter a[aria-current] { background: var(--text); color: #fff; }

/* Bausteine: Text neben Bild ---------------------------------------------------- */

.baustein { display: grid; gap: 1.75rem; }
.baustein > * { min-width: 0; }
.abschnitt .baustein h2 { font-size: clamp(1.75rem, 3vw + 0.9rem, 2.5rem); }
.baustein .haken-liste { margin-top: 1.25rem; }
.baustein .einleitung + .schritte { margin-top: 1.5rem; }
.wort { color: var(--text-2); font-size: 1rem; margin-top: 1.25rem; padding-left: 0.9rem; border-left: 3px solid var(--linie-2); max-width: 38rem; }
.wort b { color: var(--text); }
@media (min-width: 60rem) {
  .baustein { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
  .baustein-gedreht > :first-child { order: 2; }
  .baustein-schmal { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

.bild { margin: 0; display: grid; justify-items: center; }
.bild-fenster {
  width: 100%; background: var(--karte); border-radius: 1.25rem; overflow: hidden;
  border: 1px solid var(--linie); box-shadow: var(--schatten-gross);
}
.bild-fenster img { width: 100%; }
.bild-fenster { position: relative; max-width: 24rem; max-height: 25rem; overflow: hidden; }
.bild-fenster::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2.5rem; pointer-events: none;
  background: linear-gradient(rgb(255 249 242 / 0), var(--grund));
}
@media (min-width: 60rem) {
  .bild-fenster { max-width: none; max-height: none; }
}
.bild-handy {
  width: min(100%, 17.5rem); border: 0.45rem solid var(--text); border-radius: 2.1rem; overflow: hidden;
  background: var(--karte); box-shadow: var(--schatten-gross);
}
.bild-handy img { width: 100%; }
.bild-blatt {
  width: min(100%, 24rem); background: #fff; border-radius: 0.5rem; overflow: hidden;
  border: 1px solid var(--linie); box-shadow: var(--schatten-gross); transform: rotate(-1.2deg);
}
.bild-blatt img { width: 100%; }
.bild-paar > :last-child { position: relative; z-index: 1; justify-self: end; margin-top: -4.5rem; width: min(62%, 19rem); transform: rotate(1.5deg); }
.bild-paar > .bild-handy:last-child { width: min(46%, 12rem); margin-top: -9rem; transform: none; }
.bild-paar > .bild-blatt:first-child { justify-self: start; }

/* Kacheln mit kurzen Punkten -------------------------------------------------- */

.kacheln { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.kacheln li {
  background: var(--grund); border-radius: var(--radius); padding: 1rem 1.1rem;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.9rem; row-gap: 0.15rem; align-content: start; min-width: 0;
}
.kacheln .f-ico { grid-row: span 2; width: 2.75rem; height: 2.75rem; }
.kacheln h3 { font-size: 1.125rem; align-self: end; }
.kacheln p { grid-column: 2; font-size: 1.0625rem; line-height: 1.45; }
.abschnitt:not(.abschnitt-weiss) .kacheln li { background: var(--karte); box-shadow: var(--schatten); }
.abschnitt-mint .kacheln li, .abschnitt-pfirsich .kacheln li { background: rgb(255 255 255 / 0.7); box-shadow: none; }
.kacheln p { color: var(--text-2); }
@media (min-width: 40rem) {
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .kacheln li { grid-template-columns: minmax(0, 1fr); row-gap: 0.5rem; padding: 1.35rem; }
  .kacheln .f-ico { grid-row: auto; width: 3rem; height: 3rem; }
  .kacheln h3 { font-size: 1.25rem; }
  .kacheln p { grid-column: auto; }
}
@media (min-width: 64rem) {
  .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .kacheln-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Ablauf als Leiste (Ausstellung, Umstieg) --------------------------------------- */

.ablauf { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.6rem; counter-reset: ablauf; }
.ablauf li {
  counter-increment: ablauf; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.85rem; align-items: center;
  background: rgb(255 255 255 / 0.75); border-radius: 1.1rem; padding: 0.75rem 1rem;
}
.ablauf li::before {
  content: counter(ablauf); grid-row: span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 999px; background: var(--korall); color: #fff; font-weight: 800;
}
.ablauf b { line-height: 1.25; }
.ablauf span { color: var(--text-2); font-size: 1rem; line-height: 1.35; }
@media (min-width: 48rem) {
  .ablauf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 72rem) {
  .ablauf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ablauf li { grid-template-columns: minmax(0, 1fr); row-gap: 0.3rem; align-content: start; padding: 1.1rem; }
  .ablauf li::before { grid-row: auto; }
}

/* Gestaltete Ansichten der Ausstellung (Meldung, Katalog, Richter-Tablet) ------- */

.ansicht { font-size: 0.875rem; line-height: 1.35; display: grid; gap: 0.65rem; padding: 0.9rem; background: #fffdfa; }
.ansicht-titel { font-weight: 800; font-size: 1.0625rem; line-height: 1.2; }
.ansicht-klein { color: var(--text-2); font-size: 0.8125rem; }
.ansicht-stufen { display: flex; gap: 0.3rem; }
.ansicht-stufen i { flex: 1; height: 0.3rem; border-radius: 999px; background: var(--linie-2); }
.ansicht-stufen i.an { background: var(--korall); }
.feld { display: grid; gap: 0.15rem; }
.feld small { font-size: 0.75rem; font-weight: 700; color: var(--text-2); }
.feld span {
  display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; min-height: 2.4rem; padding: 0.35rem 0.7rem;
  border: 1px solid var(--linie-2); border-radius: 0.7rem; background: var(--karte); font-weight: 650;
}
.feld span em { font-style: normal; font-weight: 500; color: var(--text-2); font-size: 0.8125rem; white-space: nowrap; }
.wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
.wahl span {
  display: grid; gap: 0.05rem; padding: 0.5rem 0.65rem; border: 1px solid var(--linie-2); border-radius: 0.7rem; background: var(--karte);
}
.wahl span.an { border: 2px solid var(--korall-knopf); background: #fff6f1; }
.wahl b { font-size: 0.875rem; }
.wahl small { font-size: 0.75rem; color: var(--text-2); }
.summe { display: flex; justify-content: space-between; gap: 0.5rem; font-weight: 800; padding-top: 0.5rem; border-top: 1px dashed var(--linie-2); }
.knopf-bild {
  display: grid; place-items: center; min-height: 2.5rem; border-radius: 999px; background: var(--korall-knopf); color: #fff; font-weight: 750;
}

.katalog {
  width: min(100%, 27rem); background: #fff; border: 1px solid var(--linie); border-radius: 0.5rem; box-shadow: var(--schatten-gross);
  padding: 1.25rem 1.1rem; font-size: 0.8125rem; line-height: 1.35; display: grid; gap: 0.6rem; transform: rotate(-1deg);
}
.katalog-kopf { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; border-bottom: 2px solid var(--text); padding-bottom: 0.4rem; }
.katalog-kopf b { font-size: 1rem; }
.katalog-kopf span { color: var(--text-2); white-space: nowrap; }
.katalog-rasse { font-weight: 800; font-size: 0.9375rem; margin-top: 0.2rem; }
.katalog-klasse { font-weight: 750; color: var(--korall-text); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem; }
.katalog-eintrag { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 0.6rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--linie); }
.katalog-eintrag:last-child { border-bottom: 0; padding-bottom: 0; }
.katalog-eintrag > b { font-size: 1.125rem; line-height: 1.15; }
.katalog-eintrag p { display: grid; gap: 0.05rem; }
.katalog-eintrag small { color: var(--text-2); font-size: 0.75rem; }

.tablet {
  width: min(100%, 30rem); border: 0.6rem solid var(--text); border-radius: 1.6rem; overflow: hidden;
  background: #fffdfa; box-shadow: var(--schatten-gross);
}
.tablet-kopf {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; padding: 0.55rem 0.9rem;
  background: var(--text); color: #fff4ea; font-size: 0.8125rem; font-weight: 700;
}
.tablet-kopf span:last-child { font-weight: 500; opacity: 0.8; white-space: nowrap; }
.tablet .ansicht { gap: 0.75rem; }
.tablet-tier { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: baseline; }
.tablet-tier b { font-size: 1.75rem; line-height: 1; }
.tablet-tier span { color: var(--text-2); }
.punkte-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.punkte-liste li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0.6rem; border-radius: 0.6rem; background: var(--grund); }
.punkte-liste b { font-variant-numeric: tabular-nums; }
.punkte-liste .gesamt { background: var(--mint); color: var(--salbei-text); font-weight: 800; }
.wertung { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.wertung span { padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--linie-2); background: var(--karte); font-weight: 750; }
.wertung span.an { background: var(--salbei); border-color: var(--salbei); color: #0d2a24; }
.wertung span.gold { background: var(--honig); border-color: var(--honig); color: #3a2a00; }

.urkunde {
  width: min(100%, 24rem); background: #fff; border-radius: 0.75rem; box-shadow: var(--schatten-gross);
  border: 1px solid var(--linie); outline: 3px double var(--honig); outline-offset: -0.6rem;
  padding: 1.9rem 1.5rem; text-align: center; display: grid; gap: 0.4rem; justify-items: center; font-size: 0.875rem; line-height: 1.35;
}
.urkunde svg { width: 2.25rem; height: 2.25rem; color: #c58a00; }
.urkunde small { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; color: var(--text-2); font-size: 0.75rem; }
.urkunde b { font-size: 1.25rem; line-height: 1.2; }
.urkunde em { font-style: normal; font-weight: 800; color: var(--korall-text); font-size: 1.0625rem; }
.urkunde span { color: var(--text-2); }
.rueckweg { display: grid; gap: 1rem; justify-items: center; }
.rueckweg .ahnen-vermerke { justify-self: center; background: var(--karte); border-radius: 1rem; padding: 0.75rem 1rem; box-shadow: var(--schatten); }

.ausstellung-raster-voll { margin-top: 2rem; }

/* Weiter: Verweise auf die anderen Funktionsseiten ------------------------------- */

.weiter { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.weiter a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.2rem 1rem; align-items: center;
  background: var(--karte); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--schatten);
  color: var(--text); text-decoration: none; min-height: 100%;
}
.weiter a:hover { box-shadow: var(--schatten-gross); }
.weiter .f-ico { grid-row: span 2; }
.weiter b { font-size: 1.1875rem; line-height: 1.2; align-self: end; }
.weiter small { grid-column: 2; color: var(--text-2); font-size: 1rem; line-height: 1.35; align-self: start; }
.weiter .weiter-pfeil { grid-column: 3; grid-row: 1 / span 2; color: var(--korall-text); }
@media (min-width: 48rem) {
  .weiter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}

.schluss .start-zeile { margin-top: 1.25rem; font-size: 1rem; }

.baustein .vertrauen { margin-top: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) {
  .baustein .vertrauen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
