/* Smartbaupro Public-Layout (Header, Landing, Footer)
   Wird verwendet, wenn keine Session aktiv ist und vor Login. */

.public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-shell main {
  padding: 0;
  max-width: none;
  flex: 1;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 15, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.public-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.public-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.public-logo .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0891b2, #7edbff);
  display: grid;
  place-items: center;
  color: #061018;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.public-logo strong {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  display: block;
}

.public-logo strong .bau {
  color: var(--accent-glow);
}

.public-logo small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.public-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
  cursor: pointer;
}

.public-nav a:hover,
.public-nav a.active {
  color: var(--text);
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cta {
  background: var(--accent-strong);
  color: white;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-cta:hover {
  background: var(--accent);
}

.btn-ghost {
  color: var(--text);
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent-glow);
  color: var(--accent-glow);
}

/* Landing Hero ----------------------------------------------------- */

.landing-section {
  padding: 80px 26px;
  max-width: 1280px;
  margin: 0 auto;
}

.landing-section.tight {
  padding: 48px 26px;
}

.landing-section h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 12px;
  line-height: 1.15;
  text-align: center;
}

.landing-section .section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 16px;
  line-height: 1.6;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-glow);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 14px var(--accent-glow);
}

.landing-hero h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text);
}

.landing-hero h1 em {
  font-style: normal;
  color: var(--accent-glow);
}

.landing-hero p.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 28px;
}

.landing-hero .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-mockup {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(126, 219, 255, 0.04), rgba(8, 145, 178, 0.02));
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(126, 219, 255, 0.05);
}

.hero-mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.hero-mockup-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hero-mockup-bar span:nth-child(1) { background: #ef4444; }
.hero-mockup-bar span:nth-child(2) { background: #f59e0b; }
.hero-mockup-bar span:nth-child(3) { background: #22c55e; }

.hero-mockup-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.hero-mockup-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 20, 29, 0.6);
  font-size: 14px;
}

/* Trust-Band ------------------------------------------------------ */

.trust-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.trust-band-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.trust-band-inner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-band-inner span::before {
  content: "✓";
  color: var(--accent-glow);
  font-weight: 800;
}

/* Feature-Showcase ----------------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.showcase.reverse > div:first-child {
  order: 2;
}

.showcase h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 0 16px;
  line-height: 1.18;
}

.showcase p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
}

.showcase ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.showcase ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.45;
}

.showcase ul li::before {
  content: "→";
  color: var(--accent-glow);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.showcase-visual {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: 28px;
  min-height: 280px;
  display: grid;
  gap: 14px;
  align-content: center;
}

.showcase-visual .vis-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 20, 29, 0.4);
  font-size: 13.5px;
}

/* Process Timeline ------------------------------------------------ */

.process-timeline {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin: 32px auto 0;
}

.process-step {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.process-step .num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(126, 219, 255, 0.10);
  color: var(--accent-glow);
  font-weight: 800;
  font-size: 18px;
}

.process-step strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.process-step span {
  color: var(--muted);
  font-size: 14px;
}

/* FAQ ------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent-glow);
  font-size: 22px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14.5px;
}

/* CTA-Band -------------------------------------------------------- */

.cta-band {
  margin: 60px auto;
  max-width: 1100px;
  padding: 48px 32px;
  border: 1px solid rgba(126, 219, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 0%, rgba(126, 219, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(13, 20, 29, 0.8), rgba(13, 20, 29, 0.4));
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 12px;
}

.cta-band p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 15.5px;
  line-height: 1.55;
}

.cta-band .hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer ---------------------------------------------------------- */

.public-footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 15, 0.6);
  padding: 50px 26px 28px;
  margin-top: 60px;
}

.public-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}

.public-footer h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 14px;
}

.public-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.public-footer ul a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
  cursor: pointer;
}

.public-footer ul a:hover {
  color: var(--accent-glow);
}

.public-footer-brand p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 12px 0 0;
}

.public-footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Auth-Page ------------------------------------------------------- */

.auth-page {
  display: grid;
  place-items: center;
  padding: 80px 26px;
  min-height: calc(100vh - 80px);
}

.auth-page-card {
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 20, 29, 0.85), rgba(13, 20, 29, 0.5));
  padding: 36px;
  box-shadow: var(--shadow);
}

.auth-page-card h1 {
  font-size: 28px;
  margin: 0 0 6px;
}

.auth-page-card p.lead {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14.5px;
}

.auth-page-card .form {
  display: grid;
  gap: 14px;
}

.auth-page-card .form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-page-card .form .row {
  display: grid;
  gap: 4px;
}

.auth-page-card .form button.primary {
  width: 100%;
  background: var(--accent-strong);
  color: white;
  margin-top: 8px;
  padding: 12px 14px;
  font-size: 15px;
}

.auth-page-card .form button.primary:hover {
  background: var(--accent);
}

.auth-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Generic Content Page (Funktionen, Sicherheit, Kontakt, Legal) --- */

.content-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 26px;
}

.content-page h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 0 0 14px;
  line-height: 1.1;
}

.content-page p.lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 40px;
}

.content-page h2 {
  font-size: 22px;
  margin: 40px 0 14px;
}

.content-page h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.content-page p,
.content-page li {
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.content-page ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.content-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.content-page .feature-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.content-page .feature-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.content-page .feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Kontakt-Formular ----------------------------------------------- */

.kontakt-form {
  display: grid;
  gap: 14px;
  max-width: 580px;
  margin-top: 24px;
}

.kontakt-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.kontakt-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.kontakt-form .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.kontakt-form .check input {
  width: auto;
  margin-top: 4px;
}

.kontakt-form button.primary {
  background: var(--accent-strong);
  color: white;
  padding: 12px 18px;
  font-size: 15px;
}

.kontakt-form button.primary:hover {
  background: var(--accent);
}

.kontakt-success {
  padding: 22px;
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 12px;
  background: var(--ok-bg);
  color: var(--ok-fg);
  margin-top: 24px;
}

/* Responsive ----------------------------------------------------- */

@media (max-width: 980px) {
  .landing-hero,
  .showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .showcase.reverse > div:first-child {
    order: 0;
  }

  .public-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .public-nav {
    display: none;
  }

  .kontakt-form .row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .public-footer-inner {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding: 50px 20px;
  }

  .public-header-inner {
    padding: 12px 18px;
  }

  .public-logo small {
    display: none;
  }
}
