/* Gemeinsames Stylesheet für qualizirkel-wt.de und sucht.qualizirkel-wt.de
   (bei Änderungen in beiden Projekten aktualisieren) */

/* Schrift: auf Apple-Geräten die Systemschrift (SF Pro),
   sonst Inter – lokal eingebunden, keine Verbindung zu externen Servern */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-var.woff2') format('woff2');
}

:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --bg-soft: #f5f5f7;
  --accent: #1f7a4d;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter',
          'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter',
          'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body {
  background: #fff;
}

html {
  height: 100%;
}

body {
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  margin: 0;
  min-height: 100%;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

.w {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

/* Kopf */
header {
  margin-bottom: 3rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

.sub {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}

/* Abschnittsüberschriften */
h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 3.5rem 0 1.25rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.017em;
  margin: 0 0 0.6rem;
}

p {
  margin: 1rem 0;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

li {
  margin: 0.35rem 0;
}

.hint {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Quartals-Karten */
.quartal {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 1.1rem 1.3rem 1.2rem;
  margin: 0.8rem 0;
}

.quartal .q {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.25rem;
}

.quartal.muted .q,
.quartal.muted h3 {
  color: var(--muted);
}

.quartal.muted h3 {
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  margin-left: 0.3rem;
  vertical-align: 0.15em;
  white-space: nowrap;
}

.dates li {
  display: grid;
  grid-template-columns: 8.2rem 5.2rem 1fr;
  gap: 0.5rem;
  font-size: 0.97rem;
  font-variant-numeric: tabular-nums;
  margin: 0.25rem 0;
}

.dates .d {
  font-weight: 600;
}

.dates .t,
.dates .o {
  color: var(--muted);
}

.folgt {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* Vergangene Termine (aufklappbar) */
.archiv {
  margin: 3rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: '›';
  display: inline-block;
  width: 1rem;
  transition: transform 0.2s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

summary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jahr {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}

.past li {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0.6rem 0;
}

.past b {
  color: var(--text);
  font-weight: 500;
}

/* Listen mit Aufzählungszeichen im Fließtext (z. B. Ziele) */
ul.bullets,
main > ul:not([class]) {
  padding-left: 1.2rem;
  list-style: disc;
}

main > ul:not([class]) li::marker {
  color: var(--accent);
}

/* Einzeltermine (Sucht-QZ) */
.termin {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  margin: 0.8rem 0;
}

.termin p {
  margin: 0.2rem 0;
}

.termin .datum {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.platzhalter {
  color: var(--muted);
}

/* Programm-Tabelle (Sucht-QZ) */
.programm {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.programm td {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.programm td.zeit {
  width: 4rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.programm .wer {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

details:not(.archiv) {
  margin: 1rem 0;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

/* Fuß */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

footer p {
  margin: 0.3rem 0;
}

@media (max-width: 520px) {
  .w { padding: 3rem 1.25rem; }
  h1 { font-size: 2rem; }
  .sub { font-size: 1.05rem; }
  .dates li {
    grid-template-columns: auto 1fr;
    gap: 0 0.6rem;
  }
  .dates .o { grid-column: 1 / -1; }
}
