/* Diskont (softwareondiscount.com). Der Namensraum "dis" haengt ohne Trenner
   am Klassennamen (.kopfdis, .listedis, .satzdis).
   Die Uebersicht stellt die Rubrik in eine eigene linke Spalte, die Beitraege
   stehen rechts daneben. Der Beitrag beginnt mit einem randlosen Banner ueber
   die volle Fensterbreite, die Kapitel stehen als Fliesstextzeile unter den
   Angaben. Einzug 2 Leerzeichen. */

:root {
  --papier: #f4f5f7;
  --weiss: #ffffff;
  --anthrazit: #23242a;
  --graumatt: #70737d;
  --violett: #4b3a78;
  --violetttief: #332552;
  --rand: #dcdee4;
  --lauftext: Tahoma, Verdana, "DejaVu Sans", sans-serif;
  --auszeichnung: "Lucida Bright", "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--anthrazit);
  font-family: var(--lauftext);
  font-size: 1rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--auszeichnung);
  font-weight: 700;
  line-height: 1.26;
  margin: 0 0 0.55em;
  hyphens: auto;
  overflow-wrap: normal;
}

h1 { font-size: 1.95rem; }
h2 { font-size: 1.3rem; margin-top: 1.9em; }
h3 { font-size: 1.08rem; margin-top: 1.45em; }

p { margin: 0 0 1.05em; hyphens: auto; hyphenate-limit-chars: 9 4 4; }

li, dt, dd { hyphens: auto; }

:where(td, th) { overflow-wrap: anywhere; }

a { color: var(--violetttief); }

a:hover { color: var(--violett); }

a:focus-visible { outline: 2px solid var(--violett); outline-offset: 2px; }

.spurdis { width: min(1000px, 100% - 2.5rem); margin-inline: auto; }

.sprungdis {
  position: absolute;
  left: -999px;
  background: var(--violetttief);
  color: var(--weiss);
  padding: 0.6em 1em;
  z-index: 50;
}

.sprungdis:focus { left: 1rem; top: 1rem; }

/* ----------------------------------------------------------------- Kopf */

.kopfdis { background: var(--anthrazit); color: var(--papier); }

.kopfreihedis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding-block: 0.95rem;
}

.markedis {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--papier);
}

.markenwortdis {
  font-family: var(--auszeichnung);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.navdis ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navdis a { font-size: 0.85rem; color: #b9bcc6; text-decoration: none; }

.navdis a:hover { color: var(--weiss); }

.navdis a[aria-current="page"] { color: var(--weiss); font-weight: 700; }

/* --------------------------------------------------- Randloses Banner */

/* figure traegt im Browser 40px Seitenrand, das sprengt ein randloses Banner */
.bannerdis { width: 100%; margin: 0; }

/* ohne Deckelung waere das randlose Banner auf breiten Schirmen fast
   500px hoch und schoebe den Text aus dem ersten Bildschirm */
.bannerdis img {
  aspect-ratio: 3 / 1;
  object-fit: cover;
  width: 100%;
  max-height: 340px;
}

.bannerzeiledis {
  font-size: 0.75rem;
  color: var(--graumatt);
  margin: 0.4rem 0 0;
}

/* ----------------------------------------------------------------- Pfad */

.pfaddis { font-size: 0.77rem; color: var(--graumatt); padding-top: 1.1rem; }

.pfaddis ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pfaddis li + li::before { content: "|"; margin-right: 0.35rem; color: var(--rand); }

.pfaddis a { color: var(--graumatt); text-decoration: none; }

.pfaddis a:hover { color: var(--violetttief); }

/* ----------------------------------------------------------- Uebersicht */

.auftaktdis { padding-block: 2rem 1rem; max-width: 62ch; }

.auftaktdis h1 { font-size: 2rem; }

.auftaktdis p { color: var(--graumatt); font-size: 1.05rem; margin-bottom: 0; }

/* Rubrik links, Beitraege rechts daneben */
.feldblockdis {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.6rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rand);
}

.feldkopfdis { position: sticky; top: 1rem; align-self: start; }

.feldkopfdis h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }

.feldkopfdis p { font-size: 0.86rem; color: var(--graumatt); margin: 0 0 0.6rem; }

.feldkopfdis a { font-size: 0.82rem; text-decoration: none; }

.feldkopfdis a:hover { text-decoration: underline; }

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

.postendis {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dotted var(--rand);
}

.listedis > li:last-child .postendis { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.postendis img { aspect-ratio: 1 / 1; object-fit: cover; }

.postendis h3 { margin: 0 0 0.25rem; font-size: 1.02rem; }

.postendis h3 a { color: var(--anthrazit); text-decoration: none; }

.postendis h3 a:hover { color: var(--violetttief); }

.postendis p { margin: 0; font-size: 0.9rem; color: var(--graumatt); }

.marsdis {
  font-size: 0.74rem;
  color: var(--graumatt);
  margin: 0.35rem 0 0;
}

.hausdis {
  border-top: 1px solid var(--rand);
  padding-block: 1.5rem 2.4rem;
  max-width: 70ch;
}

.leerdis { padding-block: 2.4rem 3rem; max-width: 54ch; }

/* -------------------------------------------------------------- Beitrag */

.beitragdis { padding-top: 1rem; padding-bottom: 2.4rem; max-width: 70ch; }

.rubrikdis {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violetttief);
  font-weight: 700;
  margin: 0 0 0.45rem;
}

.beitragdis h1 { margin: 0 0 0.6rem; }

.angabendis { font-size: 0.79rem; color: var(--graumatt); margin: 0; }

/* Kapitel als eine Fliesstextzeile, kein Kasten und keine Liste */
.kapiteldis {
  font-size: 0.84rem;
  color: var(--graumatt);
  margin: 0.7rem 0 1.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rand);
}

.kapiteldis b { font-weight: 700; color: var(--anthrazit); }

.kapiteldis a { color: var(--graumatt); text-decoration: underline; text-underline-offset: 0.15em; }

.kapiteldis a:hover { color: var(--violetttief); }

.satzdis a { text-decoration: underline; text-underline-offset: 0.15em; }

.satzdis h2:first-child { margin-top: 0; }

.satzdis ul, .satzdis ol { padding-left: 1.3em; }

.satzdis li { margin-bottom: 0.4em; }

.satzdis blockquote {
  border-left: 3px solid var(--violett);
  margin: 1.3em 0;
  padding-left: 1em;
  color: var(--graumatt);
}

.rollendis { overflow-x: auto; margin: 1.3em 0; }

.satzdis table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }

.satzdis th, .satzdis td {
  border: 1px solid var(--rand);
  padding: 0.5em 0.7em;
  text-align: left;
}

.satzdis th { background: var(--weiss); }

.anschlussdis {
  border-top: 1px solid var(--rand);
  padding-top: 1.3rem;
  margin-top: 2.4rem;
}

.anschlussdis h2 { margin: 0 0 0.9rem; font-size: 1.05rem; }

/* ----------------------------------------------------------------- Fuss */

.fussdis {
  background: var(--anthrazit);
  color: #b9bcc6;
  padding-block: 1.7rem 2.2rem;
  font-size: 0.84rem;
}

.fussdis a { color: #b9bcc6; text-decoration: none; }

.fussdis a:hover { color: var(--weiss); }

.fussrasterdis { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.8rem; }
.feldblockdis > *, .postendis > *, .fussrasterdis > * { min-width: 0; }

.fussdis h2 { font-size: 0.86rem; color: var(--weiss); margin: 0 0 0.5em; }

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

.fussdis li { margin-bottom: 0.3em; }

.fussendedis { margin-top: 1.3rem; opacity: 0.85; }

/* ------------------------------------------------------------ Schmalgerät */

@media (max-width: 820px) {
  .feldblockdis { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .feldkopfdis { position: static; }
  .fussrasterdis { grid-template-columns: 1fr; }
  .bannerdis img { aspect-ratio: 2 / 1; }
}

@media (max-width: 540px) {
  .spurdis { width: min(1000px, 100% - 2rem); }
  /* enge Spalte, deshalb kuerzere Trennreste zulassen */
  h2, h3 { hyphenate-limit-chars: 10 4 5; }
  h1 { font-size: 1.52rem; }
  .auftaktdis h1 { font-size: 1.62rem; }
  .postendis { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.8rem; }
  .bannerdis img { aspect-ratio: 3 / 2; }
}
