/* =========================================================
   PAS Bonn – Main Stylesheet
   ========================================================= */

:root {
  --text:           #1a1b1f;
  --text-muted:     rgba(26, 27, 31, 0.56);
  --blue-dark:      #0d0f69;
  --blue-light:     #dee9ff;
  --blue-mid:       #c9e1ff;
  --blue-topline:   #008dbc;
  --amber:          rgba(255, 200, 0, 0.47);
  --amber-hover:    rgba(255, 85, 0, 0.67);
  --gray:           #f4f4f4;
  --max-w:          1500px;
  --max-w-md:       1140px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: var(--text);
  background: #fff;
}

h1 { margin: 20px 0 15px; font-size: 44px; font-weight: 400; line-height: 62px; }
h2 { margin: 10px 0;       font-size: 36px; font-weight: 400; line-height: 50px; }
h3 { margin: 10px 0;       font-size: 30px; font-weight: 400; line-height: 46px; }
h4 { margin: 10px 0;       font-size: 24px; font-weight: 400; line-height: 38px; }
h5 { margin: 10px 0;       font-size: 20px; font-weight: 500; line-height: 34px; }
p  { margin-bottom: 10px; }

img { display: block; max-width: 100%; }

a {
  color: var(--text);
  text-decoration: underline;
  transition: opacity .2s;
}
a:hover  { color: #32343a; }
a:active { color: #43464d; }


/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background-color 280ms ease,
    box-shadow       280ms ease,
    border-color     280ms ease,
    backdrop-filter  280ms ease;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
}

.nav-topline {
  background: var(--blue-topline);
  height: 16px;
  overflow: hidden;
  transition:
    height  220ms ease,
    opacity 180ms ease,
    margin  220ms ease;
}

.site-nav.scrolled .nav-topline {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 50px;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  transition: width 220ms ease, height 220ms ease;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: width 220ms ease, height 220ms ease;
}

.site-nav.scrolled .nav-logo {
  width: 60px;
  height: 60px;
}

.nav-links {
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  opacity: .6;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  color: #38393b;
  transition: opacity .2s;
  white-space: nowrap;
}
.nav-link:hover  { opacity: .9; color: #38393b; }
.nav-link.active { opacity: 1;  color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}


/* ── Hero (Homepage) ─────────────────────────────────────── */
.hero {
  background: var(--blue-dark);
  padding: 100px 0;
}

.hero-inner {
  width: 80%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.hero-slider-wrap {
  height: 100%;          /* fill the grid row (height comes from image column) */
  min-height: 260px;     /* fallback before image loads */
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 500ms ease;
  will-change: transform;
}

.slide {
  flex: 0 0 auto;   /* width set in JS to slider's pixel width */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  padding: 0;
}
.slider-btn:hover  { background: rgba(255, 255, 255, 0.3); }
.slider-btn-prev   { left: 8px; }
.slider-btn-next   { right: 8px; }

.slide p {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  text-align: center;
  margin: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* ── About ───────────────────────────────────────────────── */
.about {
  background: #fff;
  padding: 100px 0;
  display: flex;
  justify-content: center;
}

.about-inner {
  width: 80%;
  max-width: var(--max-w);
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image { flex: 1; }
.about-image img { width: 100%; height: auto; }

.about-text         { flex: 1; }
.about-text h5      { font-size: 40px; font-weight: 600; line-height: 45px; padding-bottom: 20px; margin-top: 0; }
.about-text p       { font-size: 22px; }


/* ── Aktuelle Seminare ───────────────────────────────────── */
.seminars {
  background: var(--blue-light);
  padding: 50px 20px 100px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.seminars-inner {
  max-width: var(--max-w);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seminars-inner h1 {
  font-size: 50px;
  font-weight: 600;
  margin-bottom: 40px;
}

.seminars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  width: 100%;
}

.seminar-card {
  aspect-ratio: 1;
  background: var(--amber);
  position: relative;
  border: 4px solid transparent;
  overflow: hidden;
  box-shadow: 0 2px 15px 8px rgba(0,0,0,.2);
  transition: background 1s, box-shadow 1s;
}
.seminar-card:hover {
  background: var(--amber-hover);
  box-shadow: 0 2px 20px 20px rgba(0,0,0,.14);
}

.seminar-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border: 4px solid #000;
}

.seminar-card-body {
  position: relative;
  z-index: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.seminar-card-body h4 {
  color: #fff;
  font-weight: 700;
  text-align: center;
  margin-top: 0;
}
.seminar-card-body .tag {
  color: #fff;
  text-align: center;
  font-size: 14px;
  opacity: .9;
}


/* ── Förderpartner ───────────────────────────────────────── */
.partners {
  background: #fff;
}

.partners-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
}

.partners h5 {
  display: block;
  text-align: center;
  margin-bottom: 35px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.partner-logo {
  width: 250px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img {
  max-width: 250px;
  max-height: 180px;
  object-fit: contain;
}


/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-light);
  padding: 100px 0;
}

.footer-inner {
  max-width: var(--max-w-md);
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 150px;
}

.footer-logo { display: flex; align-items: center; justify-content: flex-end; }
.footer-logo img { max-width: 100px; }

.footer-contact {
  display: grid;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a { text-decoration: none; opacity: .7; }
.footer-links a:hover { opacity: 1; }


/* ── Link-Card Grid (Wir / Studienfahrten) ───────────────── */
.link-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 800px;
  margin: 80px auto;
  padding: 0 40px;
}

.link-card {
  aspect-ratio: 1;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.2), 9px 2px 5px rgba(0,0,0,.2);
  transition: box-shadow .2s;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  text-decoration: none;
}
.link-card:hover { box-shadow: 0 2px 9px 9px rgba(0,0,0,.2); opacity: 1; }

.link-card-title {
  display: block;
  text-align: center;
  padding: 20px 10px;
  font-size: 40px;
  font-weight: 600;
  color: #196dd3;
  text-decoration: none;
  background: #fff;
}

.link-card img {
  width: 90%;
  height: 90%;
  margin: auto;
  object-fit: cover;
}


/* ── Hero Split (Studienfahrten / Themen) ────────────────── */
.hero-split {
  margin: 100px auto;
  max-width: 1500px;
  padding: 0 40px;
}

.hero-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
}

.hero-split-text h1 { margin-top: 0; }
.hero-split-text p  { font-size: 17px; line-height: 28px; }

.hero-split-image img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

/* hero-split variant: image-first (image left, text right) */
.hero-split-inner.reverse { direction: rtl; }
.hero-split-inner.reverse > * { direction: ltr; }


/* ── Page Hero (subpages, e.g. Team) ─────────────────────── */
.page-hero {
  background: #000;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 100px;
}
.page-hero h1 {
  color: #fff;
  font-size: 64px;
  line-height: 80px;
  margin: 0;
}


/* ── Team ────────────────────────────────────────────────── */
.team-section {
  max-width: var(--max-w-md);
  margin: 0 auto 100px;
  padding: 0 30px;
}

.team-section-heading {
  text-align: center;
  margin-bottom: 60px;
}
.team-section-heading .label {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  opacity: .6;
  display: block;
  margin-bottom: 8px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-member { text-align: center; }

.team-photo {
  background: var(--gray);
  width: 100%;
  height: 420px;
  margin-bottom: 40px;
}

.team-name {
  font-size: 20px;
  font-weight: 400;
  line-height: 34px;
  margin-bottom: 5px;
}
.team-role { opacity: .6; font-size: 14px; }


/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: var(--gray);
  padding: 80px;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 10px;
}
.cta-section p { opacity: .6; font-size: 20px; line-height: 34px; }

.btn {
  display: inline-block;
  color: #fff;
  background: var(--text);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 35px;
  font-size: 14px;
  line-height: 26px;
  text-decoration: none;
  border-radius: 0;
  transition: background .4s, opacity .4s;
  margin-top: 24px;
}
.btn:hover  { background: #32343a; color: #fff; opacity: 1; }
.btn:active { background: #43464d; }


/* ── Kontakt ─────────────────────────────────────────────── */
.contact-wrap {
  max-width: var(--max-w-md);
  margin: 0 auto;
  padding: 100px 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form-box {
  border: 1px solid #eee;
  padding: 45px 50px 50px;
}

.contact-heading {
  font-size: 36px;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 15px;
}
.contact-desc { opacity: .6; }

.contact-label {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.contact-email-link {
  opacity: .6;
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}
.contact-email-link:hover { opacity: 1; }

.details-block { margin-bottom: 28px; }
.details-block .muted { opacity: .6; margin: 0; font-size: 15px; }


/* ── Destination Page (Berlin etc.) ─────────────────────── */
.destination-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.destination-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.destination-hero-gradient-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28%;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,.85) 43%, transparent);
  z-index: 1;
}

.destination-hero-gradient-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0,0,0,.81), transparent);
  z-index: 1;
}

.destination-hero-nav {
  position: relative;
  z-index: 10;
}

.destination-hero-text {
  position: absolute;
  bottom: 27px;
  left: 0; right: 0;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.destination-hero-text h1 {
  color: #fff;
  text-shadow: 0 -4px 4px rgba(0,0,0,.55);
  margin: 0 0 8px;
  font-size: 64px;
  line-height: 80px;
}

.destination-hero-text p {
  color: #fff;
  text-shadow: 0 2px 3px rgba(0,0,0,.95);
  margin: 0;
  font-size: 18px;
}

.destination-content {
  max-width: 1140px;
  margin: 80px auto;
  padding: 0 30px;
}

/* ── 404 ─────────────────────────────────────────────────── */
.error-page {
  background: var(--text);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 30px;
}
.error-page h1 { color: #fff; }
.error-page a  { color: #fff; }


/* ── Haltung placeholder ─────────────────────────────────── */
.placeholder-section {
  max-width: 700px;
  margin: 100px auto;
  padding: 0 30px;
  text-align: center;
}
.placeholder-section p { opacity: .6; font-size: 18px; }

/* ── CMS loading / error states ──────────────────────────── */
.cms-loading { text-align: center; padding: 60px 20px; opacity: .5; font-size: 15px; }
.cms-error   { text-align: center; padding: 40px 20px; color: #c0392b; font-size: 15px; }

/* ── Haltung list ────────────────────────────────────────── */
.haltung-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 30px 100px;
}

.haltung-item {
  padding: 60px 0;
  border-bottom: 1px solid #e5e7eb;
}
.haltung-item:last-child { border-bottom: none; }

.haltung-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: .55;
  margin-bottom: 12px;
}

.haltung-titel {
  font-size: 28px;
  font-weight: 600;
  line-height: 38px;
  margin: 0 0 24px;
}

.haltung-body p {
  font-size: 17px;
  line-height: 30px;
  opacity: .75;
  margin-bottom: 16px;
}
.haltung-body p:last-child { margin-bottom: 0; }

/* ── Kachel grid (Themen / Studienfahrten CMS kacheln) ────── */
.kachel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: var(--max-w-md);
  margin: 0 auto;
  padding: 40px 30px 80px;
}

/* ── Studienfahrt trip card ──────────────────────────────── */
.sf-section {
  background: var(--blue-light);
  padding: 60px 0;
}

.sf-section-heading {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 40px;
}

.sf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-w-md);
  margin: 0 auto;
  padding: 0 30px;
}

.sf-card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  text-decoration: none;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.sf-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transform: translateY(-3px);
  opacity: 1;
}

.sf-card-img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.sf-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.sf-card:hover .sf-card-img-wrap img { transform: scale(1.04); }

.sf-card-body { padding: 20px; flex: 1; }
.sf-card-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 24px;
}
.sf-card-desc { font-size: 14px; opacity: .65; margin: 0; line-height: 22px; }

/* ── Themen detail hero header ───────────────────────────── */
.themen-detail-header {
  background: var(--blue-mid);
  padding: 40px 0 30px;
}

.themen-detail-header .hero-split-inner {
  padding: 20px 40px;
}

/* ── Studienfahrt detail infobox ─────────────────────────── */
.detail-infobox {
  background: var(--blue-light);
  border-left: 4px solid var(--blue-topline);
  padding: 24px 28px;
  margin: 40px 0;
  border-radius: 2px;
}
.detail-infobox h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.detail-infobox p  { margin: 0; opacity: .8; }

/* ── Responsive additions ────────────────────────────────── */
@media (max-width: 991px) {
  .kachel-grid { grid-template-columns: 1fr 1fr; }
  .sf-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .kachel-grid { grid-template-columns: 1fr; max-width: 420px; }
  .sf-grid     { grid-template-columns: 1fr; max-width: 420px; }
  .haltung-list { padding: 40px 20px 60px; }
  .haltung-titel { font-size: 22px; }
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .nav-inner   { padding: 25px 30px; }
  .nav-logo    { width: 80px; height: 80px; }
  .nav-links   {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    z-index: 100;
    transform: none;
    left: 0;
  }
  .nav-links.open  { display: flex; }
  .nav-link        { padding: 15px 30px; width: 100%; text-align: center; }
  .nav-toggle      { display: block; }

  .hero-inner      { width: 95%; grid-template-columns: 1fr; }
  .hero-slider-wrap { min-height: 240px; }
  .about-inner     { flex-direction: column; width: 92%; }
  .about-text h5   { font-size: 28px; }
  .about-text p    { font-size: 18px; }
  .seminars-grid   { grid-template-columns: 1fr; gap: 40px; }
  .partners-grid   { grid-template-columns: 1fr 1fr; }
  .hero-split-inner { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .team-grid       { grid-template-columns: 1fr 1fr; }
  .footer-inner    { gap: 60px; flex-direction: column; text-align: center; }
  .footer-logo     { justify-content: center; }
  .cta-section     { padding: 60px 30px; }
}

@media (max-width: 767px) {
  .link-cards-grid { grid-template-columns: 1fr; max-width: 400px; }
  .team-grid       { grid-template-columns: 1fr; }
  .cta-section     { padding: 40px 20px; }
  .contact-form-box { padding: 30px; }
  .contact-wrap    { padding: 60px 20px; }
  .seminars-inner h1 { font-size: 36px; }
}

@media (max-width: 479px) {
  h1            { font-size: 36px; line-height: 52px; }
  .slide p      { font-size: 22px; line-height: 32px; }
  .nav-inner    { padding: 20px; }
  .page-hero h1 { font-size: 44px; }
}
