/* --- Header-Right (Sprache + Auth) wie auf der Index -------------------- */
.lang-switcher { display:flex; align-items:center; gap:8px; position:relative; }
.lang-dropdown {
  display:none; position:absolute; top:100%; right:0;
  background:#fff; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.18);
  padding:6px; min-width:160px; z-index:30010; /* über Back-Pill */
}
.lang-switcher:hover .lang-dropdown { display:block; }
.lang-dropdown button{
  display:block; width:100%; background:transparent; border:0; text-align:left;
  padding:10px 12px; font-size:14px; cursor:pointer; color:#333; border-radius:8px;
}
.lang-dropdown button:hover{ background:#E6F0FA; color:#1E3A5F; }

/* --- Back-Button (Pill) identisch zum Nav-Look (Basisdesktop) ----------- */
.top-nav{ position:absolute; top:20px; left:50%; transform:translateX(-50%); z-index:3; }
.top-nav ul{
  display:flex; gap:18px; list-style:none; margin:0; padding:8px 14px;
  background:rgba(0,0,0,0.25); border-radius:999px; backdrop-filter:blur(4px);
}
.top-nav a{
  color:#fff; text-decoration:none; font-weight:700; font-size:14px; letter-spacing:.2px;
  padding:6px 10px; border-radius:8px; transition:background .2s ease, opacity .2s ease; white-space:nowrap;
}
.top-nav a:hover{ background:rgba(255,255,255,0.12); opacity:.9; }

/* Sticky wie Searchbox-Optik */
.top-nav.sticky{
  position:fixed; top:0; left:50%; transform:translateX(-50%); z-index:10002;
}
.top-nav.sticky ul{
  background-color:rgba(0,0,0,0.4);
  backdrop-filter:blur(10px);
  border-radius:10px;
  box-shadow:0 4px 8px rgba(0,0,0,0.3);
  padding:8px 14px;
}

/* --- Story Hero / Inhalt ----------------------------------------------- */
.the-story-hero{
  position:relative; min-height:100vh;
  background:url('/bilder/hero/hero_story.png') center/cover no-repeat;
  padding-top:120px; color:#fff;
}
.the-story-hero::before{ content:none !important; }
.the-story-overlay{ position:absolute; inset:0; background:rgba(0,0,0,0.5); z-index:0; }

.story-hero-title{
  font-size:3rem; text-align:center; margin-bottom:.5rem; color:#fff;
  text-shadow:0 2px 6px rgba(0,0,0,.5);
}
.story-hero-subtitle{
  font-size:1.4rem; font-weight:700; color:#FFD54F; text-align:center;
  text-shadow:0 2px 6px rgba(0,0,0,.6);
}

.process-content-upper{ position:relative; z-index:2; text-align:center; }
.process-content-lower{
  position:relative; z-index:2; margin-top:-10px; width:100%;
  display:flex; flex-direction:column; align-items:center;
}

.story-section{
  width:80%; max-width:880px; margin:30px auto; padding:24px;
  background:rgba(255,255,255,0.1); border-radius:12px; backdrop-filter:blur(3px);
}
.story-section h2{
  font-size:1.8rem; margin-bottom:12px; color:#FFD54F; text-shadow:0 2px 6px rgba(0,0,0,.5);
}
.story-section p{ color:#fff; line-height:1.6; margin-bottom:16px; }

.founders{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px;
}
.founder-card{
  background:#fff; color:#1E3A5F; border-radius:12px; padding:20px;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
}
.founder-card h3{ margin:0 0 8px 0; font-size:1.2rem; color:#003087; }
.founder-card p{ margin:0 0 8px 0; color:#333; }

/* --- Mobile Tweaks ----------------------------------------------------- */
@media (max-width:900px){
  .top-nav{ top:12px; }
  .top-nav ul{ gap:10px; padding:6px 10px; }
  .top-nav a{ font-size:12px; padding:6px 8px; }
}

.story-hero-title {
  font-size: 8rem;
  text-align: center;
  margin-bottom: .5rem;
  color:#fff;
  text-shadow:0 2px 6px rgba(0,0,0,.5);
}

.process-content-upper { margin-top: 5px; }

/* === Mobile Overflow-Fixes & Abstand-Feinschliff === */
html, body { margin:0; padding:0; overflow-x:hidden; }
*, *::before, *::after { box-sizing:border-box; }

.process-content-lower { padding-inline: clamp(8px, 2.5vw, 16px); }
.story-section{
  inline-size:min(880px,100%);
  max-inline-size:100%;
  margin:18px auto;
  padding:clamp(10px,2.4vw,18px);
}
.story-section h2{
  font-size:clamp(1.5rem,5.2vw,2rem);
  line-height:1.15;
  overflow-wrap:anywhere;
  hyphens:auto;
}
.story-hero-title{
  font-size:clamp(3.4rem,7.2vw,5.2rem);
  line-height:1.1;
}
.story-hero-subtitle{
  font-size:clamp(2.35rem,5.2vw,3rem);
  line-height:1.25;
}
.top-nav ul{ max-width:100vw; overflow:hidden; }

@media (max-width:768px){
  .the-story-hero .story-hero-subtitle{
    display:flex !important;
    justify-content:center !important;
    text-transform:uppercase;
    margin-top:24px !important;
    margin-bottom:-10px !important;
  }
  .the-story-hero{ padding-inline:16px !important; }
  .process-content-upper{ padding-bottom:8px !important; margin-bottom:8px !important; }
  .process-content-lower{ margin-top:8px !important; }
  .process-content-upper h1,
  .process-content-upper h2{ line-height:1.1; margin:0.2em 0 0.35em; }
}

@media (max-width:420px){
  .process-content-upper{ padding-bottom:6px !important; margin-bottom:6px !important; }
  .process-content-lower{ margin-top:6px !important; }
}

/* ======================== BACK BUTTON ================================ */
/* Desktop-Standard: mittig */
.top-nav.back-only {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10005;
}
.top-nav.back-only ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 6px 14px;
  gap: 12px;
  background: rgba(0,0,0,0.25);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.top-nav.back-only a.back-link {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .2s ease, opacity .2s ease;
}
.top-nav.back-only a.back-link:hover {
  background: rgba(255,255,255,0.12);
  opacity: .9;
}

/* ======================== MOBILE BACK PILL ============================ */
@media (max-width:1024px){
  /* Position: immer zentriert UNTER Navbar */
  .top-nav.back-only,
  .top-nav.back-only.sticky{
    position: fixed !important;
    top: calc(var(--nav-h, 64px) + 16px + env(safe-area-inset-top, 0px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 20000 !important; /* unter Menüs */
    width: auto !important;
  }

  /* Pill: keine Bullets, nur so breit wie nötig */
  .top-nav.back-only ul{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    gap: 0 !important;

    background: rgba(0,0,0,0.35) !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
  }
  .top-nav.back-only li{ list-style:none !important; }

  /* Link: Inhalt selbst zentriert – i18n-Text ausgeblendet */
  .top-nav.back-only a.back-link{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 36px !important;
    padding: 0 22px !important; /* Breite über Padding */
    min-width: 110px !important; /* angenehme Mindestbreite */

    text-decoration: none !important;
    border-radius: 999px !important;
    background: transparent !important;

    /* i18n-Text (z.B. "Zurück zur Startseite") neutralisieren */
    font-size: 0 !important;
    color: transparent !important;
  }

  /* sichtbares Label */
  .top-nav.back-only a.back-link::after{
    content: "Zurück";
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
  }

  /* Hover dezent */
  .top-nav.back-only a.back-link:hover{ background: rgba(255,255,255,0.12) !important; }
}

/* === Zurück-Button in Navbar links einfügen (optional, andere Seiten) === */
.navbar-back { display:flex; align-items:center; justify-content:center; height:100%; padding:0 12px; }
.navbar-back a{
  color:#fff; font-weight:600; font-size:14px; text-decoration:none;
  background:rgba(0,0,0,0.25); border-radius:20px; padding:6px 12px;
  transition:background 0.2s ease, opacity 0.2s ease;
}
.navbar-back a:hover{ background:rgba(255,255,255,0.15); opacity:.9; }

@media (max-width:768px){
  .navbar-back a{ font-size:13px; padding:5px 10px; }
}

/* ======================== MENÜS über Back-Pill ======================== */
.header-bar{ position:relative; z-index:30000; } /* Header-Ebene */
.lang-dropdown{ z-index:30010; }                 /* Sprachmenü */
.auth-links .dropdown-content{ z-index:30010; }  /* Profil/Account-Menü */
