/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ==========================================
   GOOGLE FONTS
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================
   DESIGN TOKENS
========================================== */
:root {
  --nd-navy:        #1A2744;
  --nd-navy-dark:   #111e38;
  --nd-gold:        #C9A84C;
  --nd-gold-lt:     #e8d5a0;
  --nd-white:       #ffffff;
  --nd-offwhite:    #f6f7f9;
  --nd-gray:        #4A5568;
  --nd-gray-lt:     #9aaab8;
  --nd-border:      #e2e8f0;
  --nd-radius:      10px;
  --nd-shadow-card: 0 4px 24px rgba(26,39,68,.10);
  --nd-shadow-hover:0 16px 48px rgba(26,39,68,.22);
}

/* ==========================================
   BASE BODY (Elementor-safe)
========================================== */
body {
  font-family: 'Inter', sans-serif;
  background: var(--nd-offwhite);
  color: var(--nd-navy);
  line-height: 1.65;
}

/* ==========================================
   SECTION LABEL / TITLE HELPERS
   (used inside Elementor text widgets)
========================================== */
.nd-sec-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--nd-gold);
  margin-bottom: 8px;
}

.nd-sec-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--nd-navy);
  line-height: 1.2;
  margin-bottom: 40px;
}

/* ==========================================
   VERANSTALTUNGEN – TIMELINE
========================================== */

/* Wrapper shortcode renders into */
.nd-events-timeline-wrap {
  max-width: 860px;
  margin: 0 auto;
}

/* ── Filter bar ── */
.timeline-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.timeline-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-filter-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nd-gray-lt);
  white-space: nowrap;
  min-width: 90px;
}

.timeline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 100px;
  border: 2px solid var(--nd-border);
  background: var(--nd-white);
  color: var(--nd-gray);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  line-height: 1;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--nd-navy);
  border-color: var(--nd-navy);
  color: var(--nd-white);
}

/* ── Section wrappers ── */
.nd-events-section {
  margin-bottom: 16px;
}

/* ── Timeline track (vertical line) ── */
.nd-events-timeline {
  position: relative;
  padding-left: 48px;
}

.nd-events-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--nd-navy);
}

.nd-events-section:first-child .nd-events-timeline::before {
  background: linear-gradient(to bottom, var(--nd-gold) 0%, var(--nd-gold) 100%);
}

/* ── Divider row (Bevorstehend / Vergangen label) ── */
.nd-events-divider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 28px;
  padding-left: 48px;
}

.nd-events-divider__dot {
  position: absolute;
  left: -1px; /* relative to padding-left of track – aligns on the line */
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.nd-events-divider__dot.upcoming {
  background: var(--nd-gold);
  box-shadow: 0 0 0 5px rgba(201,168,76,.2);
}

.nd-events-divider__dot.past {
  background: var(--nd-navy);
  box-shadow: 0 0 0 5px rgba(26,39,68,.12);
}

.nd-events-divider__dot svg {
  width: 11px;
  height: 11px;
  stroke: var(--nd-white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.nd-events-divider__label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 14px;
  border-radius: 100px;
}

.nd-events-divider__label.upcoming {
  color: var(--nd-gold);
  border: 1.5px solid rgba(201,168,76,.4);
  background: rgba(201,168,76,.09);
}

.nd-events-divider__label.past {
  color: var(--nd-gray-lt);
  border: 1.5px solid var(--nd-border);
  background: transparent;
}

.nd-events-divider__line {
  flex: 1;
  height: 1px;
}

.nd-events-divider__line.upcoming {
  background: linear-gradient(to right, rgba(201,168,76,.4), transparent);
}

.nd-events-divider__line.past {
  background: linear-gradient(to right, var(--nd-border), transparent);
}

/* ── Event item (article) ── */
.event-item {
  position: relative;
  margin-bottom: 28px;
}

/* Timeline node dot */
.event-item .event-dot {
  position: absolute;
  left: -43px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--nd-white);
  border: 3px solid var(--nd-navy);
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(26,39,68,.12);
}

.event-item.upcoming .event-dot {
  background: var(--nd-gold);
  border-color: var(--nd-gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,.25);
}

/* ── Event card ── */
.event-card,
a.event-card--link {
  display: flex;
  flex-direction: column;
  background: var(--nd-white);
  border-radius: var(--nd-radius);
  border: 1px solid var(--nd-border);
  overflow: hidden;
  box-shadow: var(--nd-shadow-card);
  transition: transform .25s cubic-bezier(.22,.8,.38,1), box-shadow .25s;
  text-decoration: none;
  color: inherit;
}

.event-card:hover,
a.event-card--link:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: var(--nd-shadow-hover);
}

/* Top accent stripe */
.event-card::before,
a.event-card--link::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--nd-navy);
  flex-shrink: 0;
}

.event-item.upcoming .event-card::before,
.event-item.upcoming a.event-card--link::before {
  background: linear-gradient(90deg, var(--nd-gold), #e8c96a);
}

/* Inner content */
.event-card-inner {
  padding: 22px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Date badge */
.event-date {
  background: var(--nd-navy);
  color: var(--nd-white);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.event-item.upcoming .event-date {
  background: var(--nd-gold);
  color: var(--nd-navy);
}

/* Type / time badge */
.event-type {
  background: var(--nd-offwhite);
  color: var(--nd-gray);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nd-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.event-location {
  font-size: .8rem;
  color: var(--nd-gray-lt);
  margin-bottom: 10px;
  line-height: 1.5;
}

.event-desc {
  font-size: .85rem;
  color: var(--nd-gray);
  line-height: 1.6;
  flex: 1;
}

/* Footer with "Mehr erfahren" */
.event-card-footer {
  padding: 12px 24px 16px;
  border-top: 1px solid var(--nd-border);
  display: flex;
  align-items: center;
}

.event-card-readmore {
  font-family: 'Inter', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  color: var(--nd-navy);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .18s, gap .18s;
}

a.event-card--link:hover .event-card-readmore {
  color: var(--nd-gold);
  gap: 9px;
}

.event-card-readmore svg {
  width: 14px;
  height: 14px;
}

/* ==========================================
   MEDIENBERICHTE – GRID + CARDS
========================================== */

.nd-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Card ── */
.nd-media-card {
  list-style: none;
}

.nd-media-card__link {
  display: flex;
  flex-direction: column;
  background: var(--nd-white);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--nd-shadow-card);
  transition: transform .28s cubic-bezier(.22,.8,.38,1), box-shadow .28s;
  height: 100%;
}

.nd-media-card__link:hover {
  transform: translateY(-14px);
  box-shadow: var(--nd-shadow-hover);
}

/* 16:9 image area */
.nd-media-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #dde3ef 0%, #c8d2e4 100%);
  flex-shrink: 0;
}

.nd-media-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Coloured source bar */
.nd-media-card__source-bar {
  height: 4px;
  background: var(--nd-navy);
  flex-shrink: 0;
}

/* Body */
.nd-media-card__content {
  padding: 20px 22px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nd-media-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.nd-media-card__source {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nd-gold);
  font-family: 'Inter', sans-serif;
}

.nd-media-card__type {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nd-gray);
  background: var(--nd-offwhite);
  border-radius: 100px;
  padding: 2px 9px;
  font-family: 'Inter', sans-serif;
}

.nd-media-card__date {
  font-size: .7rem;
  color: var(--nd-gray-lt);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  margin-left: auto;
}

.nd-media-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nd-navy);
  line-height: 1.35;
  margin-bottom: 10px;
}

.nd-media-card__teaser {
  font-size: .83rem;
  color: var(--nd-gray);
  line-height: 1.62;
  flex: 1;
}

.nd-media-card__footer {
  margin-top: 14px;
}

.nd-media-card__readmore {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: var(--nd-navy);
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .18s, gap .18s;
}

.nd-media-card__link:hover .nd-media-card__readmore {
  color: var(--nd-gold);
  gap: 9px;
}

.nd-media-card__readmore svg {
  width: 13px;
  height: 13px;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 700px) {
  .nd-media-grid {
    grid-template-columns: 1fr;
  }

  .nd-events-timeline {
    padding-left: 32px;
  }

  .nd-events-divider {
    padding-left: 32px;
  }

  .event-item .event-dot {
    left: -28px;
  }

  .timeline-filter-group {
    flex-direction: column;
    align-items: flex-start;
  }
}