/*
Author: C0Eight
story.css (clean fixed)
*/

/* =========================
   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, 0.12);
  --shadow-strong: 0 14px 34px rgba(15, 23, 42, 0.18);
}

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

html { scroll-behavior: smooth; }

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

a {
  text-decoration: none;
  color: inherit;
}

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

/* =========================
   Header
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 28px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;

  border-bottom: 3px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

/* linke / rechte Bereiche */
.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-left { gap: 10px; }
.header-right { margin-left: auto; }

/* Center (Logo + Titel) */
.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 10px;
  pointer-events: none; /* verhindert “komisches” klicken */
}

.header-center .logo {
  height: 64px;
  width: auto;
}

.header-center h1 {
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

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

.lang-item .flag,
.lang-item2 .flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

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

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

/* Desktop zeigt lang-item, mobile zeigt lang-item2 */
.lang-item2 { display: none; }

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

.header-right li { position: relative; }

.header-right a {
  position: relative;
  font-weight: 500;
  padding: 6px 2px;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* Underline */
.header-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.2s ease;
}

.header-right a:hover::after { width: 100%; }
.header-right a.active { font-weight: 700; }
.header-right a.active::after { width: 100%; }

/* =========================
   Hamburger
========================= */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: white;
  font-size: 1.2rem;
  padding: 6px 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: 0.2s ease;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.18); }

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

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

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

/* =========================
   FAQ – Clean & Modern
========================= */
.faq{
  display:grid;
  gap:14px;
  max-width:900px;
}

.faq-item{
  background:#fff;
  border:1px solid rgba(85,85,255,0.14);
  border-radius:16px;
  box-shadow:0 10px 30px rgba(15,23,42,0.08);
  overflow:hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.faq-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15,23,42,0.12);
}

.faq-question{
  width:100%;
  background:transparent;
  border:0;
  cursor:pointer;
  padding:18px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  font-family:inherit;
  text-align:left;
}

.faq-question span:first-child{
  font-weight:600;
  color:var(--primary-dark);
  font-size:1.02rem;
  line-height:1.25;
}

.faq-icon{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(85,85,255,0.18);
  background: rgba(85,85,255,0.06);
  display:grid;
  place-items:center;
  font-weight:700;
  color:var(--primary-dark);
  flex-shrink:0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item.open .faq-icon{
  transform: rotate(45deg);
  background: rgba(85,85,255,0.12);
}

.faq-answer{
  max-height:0;
  overflow:hidden;
  transition: max-height 0.28s ease;
}

.faq-answer-inner{
  padding:0 18px 18px;
  color:var(--text-muted);
  line-height:1.75;
  font-size:0.98rem;
}

.faq-answer-inner a{
  color:var(--primary-dark);
  font-weight:600;
}
.faq-answer-inner a:hover{ text-decoration:underline; }

.faq-answer-inner ul{
  margin-top:10px;
  padding-left:18px;
}
.faq-answer-inner li + li{ margin-top:6px; }

/* 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; }
  .logo{ height:56px; }
}

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

  /* ✅ Header als Grid */
  header{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto; /* (1) top row, (2) menu, (3) languages */
    align-items:center;
    gap:10px;
    padding:14px 14px;
  }

  /* Desktop Sprachen aus */
  .lang-desktop{ 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;
    gap:10px;
  }
  .header-center h1{ font-size:1.25rem; }
  .logo{ height:52px; }

  /* Hamburger rechts oben */
  .nav-toggle{
    display:inline-flex;
    grid-column:2 / 3;
    grid-row:1 / 2;
    justify-self:end;
  }

  /* Nav auf Zeile 2 */
  .header-right{
    grid-column:1 / -1;
    grid-row:2 / 3;
    width:100%;
    justify-content:center;
  }

  /* Menü Dropdown */
  .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;
  }

  /* ✅ passt zu deinem JS: .header-right.open */
  .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,0.06);
  }
  .header-right a:hover{
    background: rgba(255,255,255,0.12);
  }

  /* ✅ Mobile Sprachen: standardmäßig HIDDEN */
  .lang-mobile{
    display:none;
    grid-column:1 / -1;
    grid-row:3 / 4;
    width:100%;
    justify-content:center;
    margin-top:10px;
    gap:10px;
  }

  /* ✅ NUR wenn Menü offen ist → Sprachen anzeigen UNTER dem Menü */
  .header-right.open ~ .lang-mobile{
    display:flex;
  }

  /* FAQ Spacing */
  .faq{ max-width:100%; }
  .faq-question{ padding:16px 16px; }
  .faq-answer-inner{ padding:0 16px 16px; }
}

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

/*
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}
}
