/* Workshop-Bereich Toastmasters Tag 2026 – gemeinsame Darstellung für
   index.html und test.html. Beide Seiten laden diese Datei, damit die
   Testseite wirklich dasselbe zeigt wie die Hauptseite und nicht etwas,
   das ihr nur ähnelt.

   Die Farbtokens (--blue, --gold, --ink-soft …) kommen von der Hostseite;
   hier wird keines davon definiert. */


/* ===== CONTROLS (Suche / Filter / Sortierung) ===== */
.ws2026 .controls {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; display: grid; gap: 12px;
  grid-template-columns: minmax(280px, 1.6fr) minmax(160px, 1fr);
  box-shadow: 0 6px 18px rgba(0,65,101,0.06);
  /* Die Hostseite sagt, wie hoch ihre klebende Navigation ist */
  position: sticky; top: var(--ws-sticky-top, 0px); z-index: 20;
}
.ws2026 .field { display: flex; flex-direction: column; gap: 5px; }
.ws2026 .field label, .ws2026 .field .l-sort {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft);
}
.ws2026 .sort-switch {
  display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff;
}
.ws2026 .sort-btn {
  flex: 1; font: inherit; font-size: 0.88rem; font-weight: 700; white-space: nowrap;
  padding: 10px 12px; border: 0; background: none; color: var(--blue); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ws2026 .sort-btn + .sort-btn { border-left: 1px solid var(--line); }
.ws2026 .sort-btn:hover { background: #f3f8fb; }
.ws2026 .sort-btn[aria-pressed="true"] { background: var(--blue); color: #fff; }
.ws2026 .sort-btn:focus-visible { outline: 3px solid var(--blue-light); outline-offset: -3px; }

.ws2026 .field select {
  font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%;
}
.field input:focus-visible, .field select:focus-visible,
.ws2026 .more-btn:focus-visible, .ws2026 .chip:focus-visible {
  outline: 3px solid var(--blue-light); outline-offset: 2px;
}

.ws2026 .result-line {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 16px 2px 22px; font-size: 0.9rem; color: var(--ink-soft);
}
.ws2026 .result-line strong { color: var(--blue); }
.ws2026 .chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 20px;
  padding: 3px 10px 3px 12px; font: inherit; font-size: 0.82rem; color: var(--blue);
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
}
.ws2026 .chip:hover { border-color: var(--blue-light); }
.ws2026 .chip span { color: var(--ink-soft); font-weight: 700; }


/* ===== WORKSHOP-KARTEN =====
   Grosse Karten nebeneinander wie 2025. Die Textbloecke haben bewusst KEINE
   reservierte Mindesthoehe mehr: ein kurzer Workshoptitel soll die
   Beschreibung nach oben ziehen statt eine Luecke stehen zu lassen. Die
   Karten einer Reihe sind dadurch unterschiedlich hoch - so gewollt.
   align-items:start – so waechst beim Aufklappen nur die eine Karte und
   reisst nicht die Nachbarkarte mit in die Hoehe. */
.ws2026 .cards {
  display: grid; gap: 26px; align-items: start;
  grid-template-columns: 1fr;
}
.ws2026 .ws {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; scroll-margin-top: 110px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ws2026 .ws:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,65,101,0.12); }
.ws2026 .ws.flash { box-shadow: 0 0 0 3px var(--gold); }
/* Ein hervorgehobener Auftritt: gleiche Karte, gleiches Raster, nur ein roter
   Rahmen. Mehr Unterschied waere wieder eine Sonderflaeche - und genau die
   sollte weg. */
.ws2026 .ws.featured {
  border: 2px solid var(--red);
  box-shadow: 0 6px 18px rgba(119,36,50,0.14);
}
.ws2026 .ws.featured:hover { box-shadow: 0 12px 28px rgba(119,36,50,0.22); }

/* Festes Seitenverhaeltnis statt fester Hoehe. Mit 240px war der Ausschnitt
   von der Kartenbreite abhaengig: bei zwei Spalten (760-1240px) sind die
   Karten breit, das Foto blieb flach - und schnitt mitten durchs Gesicht.
   1:1, weil die Dateien quadratisch sind: so zeigt die Karte das ganze Bild
   und schneidet nichts weg. Mehrere Quellfotos sind so eng aufgenommen, dass
   die Schaedeldecke schon im Original fehlt - jeder weitere Beschnitt hier
   wuerde das nur verstaerken. */
.ws2026 .ws-photo {
  aspect-ratio: 1 / 1; flex-shrink: 0; overflow: hidden; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
/* Fallback fuer Browser ohne aspect-ratio - dort bleibt es bei der alten
   festen Hoehe, das ist schlechter, aber nicht kaputt. */
@supports not (aspect-ratio: 1 / 1) {
  .ws2026 .ws-photo { height: 240px; }
}
.ws2026 .ws-photo img.mirrored { transform: scaleX(-1); }
.ws2026 .ws-photo img {
  width: 100%; height: 100%; object-fit: cover;
  /* Oben verankert, weil Gesichter im oberen Bilddrittel sitzen */
  object-position: center top;
}
.ws2026 .ws-photo .initials {
  font-size: 3.4rem; font-weight: 800; color: rgba(255,255,255,0.92); letter-spacing: 2px;
}

.ws2026 .ws-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex-grow: 1; }
/* Wie 2025: der Name traegt die Karte, der Workshoptitel steht darunter in
   Rot. Gekappt wird nur die Laenge (zwei Zeilen Name, drei Zeilen Titel) -
   ohne Mindesthoehe, damit ein kurzer Titel die Beschreibung mit nach oben
   nimmt. */
.ws2026 .ws-name {
  font-size: 1.35rem; font-weight: 800; color: var(--blue); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws2026 .ws-title {
  font-size: 1.06rem; font-weight: 700; color: var(--red); line-height: 1.4; margin-top: 7px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws2026 .ws.expanded .ws-name,
.ws2026 .ws.expanded .ws-title { -webkit-line-clamp: unset; }
/* Platzhalter statt Titel: gedaempft und kursiv, damit niemand "Das Thema
   geben wir in Kuerze bekannt." fuer den Workshoptitel haelt. */
.ws2026 .ws-title.tba { color: var(--ink-soft); font-weight: 600; font-style: italic; }
/* Sprache und Klub stehen in einer Zeile, linksbuendig. Sind es zwei Klubs,
   nimmt die Zeile die naechste mit, statt die Karte breit zu ziehen. */
.ws2026 .badges {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px;
  margin-top: 10px; align-content: flex-start; text-align: left;
}
.ws2026 .badge { white-space: nowrap; }
.ws2026 .badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.4px;
  padding: 3px 9px; border-radius: 20px; background: #eef3f6; color: var(--blue-mid);
  /* Feste Zeilenhoehe statt der geerbten: sonst ist das Badge auf index.html
     hoeher als auf test.html, und die reservierten zwei Zeilen passen nicht. */
  line-height: 18px;
}
.ws2026 .badge.gold { background: #fbf4d4; color: #7a6417; }
.ws2026 .badge.club {
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  font-weight: 600; white-space: normal;
}

.ws2026 .teaser {
  color: var(--ink-soft); font-size: 0.97rem; margin-top: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws2026 .details { display: none; margin-top: 14px; }
.ws2026 .ws.expanded .details { display: block; }
.ws2026 .ws.expanded .teaser { display: none; }
.ws2026 .details p { color: var(--ink-soft); font-size: 0.97rem; }
.ws2026 .details p + p { margin-top: 12px; }
.ws2026 .details h4 {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--blue); margin: 20px 0 8px;
}
.ws2026 .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ws2026 .links a {
  font-size: 0.86rem; font-weight: 700; color: var(--blue); text-decoration: none;
  border: 1px solid var(--line); border-radius: 7px; padding: 7px 13px;
}
.ws2026 .links a:hover { border-color: var(--blue-light); background: #f3f8fb; }
.ws2026 .more-btn {
  /* margin-top:auto haelt die Buttons auf einer Linie, auch wenn ein Titel
     kuerzer umbricht als der daneben */
  margin-top: auto; align-self: flex-start;
  background: var(--blue); color: #fff; border: 0; border-radius: 7px;
  font: inherit; font-size: 0.93rem; font-weight: 700; padding: 11px 22px; cursor: pointer;
  transition: background .2s ease;
}
.ws2026 .more-btn:hover { background: #00567f; }

/* Die Linkzeile am Kartenfuss ist 2025-Stil: immer sichtbar, nicht erst nach
   dem Aufklappen. Sie wird nicht mehr auf jeder Karte reserviert - seit die
   Karten unterschiedlich hoch sein duerfen, waere das nur ein leerer Streifen
   unter den Karten ohne Adresse. */
.ws2026 .ws-links { display: none; }
.ws2026 .ws-links:not(:empty) {
  display: flex; justify-content: flex-start; gap: 18px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 14px;
  border-top: 2px solid rgba(0,65,101,0.1);
}
.ws2026 .ws-links a {
  font-size: 0.9rem; font-weight: 700; color: var(--blue); text-decoration: none;
  transition: color .3s ease;
}
.ws2026 .ws-links a:hover { color: var(--red); text-decoration: underline; }
.ws2026 .ws-body > .more-btn { margin-top: 18px; }
.ws-body > .teaser + .more-btn,
.ws2026 .ws-body > .details + .more-btn { margin-top: 18px; }

@media (min-width: 760px)  { .ws2026 .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1240px) { .ws2026 .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1560px) { .ws2026 .cards { grid-template-columns: repeat(4, 1fr); } }


.ws2026 .empty, .ws2026 .loading {
  text-align: center; padding: 50px 20px; color: var(--ink-soft);
  background: var(--surface); border: 1px dashed var(--line); border-radius: 14px;
}
.ws2026 .empty strong { display: block; color: var(--blue); font-size: 1.1rem; margin-bottom: 6px; }


@media (max-width: 860px) {
  .ws2026 .controls { grid-template-columns: 1fr 1fr; position: static; }
}
@media (max-width: 560px) {
  .ws2026 .controls { grid-template-columns: 1fr; }
  .ws2026 .ws-body { padding: 18px 20px 20px; }
  .ws2026 .more-btn { width: 100%; align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .ws2026 * { transition: none !important; }
}

/* ===== KEYNOTE =====
   Bewusst keine Karte wie die Workshops, sondern eine breite Flaeche in
   Dunkelblau: Sie steht unter dem Raster und soll nicht als eines von
   vielen gleichwertigen Angeboten gelesen werden. */
.ws2026 .keynotes { display: grid; gap: 20px; margin-top: 44px; }
.ws2026 .keynote {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: #fff; border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 300px 1fr;
  box-shadow: 0 16px 40px rgba(0,65,101,0.28);
}
.ws2026 .keynote .k-photo { position: relative; min-height: 320px; background: var(--blue); }
.ws2026 .keynote .k-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.ws2026 .keynote .k-photo .initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; font-weight: 800; color: rgba(255,255,255,0.9);
}
.ws2026 .keynote .k-body { padding: 34px 38px; display: flex; flex-direction: column; }
.ws2026 .keynote .k-kicker {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--gold); color: var(--blue-dark);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 13px; border-radius: 3px; margin-bottom: 14px;
}
.ws2026 .keynote h3 {
  font-size: 1.9rem; font-weight: 800; line-height: 1.22; color: #fff; margin-bottom: 12px;
}
.ws2026 .keynote .k-by { font-size: 1.05rem; font-weight: 700; color: var(--gold); }
/* Das Sprach-Badge sitzt neben dem Namen, wenn der Name die Ueberschrift ist */
.ws2026 .keynote h3 .badge.lang { vertical-align: middle; margin-left: 10px; }
.ws2026 .keynote .k-text { margin-top: 16px; color: rgba(255,255,255,0.85); font-size: 1rem; }
.ws2026 .keynote .k-text p + p { margin-top: 12px; }
.ws2026 .keynote .k-details { display: none; }
.ws2026 .keynote.expanded .k-details { display: block; }
.ws2026 .keynote.expanded .k-teaser { display: none; }
.ws2026 .keynote .k-teaser {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ws2026 .keynote .more-btn {
  margin-top: 20px; align-self: flex-start;
  background: var(--gold); color: var(--blue-dark);
}
.ws2026 .keynote .more-btn:hover { background: #f7e89a; }
.ws2026 .keynote .links a { color: var(--gold); border-color: rgba(255,255,255,0.3); }
.ws2026 .keynote .links a:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); }

/* Sprach-Kennzeichnung: bei 6 deutschen und 7 englischen Workshops ist das
   die erste Frage, die Teilnehmende stellen. */
.ws2026 .badge.lang { background: var(--blue); color: #fff; }

@media (max-width: 860px) {
  .ws2026 .keynote { grid-template-columns: 1fr; }
  .ws2026 .keynote .k-photo { min-height: 260px; }
  .ws2026 .keynote .k-body { padding: 26px 24px; }
  .ws2026 .keynote h3 { font-size: 1.5rem; }
}
