/* Ergänzungen für die Allergie-Seiten.
   Grundlage ist style.css der Hauptseite. Neu: Kornblumenblau aus dem Wiesenfoto. */

:root {
  --color-himmel: #E8F0F8;
  --color-korn: #4A63B8;
  --color-pollen: #F0C94A;
}

/* Texte sind immer sofort sichtbar, nur die leichte Bewegung bleibt */
html.has-js .reveal { opacity: 1; }

.section-himmel { background: var(--color-himmel); }
.section-tight { padding-top: var(--space-3); }

/* Startbild in Blattform, abgeleitet vom Logo */
.hero--wiese { background: linear-gradient(120deg, #EDF6E4 0%, var(--color-bg) 45%, var(--color-himmel) 100%); }
.hero--wiese .hero__grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-4); }
.wiesenbild { position: relative; }
.wiesenbild img {
  width: 100%;
  height: auto;
  aspect-ratio: 896 / 640;
  object-fit: cover;
  object-position: 62% 50%;
  border-radius: 0 180px 0 180px;
}

.pollenflug i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-pollen);
  opacity: 0.75;
  animation: schweben 9s ease-in-out infinite alternate;
}
.pollenflug i:nth-child(1) { left: -2%; top: 18%; }
.pollenflug i:nth-child(2) { left: 9%; top: 44%; width: 6px; height: 6px; animation-duration: 7s; }
.pollenflug i:nth-child(3) { left: 30%; top: -3%; width: 7px; height: 7px; animation-duration: 11s; }
.pollenflug i:nth-child(4) { left: 99%; top: 60%; animation-duration: 8s; }
.pollenflug i:nth-child(5) { left: 20%; top: 22%; width: 5px; height: 5px; animation-duration: 12s; }
.pollenflug i:nth-child(6) { left: 78%; top: 101%; width: 7px; height: 7px; }
@keyframes schweben { to { transform: translate(22px, -26px); } }

.fragen { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.fragen li {
  font-family: var(--font-head);
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--color-ink);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-line-dark);
}

.portrait { justify-self: center; max-width: 360px; }
.portrait img { height: auto; border-radius: 180px 180px 6px 6px; }

.blattbild img { border-radius: 0 90px 0 90px; }

/* Pollenkalender */
.monate { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.4rem; }
.monate button {
  font: inherit;
  font-size: var(--fs-small);
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
}
.monate button:hover { border-color: var(--color-korn); }
.monate button[aria-pressed="true"] { background: var(--color-korn); border-color: var(--color-korn); color: #fff; font-weight: 600; }
.kalender__ergebnis {
  font-family: var(--font-head);
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--color-ink);
  margin: var(--space-3) 0;
  min-height: 2.7em;
  max-width: 52ch;
}
.kalender__scroll { overflow-x: auto; }
.pollen { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 3px; font-size: var(--fs-small); }
.pollen caption { text-align: left; color: var(--color-text-muted); padding-bottom: 0.6rem; }
.pollen th { font-weight: 600; color: var(--color-ink-soft); padding: 0.3rem; }
.pollen tbody th { text-align: left; width: 7rem; }
.pollen td { height: 34px; background: var(--color-bg-alt); border-radius: 3px; }
.pollen td.p1 { background: #F6E3A0; }
.pollen td.p2 { background: #D9A514; }
.pollen .aktiv { box-shadow: 0 0 0 2px var(--color-korn); }
.pollen thead .aktiv { background: var(--color-korn); color: #fff; border-radius: 3px; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Tageslauf: vom hellen Morgen zum blauen Abend */
.tageslauf { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.tageslauf > li { background: var(--color-white); border-radius: var(--radius); border-top: 8px solid #F3D36B; padding: 1.25rem; }
.tageslauf > li:nth-child(2) { border-color: #8CC7E8; }
.tageslauf > li:nth-child(3) { border-color: #6F8FD0; }
.tageslauf > li:nth-child(4) { border-color: #34427E; }
.tageslauf__zeit { font-family: var(--font-head); font-size: 1.35rem; color: var(--color-korn); }
.tageslauf h3 { margin: 0.1rem 0 0.8rem; font-size: 1.1rem; }
.tageslauf .list { font-size: var(--fs-small); margin: 0; }

.kreuz, .eckdaten { margin: 0; }
.kreuz div, .eckdaten div { padding: 0.8rem 0; border-top: 1px solid var(--color-line); }
.eckdaten div:first-child { border-top: 0; }
.kreuz dt, .eckdaten dt { font-weight: 600; color: var(--color-ink); }
.kreuz dd, .eckdaten dd { margin: 0; color: var(--color-text-muted); }

.faq details { border-top: 1px solid var(--color-line-dark); }
.faq details:last-child { border-bottom: 1px solid var(--color-line-dark); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--color-ink); }
.faq summary::marker { color: var(--color-green); }

.vergleich { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.vergleich th, .vergleich td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--color-line-dark); }

.site-footer a { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .hero--wiese .hero__grid { grid-template-columns: 1fr; }
  .wiesenbild { order: -1; }
  .wiesenbild img { border-radius: 0 90px 0 90px; }
  .tageslauf { grid-template-columns: 1fr 1fr; }
  .split--bild-links .split__media { order: 2; }
}
@media (max-width: 640px) {
  .hero--wiese { padding-top: var(--space-2); }
  .monate { grid-template-columns: repeat(4, 1fr); }
  .tageslauf { grid-template-columns: 1fr; }
  .pollen { min-width: 0; border-spacing: 2px; font-size: 0.8rem; table-layout: fixed; }
  .pollen thead th { font-size: 0; padding: 0; height: 22px; }
  .pollen thead th:not(:first-child)::first-letter { font-size: 0.72rem; }
  .pollen tbody th, .pollen thead th:first-child { width: 5rem; padding-left: 0; }
}

/* Pfad oben auf den Unterseiten, Bereich "Allergien" im Menü markiert */
.pfad { font-size: var(--fs-small); font-weight: 600; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.nav__links a[aria-current="true"] { color: var(--color-ink); font-weight: 600; }
.nav__links a[aria-current="true"]::after { right: 0; }