/*
Author: C0Eight (3fa85f64-e556-3210-p3xu2c0d3)
story.css (c) 2025
Created:  2025-12-12T21:56:56.086Z
*/

/* =========================
   Design-Variablen
========================= */
:root{
  --primary:#5555FF;
  --primary-dark:#3333CC;
  --primary-soft:#eef0ff;
  --accent:#ffb347;
  --bg-page:#f5f7ff;
  --text:#111111;
  --text-muted:#555555;

  --radius-lg:16px;
  --radius-md:12px;

  --shadow-soft:0 10px 30px rgba(15,23,42,.12);
  --shadow-strong:0 14px 34px rgba(15,23,42,.18);
}

/* =========================
   Global
========================= */
*{margin:0;padding:0;box-sizing:border-box}

body{
  font-family:"Poppins",sans-serif;
  background:radial-gradient(circle at top left,#fff,var(--bg-page));
  color:var(--text);
  line-height:1.6;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* =========================
   Header
========================= */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  padding:24px 40px;
  background:linear-gradient(90deg,var(--primary),var(--primary-dark));
  color:#fff;

  border-bottom:3px solid rgba(0,0,0,.15);
  position:sticky;
  top:0;
  z-index:100;

  box-shadow:0 12px 30px rgba(15,23,42,.22);
}

/* hide animation (für JS .header-hidden) */
header{
  transition:transform .28s ease;
  will-change:transform;
}
header.header-hidden{
  transform:translateY(-110%);
}

.header-left,
.header-center{
  display:flex;
  align-items:center;
}

/* Rechts (Nav) */
.header-right{
  margin-left:auto;
  display:flex;
  align-items:center;
}

/* Center zentriert (Desktop) */
.header-center{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:10px;
}
.header-center h1{
  font-weight:600;
  font-size:1.7rem;
  letter-spacing:.03em;
}

/* =========================
   Language (Desktop links)
========================= */
.lang-item,
.lang-item2{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  color:#fff;
  font-weight:600;
  font-size:.9rem;
  line-height:1;
  transition:background .2s ease, transform .1s ease;
}

.flag{
  width:20px;
  height:15px;
  border-radius:2px;
}

.lang-item:hover,
.lang-item2:hover{
  background:rgba(255,255,255,.16);
  transform:translateY(-1px);
}

.lang-item.active,
.lang-item2.active{
  background:#fff;
  color:var(--primary-dark);
}

/* Mobile-Sprachen standardmäßig aus (werden im Responsive an) */
.lang-item2{display:none}

/* =========================
   Navigation
========================= */
.header-right ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap:18px;
}

.header-right li{position:relative}

.header-right a{
  font-weight:500;
  padding:6px 2px;
  border-radius:4px;
  transition:color .2s ease, background .2s ease;
  font-size:.95rem;
  position:relative;
}

/* Underline-Bar Effekt */
.header-right a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-3px;
  width:0;
  height:2px;
  background:#fff;
  transition:width .2s ease;
}
.header-right a:hover::after{width:100%}
.header-right a.active{font-weight:600}
.header-right a.active::after{width:100%}

/* =========================
   Hamburger Button
========================= */
.nav-toggle{
  display:none;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.45);
  border-radius:999px;
  color:#fff;
  font-size:1.2rem;
  padding:6px 12px;
  cursor:pointer;
  backdrop-filter:blur(6px);
  line-height:1;
}
.nav-toggle:hover{
  background:rgba(255,255,255,.16);
}

/* =========================
   Hero / Carousel
========================= */
.hero{
  margin-top:18px;
  position:relative;
  width:100%;
}

.carousel{
  margin-top:-20px;
  position:relative;
  width:100vw;
  margin-left:50%;
  transform:translateX(-50%);
  overflow:hidden;
}

/* Slides übereinander */
.carousel-slide{
  position:absolute;
  inset:0;
  width:100%;
  opacity:0;
  transition:opacity .8s ease-in-out;
}
.carousel-slide.active{
  opacity:1;
  position:relative;
}

/* Bild */
.carousel-slide img{
  width:100%;
  height:65vh;
  max-height:780px;
  min-height:320px;
  object-fit:cover;
}

/* Controls unten */
.carousel-controls{
  position:absolute;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:12px;
  background:rgba(0,0,0,.45);
  padding:6px 14px;
  border-radius:999px;
  backdrop-filter:blur(4px);
}
.carousel-dots{
  display:flex;
  align-items:center;
  gap:6px;
}
.carousel-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  border:1px solid #fff;
  background:transparent;
  cursor:pointer;
  padding:0;
  outline:none;
  transition:background .2s ease, transform .2s ease;
}
.carousel-dot.active{
  background:#fff;
  transform:scale(1.15);
}

/* =========================
   Sections
========================= */
.section{
  max-width:1100px;
  margin:80px auto;
  padding:0 24px;
  text-align:left;
}

.section-title{
  display:inline-block;
  position:relative;
  margin-bottom:40px;
  font-size:2rem;
  color:var(--primary-dark);
  font-weight:600;
  padding-bottom:6px;
}

.section-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:2px;
  background:linear-gradient(90deg,var(--primary),transparent);
}

/* =========================
   Story Text + Weiterlesen
========================= */
.story-text{
  max-width:820px;
  font-size:.98rem;
  color:var(--text-muted);
}
.story-text p + p{margin-top:12px}
.story-text strong{color:var(--primary-dark)}
.story-signature{
  margin-top:20px;
  font-weight:600;
  color:var(--primary-dark);
}

/* Versteckter Teil */
.story-more{
  margin-top:12px;
  overflow:hidden;
  max-height:0;
  opacity:0;
  transform:translateY(4px);
  transition:max-height .5s ease, opacity .5s ease, transform .4s ease;
}
.story-more.expanded{
  max-height:5000px;
  opacity:1;
  transform:translateY(0);
}

/* Button */
.story-read-more{
  margin-top:18px;
  border:none;
  background:none;
  color:var(--primary);
  font-weight:600;
  cursor:pointer;
  font-size:.95rem;
  padding:0;
  position:relative;
}
.story-read-more::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:100%;
  height:1px;
  background:var(--primary);
  transition:transform .2s ease;
  transform-origin:left;
}
.story-read-more:hover::after{transform:scaleX(.7)}

/* Listen (du nutzt timeline-list im Story-Abschnitt) */
.timeline-list{
  margin:10px 0 0 18px;
}
.timeline-list li{margin:6px 0}

/* =========================
   Footer
========================= */
footer{
  background:#fff;
  text-align:center;
  padding:25px;
  margin-top:40px;
  color:var(--text-muted);
  font-weight:500;
  border-top:2px solid var(--primary-soft);
}

/* =========================
   Responsive ✅ wie Index
========================= */

/* Tablet / kleiner Desktop */
@media (max-width:1100px){
  header{padding:16px 18px}
  .section{padding:0 16px}
  .header-center h1{font-size:1.35rem}
  .header-center .logo{height:56px}
}

/* Mobile Nav + Titel neben Hamburger + Sprachen unter Menü */
@media (max-width:968px){

  /* ✅ Grid Layout */
  header{
    display:grid;
    grid-template-columns:1fr auto;
    grid-template-rows:auto auto auto;
    align-items:center;
    gap:10px;
    padding:14px 14px;
  }

  /* Desktop-Sprachen aus */
  header > .header-left:first-of-type{display:none}

  /* ✅ Center links oben */
  .header-center{
    position:static !important;
    transform:none !important;
    grid-column:1 / 2;
    grid-row:1 / 2;
    justify-content:flex-start;
    width:auto;
    margin:0;
  }

  /* ✅ Hamburger rechts oben */
  .nav-toggle{
    display:inline-flex;
    grid-column:2 / 3;
    grid-row:1 / 2;
    justify-self:end;
    align-self:center;
    margin:0 !important;
  }

  /* ✅ Nav darunter */
  .header-right{
    grid-column:1 / -1;
    grid-row:2 / 3;
    width:100%;
    margin:0;
  }

  .header-right ul{
    display:none;
    flex-direction:column;
    gap:10px;

    background:var(--primary-dark);
    border-radius:14px;
    box-shadow:var(--shadow-strong);
    padding:14px;

    width:min(360px, 92vw);
    margin:10px auto 0;
  }

  /* ✅ JS toggelt .open auf .header-right */
  .header-right.open ul{display:flex}

  .header-right a{
    display:block;
    padding:12px 14px;
    text-align:center;
    border-radius:10px;
    background:rgba(255,255,255,.06);
  }
  .header-right a:hover{background:rgba(255,255,255,.12)}

  /* ✅ Mobile Sprachen an (unter Menü) */
  .lang-item{display:none}
  .lang-item2{display:inline-flex}

  header > .header-left:last-of-type{
    display:flex;
    grid-column:1 / -1;
    grid-row:3 / 4;
    width:100%;
    justify-content:center;
    gap:10px;
    margin-top:12px;
  }

  /* etwas mehr Abstand wenn Menü offen */
  .header-right.open + .header-left:last-of-type{
    margin-top:14px;
  }

  /* Content */
  .carousel-slide img{height:42vh;min-height:260px}
  .section{margin:55px auto;padding:0 12px}
  .section-title{font-size:1.55rem}
  .story-text{max-width:100%;font-size:.96rem}
}

/* sehr klein */
@media (max-width:480px){
  .header-center h1{font-size:1.2rem}
  .header-center .logo{height:50px}
  .section{padding:0 12px}

  .carousel-controls{bottom:10px;padding:4px 10px}
  .carousel-dot{width:8px;height:8px}
}
