/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #041DC6;
  --blue-mid: #1A2FD4;
  --blue-soft: #EBF5FF;
  --blue-border: #C3E0F7;
  --green: #00A86B;
  --green-soft: #ECFDF5;
  --border: #E2E8F0;
  --bg-section: #F7F9FC;
  --bg-light: #F1F5F9;
  --tx: #0F172A;
  --tx-mid: #334155;
  --tx-light: #64748B;
  --tx-dim: #94A3B8;
  --white: #FFFFFF;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 20px;
  --font: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-condensed: 'Barlow Condensed', 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--tx);
  background: var(--bg-section);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
img { max-width: 100%; display: block; }

/* ==================== UTILITIES ==================== */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-narrow {
  max-width: 620px;
  margin: 0 auto;
}

.body-text {
  font-size: 15px;
  color: var(--tx-mid);
  line-height: 1.8;
  margin-bottom: 14px;
  font-weight: 400;
}

/* ==================== ANIMATIONS ==================== */
.section-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.section-animate.visible {
  opacity: 1;
  transform: none;
}

/* ==================== BADGES ==================== */
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 12px;
}
.badge--blue  { color: var(--blue);  background: var(--blue-soft);  border: 1px solid var(--blue-border); }
.badge--green { color: var(--green); background: var(--green-soft); }

.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.badge__dot--green { background: var(--green); }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  letter-spacing: 0.01em;
}

.btn--primary {
  font-size: 15px;
  color: var(--white);
  background: var(--blue);
  padding: 12px 26px;
}
.btn--primary:hover { background: var(--blue-mid); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(4,29,198,0.25); }

.btn--sm { font-size: 13px; padding: 7px 15px; border-radius: 7px; }

.btn--event {
  font-size: 13px; font-weight: 700;
  color: var(--white); background: var(--blue);
  padding: 9px 20px; border-radius: var(--radius);
  white-space: nowrap;
  transition: all 0.18s ease;
  display: inline-block;
}
.btn--event:hover { background: var(--blue-mid); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(4,29,198,0.25); }

/* ==================== NAVIGATION ==================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(247, 249, 252, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0 24px;
  transition: box-shadow 0.2s;
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0;
}

.nav__logo {
  background: none; border: none;
  display: flex; align-items: center; gap: 9px;
  padding: 0; cursor: pointer;
}

.nav__links {
  display: flex; gap: 6px; align-items: center;
}
.nav__link {
  background: none; border: none;
  font-size: 13px; font-weight: 500;
  color: var(--tx-light);
  font-family: var(--font);
  padding: 5px 8px; cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
  border-radius: 6px;
}
.nav__link:hover { color: var(--tx); background: var(--bg-light); }

.nav__logo-img { height: 70px; width: auto; display: block; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  border-radius: 6px;
}
.nav__burger span {
  display: block; width: 20px; height: 2px;
  background: var(--tx); border-radius: 2px;
  transition: all 0.25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
  gap: 2px;
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  font-size: 15px; font-weight: 500;
  color: var(--tx-mid);
  padding: 9px 4px;
  border-radius: 6px;
  transition: color 0.15s;
}
.nav__mobile-link:hover { color: var(--blue); }

/* ==================== SECTIONS ==================== */
.section { padding: 56px 0; background: var(--bg-section); }

.section__header { text-align: center; margin-bottom: 32px; }
.section__title {
  font-family: var(--font-condensed);
  font-size: 34px; font-weight: 800;
  color: var(--tx);
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section__subtitle { font-size: 16px; color: var(--tx-light); max-width: 480px; margin: 0 auto; }

/* ==================== HERO ==================== */
.hero {
  padding: 96px 0 32px;
  background: var(--bg-section);
  position: relative;
}
.hero__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  width: 100%;
}
.hero__title {
  font-family: var(--font-condensed);
  font-size: 52px; font-weight: 800;
  color: var(--tx);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  font-size: 16px; color: var(--tx-light);
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto;
  font-weight: 500;
}

/* ==================== ÜBER MICH ==================== */
.ueber__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.ueber__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.ueber__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.ueber__text .section__header {
  text-align: left;
  margin-bottom: 12px;
}
.ueber__text .section__title {
  text-align: left;
  margin-top: 4px;
}
.ueber__stats {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.ueber__stat-card {
  flex: 1 1 160px;
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 10px 14px;
  border: 1px solid var(--border);
}
.ueber__stat-number { font-size: 14px; font-weight: 700; color: var(--tx); font-family: var(--font-condensed); }
.ueber__stat-label  { font-size: 12px; color: var(--tx-light); margin-top: 2px; }

/* ==================== FAQ ==================== */
.faq__list { max-width: 100%; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; color: var(--tx);
  font-size: 14px; font-weight: 600;
  text-align: left; font-family: var(--font); gap: 14px;
}
.faq__icon {
  color: var(--blue); font-size: 20px;
  transition: transform 0.3s; flex-shrink: 0; line-height: 1;
}
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq__answer-text { font-size: 14px; color: var(--tx-mid); line-height: 1.75; margin: 0 0 14px; }

/* ==================== FOOTER ==================== */
.footer { background: var(--bg-section); border-top: 1px solid var(--border); padding: 20px 0; }
.footer__inner {
  display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap; font-size: 12px; color: var(--tx-dim);
}
.footer__inner a { color: var(--tx-dim); }
.footer__inner a:hover { color: var(--tx); }

/* ==================== IMPRESSUM ==================== */
.impr-heading {
  font-size: 16px; font-weight: 700;
  color: var(--tx); margin: 28px 0 6px;
  font-family: var(--font-condensed);
}

/* ==================== BLOG ==================== */
.blog-page__header {
  text-align: center;
  margin-bottom: 40px;
}
.blog-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.18s ease;
}
.blog-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.07); }
.blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.blog-card__body { padding: 16px 20px 20px; }
.blog-card__date { font-size: 12px; font-weight: 600; color: var(--blue); margin-bottom: 5px; }
.blog-card__title { font-size: 17px; font-weight: 700; color: var(--tx); font-family: var(--font-condensed); margin-bottom: 8px; }
.blog-card__teaser { font-size: 13px; color: var(--tx-mid); line-height: 1.65; margin: 0; }

/* ==================== PRETIX WIDGET OVERRIDES ==================== */
.pretix-widget-wrapper,
.pretix-widget {
  font-family: var(--font) !important;
}
.pretix-widget > div,
.pretix-widget-wrapper > div {
  border: none !important;
  box-shadow: none !important;
}
.pretix-widget-list-wrapper {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: unset !important;
}
.pretix-widget-list-item {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border) !important;
  background: var(--white) !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
}
.pretix-widget button,
.pretix-widget .pretix-widget-btn {
  font-family: var(--font) !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
}
.pretix-widget .pretix-widget-btn-primary,
.pretix-widget .pretix-widget-action-button,
.pretix-widget-list-item .pretix-widget-btn {
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
}
.pretix-widget .pretix-widget-btn-default {
  background: transparent !important;
  color: var(--blue) !important;
  border: 2px solid var(--blue) !important;
  border-radius: var(--radius) !important;
}
.pretix-widget-checkout-header {
  background: var(--blue) !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}
.pretix-widget a { color: var(--blue) !important; }
.pretix-widget-attribution { display: none !important; }
.pretix-widget-checkout-step-active .pretix-widget-checkout-step-icon {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
}

.pretix-widget {
  display: block !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .nav__link--desktop { display: none; }
  .nav__links .btn--sm { display: none; }
  .nav__burger { display: flex; }

  .hero { padding: 90px 0 36px; }
  .hero__title { font-size: 42px; }
  .section__title { font-size: 28px; }

  .ueber__layout { grid-template-columns: 1fr; gap: 24px; }
  .ueber__photo { max-width: 240px; margin: 0 auto; aspect-ratio: 3/4; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 34px; }
  .blog-page__grid { grid-template-columns: 1fr; }
}


/* Blog preview on index.html */
.blog-preview {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.blog-preview__img {
  width: 350px;
  flex-shrink: 0;
  align-self: stretch;
  overflow: hidden;
}
.blog-preview__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.blog-preview__body { padding: 24px 28px 24px 0; }
.blog-preview__label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.blog-preview__date { font-size: 12px; color: var(--tx-dim); margin-bottom: 4px; }
.blog-preview__title { font-size: 20px; font-weight: 700; font-family: var(--font-condensed); color: var(--tx); margin-bottom: 10px; }
.blog-preview__teaser { font-size: 14px; color: var(--tx-mid); line-height: 1.7; margin-bottom: 16px; }

@media (max-width: 600px) {
  .blog-preview { flex-direction: column; gap: 0; }
  .blog-preview__img { width: 100%; aspect-ratio: 16/9; }
  .blog-preview__body { padding: 16px; }
}

.body-text { text-align: justify; }
.blog-card__teaser { text-align: justify; }
.blog-preview__teaser { text-align: justify; }



/* ==================== EVENTS ==================== */
.events__list {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 680px; margin: 0 auto;
}
.event-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.event-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.07); }
.event-card--special { border: 2px solid #101620; }
.event-card__special-banner {
  background: #101620;
  padding: 5px 0; text-align: center;
  font-size: 13px; font-weight: 800;
  color: #CBD5E1;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-condensed);
}
.event-card__layout { display: flex; align-items: stretch; }
.event-card__layout--no-image { display: block; }
.event-card__img {
  width: 50%; flex-shrink: 0;
  overflow: hidden; min-height: 220px;
}
.event-card__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%; display: block;
}
.event-card__body { flex: 1; padding: 18px 20px; }
.event-card__top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.event-card__title { font-size: 17px; font-weight: 700; color: var(--tx); margin: 0 0 3px; font-family: var(--font-condensed); }
.event-card__meta { font-size: 13px; color: var(--blue); font-weight: 600; margin: 0; }
.event-card__price { text-align: right; flex-shrink: 0; }
.event-card__price-amount { font-family: var(--font-condensed); font-size: 26px; font-weight: 800; color: var(--tx); line-height: 1; }
.event-card__price-label { font-size: 11px; color: var(--tx-light); }
.event-card__desc { font-size: 13px; color: var(--tx-mid); line-height: 1.65; margin: 8px 0 12px; }

@media (max-width: 600px) {
  .event-card__layout { flex-direction: column; }
  .event-card__img { width: 100%; min-height: 200px;}
  .event-card__top { flex-direction: column; }
  .event-card__price { text-align: left; }
}

.event-card__ticket-btn { margin-top: 14px; display: inline-block; }
.event-card__widget-panel {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}