/* ===== Cards / Box‑Komponenten ===== */
.card,
.topics-list,
.general-topics-list,
.access-section {           /* access-section erbt denselben Grundstil */
  background: var(--clr-light);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(34,48,70,.05);
}

/* ===== Hero‑Bereich ===== */
.hero-image {
  width: 100vw;
  /* Responsive height to reduce perceived cropping */
  min-height: clamp(260px, 50vh, 460px);
  background: center 30%/cover no-repeat url("../images/claudio-testa-qpemSW6_1Z0-unsplash.jpg");
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-image::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.08);
  border-radius: 0 0 24px 24px;
  pointer-events: none;
}

.hero-text {
  position: absolute;
  bottom: 32px;
  left: 48px;
  color: #ffffff;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.25);
  padding: 20px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero-text h1 { 
  font-size: 1.1rem; 
  margin: 0 0 4px 0; 
  color: #ffffff; 
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-text h2 { 
  font-size: 1.3rem; 
  margin: 0 0 8px 0; 
  color: #ffffff; 
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-date {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin: 4px 0 6px 0;
  letter-spacing: 0.3px;
  opacity: 0.95;
}

.hero-text p { 
  font-size: 1rem; 
  margin: 0 0 14px 0; 
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.hero-text .hero-registration-info {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: none;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(34,48,70,.10);
  text-decoration: none;
}

.hero-btn:hover,
.hero-btn:focus { 
  background: #176e62; 
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  color: #ffffff;
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* ===== Bilder im Content ===== */
.main-image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.main-image {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(34,48,70,.10);
  background: var(--clr-bg);
  object-fit: cover;
}

/* ===== Info / Hinweis Box („Under Construction“) ===== */
.info-box {
  background: var(--clr-light);
  border-radius: 12px;
  padding: 18px 28px;
  margin-top: 10px;
  box-shadow: 0 2px 10px rgba(34,48,70,.05);
  color: #7a8a9a;
  font-size: 1.01rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box span { font-size: 1.5em; }

/* ===== Responsive Ergänzungen ===== */
@media (max-width: 1000px) {
  .hero-image { border-radius: 0 0 14px 14px; }
  .hero-text { 
    padding: 16px 20px;
    border-radius: 12px;
  }
  .hero-text h1 { font-size: 1rem; }
  .hero-text h2 { font-size: 1.1rem; }
  .hero-date { font-size: 1rem; }
  .hero-buttons { gap: 8px; }
  .hero-btn { padding: 8px 16px; font-size: 0.9rem; }
}

@media (max-width: 600px) {
  .main-image { max-height: 60vh; object-fit: contain; }
  .hero-image { 
    /* Etwas weniger Gesamthöhe und kein negatives Überlappen */
    min-height: clamp(200px, 38vh, 340px);
    margin-top: 0;
  }
  .hero-text  { 
    left: 14px; 
    right: 14px; /* Mehr seitlicher Rand */
    bottom: 20px; /* Etwas weniger Platz oben/unten insgesamt */
    padding: 12px 16px;
    border-radius: 12px;
    width: auto; /* Entfernt max-width Beschränkung */
  }
  .hero-text h1 { 
    font-size: 0.85rem; 
    margin-bottom: 2px;
  }
  .hero-text h2 { 
    font-size: 0.95rem; 
    line-height: 1.4; /* Mehr Raum zwischen Zeilen */
    margin-bottom: 6px;
    word-wrap: break-word; /* Verhindert Überlauf */
  }
  .hero-date { 
    font-size: 0.8rem; 
    margin: 4px 0 4px 0; 
  }
  .hero-text p  { 
    font-size: 0.75rem; 
    margin-bottom: 6px; 
  }
  .hero-buttons { 
    flex-direction: column; /* Vertikal für mehr Platz */
    gap: 4px; 
  }
  .hero-btn { 
    padding: 6px 10px; 
    font-size: 0.7rem; 
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .hero-text  { 
    left: 10px; 
    right: 10px; /* Etwas mehr Rand auch im kleinsten Format */
    bottom: 20px; /* Mehr Abstand zum Rand */
    padding: 8px 10px;
    border-radius: 10px;
  }
  .hero-text h1 { 
    font-size: 0.75rem; 
    margin-bottom: 1px;
  }
  .hero-text h2 { 
    font-size: 0.85rem; 
    line-height: 1.45; /* Maximaler Raum zwischen Zeilen */
    margin-bottom: 4px;
    word-wrap: break-word;
  }
  .hero-date { 
    font-size: 0.7rem; 
    margin: 3px 0 3px 0;
  }
  .hero-text p  { 
    font-size: 0.65rem; 
    margin-bottom: 4px;
  }
  .hero-buttons { 
    flex-direction: column; 
    gap: 3px; 
  }
  .hero-btn { 
    padding: 5px 8px; 
    font-size: 0.65rem; 
    width: 100%;
  }
}

/* Zentrierter Hauptbereich mit Icon, Titel und Text */
.page-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 30vh;
  text-align: center;
  padding: 24px;
}

.emoji-large {
  font-size: 5rem;
  margin-bottom: 18px;
}

.page-heading {
  margin-bottom: 10px;
  color: #223046;
}

.page-subtext {
  color: #4a5a6a;
  font-size: 1.13rem;
  margin-bottom: 18px;
  max-width: 520px;
}

/* Box mit Icon für "Under construction" */
.notice-box {
  background: #f0f4fa;
  border-radius: 12px;
  padding: 18px 28px;
  margin-top: 10px;
  box-shadow: 0 2px 10px rgba(34,48,70,0.05);
  color: #7a8a9a;
  font-size: 1.01rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Info-Sektion mit Komitees */
.info-section {
  margin: 48px auto 0 auto;
  max-width: 600px;
  padding: 0 24px;
}

.info-box {
  background: #f0f4fa;
  border-radius: 12px;
  padding: 24px 32px;
  box-shadow: 0 2px 10px rgba(34,48,70,0.05);
  margin-bottom: 32px;
}

.info-heading {
  color: #2a3a5a;
  margin-top: 0;
}

.info-list {
  color: #7a8a9a;
  font-size: 1.08rem;
  margin-bottom: 0;
}

/* ===== Chair Lists ===== */
.chair-list {
  color:#7a8a9a;
  font-size:1.08rem;
  margin:0 0 10px 0;
  list-style:disc;
  padding-left:22px;
}

/* ===== E-Mail Links für Chairs ===== */
.chair-list li { position: relative; margin-bottom: 6px; }
.chair-list li:last-child { margin-bottom: 0; }

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  background: rgba(43,179,163,0.10);
  padding: 2px 10px 3px 8px;
  border-radius: 18px;
  line-height: 1.3;
  color: var(--clr-accent);
  text-decoration: none;
  border: 1px solid rgba(43,179,163,0.25);
  transition: background .2s, border-color .2s, color .2s;
}

.email-link::before {
  content: "✉"; /* einfache Icon-Alternative ohne externes Asset */
  font-size: 0.95rem;
  line-height: 1;
}

.email-link:hover,
.email-link:focus {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
  text-decoration: none;
}

@media (max-width:600px){
  .email-link { font-size: 0.85rem; }
}

/* ===== Contact Card ===== */
.contact-card {
  background:#fff;
  border:2px solid #223046;
  border-radius:14px;
  padding:26px 34px 30px;
  box-shadow:0 4px 14px rgba(0,0,0,0.06);
  color:#223046;
  font-size:1.02rem;
  max-width:340px;
  text-align:center;
}

.contact-card img { display:block; margin:0 auto 14px auto; max-width:160px; height:auto; }

.contact-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; font-weight:500; }
.contact-list li { display:flex; align-items:center; gap:8px; justify-content:center; font-size:0.98rem; }
.contact-list a { color:#223046; text-decoration:none; border-bottom:1px solid transparent; transition:color .25s, border-color .25s; }
.contact-list a:hover, .contact-list a:focus { color:#2bb3a3; border-color:#2bb3a3; text-decoration:none; }

/* ===== Utilities ===== */
.mt-4 { margin-top:4px !important; }
.m-0 { margin:0 !important; }

/* ===== Accessibility ===== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus styles for better keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #2bb3a3;
  outline-offset: 2px;
}

/* Cross-browser compatibility */
.program-card,
.workshop-item {
  /* Fallback for older browsers */
  -webkit-box-shadow: 0 2px 12px rgba(34,48,70,.06);
  -moz-box-shadow: 0 2px 12px rgba(34,48,70,.06);
  box-shadow: 0 2px 12px rgba(34,48,70,.06);
  
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  
  /* Safari/WebKit specific */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Performance optimizations */
.program-card:hover,
.workshop-item:hover {
  /* Use GPU acceleration */
  -webkit-transform: translateZ(0) translateY(-2px);
  -moz-transform: translateZ(0) translateY(-2px);
  -ms-transform: translateZ(0) translateY(-2px);
  transform: translateZ(0) translateY(-2px);
}

.workshop-item:hover {
  -webkit-transform: translateZ(0) translateX(4px);
  -moz-transform: translateZ(0) translateX(4px);
  -ms-transform: translateZ(0) translateX(4px);
  transform: translateZ(0) translateX(4px);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .program-card, .workshop-item {
    border: 2px solid #000;
  }
  
  .workshop-link, .cfp-actions a {
    text-decoration: underline;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .program-card, .workshop-item {
    transition: none;
  }
  
  .program-card:hover, .workshop-item:hover {
    transform: none;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
  }
}

/* Print styles */
@media print {
  .program-card, .workshop-item {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  
  .program-title, .workshop-item h3 {
    page-break-after: avoid;
  }
}

/* ===== Committees Page (inline style extraction) ===== */
.committee-section { margin:48px auto 0 auto; max-width:600px; }
.committee-box { background: var(--clr-light); border-radius:12px; padding:24px 32px; box-shadow:0 2px 10px rgba(34,48,70,0.05); margin-bottom:32px; }
.chair-contact { margin:4px 0 0 0; font-size:.95rem; color:#556575; }

/* ===== Workshops Page ===== */
.workshops-section {
  margin: 32px auto 0;
  max-width: 700px;
  padding: 0 20px;
}

.workshops-list { 
  margin-top: 0;
}

.workshop-item { 
  background: var(--clr-light); 
  border-radius: 12px; 
  padding: 24px 28px; 
  margin-bottom: 16px; 
  box-shadow: 0 2px 12px rgba(34,48,70,.06); 
  border-left: 4px solid #2bb3a3;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  will-change: transform;
}

.workshop-item:hover { 
  box-shadow: 0 4px 20px rgba(34,48,70,.1); 
  transform: translateX(4px);
}

.workshop-item h3 { 
  margin: 0; 
  color: #223046; 
  font-size: 1.1rem; 
  font-weight: 600;
  line-height: 1.4;
}

.submission-note { 
  margin: 8px 0 0 0; 
  color: #2bb3a3; 
  font-size: 0.9rem; 
  font-weight: 500;
  font-style: italic;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .workshops-section {
    padding: 0 16px;
  }
  
  .workshop-item {
    padding: 20px 24px;
  }
  
  .workshop-item h3 {
    font-size: 1.05rem;
  }
}

/* ===== Program Page ===== */
.program-section {
  margin: 32px auto 0;
  max-width: 800px;
  padding: 0 20px;
}

.program-card {
  background: var(--clr-light);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(34,48,70,.06);
  border-left: 4px solid #556575;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  will-change: transform;
}

.program-card:hover {
  box-shadow: 0 4px 20px rgba(34,48,70,.1);
  transform: translateY(-2px);
}

.program-card.main-event {
  border-left-color: #2bb3a3;
  background: linear-gradient(135deg, rgba(43,179,163,.02) 0%, rgba(43,179,163,.05) 100%);
}

.program-title {
  margin: 0 0 12px 0;
  color: #223046;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.event-dates {
  color: #2bb3a3;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
  display: block;
}

.event-description {
  margin: 0;
  color: #556575;
  font-size: 1rem;
  line-height: 1.6;
}

.program-status {
  margin: 0;
  color: #7a8a9a;
  font-size: 1rem;
  font-style: italic;
}

.workshop-link {
  color: #2bb3a3;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.workshop-link:hover,
.workshop-link:focus {
  color: #249085;
  border-bottom-color: #249085;
}

/* ===== Speaker Section ===== */
.speakers-section {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 24px;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.speaker-card {
  background: var(--clr-light);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(34, 48, 70, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(34, 48, 70, 0.06);
}

.speaker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(34, 48, 70, 0.12);
}

.speaker-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

/* Speaker photo and media wrapper */
.speaker-media {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.speaker-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 18px rgba(34,48,70,0.12);
  border: 3px solid rgba(255,255,255,0.9);
}

/* Modifier: shift image upward within the frame so forehead is visible */
.speaker-photo--focus-top {
  /* moved further down so forehead / hair are fully visible */
  object-position: center 10%;
}

.speaker-affiliation {
  font-size: 1.1rem;
  color: #2bb3a3;
  font-weight: 500;
  margin: 0 0 20px 0;
}

.speaker-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: #556575;
  margin: 0 0 20px 0;
  text-align: justify;
}

.speaker-details {
  padding-top: 16px;
  border-top: 1px solid rgba(34, 48, 70, 0.1);
}

.speaker-details p {
  margin: 0;
  font-size: 0.95rem;
  color: #7a8a9a;
}

.speaker-details strong {
  color: var(--clr-primary);
}

.speakers-note {
  text-align: center;
  padding: 24px;
  background: rgba(43, 179, 163, 0.05);
  border-radius: 12px;
  border-left: 4px solid #2bb3a3;
}

.speakers-note p {
  margin: 0;
  color: #556575;
  font-size: 1rem;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .program-section {
    padding: 0 16px;
  }
  
  .program-card {
    padding: 24px 20px;
  }
  
  .program-title {
    font-size: 1.15rem;
  }
  
  .speakers-section {
    padding: 0 16px;
    margin: 32px auto;
  }
  
  .speakers-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .speaker-card {
    padding: 24px 20px;
  }
  
  .speaker-name {
    font-size: 1.3rem;
  }
  
  .speaker-affiliation {
    font-size: 1rem;
  }
}



