/* =========================================================
   MOBILE OVERRIDES (TalkMethods)
   Datei: mobile.css
   Reihenfolge: 900 → 800 → 768 → 720 → 700 → 600 → 500
   ========================================================= */

/* <= 900px */
@media (max-width: 900px) {
  /* Insights: von 2 Spalten auf 1 Spalte */
  .insights-list { grid-template-columns: 1fr; column-gap: 0; }
  #insights .section-inner { max-width: 720px; }
}

/* <= 800px (konsolidiert): Topbar + Nav fix sichtbar, ohne Layout-Shift */
@media (max-width: 800px){

  :root{
    --topbar-h: 34px;
    --nav-h: 64px;
  }

  /* Header fix (Topbar + Nav bleiben sichtbar) */
  header{
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10000;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  }

  /* Content-Offset = Topbar + Nav */
  body{
    padding-top: calc(var(--topbar-h) + var(--nav-h));
  }

  /* Topbar kompakt und stabil (kein Hide/Reflow) */
  header .topbar{
    height: var(--topbar-h);
    max-height: none;
    overflow: visible;
    transition: none;
    display: flex;
    align-items: center;
  }

  header .topbar-inner{
    padding: 0 1rem;
    gap: 0.75rem;
    width: 100%;
  }

  header .topbar-item{
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  header .topbar-icon{
    width: 12px;
    height: 12px;
  }

  /* Falls .topbar--hidden irgendwo gesetzt wird: auf Mobile neutralisieren */
  header .topbar--hidden{
    max-height: none;
    opacity: 1;
  }

  /* Nav-Zeile kompakter -> weniger „weiß“ unter dem Burger */
  .nav-inner{
    padding: 0.5rem 1rem;
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }

  /* Burger: Touch-Target sauber, optisch kompakt */
  .nav-toggle{
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    position: relative;
    z-index: 10001;
  }

  .nav-toggle span{
    width: 20px;
    margin: 0;
  }

  /* Menü als Overlay unter der Nav-Zeile (kein Header-Höhenwachstum, kein Reflow) */
  .nav-inner{ position: relative; }

  .nav-main{
  position: absolute;
  left: 0; right: 0;
  top: var(--nav-h);
  max-height: calc(100vh - var(--topbar-h) - var(--nav-h));
  overflow: auto;

  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;

  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

  .nav-main.nav-main--open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

  .nav-main ul{
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 1.2rem 1.1rem;
  margin: 0;
}

  .nav-main a{
  display: block;
  padding: 0.55rem 0;
}

  /* Layout-Anpassungen, die Sie bisher in 800px hatten (behalten, aber hier bündeln) */
  .about-layout{ grid-template-columns: 1fr; }
  .clients-list--focus{ grid-template-columns: 1fr; }
  .clients-list{ grid-template-columns: 1fr; }
  .contact-main{ grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-main .footer-inner{ grid-template-columns: 1fr 1fr; }
}

/* <= 768px */
@media (max-width: 768px) {
  .footer-bottom { padding-bottom: 5.5rem; }
  /* falls station-page global padding hier geregelt wird */
  .station-page main { max-width: 100%; padding: 1.6rem 1.2rem; }
}

/* <= 720px */
@media (max-width: 720px) {
  /* Hero mobile */
  #station-hero { padding: 2.5rem 1.25rem 1.5rem; background-position: center top; }
  .hero h1 { font-size: 1.9rem; line-height: 1.5; }

  /* FAQ mobile */
  .faq-question { padding: 0.9rem 1rem; font-size: 0.95rem; }
  .faq-answer { padding: 0 1rem 0.85rem; font-size: 0.9rem; }

  /* Station cards mobile */
  .station-card { padding: 1.25rem 1.1rem 1.4rem; margin-bottom: 1.25rem; }
}

/* <= 700px */
@media (max-width: 700px) {
  /* Grids -> 1 spalte */
  .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .sectors-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Section padding kompakter */
  section { padding: 2.5rem 1.25rem; }

  /* CTAs: full width */
  .hero-cta,
  .services-cta-pro-button,
  .contact-cta {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }
}

/* <= 600px */
@media (max-width: 600px) {
  body { font-size: 1.02rem; }
  p, li { line-height: 1.7; }
}

/* <= 500px */
@media (max-width: 500px) {
  .footer-main .footer-inner { grid-template-columns: 1fr; }
}

/* --------------------------- */

/* Auf kleinen Screens: extra Platz nach unten,
   damit der Footer nicht von der Kontakt-Bubble überlappt wird */
@media (max-width: 768px) {
  .footer-bottom {
    padding-bottom: 5.5rem; /* ggf. auf 6rem erhöhen, wenn es noch knapp ist */
  }

    .footer-bottom-inner {
    padding-right: 3.5rem; /* falls du in HTML eine .footer-bottom-inner-Wrapper hast */
  }
}

/* Auf kleinen Screens: extra Platz nach unten,
   damit der Footer nicht von der Kontakt-Bubble überlappt wird */
@media (max-width: 768px) {
  .footer-bottom {
    padding-bottom: 5.5rem; /* bei Bedarf auf 6rem erhöhen */
  }
}

@media (max-width: 700px) {

  /* Stationen-Unterseiten (Politik / Verwaltung / Wirtschaft) */

  .station-page main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  width: 100%;
  }

  .station-inner,
  .station-list-inner {
    padding: 0;                  /* keine doppelte Innenabstände */
  }

  .station-card {
    margin: 0 0 1.5rem;          /* Karten stehen untereinander mit Abstand */
  }

  .station-intro {
    max-width: 42rem;
    margin-bottom: 1.5rem;       /* mehr Luft zwischen Intro-Text und erster Karte */
  }

  .station-nav {
    flex-wrap: wrap;             /* Chips umbrechen auf mehrere Zeilen */
    gap: 0.5rem 0.5rem;
  }
}

/* HANDY VERSION -> NACH LAUNCH LÖSCHEN */

/* Mobile-Optimierung für Coming-Soon-Hero */
@media (max-width: 768px) {

  .hero.hero--comingsoon {
    /* etwas mehr „echte“ Viewport-Höhe, günstiger für Mobile-Browser */
    min-height: 100svh;      /* neue Einheiten: sichere Viewport-Höhe */
    background-position: center top;
    padding: 0 1rem;
  }

  .comingsoon-headline {
    font-size: 1.8rem;
    letter-spacing: 0.12em;
  }

  .comingsoon-text {
    font-size: 0.95rem;
  }

  .hero.hero--comingsoon .comingsoon-card {
    padding: 1.5rem 1.25rem;
    margin: 0 1rem;
    border-radius: 14px;
  }
}

/* --------------------------- */

/* Mobile-Feinschliff Hero (bis ca. iPhone-Breite) */
@media (max-width: 720px) {
  #station-hero {
    padding: 2.5rem 1.25rem 1.5rem;   /* etwas weniger Höhe, etwas mehr seitlich */
    background-position: center top;
  }

  .hero-inner {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 1.9rem;             /* statt Desktop-Größe */
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .hero-subline {
    font-size: 1rem;
    margin-bottom: 0.9rem;
  }

  .hero-intro {
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
  }

  .hero-cta {
    width: 100%;
    text-align: center;
  }
}

/* ----------------------------------------
   Mobile-Optimierung: FAQ & Stationen
   ---------------------------------------- */
@media (max-width: 720px) {

  /* FAQ-Bereich (Akkordeon) – mobile Optimierung */
  .faq-list {
    gap: 0.75rem;
  }

  .faq-item {
    border-radius: 12px;
  }

  .faq-question {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1rem 0.85rem;
    font-size: 0.9rem;
  }

  .faq-toggle-icon {
    font-size: 1.4rem;
  }

  /* b) Oberer Bereich der Sektor-Seiten (Politik / Verwaltung / Wirtschaft) */
  .station-hero {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .station-hero-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
  }

  .station-hero-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .station-hero-text {
    font-size: 0.9rem;
    max-width: 30rem;
  }

  /* c) Stationen-Liste (Cards + „Direkt zu“-Leiste) */
  .station-inner {
    padding: 2.25rem 1.25rem 3rem;
  }

  .station-nav {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
  }

  .station-nav-link {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.85rem;
    padding: 0.55rem 0.75rem;
  }

  .station-card {
    padding: 1.25rem 1.1rem 1.4rem;
    margin-bottom: 1.25rem;
  }

  .station-pill {
    font-size: 0.72rem;
    margin-bottom: 0.4rem;
  }

  .station-heading {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }

  .station-location {
    font-size: 0.75rem;
  }

  .station-meta {
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
  }

  .station-context {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .station-card ul {
    font-size: 0.88rem;
    padding-left: 1.1rem;
  }

.station-card ul li {
  line-height: 1.55;
}

  .station-card li + li {
    margin-top: 0.2rem;
  }
}

/* --- Fix: Stations-Unterseiten auf Mobile nicht zu klein --- */
@media (max-width: 720px) {
  /* Grundschrift auf Stationsseiten leicht anheben */
  body.station-page {
    font-size: 1.02rem; /* optional: 1.03–1.05rem, wenn du es noch größer willst */
  }

  /* Fließtext in den Karten (inkl. Listen) lesbarer */
  body.station-page .station-context {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  body.station-page .station-card ul {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  /* Überschriften leicht anheben (optional, aber stimmig) */
  body.station-page .station-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  body.station-page .station-card h3 {
    font-size: 1.12rem;
  }

  body.station-page h2 {
    font-size: 1.35rem;
  }
}

/* Subpages (station-page): Mobile-Abstände kompakter */
@media (max-width: 720px) {
  body.station-page section {
    padding: 2.4rem 1.25rem;   /* statt global 4rem 1.5rem */
  }

  body.station-page #station-hero {
    padding: 2.2rem 1.25rem 1.6rem; /* Hero kompakter */
  }

  body.station-page #station-list {
    padding-top: 2.0rem;  /* weniger Luft vor den Cards */
  }
}

/* --------------------- */

/* auf kleineren Screens: etwas langsamere Bewegung & kleinere Abstände */
@media (max-width: 700px) {
  .logo-track {
    gap: 1.5rem;
    animation-duration: 32s;
  }

  .logo-item {
    min-width: 120px;
    height: 60px;
  }
}

/* Mobile: untereinander statt nebeneinander */
@media (max-width: 700px) {
  .services-cta-clean {
    flex-direction: column;
    text-align: center;
    gap: 0.9rem;
    padding: 1.4rem 1.4rem;
  }
}

/* Mobile: untereinander statt nebeneinander */
@media (max-width: 700px) {
  .services-cta-pro {
    flex-direction: column;
    text-align: center;
    padding: 1.4rem 1.3rem;
  }

  .services-cta-pro p {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .nav-logo {
    height: 36px;   /* entsprechend leicht größer auf kleinen Screens */
  }

  .nav-brand-text {
    font-size: 1.05rem;
    letter-spacing: 0.10em;
  }

  nav ul {
    gap: 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 700px) {
  /* About-Layout: untereinander statt nebeneinander */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .about-image-wrapper {
    max-width: 260px;
    margin: 0 auto;
  }

  .about-photo-large {
    width: 100%;
    height: auto;
  }

  .about-text {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.3rem 1.2rem;
  }
}

@media (max-width: 700px) {
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .sector-card {
    padding: 1.3rem 1.2rem;
  }
}

@media (max-width: 700px) {
  .section-neutral,
  .section-soft,
  #services,
  #approach {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 768px) {
  .station-page main {
    max-width: 100%;
    padding: 1.6rem 1.2rem;
  }
}

@media (max-width: 700px) {

  /* Primäre CTAs auf Mobil breiter und höher */
  .hero-cta,
  .services-cta-pro-button,
  .contact-cta {
    width: 100%;
    text-align: center;
    min-height: 44px;      /* empfohlenes Minimum für Touch-Ziele */
    padding: 0.75rem 1.2rem;
    font-size: 0.98rem;
  }

  /* Floating-Bubble etwas kleiner und weniger dominant */
  .contact-float-toggle {
    width: 72px;
    height: 72px;
    font-size: 0.75rem;
    padding: 0.4rem;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .quote-inner p {
    font-size: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .approach-quote {
    margin-left: 1rem;
    font-size: 0.92rem;
  }
}


/* =========================================
   MOBILE: Leistungen – Swipe statt 2-Spalten
   ========================================= */
@media (max-width: 720px) {

  /* Sicherheitsnetz gegen abgeschnittene Inhalte */
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  /* ABER: innerhalb des Leistungen-Grids erlauben wir horizontalen Scroll */
  #services .services-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #services .service-card {
    flex: 0 0 85% !important;     /* sichtbare Kartenbreite */
    max-width: 100% !important;
    scroll-snap-align: start;

    /* verhindert „zusammengedrückte“ Karten */
    min-width: 85%;
  }

  /* Optional: letzte Karte hat rechts etwas Luft */
  #services .services-grid::after {
    content: "";
    flex: 0 0 0.25rem;
  }
}

/* ===============================
   TOPBAR – sauberes Mobile-Verhalten
   =============================== */
@media (max-width: 420px) {

  .topbar {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 800px){

  /* Header bleibt gleich hoch – wir animieren nur visuell */
  header{
    will-change: transform;
  }

  /* Topbar wird nur visuell ausgeblendet */
  header .topbar{
    transition: opacity .18s ease, transform .18s ease;
    will-change: opacity, transform;
  }

  /* Nav-Zeile verschiebt sich leicht nach oben (wirkt „weniger starr“) */
  .nav-inner{
    transition: transform .18s ease;
    will-change: transform;
  }

  /* Scroll-Zustand */
  header.is-compact .topbar{
  opacity: 0;
  transform: none;
  pointer-events: none;
}

  header.is-compact .nav-inner{
    transform: translateY(-10px);
  }
}

