/* ═══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS — Mobile & Tablet
   ═══════════════════════════════════════════════════════════ */

/* ── Hamburger Button ─────────────────────────────────────── */
.hdr-ham {
  display: none;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--cyan);
  border: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; padding: 0; margin-left: 6px; flex-shrink: 0;
  transform: rotate(-1.5deg);
  transition: transform .18s, filter .18s;
}
.hdr-ham:hover { filter: brightness(1.08); transform: rotate(-1.5deg) scale(1.06); }
.hdr-ham span {
  display: block; width: 16px; height: 2px;
  background: #fff; border-radius: 999px;
  transition: transform .26s cubic-bezier(.4,0,.2,1), opacity .2s;
}
.hdr-ham.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr-ham.open span:nth-child(2) { opacity: 0; }
.hdr-ham.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile Nav Drawer ────────────────────────────────────── */
.ham-panel {
  position: fixed; inset: 0;
  z-index: 48;
  background: var(--surface);
  display: flex; flex-direction: column;
  padding: 88px 0 24px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .22s, transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ham-panel.open { opacity: 1; pointer-events: auto; transform: none; }

.ham-nav {
  display: flex; flex-direction: column;
  padding: 0 24px;
  border-top: 1px solid var(--line);
}
.ham-nav-item {
  font-family: var(--head); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: color .15s;
}
.ham-nav-item:last-child { border-bottom: 0; }
.ham-nav-item:hover { color: var(--green); }
.ham-nav-item span { opacity: .35; font-weight: 400; }

/* Accordion wrapper */
.ham-acc { border-bottom: 1px solid var(--line); }
.ham-acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; text-align: left; cursor: pointer;
  border-bottom: none !important; outline: none;
}
.ham-acc-btn:hover { color: var(--ink) !important; }
.ham-acc-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.ham-chev {
  font-size: .7rem; opacity: .4; transition: transform .22s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.ham-acc-btn[aria-expanded="true"] .ham-chev { transform: rotate(180deg); opacity: .7; }
.ham-acc-body {
  display: flex; flex-direction: column; gap: 0;
  padding: 0 0 12px 0;
}
.ham-acc-body[hidden] { display: none; }
.ham-sub-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
}
.ham-sub-item:hover { background: oklch(97% .005 145); }
.ham-sub-cat {
  font-family: var(--head); font-weight: 700; font-size: .95rem;
  color: var(--ink);
}
.ham-sub-title {
  font-size: .8rem; color: var(--muted); line-height: 1.3;
}

.ham-ctas {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 24px 0;
}
.ham-ctas .btn { justify-content: center; font-size: 1.05rem; }

/* Language toggle in mobile menu */
.ham-lang {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px 6px;
}
.ham-lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: .9rem;
  color: var(--muted); padding: 4px 8px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.ham-lang-btn.active { color: var(--ink); background: var(--line); }
.ham-lang-sep { color: var(--muted); font-size: .85rem; }

/* ═══════════════════════════════════════════════════════════
   ≤ 920 px  —  Tablet landscape / kleines Tablet
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
  /* Header: Hamburger einblenden, CTAs ausblenden */
  .hdr-ham { display: flex; }
  .hdr-cta { display: none !important; }
  .hdr-actions { display: none !important; }
  .hdr-in {
    grid-template-columns: 1fr auto !important;
    max-width: none;
    width: calc(100% - 32px);
    padding: 0 8px 0 16px;
  }
  .hdr-in .nav { display: none; }

  /* Hero-Visual: Transforms + Maße zurücksetzen ≤920px */
  .hero-vis {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
  }
  .hero-img { border-radius: 20px; }
  .hero-in { padding-bottom: 40px; }

  /* Teaser: etwas weniger Padding */
  .teaser { padding: clamp(40px,7vw,80px) 0; }
}

/* ═══════════════════════════════════════════════════════════
   ≤ 768 px  —  Tablet portrait / großes Handy
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Etwas engerer Innenabstand */
  .wrap { width: min(100%, calc(100% - 32px)); }

  /* Hero Copy */
  .hero h1 { margin-top: 12px; }
  .hero-cta { margin-top: 24px; gap: 10px; }
  .hero-cta .btn { font-size: .95rem; padding: 14px 22px; }
  .hero-sub { margin-top: 20px; }

  /* Logo-Banner: Lead-Text ausblenden, Marquee breit */
  .logos-lead { display: none; }
  .marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  /* Produkt-Karten: 2-spaltig bei mittlerer Breite */
  .mtall { grid-template-columns: 1fr 1fr; }
  .tcard { min-height: 360px; }

  /* Teaser: Grid-Template zurücksetzen */
  .teaser-band { grid-template-columns: 1fr; gap: 32px; }

  /* Modul-Heading kleiner */
  .mods-head h2 { font-size: clamp(1.7rem,5vw,2.6rem); }

  /* FAQ: volle Breite */
  .faq .wrap { width: calc(100% - 32px); }

  /* Integration */
  .integ h2 { font-size: clamp(1.7rem,5vw,2.6rem); }

  /* Blog-Karten: 2 spaltig */
  .blog-head-row h2 { font-size: clamp(1.7rem,5vw,2.6rem); }

  /* CTA Band */
  .cta-band { border-radius: 22px; padding: clamp(36px,6vw,60px) clamp(22px,4vw,48px); }
  .cta-band h2 { font-size: clamp(1.7rem,5vw,2.6rem); }

  /* Testimonials */
  .ts-hd h2 { font-size: clamp(1.7rem,5vw,2.6rem); }
  .ts-section { padding: 64px 0 0; }

  /* Branchen */
  .branchen h2 { font-size: clamp(1.7rem,5vw,2.6rem); }
  .branchen h3 { font-size: clamp(1.1rem,3.8vw,1.5rem); }

  /* Vorteile (Conv) */
  .usps-head h2 { font-size: clamp(1.7rem,5vw,2.6rem); }

  /* Schnittstellen Logos: 3 Spalten */
  .lw-grid { grid-template-columns: repeat(3,1fr); }
  .lw-cell:nth-child(5n) { border-right: 1px solid var(--line); }
  .lw-cell:nth-child(3n) { border-right: 0; }
  .lw-cell:nth-last-child(-n+5) { border-bottom: 1px solid var(--line); }
  .lw-cell:nth-last-child(-n+3) { border-bottom: 0; }
}

/* ═══════════════════════════════════════════════════════════
   ≤ 560 px  —  Standard-Smartphone
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 560px) {
  /* Topbar ausblenden — spart Platz */
  .hdr-topbar { display: none; }

  /* Hero: CTA stacken */
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-sub { font-size: .98rem; }

  /* Hero-Visual auf mobile etwas kleiner */
  .shot { min-height: 0; }

  /* Logo-Banner: Höhe auto */
  .logos { height: auto; padding: 20px 0; }

  /* Produkt-Karten: 1-spaltig */
  .mtall { grid-template-columns: 1fr; }
  .tcard { min-height: 320px; }

  /* Branchen-Tags kleiner */
  .branchen-tags .btn { font-size: .88rem; padding: 11px 20px; }

  /* Blog: Kopfzeile stacken */
  .blog-head-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .blog-head-row h2 { font-size: clamp(1.5rem,7vw,2rem); }

  /* CTA-Buttons stacken */
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .foot-links { grid-template-columns: 1fr 1fr !important; }
  .foot-btm { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Vorteile-Galerie: mobile immer offen */
  .vgal { height: auto; }
  .vcard { height: auto !important; min-height: 300px !important; cursor: default; }
  .vcard:not(.open) .vc-inner { top: auto !important; left: 14px !important; right: 14px !important; bottom: 14px !important; width: auto !important; flex-direction: column !important; align-items: flex-start !important; padding: 18px 20px 22px !important; }
  .vcard:not(.open) .vc-head { writing-mode: horizontal-tb !important; transform: none !important; position: static !important; white-space: normal !important; font-size: 1.15rem !important; }
  .vcard:not(.open) .vc-detail { display: block !important; max-height: 300px !important; opacity: 1 !important; margin-top: 8px !important; }
  .vcard:not(.open) .vc-short { display: none !important; }
  .vcard:not(.open) .vc-long { display: inline !important; }
  .vc-arrow { display: none !important; }

  /* Chatbot */
  .chatbot-btn { bottom: 16px; right: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   ≤ 480 px  —  Kleines Smartphone
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2.2rem,10vw,3rem); }
  .hero-sub { font-size: .95rem; }

  /* Testimonial-Slider */
  .ts-card { width: 200px; }
  .ts-photo { height: 280px; }

  /* Footer: 1-spaltig */
  .foot-links { grid-template-columns: 1fr !important; }

  /* Modul-Modal */
  .mod-dialog { border-radius: 16px; }

  /* Schnittstellen: 2 Spalten */
  .lw-grid { grid-template-columns: repeat(2,1fr); }
  .lw-cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .lw-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .lw-cell:nth-child(2n) { border-right: 0; }
  .lw-cell:nth-last-child(-n+2) { border-bottom: 0; }

  /* FAQ */
  .faq-q { font-size: .98rem; padding: 16px 18px; }
  .faq-a p { padding: 0 18px 18px; }

  /* Integ-Karte */
  .integ-list li { font-size: .96rem; padding: 13px 18px; }
}

/* ═══════════════════════════════════════════════════════════
   ≤ 380 px  —  Sehr kleines Handy
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .wrap { width: calc(100% - 24px); }
  .hdr-in { width: calc(100% - 20px); }
  .hero h1 { font-size: clamp(1.9rem,9vw,2.6rem); }
  .btn-lg { padding: 14px 20px; font-size: .96rem; }
  .branch-tag { font-size: .82rem; padding: 9px 15px; }
}

/* ════════ FOOTER (Variante 1b · Brand-Baseline) — aus v2 übernommen ════════ */
.gf{position:relative;
  --f-blue:#0e3a54; --f-blue-2:#0a2c40;
  --f-line:rgba(255,255,255,.12); --f-line-soft:rgba(255,255,255,.07);
  --f-txt:rgba(255,255,255,.6); --f-txt-strong:#fff;
  --cy:#25b4de; --gr:#8bc220;
  background:linear-gradient(165deg,var(--f-blue) 0%,var(--f-blue-2) 100%);color:var(--f-txt);
  font-family:var(--head);overflow:hidden;width:100vw;margin-left:calc(50% - 50vw);}
.gf-wrap{position:relative;z-index:3;width:min(1640px,100%);margin-inline:auto;padding:clamp(38px,4vw,64px) clamp(24px,4vw,64px);}
.gf .ico{width:1em;height:1em;display:inline-block;vertical-align:-.12em;flex:0 0 auto;}
.gf .logo-white{height:34px;width:auto;filter:brightness(0) invert(1);user-select:none;}
.gf .f-tag{margin:18px 0 0;max-width:30ch;font-size:.98rem;line-height:1.55;color:var(--f-txt);font-weight:500;}
.gf .f-col h4{margin:0 0 14px;color:var(--f-txt-strong);font-size:.82rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;}
.gf .f-col a{position:relative;display:block;width:fit-content;padding:6px 0;color:var(--f-txt);font-weight:600;font-size:.96rem;transition:color .2s,transform .2s;}
.gf .f-col a::after{content:"";position:absolute;left:0;bottom:3px;height:2px;width:0;border-radius:2px;background:var(--cy);transition:width .26s cubic-bezier(.2,.8,.2,1);}
.gf .f-col a:hover{color:var(--f-txt-strong);transform:translateX(3px);}
.gf .f-col a:hover::after{width:100%;}
.gf .f-contact{display:flex;flex-direction:column;gap:13px;margin-top:22px;}
.gf .f-contact a,.gf .f-contact span{display:inline-flex;align-items:center;gap:11px;color:var(--f-txt);font-weight:600;font-size:.96rem;transition:color .2s;}
.gf .f-contact a:hover{color:var(--f-txt-strong);}
.gf .f-contact .ico{font-size:1.05rem;color:var(--cy);}
.gf .f-socials{display:flex;gap:12px;}
.gf .soc{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:1.18rem;color:var(--f-txt-strong);background:rgba(255,255,255,.07);border:1px solid var(--f-line);transition:transform .2s cubic-bezier(.2,.8,.2,1),background .2s,border-color .2s,box-shadow .2s;}
.gf .soc:hover{transform:translateY(-4px);background:var(--cy);border-color:var(--cy);box-shadow:0 14px 26px -12px var(--cy);}
.gf .soc.s-ig:hover{background:#d6336c;border-color:#d6336c;box-shadow:0 14px 26px -12px #d6336c;}
.gf .soc.s-li:hover{background:#0a66c2;border-color:#0a66c2;box-shadow:0 14px 26px -12px #0a66c2;}
.gf .soc.s-fb:hover{background:#1877f2;border-color:#1877f2;box-shadow:0 14px 26px -12px #1877f2;}
.gf .f-apps{display:flex;flex-wrap:wrap;gap:12px;}
.gf .appbtn{display:inline-flex;align-items:center;gap:12px;padding:11px 18px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid var(--f-line);color:var(--f-txt-strong);transition:transform .2s cubic-bezier(.2,.8,.2,1),background .2s,border-color .2s;min-width:168px;}
.gf .appbtn:hover{transform:translateY(-3px);background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28);}
.gf .appbtn .ico{font-size:1.5rem;color:#fff;}
.gf .appbtn .l{display:flex;flex-direction:column;line-height:1.12;}
.gf .appbtn .l small{font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;color:var(--f-txt);}
.gf .appbtn .l b{font-size:1.02rem;font-weight:700;letter-spacing:-.01em;}
.gf .lang{position:relative;display:inline-block;}
.gf .lang>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:9px;padding:9px 14px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid var(--f-line);color:var(--f-txt-strong);font-weight:600;font-size:.92rem;transition:background .2s,border-color .2s;}
.gf .lang>summary::-webkit-details-marker{display:none;}
.gf .lang>summary:hover{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.26);}
.gf .lang>summary .chev{margin-left:2px;font-size:.9rem;color:var(--f-txt);transition:transform .25s;}
.gf .lang[open]>summary .chev{transform:rotate(180deg);}
.gf .lang>summary .globe{color:var(--cy);font-size:1.05rem;}
.gf .lang-menu{position:absolute;left:0;bottom:calc(100% + 8px);min-width:160px;background:#0c2c40;border:1px solid var(--f-line);border-radius:14px;padding:6px;box-shadow:0 18px 40px -16px rgba(0,0,0,.6);display:flex;flex-direction:column;z-index:9;}
.gf .lang-menu a{padding:9px 12px;border-radius:9px;color:var(--f-txt);font-weight:600;font-size:.92rem;transition:background .15s,color .15s;}
.gf .lang-menu a:hover{background:rgba(255,255,255,.08);color:#fff;}
.gf .lang-menu a[aria-current="true"]{color:var(--cy);}
.gf .f-btm{position:relative;z-index:3;width:min(1640px,100%);margin-inline:auto;padding:20px clamp(24px,4vw,64px);display:flex;flex-wrap:wrap;gap:10px 26px;align-items:center;justify-content:space-between;border-top:1px solid var(--f-line-soft);font-size:.86rem;color:var(--f-txt);}
.gf .f-btm .legal{display:flex;flex-wrap:wrap;gap:8px 22px;}
.gf .f-btm .legal a{transition:color .2s;font-weight:600;}
.gf .f-btm .legal a:hover{color:#fff;}
.gf-b{padding-bottom:clamp(60px,9vw,120px);}
.gf-b .top{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:clamp(26px,3vw,52px);align-items:start;}
.gf-b .brand-tag{grid-column:1;}
.gf-b .b-actions{margin-top:clamp(40px,4.5vw,60px);display:flex;flex-wrap:wrap;gap:34px 60px;align-items:flex-end;}
.gf-b .giant{position:absolute;left:0;right:0;bottom:-.16em;z-index:1;margin:0;pointer-events:none;font-weight:700;letter-spacing:-.04em;line-height:.8;text-align:center;white-space:nowrap;font-size:clamp(7rem,23vw,21rem);background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(37,180,222,.05));-webkit-background-clip:text;background-clip:text;color:transparent;transition:transform .25s ease-out;}
.gf-b .sq{position:absolute;z-index:2;border-radius:7px;box-shadow:0 8px 22px -8px rgba(0,0,0,.5);transition:transform .2s ease-out;}
@media(max-width:920px){ .gf-b .top{grid-template-columns:1fr 1fr;} .gf-b .brand-tag{grid-column:1/-1;} }
@media(max-width:540px){ .gf-b .top{grid-template-columns:1fr;} }
