:root {
  --text: #1a1a1a;
  --muted: #666;
  --accent: #d50663;
  --link: #0645ad;
  --row-even: #ddf;
  --row-odd: #eee;
  --bg: #fff;
}

body {
  max-width: 50rem;
  margin: 0 auto;
  padding: 1rem;
  font: 18px/1.5 sans-serif;
  color: var(--text);
  background: var(--bg);
}

h1 { font-size: 30px; line-height: 1.25; }
h2 { font-size: 22px; margin-top: 2rem; }
h3 { font-size: 18px; }

a { color: var(--link); }
img { max-width: 100%; height: auto; }
pre { font-size: 16px; overflow-x: auto; }
code { white-space: pre-wrap; }
hr { border: 0; border-top: 1px solid #ccc; }

.timestamp { font-size: 12px; text-align: right; color: var(--muted); }

/* Timer seit dem 24.02.2022 (ttimer.js) */
.timer, .tt_text { display: flex; justify-content: left; }
.tt_text { font-size: 2rem; color: var(--accent); font-weight: 500; }
.timer__items { display: flex; font-size: 1.5rem; font-weight: 500; }
.timer__item {
  position: relative;
  min-width: 60px;
  margin: 0 10px;
  padding-bottom: 15px;
  text-align: center;
}
.timer__item::before {
  content: attr(data-title);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 14px;
}
.timer__item:not(:last-child)::after { content: ':'; position: absolute; right: -15px; }

.page-width { width: 100%; height: auto; }

table { padding: 10px 0; border-spacing: 5px; }
td, th { vertical-align: top; padding: 2px 6px; text-align: left; }
tr:nth-child(even) { background: var(--row-even); }
tr:nth-child(odd) { background: var(--row-odd); }

.loewe {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75em;
}
.loewe img { max-width: 40%; }

.otherLogos { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.otherLogos img { max-height: 80px; width: auto; }

/* Kompakter Kopf (Sprachklub): Spruch und Uhr klein rechts oben neben dem Titel */
body.compact header { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; }
body.compact .tt_text { grid-column: 2; grid-row: 1; justify-content: flex-end; font-size: 14px; }
body.compact .timer { grid-column: 2; grid-row: 2; justify-content: flex-end; }
body.compact .timer__items { font-size: 14px; }
body.compact .timer__item { min-width: 30px; margin: 0 6px; padding-bottom: 11px; }
body.compact .timer__item::before { font-size: 10px; }
body.compact .timer__item:not(:last-child)::after { right: -9px; }
body.compact header hr { display: none; }
body.compact h1.title { grid-column: 1; grid-row: 1 / span 2; align-self: center; margin: 0.4em 0; }

/* Lesetext mit Übersetzung (templates/parallel.html):
   parallel = Original 60 % | Übersetzung 40 %, je Abschnitt auf gleicher Höhe */
body:has(.pt) { max-width: 70rem; }
.pt-switch { display: inline-flex; align-items: center; gap: 0.6em; font-size: 15px; color: var(--muted); cursor: pointer; user-select: none; }
.pt-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pt-knob { position: relative; width: 2.6em; height: 1.4em; border-radius: 0.7em; background: #bbb; transition: background 0.15s; }
.pt-knob::after { content: ""; position: absolute; top: 0.15em; left: 0.15em; width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.3); transition: transform 0.15s; }
.pt-switch input:checked + .pt-knob { background: var(--link); }
.pt-switch input:checked + .pt-knob::after { transform: translateX(1.2em); }
.pt-switch input:focus-visible + .pt-knob { outline: 2px solid var(--link); outline-offset: 2px; }
.pt { margin-top: 1rem; }
.pt p { display: grid; grid-template-columns: 3fr 2fr; gap: 0.5em 1.8em; margin: 0 0 1.4em; line-height: 1.65; hyphens: auto; }
.pt-tr { font-size: 0.85em; line-height: 1.6; padding-top: 0.15em; color: var(--muted); }
body:has(#pt-tr:not(:checked)) .pt p { display: block; }
body:has(#pt-tr:not(:checked)) .pt-tr { display: none; }
.pt-note { font-size: 13px; color: var(--muted); }
.pt-vers .pt-de, .pt-vers .pt-tr { white-space: pre-line; hyphens: manual; }
body:has(#pt-tr:not(:checked)) .pt-vers p { display: grid; grid-template-columns: 1fr; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .tt_text { font-size: 1.5rem; }
  table { display: block; overflow-x: auto; }
  body.compact header { grid-template-columns: 1fr; }
  body.compact .tt_text, body.compact .timer { grid-column: 1; }
  body.compact h1.title { grid-column: 1; grid-row: 3; font-size: 24px; }
  .pt p { grid-template-columns: 1fr; gap: 0.2em; }
  .pt-tr { padding-left: 0.8em; border-left: 2px solid #ddd; margin-bottom: 0.5em; }
}
