/* =========================================================
   ROADSTER PROJEKT – STYLE.CSS (COMPLETE + EVENT-HERO FIX)
   Fix: kroatien-trip.html Hero-Bild ist zu groß -> feste Hero-Höhen
   + Sicherheit: falls im Hero ein <img> steckt, wird es begrenzt
   ========================================================= */

* { box-sizing: border-box; }

:root{
  --bg:#111111;
  --panel:#161616;
  --text:#eeeeee;
  --muted:#aaaaaa;
  --line:#242424;
  --accent:#b88a7a;

  --radius:14px;
  --max:1100px;
}

html, body{ margin:0; padding:0; }

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* ================= TYPO ================= */
h1,h2,h3{ margin:0 0 14px; letter-spacing:.2px; }
p{ margin:0 0 18px; }

.sub{ color:var(--muted); line-height:1.65; }
.lead{ font-size:18px; max-width:65ch; }

a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--accent); }

/* ================= LAYOUT ================= */
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:40px 20px;
}

/* ================= HEADER / NAV ================= */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(17,17,17,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:16px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.brand{ font-weight:600; letter-spacing:.3px; }

.nav{
  display:none;
  gap:22px;
  margin-top:14px;
  flex-direction:column;
}

.nav.is-open{ display:flex; }

.nav a.active{ color:var(--accent); }

.nav-toggle{
  background:none;
  border:0;
  font-size:22px;
  color:var(--text);
  cursor:pointer;
}

@media(min-width:768px){
  .nav{
    display:flex;
    flex-direction:row;
    margin-top:0;
  }
  .nav-toggle{ display:none; }
}

/* ================= UI ================= */
.badge{
  display:inline-block;
  font-size:12px;
  padding:4px 10px;
  border:1px solid #333;
  border-radius:999px;
  color:var(--accent);
  margin-bottom:14px;
}

.btn-link{
  color:var(--accent);
  display:inline-block;
  margin-top:10px;
}
.btn-link:hover{ text-decoration:underline; }

/* ================= STARTSEITE ================= */
.home-hero{
  background:linear-gradient(180deg,#151515,#0e0e0e);
  border-bottom:1px solid var(--line);
}

.home-title{ font-size:38px; }
.hero-sub{ max-width:60ch; }

/* ================= SECTIONS (optional) ================= */
.section{ padding:80px 0; }

.section-soft{
  background:#0f0f0f;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.section-cta{ margin-top:28px; }

/* ================= CARDS / GRIDS ================= */
.grid-2{
  display:grid;
  gap:28px;
}
@media(min-width:768px){
  .grid-2{ grid-template-columns:1fr 1fr; }
}

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
}

/* ================= EVENT / PROJEKT BLOECKE ================= */
.event-block{
  padding:26px 0;
  border-bottom:1px solid #1f1f1f;
}

.event-grid2{
  display:grid;
  gap:16px;
}
@media(min-width:768px){
  .event-grid2{ grid-template-columns:1fr 1fr; }
}

.event-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
}

.facts{
  list-style:none;
  padding:0;
  margin:0;
}
.facts li{ margin-bottom:8px; }

.event-cta{
  margin-top:12px;
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

/* =========================================================
   HERO LOGIK (FIX: Event-Hero nie wieder riesig)
   ========================================================= */

/* PROJEKT-HERO: moderat */
.project-hero--image{
  height:340px;                 /* feste Höhe -> kein Ausufern */
  display:flex;
  align-items:flex-end;
  border-bottom:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75)),
    url("../img/hero/project-1-hero.jpg") center/cover no-repeat;
}

/* EVENT-HERO: bewusst klein */
.event-hero--image{
  height:240px;                 /* ✅ fest klein */
  display:flex;
  align-items:flex-end;
  border-bottom:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75)),
    url("../img/people/event-moment.jpg") center 55%/cover no-repeat;
  overflow:hidden;              /* falls innen ein <img> sitzt */
}

/* Falls du im Hero ein echtes <img> nutzt: ebenfalls begrenzen */
.event-hero--image img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
  opacity:.95;
}

/* gemeinsamer Innenbereich */
.project-hero-inner,
.event-hero-inner{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:22px 20px 26px;
}

@media(min-width:768px){
  .project-hero--image{ height:360px; }
  .event-hero--image{ height:260px; }
  .event-hero--image img{ height:260px; }
}

/* ================= UPDATES ================= */
.updates-grid{
  display:grid;
  gap:22px;
  margin-top:26px;
}
@media(min-width:768px){
  .updates-grid{ grid-template-columns:1fr 1fr; }
}

.update-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
}

.update-title{
  margin:10px 0 6px;
  font-size:18px;
}

/* ================= GALERIE (THUMBNAILS) ================= */
.gallery-grid{
  display:grid;
  gap:12px;
  margin-top:14px;
  grid-template-columns: repeat(2, 1fr);
}
@media(min-width:768px){
  .gallery-grid{ grid-template-columns: repeat(4, 1fr); }
}

.gallery-item{
  display:block;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--panel);
}

.gallery-item img{
  width:100%;
  height:150px;
  object-fit:cover;
  display:block;
  transition:transform .25s ease, opacity .25s ease;
}
@media(min-width:768px){
  .gallery-item img{ height:170px; }
}

.gallery-item:hover img{
  transform:scale(1.02);
  opacity:.95;
}

/* ================= LIGHTBOX (optional) ================= */
html.lb-lock, body.lb-lock{ overflow:hidden; }

.lightbox{
  position:fixed;
  inset:0;
  display:none;
  z-index:1000;
}
.lightbox.is-open{ display:grid; place-items:center; }

.lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
}

.lightbox__panel{
  position:relative;
  width:min(980px, calc(100vw - 28px));
  max-height:calc(100vh - 28px);
  border:1px solid #2a2a2a;
  border-radius:18px;
  background:#0f0f0f;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(0,0,0,.6);
}

.lightbox__figure{
  margin:0;
  display:grid;
  grid-template-rows: 1fr auto;
}

.lightbox__img{
  width:100%;
  height:min(72vh, 680px);
  object-fit:contain;
  display:block;
  background:#0b0b0b;
}

.lightbox__caption{
  padding:12px 14px;
  color:var(--muted);
  border-top:1px solid #1f1f1f;
  background:#0f0f0f;
}

.lightbox__btn{
  position:absolute;
  top:10px;
  background:rgba(255,255,255,.06);
  border:1px solid #2a2a2a;
  color:var(--text);
  border-radius:999px;
  width:42px;
  height:42px;
  cursor:pointer;
}

.lightbox__close{ right:10px; }

.lightbox__prev,
.lightbox__next{
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  font-size:26px;
}
.lightbox__prev{ left:10px; }
.lightbox__next{ right:10px; }

.lightbox--single .lightbox__prev,
.lightbox--single .lightbox__next{ display:none; }

/* ================= MOBILE ================= */
@media(max-width:480px){
  .container{ padding:34px 18px; }
  .section{ padding:56px 0; }
  .home-title{ font-size:32px; }

  .project-hero--image{ height:220px; }
  .event-hero--image{ height:170px; background-position:center 60%; }
  .event-hero--image img{ height:170px; }

  .gallery-item img{ height:130px; }

  .lightbox__prev, .lightbox__next{ display:none; }
}
/* =========================================
   EVENT MOMENT – Bildgröße fix
   verhindert riesige Bilder auf Eventseiten
   ========================================= */

.event-moment{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--panel);
  display:grid;
  grid-template-columns:1fr;
}

.event-moment-text{
  padding:16px;
}

.event-moment-img{
  border-top:1px solid var(--line);
  background:#0f0f0f;
}

.event-moment-img img{
  width:100%;
  height:190px;        /* ✅ feste, ruhige Höhe */
  object-fit:cover;    /* ✅ kein Verzerren */
  display:block;
}

/* Desktop: Text + Bild nebeneinander */
@media (min-width:768px){
  .event-moment{
    grid-template-columns:1.1fr .9fr;
  }

  .event-moment-img{
    border-top:0;
    border-left:1px solid var(--line);
  }

  .event-moment-img img{
    height:260px;
  }
}
