/* Fungi Log -- Angebotsseite.
   Eigenes, kurzes Stilblatt: die Seite hat drei Unterseiten und kein
   Bedienelement ausser dem Formular. Alles, was hier nicht steht, muss auch
   niemand laden. */

:root {
  color-scheme: light dark;

  --grund:    #fbfaf7;
  --karte:    #ffffff;
  --rand:     #e3e0d8;
  --text:     #1d2220;
  --matt:     #5c6663;
  --akzent:   #2f6f4f;   /* Pilz- und Landwirtschaftsgruen, gedeckt */
  --akzent-hell: #eaf3ee;
  --warn:     #8a5a1b;
  --breite:   62rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:  #141816;
    --karte:  #1c211f;
    --rand:   #2d3532;
    --text:   #eef2f0;
    --matt:   #a3aeaa;
    --akzent: #6fc79a;
    --akzent-hell: #1b2a23;
    --warn:   #e0a355;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "DejaVu Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}
.mitte { max-width: var(--breite); margin: 0 auto; padding: 0 1.2rem; }

a { color: var(--akzent); }
a:hover { text-decoration: none; }

/* --- Kopf --------------------------------------------------------------- */
.kopfleiste {
  border-bottom: 1px solid var(--rand);
  background: var(--karte);
  position: sticky;
  top: 0;
  z-index: 5;
}
.kopfleiste .mitte {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
  flex-wrap: wrap;
}
.marke { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; text-decoration: none; color: var(--text); }
.marke span { color: var(--akzent); }
.kopfleiste nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.knopf {
  display: inline-block;
  background: var(--akzent);
  color: #fff;
  padding: .55rem 1.1rem;
  border-radius: .4rem;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}
.knopf:hover { opacity: .9; }
.knopf-leise {
  background: transparent;
  color: var(--akzent);
  border: 1px solid var(--akzent);
}

/* --- Abschnitte --------------------------------------------------------- */
section { padding: 3rem 0; border-bottom: 1px solid var(--rand); }
section:last-of-type { border-bottom: 0; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .8rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
p  { margin: 0 0 1rem; }
.vorspann { font-size: 1.2rem; color: var(--matt); max-width: 44rem; }
.augenbraue {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--akzent);
  font-weight: 700;
  margin-bottom: .5rem;
}

.raster { display: grid; gap: 1.2rem; }
@media (min-width: 46rem) { .raster-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .raster-3 { grid-template-columns: repeat(3, 1fr); } }

.karte {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: .6rem;
  padding: 1.3rem;
}
.karte p:last-child { margin-bottom: 0; }

ul.liste { margin: 0 0 1rem; padding-left: 1.2rem; }
ul.liste li { margin-bottom: .45rem; }

/* --- Bilder ------------------------------------------------------------- */
figure { margin: 0; }
figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rand);
  border-radius: .5rem;
  background: #23272b;
}
figcaption { font-size: .9rem; color: var(--matt); margin-top: .5rem; }

/* --- Formular ----------------------------------------------------------- */
form label { display: block; margin-bottom: .9rem; font-weight: 600; }
form input, form textarea, form select {
  width: 100%;
  margin-top: .3rem;
  padding: .6rem .7rem;
  border: 1px solid var(--rand);
  border-radius: .4rem;
  background: var(--grund);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
form textarea { min-height: 8rem; resize: vertical; }
.hinweis { font-size: .9rem; color: var(--matt); }
.meldung { padding: .9rem 1.1rem; border-radius: .4rem; margin-bottom: 1rem; display: none; }
.meldung.gut { display: block; background: var(--akzent-hell); border: 1px solid var(--akzent); }
.meldung.schlecht { display: block; background: #fdf0e6; border: 1px solid var(--warn); color: #6b4310; }
@media (prefers-color-scheme: dark) {
  .meldung.schlecht { background: #2c2118; color: var(--warn); }
}
/* Honigtopf: ein Feld, das kein Mensch sieht und kein Mensch ausfuellt.
   Steht etwas darin, war es ein Automat. Billiger als jedes Raetsel und
   fuer den Besucher unsichtbar. */
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Fuss --------------------------------------------------------------- */
footer {
  background: var(--karte);
  border-top: 1px solid var(--rand);
  padding: 2rem 0;
  font-size: .95rem;
  color: var(--matt);
}
footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .5rem; }

/* --- Rechtstexte -------------------------------------------------------- */
.rechtstext { padding: 2.5rem 0; }
.rechtstext h2 { margin-top: 2rem; font-size: 1.25rem; }
.rechtstext h3 { margin-top: 1.4rem; }
.rechtstext p, .rechtstext li { color: var(--text); }
.rechtstext .stand { color: var(--matt); font-size: .9rem; }

/* ==========================================================================
   Kopfbereich
   ==========================================================================
   Dunkel und ueber die volle Breite, damit die Seite nicht mit einer weissen
   Flaeche beginnt. Das Bildschirmfoto darin ist selbst dunkel -- auf hellem
   Grund sah es aus wie ein Loch, hier gehoert es dazu. */

.kopfleiste {
  position: sticky;
  background: rgba(16, 22, 20, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.kopfleiste .marke { color: #fff; }
.kopfleiste .marke b { color: #7ddba8; font-weight: 700; }
.marke { display: inline-flex; align-items: center; gap: .5rem; }
.marke-zeichen { width: 1.6rem; height: 1.6rem; flex: none; color: #7ddba8; }

.hauptnav { margin-left: auto; display: flex; gap: .3rem; }
.hauptnav a {
  color: #cadbd2;
  text-decoration: none;
  padding: .4rem .8rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.hauptnav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.anmeldeknopf { color: #fff; border-color: rgba(255, 255, 255, .45); border-radius: 2rem; }
.anmeldeknopf:hover { background: rgba(255, 255, 255, .12); }

.kopfbild {
  background:
    radial-gradient(115% 85% at 82% -10%, #2f6f4f 0%, transparent 58%),
    linear-gradient(165deg, #16231d 0%, #0e1412 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
  border-bottom: 0;
}
.kopfbild .augenbraue { color: #7ddba8; }
.kopfbild h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  /* Bricht auf gleich lange Zeilen, statt ein Wort allein zu lassen. */
  text-wrap: balance;
}
.kopfbild .vorspann { color: #c4d5cc; }
.kopfbild .knopf { background: #4fb583; color: #07120c; }
.kopfbild .textlink { color: #9fe3bf; }

.kopfraster { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62rem) { .kopfraster { grid-template-columns: 1.05fr .95fr; } }

.kopfbild-schirm img {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .7rem;
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, .5);
}
.kopfbild-schirm figcaption { color: #93a49c; }

.aktionen { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

/* Vier kurze Belege statt eines weiteren Absatzes -- am Telefon ist das der
   Unterschied zwischen einer Textwand und etwas, das man ueberfliegt. */
.merkmale {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 0 0 1.6rem;
}
.merkmale li {
  font-size: .92rem;
  padding: .35rem .85rem;
  border: 1px solid rgba(125, 219, 168, .35);
  border-radius: 2rem;
  color: #bfe6d1;
  background: rgba(125, 219, 168, .08);
}

/* --- Am Telefon ---------------------------------------------------------- */
@media (max-width: 52rem) {
  /* Die Abschnittslinks standen in zwei gedraengten Zeilen unter der Marke.
     Jetzt liegen sie in einer eigenen Zeile, die sich seitlich schieben
     laesst -- der Anmeldeknopf bleibt oben neben der Marke stehen, weil er
     der einzige Weg ist, der aus der Seite hinausfuehrt. */
  .kopfleiste .mitte { flex-wrap: wrap; row-gap: .5rem; padding-bottom: .4rem; }
  .anmeldeknopf { margin-left: auto; order: 2; padding: .45rem .9rem; }
  /* Der Selektor nennt bewusst Element UND Klasse: die allgemeine Regel
     ".kopfleiste nav" setzt flex-wrap: wrap und ist spezifischer als eine
     blosse Klasse -- eine Media-Query aendert daran nichts, die zaehlt bei
     der Spezifitaet nicht mit. Mit ".kopfleiste nav.hauptnav" steht es
     gleich und gewinnt, weil es spaeter kommt. */
  .kopfleiste nav.hauptnav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: .2rem;
    /* Keine Rollbalken quer durch die Kopfzeile. */
    scrollbar-width: none;
  }
  .hauptnav::-webkit-scrollbar { display: none; }
  .hauptnav a { background: rgba(255, 255, 255, .07); font-size: .95rem; }

  .kopfbild { padding: 2.2rem 0 2.8rem; }
  .kopfbild h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.12; }
  /* Der Knopf ueber die volle Breite: mit dem Daumen trifft man ihn sonst
     nur knapp. */
  .aktionen { gap: .9rem; }
  .kopfbild .knopf { width: 100%; text-align: center; padding: .8rem 1rem; }
  .aktionen .textlink { width: 100%; text-align: center; }
  .merkmale { gap: .4rem; margin-bottom: 1.3rem; }
  .merkmale li { font-size: .85rem; padding: .3rem .7rem; }

  /* Das Bild leicht ueber den rechten Rand hinaus -- ein angeschnittener
     Schirm sieht nach Geraet aus, ein mittig gesetzter nach Briefmarke. */
  .kopfbild-schirm { margin-right: -1.2rem; }
  .kopfbild-schirm img { border-radius: .6rem 0 0 .6rem; border-right: 0; }

  section { padding: 2.2rem 0; }
  h2 { font-size: 1.45rem; }
}
