/* Instrumentenkoffer Wege zur Qualität
   Farbwerte und Anmutung angelehnt an die Website der Stiftung:
   warmes Cremeweiss, gedämpftes Blau, leichte Schrift, viel Ruhe. */

:root {
  --papier: #fffefb;
  --papier-tief: #fcfaf4;
  --text: #3f4f73;
  --text-leise: #77809a;
  --titel: #17476f;
  --linie: #e6e2d6;
  --linie-zart: #f0ece1;
  --akzent: #5b7fb0;
  --akzent-tief: #3a6394;
  --lesebreite: 44rem;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
             Helvetica, Arial, sans-serif;

  /* Kästen: leicht gerundet, mit einem sehr feinen Schatten abgehoben */
  --rundung: 6px;
  --schatten: 0 1px 2px rgba(63, 79, 115, 0.05),
              0 2px 6px rgba(63, 79, 115, 0.045);
  --schatten-erhoben: 0 2px 4px rgba(63, 79, 115, 0.07),
                      0 6px 16px rgba(63, 79, 115, 0.075);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--schrift);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  /* Notbremse: Kein überlanges Wort und keine verklebte Zeichenkette soll je
     aus ihrem Kasten laufen. */
  overflow-wrap: break-word;
}

.innen {
  width: 100%;
  max-width: var(--lesebreite);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.innen.breit { max-width: 68rem; }

/* ---------------------------------------------------------------- Kopfbereich */

.kopf {
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}

.kopf-innen {
  max-width: 68rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--titel);
}

.marke-zeichen { width: 38px; height: 38px; flex: none; }

.marke-text { display: flex; flex-direction: column; line-height: 1.25; }
.marke-haupt { font-size: 1.12rem; font-weight: 400; letter-spacing: 0.01em; }
.marke-neben { font-size: 0.8rem; color: var(--text-leise); }

.haupt-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

.haupt-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.97rem;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}

.haupt-nav a:hover { color: var(--akzent-tief); }
.haupt-nav a.aktiv { color: var(--titel); border-bottom-color: var(--akzent); }

/* Bildband: Farbverlauf über die zwölf Feldfarben mit weichen Formen */
.kreisband {
  position: relative;
  height: 118px;
  overflow: hidden;
  background: var(--papier-tief);
  border-bottom: 1px solid var(--linie-zart);
}

.kreisband svg { width: 100%; height: 100%; display: block; }

/* Markierung des aktuellen Feldes. Liegt über dem Band statt darin, damit sie
   auch bei schmalem Fenster sichtbar bleibt - das SVG wird seitlich beschnitten. */
.bandmarke {
  position: absolute;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(63, 79, 115, 0.38);
  box-sizing: border-box;
}

/* Alternative Fassung mit Randlinie statt Schatten */
.bandmarke.mit-rand { box-shadow: none; }

@media (max-width: 640px) {
  .bandmarke { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
}

/* ------------------------------------------------------------------- Textsatz */

/* Muss "main.innen" heissen: Die Klasse .innen setzt die Abstände mit
   "padding: 0 1.5rem" und würde ein einfaches "main" überschreiben. */
main.innen { padding-top: 2.8rem; padding-bottom: 5rem; }

h1 {
  color: var(--titel);
  font-weight: 300;
  font-size: 2.1rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.untertitel {
  color: var(--text-leise);
  font-size: 1rem;
  margin: 0 0 2.4rem;
}

h2 {
  color: var(--titel);
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.35;
  margin: 2.8rem 0 0.9rem;
}

h3 {
  color: var(--titel);
  font-weight: 400;
  font-size: 1.06rem;
  margin: 1.8rem 0 0.5rem;
}

p { margin: 0 0 1.1rem; }

.anriss {
  font-size: 1.16rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 2rem;
}

/* Folgt der Anriss direkt auf die Überschrift, fehlt der Untertitel als
   Abstandhalter - dann braucht er selbst etwas Luft nach oben. */
h1 + .anriss { margin-top: 1.5rem; }

strong { font-weight: 500; color: var(--titel); }

ul { margin: 0 0 1.3rem; padding-left: 0; list-style: none; }

li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.85rem;
}

li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--akzent);
  opacity: 0.45;
}

li ul { margin: 0.7rem 0 0; }
li ul li { font-size: 0.97rem; }
li ul li::before { width: 5px; height: 5px; opacity: 0.3; }

a { color: var(--akzent-tief); }

/* --------------------------------------------------------- Verweis aufs Instrument */

.instrument-verweis {
  color: var(--akzent-tief);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 127, 176, 0.42);
  /* Das Gewicht der Umgebung übernehmen: In den Feldtexten steht der Titel in
     <strong>, damit sieht ein verlinkter Titel genauso schwer aus wie ein
     unverlinkter. Der nachgestellte Verweis steht ohne <strong> und bleibt
     dadurch von selbst leicht. */
  font-weight: inherit;
}

.instrument-verweis:hover {
  border-bottom-color: var(--akzent-tief);
  background: rgba(91, 127, 176, 0.09);
}

.instrument-verweis::after {
  content: "›";
  margin-left: 0.22em;
  font-size: 0.92em;
  opacity: 0.7;
}

.instrument-verweis.nachgestellt {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
}

/* Kurz aufleuchten, wenn man aus dem Kurzbeschrieb zurückkehrt */
li:target { animation: hervorheben 2.4s ease-out; border-radius: var(--rundung); }

@keyframes hervorheben {
  0%, 45% { background: rgba(205, 170, 109, 0.26); }
  100% { background: transparent; }
}

/* Rückweg-Balken auf den Instrumentenseiten */
.rueckweg { margin: -1rem 0 2rem; }

.rueckweg a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--papier-tief);
  border: 1px solid var(--linie);
  border-left: 3px solid var(--akzent);
  border-radius: var(--rundung);
  box-shadow: var(--schatten);
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--titel);
  font-size: 0.95rem;
}

.rueckweg a:hover { background: #f5f1e6; }

/* ------------------------------------------------------------------ Startseite */

/* Das Vorwort auf der Startseite - etwas grosszügiger gesetzt als Fliesstext */
.vorwort p {
  font-size: 1.09rem;
  line-height: 1.75;
  margin-bottom: 1.35rem;
}

.vorwort p:first-child {
  font-size: 1.2rem;
  line-height: 1.62;
  color: var(--titel);
}

.weiterfuehrend { margin: 2.4rem 0 3rem; }

.knopf {
  display: inline-block;
  padding: 0.72rem 1.5rem;
  background: var(--akzent-tief);
  color: #fff;
  border-radius: var(--rundung);
  box-shadow: var(--schatten);
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.15s, box-shadow 0.15s;
}

.knopf:hover { background: var(--titel); box-shadow: var(--schatten-erhoben); }

.knopf::after { content: " →"; }

.hinweiskasten {
  background: var(--papier-tief);
  border: 1px solid var(--linie);
  border-radius: var(--rundung);
  box-shadow: var(--schatten);
  padding: 1.3rem 1.5rem 0.4rem;
  margin: 0 0 2.6rem;
  font-size: 0.95rem;
  color: var(--text-leise);
}

.hinweis-marke {
  display: block;
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--akzent);
  margin-bottom: 0.5rem;
}

/* Weiterführende Verweise zur Stiftung, am Fuss der Startseite */
.weiterfuehrendes { margin-top: 3.2rem; }

.weiterfuehrendes h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin: 2rem 0 0.9rem;
}

.linkliste { margin: 0; padding: 0; list-style: none; }

.linkliste li {
  padding: 0 0 0.95rem;
  margin: 0 0 0.95rem;
  border-bottom: 1px solid var(--linie-zart);
}

.linkliste li::before { content: none; }
.linkliste li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.linkliste a {
  color: var(--akzent-tief);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 127, 176, 0.4);
}

.linkliste a:hover { border-bottom-color: var(--akzent-tief); }

/* Kennzeichnet, dass der Verweis die Website verlässt */
.linkliste a::after {
  content: "↗";
  margin-left: 0.3em;
  font-size: 0.85em;
  opacity: 0.6;
}

.dateiart {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--linie);
  border-radius: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-leise);
  vertical-align: 0.1em;
}

/* Würdigung des Begründers */
.wuerdigung {
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--linie-zart);
}

.wuerdigung p { font-size: 1rem; line-height: 1.7; }

.linkliste .erklaerung {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-leise);
}

/* Die zwölf Felder im Ring - Anordnung wie im Kreisdiagramm des Verfahrens.
   Die Trennlinie scheidet die Felder 1 bis 7 von den Feldern 8 bis 12. */

.feld-gitter {
  position: relative;
  width: 100%;
  max-width: 41rem;
  aspect-ratio: 1;
  margin: 2rem auto 1.5rem;
}

/* Die Verbindungslinie des Rings; sie läuft hinter den Kreisen durch */
.feld-gitter::before {
  content: "";
  position: absolute;
  inset: 10.5%;
  border: 1px solid #c6c1b4;
  border-radius: 50%;
}

.ring-trennlinie {
  position: absolute;
  left: -1.5%;
  right: -1.5%;
  top: 60.5%;
  height: 1px;
  background: #b7b3a8;
}

.feld-kachel {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 20.5%;
  height: 20.5%;
  border-radius: 50%;
  background: var(--feldfarbe, var(--akzent));
  color: var(--feldschrift, #fff);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.4rem;
  text-decoration: none;
  transition: transform 0.16s ease-out, box-shadow 0.16s;
}

.feld-kachel:hover {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow: 0 3px 14px rgba(63, 79, 115, 0.22);
}

.feld-kachel .feld-nr {
  position: absolute;
  top: 0.5rem;
  font-size: 0.66rem;
  opacity: 0.7;
}

/* 74 % entspricht etwa dem grössten Quadrat im Kreis - so bleibt auch die
   oberste und unterste Zeile innerhalb der Rundung. */
.feld-kachel .feld-name {
  width: 74%;
  font-size: 0.68rem;
  line-height: 1.28;
  padding-top: 0.45rem;
  overflow-wrap: break-word;
  hyphens: manual;   /* nur die vorgegebenen Trennstellen des Diagramms */
}

/* Auf schmalen Geräten wird aus dem Ring wieder eine Liste */
@media (max-width: 40rem) {
  .feld-gitter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.6rem;
    aspect-ratio: auto;
    max-width: none;
    margin: 1.5rem 0 1rem;
  }

  .feld-gitter::before { display: none; }
  .ring-trennlinie { display: none; }

  .feld-kachel {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    border-radius: var(--rundung);
    background: #fff;
    border: 1px solid var(--linie);
    box-shadow: var(--schatten);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-align: left;
    padding: 0.8rem 0.9rem;
  }

  .feld-kachel:hover { transform: none; box-shadow: var(--schatten-erhoben); }

  .feld-kachel .feld-nr {
    position: static;
    flex: none;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--feldfarbe, var(--akzent));
    color: var(--feldschrift, #fff);
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    opacity: 1;
  }

  .feld-kachel .feld-name {
    width: auto;
    font-size: 0.94rem;
    line-height: 1.3;
    padding-top: 0;
    hyphens: manual;
  }
}

.wege {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.weg {
  display: block;
  padding: 1.2rem 1.4rem;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--rundung);
  box-shadow: var(--schatten);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.weg:hover { border-color: var(--akzent); box-shadow: var(--schatten-erhoben); }
.weg h3 { margin-top: 0; }
.weg p { font-size: 0.94rem; margin-bottom: 0; }

.zum-vorwort { margin-top: 2.4rem; }
.zum-vorwort a { text-decoration: none; }
.zum-vorwort a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- Feldübersicht */

.feld-liste { display: flex; flex-direction: column; gap: 0.55rem; }

.feld-zeile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--rundung);
  box-shadow: var(--schatten);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feld-zeile:hover {
  border-color: var(--feldfarbe, var(--akzent));
  box-shadow: var(--schatten-erhoben);
}
.feld-zeile .feld-text { display: flex; flex-direction: column; gap: 0.15rem; }
.feld-zeile .feld-name { font-size: 1.05rem; color: var(--titel); }

.feld-gruppen { font-size: 0.87rem; color: var(--text-leise); line-height: 1.5; }

/* ------------------------------------------------------------------ Feldseiten */

.feld-einleitung {
  font-size: 1.06rem;
  padding-bottom: 0.6rem;
}

.seiten-inhalt {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--papier-tief);
  border-radius: var(--rundung);
  box-shadow: var(--schatten);
  padding: 1.1rem 1.3rem;
  margin: 2rem 0 1rem;
  font-size: 0.93rem;
}

.seiten-inhalt span {
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: 0.35rem;
}

.seiten-inhalt a { color: var(--text); text-decoration: none; }
.seiten-inhalt a:hover { color: var(--akzent-tief); text-decoration: underline; }

.gruppe { scroll-margin-top: 1.5rem; }

.gruppe.zusammenfassung {
  background: var(--papier-tief);
  border-radius: var(--rundung);
  box-shadow: var(--schatten);
  padding: 0.4rem 1.4rem 1.2rem;
  margin-top: 3rem;
}

.blaettern {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--linie);
  font-size: 0.93rem;
}

.blaettern a { text-decoration: none; }
.blaettern a:hover { text-decoration: underline; }
.blaettern .weiter { margin-left: auto; text-align: right; }

/* -------------------------------------------------------------------- Register */

.register-gruppe { margin-bottom: 3rem; }

.gruppen-erklaerung { color: var(--text-leise); font-size: 0.95rem; }

.anzahl {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.6rem;
  background: var(--papier-tief);
  border: 1px solid var(--linie);
  border-radius: 999px;
  font-size: 0.82rem;
}

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.karte {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--rundung);
  box-shadow: var(--schatten);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.karte:hover { border-color: var(--akzent); box-shadow: var(--schatten-erhoben); }
.karte h3 { margin: 0 0 0.45rem; font-size: 1rem; line-height: 1.35; }
.karte p { font-size: 0.88rem; line-height: 1.55; color: var(--text-leise); margin-bottom: 0.8rem; }

.karte-felder {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--akzent);
  letter-spacing: 0.02em;
}

.karte-felder.leer { color: #b3adA0; }

/* --------------------------------------------------------- Instrumentenseiten */

.vorkommen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  background: var(--papier-tief);
  border-radius: var(--rundung);
  box-shadow: var(--schatten);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.vorkommen span {
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-right: 0.2rem;
}

.vorkommen a {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  text-decoration: none;
  color: var(--akzent-tief);
}

.vorkommen a:hover { border-color: var(--akzent); }

.rubrik h2 { font-size: 1.18rem; }

.kennzeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  padding: 0.85rem 1.1rem;
  background: var(--papier-tief);
  border-left: 3px solid var(--akzent);
  border-radius: 0 var(--rundung) var(--rundung) 0;
  box-shadow: var(--schatten);
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.kennname {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-leise);
}

/* ----------------------------------------------------------------------- Suche */

.suchfeld { margin: 1.5rem 0 1rem; }

#suchbegriff {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--rundung);
  box-shadow: var(--schatten);
}

#suchbegriff:focus {
  outline: none;
  border-color: var(--akzent);
  box-shadow: var(--schatten), 0 0 0 3px rgba(91, 127, 176, 0.15);
}

.such-status { color: var(--text-leise); font-size: 0.9rem; }

.treffer {
  display: block;
  padding: 1rem 0;
  border-top: 1px solid var(--linie-zart);
  text-decoration: none;
  color: var(--text);
}

.treffer:hover { background: rgba(91, 127, 176, 0.05); }
.treffer h3 { margin: 0 0 0.15rem; font-size: 1.02rem; }

.treffer-ort {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-leise);
  margin-bottom: 0.4rem;
}

.treffer p { font-size: 0.91rem; line-height: 1.6; margin: 0; color: var(--text-leise); }
.treffer mark { background: rgba(205, 170, 109, 0.34); color: var(--titel); padding: 0 0.1em; }

/* ---------------------------------------------------------------------- Fusszeile */

.fuss {
  border-top: 1px solid var(--linie);
  background: var(--papier-tief);
  padding: 1.6rem 0;
  font-size: 0.85rem;
  color: var(--text-leise);
}

.fuss p { margin: 0; }

/* ------------------------------------------------------------------ Kleine Geräte */

@media (max-width: 640px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.65rem; }
  .kreisband { height: 84px; }
  .kopf-innen { gap: 0.8rem; }
  .haupt-nav { gap: 1rem; width: 100%; }
  .haupt-nav a { font-size: 0.92rem; }
  main.innen { padding-top: 2rem; padding-bottom: 3.5rem; }
  .blaettern .weiter { margin-left: 0; text-align: left; }
}

@media print {
  .kopf, .kreisband, .haupt-nav, .blaettern, .seiten-inhalt, .rueckweg { display: none; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}
