/* =========================================================
   FiBu-Connect – Core Style v1.1 (FINAL)
   Ruhig • Seriös • Enterprise • Kachelbasiert
   ========================================================= */

/* ---------- CSS VARIABLEN ---------- */
:root{
  --bg:#f7f8fa;
  --card:#ffffff;
  --border:#e5e7eb;

  --text:#111827;
  --muted:#6b7280;

  /* Akzent */
  --accent:#0ea5e9;
  --accent-hover:#0284c7;

  --radius:16px;
  --radius-sm:12px;

  --shadow:0 8px 24px rgba(16,24,40,.06);
}

/* ---------- RESET / BASIS ---------- */
*{box-sizing:border-box}
html{color-scheme:light}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ---------- LAYOUT ---------- */
.wrap{
  max-width:1024px;
  margin:0 auto;
  padding:24px 16px 48px;
}
.section{margin-top:28px}

/* ---------- KACHELN / CARDS ---------- */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px 24px;
}
.card.sm{padding:16px 18px}

/* ---------- TYPO ---------- */
h1,h2,h3{
  margin:0 0 10px;
  letter-spacing:.2px;
}
h1{
  font-size:clamp(28px,4.6vw,44px);
  line-height:1.15;
}
h2{font-size:22px}
h3{font-size:18px}
p{margin:6px 0;color:var(--muted)}
strong{color:var(--text);font-weight:700}

/* ---------- HERO ---------- */
.hero{text-align:center}
.hero p{
  max-width:820px;
  margin:10px auto 0;
  font-size:17px;
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  transition:transform .08s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(16,24,40,.12);
}
.btn.primary{
  background:linear-gradient(180deg,#38bdf8,#0ea5e9);
  border-color:#38bdf8;
  color:#fff;
}
.btn.primary:hover{
  background:linear-gradient(180deg,#0ea5e9,#0284c7);
}

/* ---------- GRID ---------- */
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}

@media(max-width:980px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
}

/* ---------- CTA GRID ---------- */
.cta-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px 18px;
}
.cta-grid .btn{
  padding:10px 6px;
  font-size:14px;
  border-radius:10px;
}
@media(max-width:980px){
  .cta-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:580px){
  .cta-grid{grid-template-columns:1fr}
}

/* ---------- LISTEN ---------- */
.list{display:grid;gap:12px}
.list-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:#fff;
}

/* =========================================================
   HEADER – FiBu-Connect
   ========================================================= */

.fc-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--card);
  border-bottom:1px solid var(--border);
}

.fc-header-inner{
  max-width:1120px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.fc-logo{
  font-weight:800;
  font-size:18px;
  color:var(--text);
  text-decoration:none;
  letter-spacing:.2px;
}

/* Desktop Nav */
.fc-nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.fc-nav a,
.fc-nav span{
  font-size:14px;
  font-weight:600;
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
}
.fc-nav a:hover{color:var(--accent)}

/* Header CTA */
.fc-nav .cta{
  padding:8px 14px;
  border-radius:10px;
  background:linear-gradient(180deg,#38bdf8,#0ea5e9);
  color:#fff;
  font-weight:700;
  border:0;
}
.fc-nav .cta:hover{
  background:linear-gradient(180deg,#0ea5e9,#0284c7);
}

/* Dropdown */
.fc-dropdown-wrap{position:relative}
.fc-dropdown{
  position:absolute;
  top:28px;
  left:0;
  min-width:240px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow);
  padding:10px 12px;
  display:none;
}
.fc-dropdown span{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 6px;
  font-size:14px;
  color:var(--muted);
  border-radius:8px;
}
.fc-dropdown span:hover{
  background:#f8fafc;
}
.fc-dropdown-wrap:hover .fc-dropdown{display:block}

/* Burger */
.fc-burger{
  display:none;
  font-size:22px;
  background:none;
  border:0;
  cursor:pointer;
}

/* Mobile Menu */
.fc-mobile{
  display:none;
  flex-direction:column;
  padding:14px 16px;
  border-top:1px solid var(--border);
  background:var(--card);
}
.fc-mobile a,
.fc-mobile span{
  padding:10px 0;
  font-weight:600;
  font-size:15px;
  color:var(--text);
}
.fc-mobile span{color:var(--muted)}
.fc-mobile.open{display:flex}

@media(max-width:980px){
  .fc-nav{display:none}
  .fc-burger{display:block}
}

/* =========================================================
   FOOTER – FiBu-Connect
   ========================================================= */

.fc-footer{
  margin-top:48px;
  padding-top:22px;
  border-top:1px dashed var(--border);
  background:var(--bg);
}

.fc-footer-inner{
  max-width:1120px;
  margin:0 auto;
  padding:0 16px 28px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  font-size:13px;
  color:var(--muted);
}

.fc-footer-inner a{
  color:var(--muted);
  text-decoration:none;
}
.fc-footer-inner a:hover{text-decoration:underline}

@media(max-width:760px){
  .fc-footer-inner{grid-template-columns:1fr}
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce){
  *{transition:none !important}
}
/* =========================================================
   WHY – Kachel-Grid
   ========================================================= */

.why-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:18px;
}

.why-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:16px 18px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow);
}

.why-card span{
  font-size:22px;
  line-height:1;
  margin-top:2px;
}

.why-card .strong{
  font-weight:700;
  color:var(--text);
}

.why-card .muted{
  font-size:14px;
  color:var(--muted);
}

@media(max-width:980px){
  .why-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .why-grid{grid-template-columns:1fr}
}
/* ===============================
   TRUST – Integrationen & Partner
   =============================== */

.trust{
  margin-top: 26px;
  text-align: center;
}

.trust .muted{
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* Logo-Reihe */
.trust-row{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px 36px;
}

/* Partner-Link */
.trust-row a.partner{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Logos */
.trust-logo{
  display: block;
  height: 28px;
  width: auto;
  max-width: 160px;

  opacity: 1;
  filter: none;
  transition: transform .15s ease, filter .15s ease;
}

/* Dezenter Hover */
.trust-row a.partner:hover .trust-logo{
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 580px){
  .trust-row{
    gap: 18px 22px;
  }
  .trust-logo{
    height: 32px;
  }
}

@media(max-width:640px){
  .trust-row{
    gap:14px 18px;
  }
  .trust-row img,
  .trust-row svg{
    max-height:24px;
  }
}
/* =========================================================
   MOBILE OPTIMIERUNG – LESBARKEIT & TOUCH
   ========================================================= */

@media (max-width: 760px){

  /* ---------- Grundschrift ---------- */
  body{
    font-size:17px;
    line-height:1.65;
  }

  p{
    font-size:16px;
  }

  /* ---------- WRAP ---------- */
  .wrap{
    padding:18px 14px 40px;
  }

  /* ---------- HERO ---------- */
  .hero-title{
    font-size:clamp(28px, 7.5vw, 34px);
    line-height:1.15;
  }

  .splash .sub{
    font-size:16px;
    line-height:1.55;
  }

  .splash .sub--extra{
    font-size:15px;
  }

  /* ---------- KACHELN: ÜBER UNS ---------- */
  .list-item{
    padding:16px 16px;
    gap:14px;
  }

  .list-item strong{
    font-size:16px;
  }

  .list-item div{
    font-size:15px;
    line-height:1.5;
  }

  /* ---------- WHY-KACHELN ---------- */
  .why-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .why-card{
    padding:16px 18px;
    font-size:15px;
  }

  .why-card .strong{
    font-size:16px;
  }

  .why-card .muted{
    font-size:14px;
  }

  /* ---------- FAQ ---------- */
  .faq summary{
    font-size:16px;
    padding:4px 0;
  }

  .faq p{
    font-size:15px;
  }

  /* ---------- TRUST LOGOS ---------- */
  .trust-row{
    gap:12px 16px;
  }

  .trust-row img,
  .trust-row svg{
    max-height:22px;
  }
}
/* =========================================================
   COLS-2 – Zweispaltiger Content-Block (FiBu-Connect)
   ========================================================= */

.cols-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:32px;
  margin-top:18px;
}

/* Typo & Lesbarkeit */
.cols-2 p{
  margin:0 0 12px;
}

.cols-2 ul{
  margin:8px 0 14px 18px;
  padding:0;
}

.cols-2 li{
  margin:6px 0;
}

/* Überschriften innerhalb */
.cols-2 strong{
  color:var(--text);
}

/* Mobile: sauber untereinander */
@media (max-width: 900px){
  .cols-2{
    grid-template-columns:1fr;
    gap:22px;
  }
}
/* Extra Abstand über Abschnitts-Überschrift */
.section h3{
  margin-top:32px;   /* vorher optisch zu knapp */
  margin-bottom:16px;
}
/* =========================================================
   MOBILE FIRST BASE FIX
   ========================================================= */
@media (max-width: 640px){
  body{
    font-size:17px;
  }

  .card{
    padding:18px 16px;
  }
}
@media (max-width: 640px){
  .btn{
    min-height:44px;
    padding:14px 18px;
    font-size:15px;
  }
}
@media (max-width: 980px){
  .fc-mobile{
    padding:18px 16px 22px;
    gap:4px;
  }

  .fc-mobile a,
  .fc-mobile span{
    padding:14px 0;
    font-size:16px;
  }
}
@media (max-width: 580px){
  .cta-grid .btn{
    padding:14px 10px;
    font-size:15px;
  }
}
@media (max-width: 640px){
  .hero h1{
    font-size:clamp(26px, 8vw, 32px);
  }

  .hero p{
    font-size:16px;
  }
}
.hero{
  padding:28px 28px;
  text-align:left;
}

.hero h1{
  font-size:clamp(30px,4.2vw,44px);
  line-height:1.2;
}

.hero p{
  font-size:17px;
  max-width:820px;
}
.header {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header .nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header .nav a {
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}

.header .brand-link {
  font-weight: 700;
  font-size: 18px;
  color: #111827;
  text-decoration: none;
}
.header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;

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

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #111827;
  text-decoration: none;
  font-weight: 500;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 0;
  min-width: 220px;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #111827;
}
/* ---------------- HEADER FIX ---------------- */

.nav-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-dropdown-menu span {
  display: block;
  padding: 8px 16px;
  color: #6b7280;
  cursor: not-allowed;
}

/* LOCKED */
.nav-disabled {
  cursor: not-allowed;
  color: #6b7280;
}

/* MOBILE */
@media (max-width: 768px) {

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
  }

  .nav.open {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    border: none;
    padding: 0;
  }
}
/* Overlay */
#navOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 998;
}

/* Mobile Nav */
.nav {
  position: fixed;
  top: 64px;
  right: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: .25s ease;
  z-index: 999;
}

/* OPEN STATE */
.nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#navOverlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Desktop */
@media (min-width: 900px) {
  .nav-toggle,
  #navOverlay {
    display: none;
  }

  .nav {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    display: flex;
    gap: 24px;
  }
}
/* ===========================
   HEADER – FINAL
=========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;

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

.logo {
  font-weight: 700;
  font-size: 18px;
  color: #111;
  text-decoration: none;
}

/* NAV (DESKTOP) */
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.nav a:hover {
  color: #2563eb;
}

.nav-locked {
  color: #9ca3af;
  cursor: default;
}

/* BUTTON */
.btn-primary {
  padding: 8px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  color: #fff !important;
  font-weight: 600;
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* OVERLAY */
#navOverlay {
  display: none;
}

/* ===========================
   MOBILE
=========================== */
@media (max-width: 768px) {

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: #fff;
    padding: 80px 20px;

    flex-direction: column;
    align-items: flex-start;
    gap: 18px;

    box-shadow: -10px 0 30px rgba(0,0,0,.1);
    transition: right .3s ease;
  }

  .nav.open {
    right: 0;
  }

  #navOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999;
  }

  #navOverlay.open {
    display: block;
  }
}
/* MODULE GROUP */

.nav-group {
  position: relative;
}

.nav-group-title {
  font-weight: 500;
  cursor: default;
  color: #111;
}

.nav-group-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;

  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  z-index: 50;
}

.nav-group:hover .nav-group-list {
  display: block;
}

.nav-locked {
  display: block;
  padding: 8px 10px;
  color: #9ca3af;
  font-size: 14px;
  cursor: not-allowed;
}

/* MOBILE */
@media (max-width: 768px) {

  .nav-group-list {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .nav-group:hover .nav-group-list {
    display: block;
  }
}
/* ============================
   AUTH / LOGIN
============================ */

.auth {
  background: #f7f8fa;
  min-height: 100vh;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16,24,40,.06);
  padding: 32px 28px;
  text-align: center;
}

.auth-logo {
  width: 110px;
  margin-bottom: 16px;
}

.auth-title {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

.auth-meta {
  margin-top: 18px;
  font-size: .85rem;
  color: #6b7280;
  text-align: center;
}
.module-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  height:100%;
}

.module-card .icon{
  font-size:26px;
  line-height:1;
}

.module-card .cta{
  margin-top:auto;
}
/* MODULE CARDS – Button immer unten */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card p {
  flex-grow: 1;
}
/* ===============================
   MODULE GRID – SaaS FIXES
   =============================== */

/* Karten immer gleich hoch */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Text darf wachsen, Button bleibt unten */
.card p {
  flex-grow: 1;
}

/* Buttons immer gleich breit */
.card .btn {
  width: 100%;
  text-align: center;
}

/* Deaktivierte Buttons (In Entwicklung) */
.btn.disabled {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px dashed #d1d5db;
  cursor: not-allowed;
}
/* ===============================
   MODULE BUTTONS – EINHEITLICH
================================ */

.btn-block{
  display:block;
  width:100%;
  text-align:center;
  font-weight:700;
  padding:14px 16px;
  border-radius:12px;
  font-size:15px;
}

/* Statusfarben */
.btn-beta{
  background:linear-gradient(180deg,#38bdf8,#0ea5e9);
  color:#fff;
  border:none;
}

.btn-soon{
  background:linear-gradient(180deg,#38bdf8,#0ea5e9);
  color:#fff;
  border:none;
}

.btn-dev{
  background:#f3f4f6;
  color:#6b7280;
  border:1px dashed #d1d5db;
  cursor:not-allowed;
}
/* ===============================
   MOBILE NAV – HAMBURGER
================================ */

.nav-toggle{
  display:none;
  font-size:26px;
  background:none;
  border:0;
  cursor:pointer;
}

@media (max-width: 900px){

  .nav-toggle{
    display:block;
  }

  .nav{
    position:fixed;
    top:0;
    right:-100%;
    width:80%;
    max-width:320px;
    height:100vh;
    background:#fff;
    padding:80px 24px 24px;
    display:flex;
    flex-direction:column;
    gap:18px;
    box-shadow:-10px 0 30px rgba(0,0,0,.08);
    transition:right .3s ease;
    z-index:1001;
  }

  .nav.open{
    right:0;
  }

  #navOverlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
    z-index:1000;
  }

  #navOverlay.open{
    display:block;
  }
}
/* ===============================
   MOBILE FIX – MODULE SEITE
================================ */

@media (max-width: 768px){

  h1{
    font-size:28px;
    line-height:1.2;
  }

  p{
    font-size:16px;
    line-height:1.6;
  }

  .module-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .module-card{
    padding:22px;
  }

  .module-card h3{
    font-size:17px;
  }

  .module-card p{
    font-size:15px;
  }
}
/* =========================================================
   MOBILE NAV – FINAL FIX (BLUR + CLICK + Z-INDEX)
   ========================================================= */

/* ---------- Overlay ---------- */
#navOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  opacity: 0;
  pointer-events: none;

  transition: opacity .25s ease;
  z-index: 998;
}

/* Overlay aktiv */
#navOverlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Mobile Navigation ---------- */
.nav {
  pointer-events: none; /* default: keine Klicks */
}

/* Mobile Nav offen */
.nav.open {
  pointer-events: auto;
  z-index: 999;
}

/* ---------- Klickbarkeit erzwingen ---------- */
.nav a,
.nav button,
.nav span {
  pointer-events: auto;
}

/* ---------- Hamburger Button immer oben ---------- */
.nav-toggle {
  position: relative;
  z-index: 1000;
}

/* ---------- iOS / Android Touch-Fix ---------- */
@media (max-width: 900px) {

  .nav {
    will-change: transform;
    transform: translateZ(0);
  }

  #navOverlay {
    will-change: opacity;
  }
}
