/* Event-Vorlage D3 (Etappe E4, 26.11.2026): Aufbau der Event-Seiten aus werkzeug/events/vorlage-event-d3.html, EN und RU.
 * Aus dem freigegebenen Entwurf d3.css uebernommen; ohne KI-Etikett (D12). Ruhig, wie die Live-Seite: nur Variablen aus styles.css
 * (--text, --text-soft, --line, --surface, --brand-indigo, --brand-teal, --radius-*, --shadow-soft). Klassen: ev3-. Nicht geschuetzte Datei. */
.ev3 main { overflow-x: clip; }
.ev3 [id] { scroll-margin-top: 100px; }
.ev3 p { margin: 0; }

.ev3-sec { padding: 30px 0; }
.ev3-col { max-width: 860px; margin: 0 auto; }
.ev3-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 20px; }
.ev3 .ev3-h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; text-align: left; max-width: none; width: auto; margin: 0; }
.ev3 .ev3-h3 { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-indigo); margin: 0 0 12px; }
.ev3 .ev3-h3-not { margin-top: 26px; color: var(--brand-steel); }

/* Kopf: kommt aus den Live-Klassen (event-hero-*); nur Abstand nach dem Beschreibungstext */
.ev3-lead { max-width: 60ch; text-align: center; font-size: 1.05rem; line-height: 1.7; color: var(--text-soft); }

/* Listen */
.ev3-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev3-list li { position: relative; padding-left: 32px; line-height: 1.55; color: var(--text); }
.ev3-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-indigo), var(--brand-teal)); }
.ev3-list li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.ev3-list-no li::before { background: var(--brand-steel); }
.ev3-list-no li::after { left: 5px; top: 11px; width: 10px; height: 2px; border: 0; background: #fff; transform: none; }

/* Fuer wen + Foto: zwei gleich breite Spalten */
.ev3-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.ev3-photo { margin: 0; }
.ev3-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }

/* Was Sie bekommen: nummerierte Liste 01 bis 05, kleine Ziffern */
.ev3-gain { list-style: none; margin: 0; padding: 0; counter-reset: g; border-top: 1px solid var(--line); }
.ev3-gain li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); counter-increment: g; color: var(--text); line-height: 1.55; }
.ev3-gain li::before { content: counter(g, decimal-leading-zero); font-weight: 700; font-size: 1.15rem; color: var(--brand-teal); font-variant-numeric: tabular-nums; }

/* Programm: dunkelblauer Kasten, gerader Rand */

/* Sprecher: schlichte Karten wie in D */
.ev3-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); padding: 24px 26px; }
.ev3-speakers { display: grid; gap: 14px; }
.ev3 .ev3-card h3 { font-size: 1.2rem; line-height: 1.2; margin-bottom: 8px; }
.ev3-card p { color: var(--text-soft); line-height: 1.65; }

/* Sonderblock: schlicht */
.ev3-special h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12; text-align: left; max-width: none; margin-bottom: 10px; }
.ev3-special p + p, .ev3-special .ev3-actions { margin-top: 18px; }
.ev3-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ wie in D */
.ev3-faq { display: grid; gap: 10px; }
.ev3-faq details { border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.92); padding: 0 18px; }
.ev3-faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; line-height: 1.4; list-style: none; position: relative; min-height: 44px; }
.ev3-faq summary::-webkit-details-marker { display: none; }
.ev3-faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--brand-indigo); line-height: 1; }
.ev3-faq details[open] summary::after { content: "\2212"; }
.ev3-faq details > div { padding: 0 0 16px; }
.ev3-faq details > div p { font-size: 0.97rem; color: var(--text-soft); line-height: 1.65; }

/* Schluss-Banner am Seitenende, nach dem FAQ (27.11.2026 nachmittags; ersetzt "Ready to join us?"): Karte der alten Event-Seiten
 * (cta-panel/event-final-cta aus styles.css), Eyebrow + Ueberschrift links, zwei Knoepfe rechts. Hier nur Abstand und Handy:
 * dort untereinander, Knoepfe volle Breite und mindestens 52 px hoch. */
.ev3-final-sec { padding: 30px 0 56px; }
.ev3 .event-final-cta .eyebrow { margin: 0 0 10px; }
.ev3 .event-final-cta h2 { margin: 0; }
.ev3 .event-final-cta-actions { flex-wrap: nowrap; flex-shrink: 0; }
.ev3 .event-final-cta-actions .button { white-space: nowrap; }
@media (max-width: 899px) {
  .ev3-sec { padding: 22px 0; }
  .ev3-who { grid-template-columns: 1fr; gap: 24px; }
  .ev3-gain li { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .ev3-card { padding: 20px 18px; }
  .ev3-final-sec { padding: 22px 0 40px; }
  .ev3 .event-final-cta { flex-direction: column; align-items: stretch; gap: 20px; }
  .ev3 .event-final-cta-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
  .ev3 .event-final-cta-actions .button { width: 100%; min-width: 0; min-height: 52px; margin: 0; justify-content: center; }
}

/* Kopfbereich: nur der Leerraum unter den Knoepfen wird verkuerzt (Schrift und Groessen bleiben die der Live-Seite) */
.ev3 .event-hero-shell { min-height: 0; padding: 44px 0 20px; }
.ev3 .event-hero-main { gap: 16px; }
@media (max-width: 899px) { .ev3 .event-hero-shell { padding: 22px 0 10px; } }

/* Handy: live bricht "рекомендации" mitten im Wort um (Titelgroesse 3.6rem zu gross fuer 390 px); hier etwas kleiner, Desktop bleibt wie live */
@media (max-width: 899px) { .ev3 .event-hero-title { font-size: clamp(2rem, 9vw, 2.7rem); } }
@media (max-width: 899px) { .ev3 .event-hero-title { width: 100%; max-width: 100%; } .ev3 .event-hero-title-line { overflow-wrap: normal; white-space: normal; } }

/* Programm und Ticket: Optik und Aufbau der frueheren Event-Seiten (Klassen aus styles.css); nur die Groesse der Ueberschrift wie die uebrigen Abschnitte dieser Seite */
.ev3 .event-theme-card > h2, .ev3 .event-pricing-card > h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }

/* Foto neben "Fuer wen": Rahmen fuer das KI-Bildzeichen (nur wenn das Bild als KI-Bild markiert ist); ohne Listen steht das Foto allein */
.ev3-photo { position: relative; }
.ev3-who-single { grid-template-columns: minmax(0, 520px); justify-content: center; }

/* Handy-Feinschliff (D3, 26.11.2026; Layout/Groessen, keine Texte): Kennzeilen und Kleinstschrift mindestens 14 px, Chips nebeneinander statt
 * je eine volle Zeile (live-Regel `.event-detail-meta span { width: 100% }` aus styles.css gilt nur fuer die alten Seiten). */
@media (max-width: 899px) {
  .ev3 .event-hero-meta { gap: 8px; }
  .ev3 .event-hero-meta span { width: auto; max-width: 100%; font-size: 0.875rem; padding: 8px 12px; white-space: normal; }
  .ev3 .ev3-h3 { font-size: 0.875rem; }
}

/* Einleitung "About ..." (26.11.2026, Nachbesserung B): Absaetze mit Abstand, schmale Zeile (ca. 68 Zeichen), erster Absatz etwas groesser,
 * Zwischenueberschrift (**fett** allein) klein wie die Zwischenueberschriften in "Fuer wen", Listen in Haken-Optik. */
.ev3 .ev3-about .mini-label { margin: 0 0 10px; }
.ev3 .ev3-about .ev3-h2 { margin-bottom: 22px; }
.ev3-prose { max-width: 68ch; }
.ev3-prose p { font-size: 1.05rem; line-height: 1.75; color: var(--text-soft); }
.ev3 .ev3-prose > * + * { margin-top: 1.1em; }
.ev3-prose > p:first-child { font-size: 1.2rem; line-height: 1.6; color: var(--text); }
.ev3 .ev3-prose > h3 { margin: 1.9em 0 12px; }
.ev3 .ev3-prose > h3 + * { margin-top: 0; }
.ev3-prose .ev3-list li { font-size: 1.05rem; line-height: 1.6; }

/* Listen in Fliesstext-Bloecken (Sprecher, Sonderblock, FAQ) */
.ev3 .ev3-card p + p, .ev3 .ev3-card p + ul, .ev3 .ev3-card ul + p, .ev3 .ev3-special p + ul, .ev3 .ev3-special ul + p { margin-top: 12px; }
.ev3 .ev3-faq details > div > * + * { margin-top: 12px; }
.ev3-faq .ev3-list li { font-size: 0.97rem; line-height: 1.6; }

@media (max-width: 899px) {
  .ev3-prose p { font-size: 1rem; }
  .ev3-prose > p:first-child { font-size: 1.1rem; }
}

/* About (27.11.2026): direkt unter dem Kopf zweispaltig, Text links, Foto rechts; Handy: erst Text, dann Foto. Das Foto fuellt die Hoehe des
 * Textblocks (nie hoeher wirken als der Text: absolut positioniert, object-fit cover, min/max-Hoehe), auf dem Handy 4:3. */
.ev3-about-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: stretch; }
.ev3-about-text { align-self: center; min-width: 0; }
.ev3-about-split .ev3-photo { min-height: 300px; max-height: 560px; }
.ev3-about-split .ev3-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.ev3-about-split .ev3-photo .ai-badge { z-index: 1; }
.ev3 .ev3-about .ev3-h2 { max-width: none; }
.ev3-who-text { grid-template-columns: minmax(0, 860px); justify-content: center; }

/* About 1: grosser Satz (intro.lead) + beschriftete Zeilen (intro.points, bis 4) */
.ev3 .a1-lead { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.38; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin: 0 0 26px; max-width: 30ch; }
.a1-rows { margin: 0; border-top: 1px solid var(--line); }
.a1-rows > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.a1-rows dt { margin: 0; padding-top: 4px; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700; color: var(--brand-indigo); line-height: 1.4; overflow-wrap: anywhere; }
.a1-rows dd { margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--text-soft); }
@media (max-width: 899px) {
  .ev3-about-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ev3-about-split .ev3-photo { min-height: 0; max-height: none; aspect-ratio: 4 / 3; }
  .ev3 .a1-lead { max-width: none; }
  .a1-rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
  .a1-rows dt { padding: 0; font-size: 0.875rem; }
}

/* Programm ("Flow of the event"): live ist die Spalte auf 24 Zeichen (Titel) und 44 rem begrenzt, rechts bleibt der Kasten leer. Hier volle Kastenbreite:
 * auf dem Desktop (1440) hoechstens zwei Zeilen je Punkt. Die Texte kommen aus dem Admin und werden nicht gekuerzt. */
.ev3 .event-theme-copy { max-width: none; }
.ev3 .event-theme-copy h3 { max-width: none; text-wrap: pretty; }
.ev3 .event-theme-copy p { max-width: none; }
/* Kasten "Important" (Alex 27.11.2026): Ueberschrift und Intro oben, darunter die Punkte als gleich hohe Karten im roten Stil aus styles.css.
 * Spalten nach Anzahl (Generator: ev3-alert-n1/2/3): Desktop 1 = volle Breite, 2 = halbe, 3 = Drittel; Tablet 2 Spalten (dritte Karte ueber die
 * volle Breite); Handy untereinander. ".ev3 p { margin: 0 }" oben nahm dem Intro den Abstand zu den Karten, hier zurueck. */
.ev3 .event-alert-intro { margin: 0 0 26px; max-width: 64ch; }
.ev3 .ev3-alert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.ev3 .ev3-alert-grid.ev3-alert-n1 { grid-template-columns: minmax(0, 1fr); }
.ev3 .ev3-alert-grid.ev3-alert-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ev3 .ev3-alert-grid .event-alert-item { display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 20px 20px 18px; }
.ev3 .ev3-alert-grid .event-alert-item strong { overflow-wrap: anywhere; }
.ev3 .ev3-alert-grid.ev3-alert-n1 .event-alert-item p { max-width: 64ch; }
@media (max-width: 980px) {
  .ev3 .ev3-alert-grid.ev3-alert-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev3 .ev3-alert-grid.ev3-alert-n3 .event-alert-item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ev3 .ev3-alert-grid.ev3-alert-n2,
  .ev3 .ev3-alert-grid.ev3-alert-n3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ev3 .ev3-alert-grid.ev3-alert-n3 .event-alert-item:last-child { grid-column: auto; }
  .ev3 .event-alert-intro { margin-bottom: 20px; }
  .ev3 .event-alert-card { padding: 0; }            /* styles.css (GITEX, <=980px) polstert den Artikel zusaetzlich zur Flaeche: auf dem Handy zu schmal */
  .ev3 .event-alert-face { padding: 24px 18px 20px; }
  .ev3 .ev3-alert-grid .event-alert-item { padding: 16px 16px 14px; }
}
