/* =========================================================
   Vom Schnuller zum Reisepass – style.css (NEW)
   Ziele: soft + ruhig, abgerundete Ecken, 3D/Glow, Flow
   ========================================================= */

/* ---------- Theme + Defaults ---------- */
:root{
  /* background palette (slightly darker/serious, still warm) */
  --bg0: #0b1220;         /* deep night blue */
  --bg1: #0f1b2e;         /* slightly lighter */
  --bg2: #0c2331;         /* teal-blue hint */
  --paper: rgba(255,255,255,0.07);

  /* text */
  --text: rgba(255,255,255,0.86);
  --textSoft: rgba(255,255,255,0.68);
  --textFaint: rgba(255,255,255,0.55);

  /* accent inspired by logo */
  --accentBlue: rgba(74, 168, 223, 0.55);
  --accentGold: rgba(255, 198, 74, 0.38);

  /* geometry */
  --radius: 18px;
  --radius2: 22px;

  /* shadows / glow */
  --shadow: 0 18px 52px rgba(0,0,0,0.42);
  --shadowSoft: 0 10px 28px rgba(0,0,0,0.35);
  --border: rgba(255,255,255,0.12);
  --border2: rgba(255,255,255,0.18);

  --maxw: 1100px;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);

  /* soft “sky” like logo, but deeper/serious */
  background:
    radial-gradient(1200px 800px at 18% 12%, rgba(74,168,223,0.22), transparent 55%),
    radial-gradient(900px 700px at 82% 18%, rgba(255,198,74,0.14), transparent 60%),
    radial-gradient(1200px 900px at 50% 105%, rgba(74,168,223,0.14), transparent 55%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 55%, var(--bg2) 120%);
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{ color: inherit; }

/* ---------- Reusable “Card” Image (3D + soft glow) ---------- */
.img-card{
  border-radius: var(--radius2);
  border: 1px solid var(--border2);
  background: rgba(255,255,255,0.04);

  box-shadow:
    0 18px 42px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 40px rgba(74,168,223,0.10);

  transform: translateZ(0);
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
  overflow: hidden;
}

.img-card:hover{
  transform: translateY(-5px) scale(1.01);
  box-shadow:
    0 22px 58px rgba(0,0,0,0.46),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 55px rgba(74,168,223,0.16);
  filter: saturate(1.04);
}

/* ---------- HERO ---------- */
.hero{
  padding: 3.2rem 1.5rem 2.6rem;
  position: relative;
}

.hero::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  /* subtle overlay to keep it calm */
  background:
    radial-gradient(900px 600px at 28% 18%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 55%);
}

.hero-image-wrap{
  max-width: 420px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 28px;
}

.hero-image-wrap img{
  border-radius: 18px;
}

.hero-inner{
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-image{
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-image.img-card{
  background: rgba(255,255,255,0.10);   /* macht die Kante sichtbar */
  padding: 14px;                        /* Abstand zur Grafik */
  border-radius: 26px;                  /* stärker für Hero */
}

.hero-text h1{
  margin: 0 0 .55rem;
  font-size: 2.35rem;
  letter-spacing: -0.02em;
}

.hero-sub{
  margin: 0 0 1.25rem;
  color: var(--textSoft);
  font-size: 1.05rem;
  line-height: 1.5;
}

.hero-story{
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem 1.25rem;
  box-shadow: var(--shadowSoft);
  backdrop-filter: blur(7px);
}

.hero-story p,
.hero-story li{
  font-size: .96rem;
  line-height: 1.55;
  color: var(--text);
}

.hero-story ul{
  margin: .85rem 0 0;
  padding-left: 1.2rem;
}

.hero-story li{
  margin: .35rem 0;
  color: var(--textSoft);
}

.hero-story strong{
  color: var(--text);
}

.signature{
  margin-top: 1.2rem;
  font-size: .92rem;
  color: var(--textFaint);
}

/* ---------- INTRO COMPARE (2010 vs 2025) ---------- */
.intro-compare{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.3rem 1.5rem 2.8rem;
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  align-items: flex-start;
}

.intro-compare figure{
  margin: 0;
  text-align: center;
}

.intro-compare figcaption{
  margin-top: .75rem;
  color: var(--textSoft);
  font-size: .92rem;
}

/* ---------- PAGE HEADER (Archive Title) ---------- */
.page-header{
  text-align: center;
  padding: 2.2rem 1rem 1.4rem;
}

.page-header h2{
  margin: 0 0 .4rem;
  font-size: 1.9rem;
  letter-spacing: -0.015em;
}

.subtitle{
  margin: 0;
  color: var(--textSoft);
  font-size: 1rem;
}

/* ---------- YEAR BLOCKS ---------- */
.year-block{
  padding: 2.4rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.year-block h3{
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--text);
}

.photo-row{
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: .4rem .2rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* soft flow feel */
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.photo-row::-webkit-scrollbar{
  height: 10px;
}
.photo-row::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.14);
  border-radius: 99px;
}
.photo-row::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
}

.photo-row figure{
  min-width: 190px;
  max-width: 240px;
  margin: 0;
  cursor: pointer;
  scroll-snap-align: start;
}

.photo-row img{
  width: 100%;
}

.photo-row figure:hover img{
  transform: translateY(-4px) scale(1.01);
}

figcaption{
  font-size: .82rem;
  margin-top: .55rem;
  color: var(--textSoft);
  text-align: center;
}

/* ---------- LIGHTBOX ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox.active{
  display: flex;
}

.lightbox img{
  max-width: 86%;
  max-height: 86%;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.65), 0 0 70px rgba(74,168,223,0.14);
  border: 1px solid rgba(255,255,255,0.10);
}

.lightbox .caption{
  position: absolute;
  bottom: 2rem;
  color: rgba(255,255,255,0.82);
  font-size: .95rem;
  text-align: center;
  max-width: 80%;
}

.lightbox button{
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.8rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transition: transform 200ms ease, background 200ms ease;
}

.lightbox button:hover{
  transform: scale(1.05);
  background: rgba(255,255,255,0.10);
}

.lightbox .close{ top: 1rem; right: 1.2rem; }
.lightbox .prev{ left: 1.2rem; }
.lightbox .next{ right: 1.2rem; }

/* ---------- SMALL POLISH ---------- */
main{
  padding-bottom: 4rem;
}

/* ---------- Mobile (light, just enough for now) ---------- */
@media (max-width: 860px){
  .hero-inner{
    grid-template-columns: 1fr;
    gap: 1.6rem;
    text-align: left;
  }

  .hero-image{
    max-width: 360px;
  }

  .intro-compare{
    flex-direction: column;
    align-items: center;
  }

  .photo-row figure{
    min-width: 78vw;
    max-width: 78vw;
  }

  .lightbox .prev{ left: .8rem; }
  .lightbox .next{ right: .8rem; }
}
