/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-latin-800.woff2') format('woff2');
}

:root {
  /* Colors */
  --color-primary: #0f172a;        /* Deep Navy Slate */
  --color-primary-light: #1e293b;  /* Lighter Navy */
  --color-accent: #f59e0b;         /* Amber/Orange */
  --color-accent-hover: #d97706;   /* Darker Amber */
  --color-accent-light: #fef3c7;   /* Soft Amber */
  --color-success: #10b981;        /* Forest Green */
  --color-success-light: #d1fae5;  /* Soft Green */
  --color-text-dark: #0f172a;      /* Main text */
  --color-text-muted: #475569;     /* Secondary text */
  --color-bg-light: #f8fafc;       /* Off-white background */
  --color-bg-white: #ffffff;
  --color-border: #e2e8f0;
  
  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --container-max-width: 1200px;
  --header-height: 80px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.08);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ==========================================================================
   BASE RESETS & GENERAL STYLES
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   BUTTONS & COMMON COMPONENTS
   ========================================================================== */

.cta-button {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  text-align: center;
}

.cta-button:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button:active {
  transform: translateY(0);
}

.badge {
  display: inline-block;
  background-color: var(--color-accent-light);
  color: var(--color-accent-hover);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.main-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.primary-navigation {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  position: relative;
  transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  left: 0;
  transition: var(--transition-fast);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Hamburger open state */
.mobile-nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background: radial-gradient(circle at 80% 20%, #f1f5f9 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bullet-icon {
  background-color: var(--color-success-light);
  color: var(--color-success);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-bullets li div {
  font-size: 16px;
  color: var(--color-text-dark);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.primary-cta {
  font-size: 18px;
  padding: 16px 36px;
}

.cta-subtext {
  font-size: 12px;
  color: var(--color-text-muted);
  padding-left: 4px;
}

/* App Mockup Rendering (Pure CSS Premium visual) */
.hero-visual {
  position: relative;
  width: 100%;
}

.mockup-window {
  background-color: var(--color-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.mockup-header {
  background-color: var(--color-primary-light);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.mockup-url {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 4px 20px;
  border-radius: 4px;
  margin-left: 16px;
  font-family: monospace;
}

.mockup-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  flex-grow: 1;
  background-color: var(--color-primary);
}

.mockup-sidebar {
  background-color: rgba(0, 0, 0, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sidebar-item.active,
.sidebar-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mockup-content {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
}

.invoice-preview-card {
  background-color: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 320px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.invoice-logo-stub {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}

.invoice-status {
  background-color: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

.invoice-amount {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.invoice-line {
  font-size: 11px;
  color: #475569;
}

.invoice-items-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 9px;
  margin-top: 4px;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 4px 0;
  border-bottom: 1px solid #f8fafc;
}

.table-row.header {
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

.table-row:not(.header) {
  color: #64748b;
}

.table-row span:last-child {
  text-align: right;
}

.invoice-card-footer {
  margin-top: 10px;
  text-align: center;
}

.btn-stub {
  display: block;
  background-color: #0284c7;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(2, 132, 199, 0.2);
}

/* Floating badge decoration for hero visual */
.hero-visual::before {
  content: '⚡ Rechnungs-Erstellung unter 2 min';
  position: absolute;
  top: -20px;
  right: -20px;
  background-color: #10b981;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   PAIN POINT SECTION
   ========================================================================== */

.pain-section {
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: var(--color-bg-light);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.pain-card {
  background-color: var(--color-bg-white);
  padding: 40px 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pain-icon {
  font-size: 40px;
  margin-bottom: 24px;
}

.pain-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.pain-card p {
  color: var(--color-text-muted);
  font-size: 15px;
}

.solution-banner {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.solution-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

.solution-banner-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.solution-banner h3 {
  color: var(--color-accent);
  font-size: 28px;
  margin-bottom: 16px;
}

.solution-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.7;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: var(--transition-normal);
  background-color: var(--color-bg-white);
}

.feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.feat-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--color-bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.feature-card:hover .feat-icon {
  background-color: var(--color-accent-light);
}

.feature-card h3 {
  font-size: 20px;
  color: var(--color-primary);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ==========================================================================
   SECURITY & DSGVO SECTION
   ========================================================================== */

.security-section {
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: var(--color-primary);
  color: #fff;
  overflow: hidden;
}

.security-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.security-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.security-badge-graphic {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.shield-icon {
  font-size: 80px;
  margin-bottom: 24px;
}

.server-badge {
  background-color: var(--color-success);
  color: white;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 16px;
}

.datacenter-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
}

.security-content h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 20px;
}

.security-intro {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.security-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sec-item h4 {
  color: var(--color-accent);
  font-size: 18px;
  margin-bottom: 6px;
}

.sec-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */

.faq-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.faq-accordion {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-bg-white);
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-text-muted);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-arrow {
  font-size: 12px;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.faq-trigger[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.faq-answer[hidden] {
  display: none;
}

/* ==========================================================================
   CTA / LEAD FORM SECTION
   ========================================================================== */

.test-section {
  padding-top: 100px;
  padding-bottom: 100px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--color-border);
}

.test-container {
  max-width: 800px;
}

.test-section h2 {
  font-size: 38px;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.lead-card-box {
  background-color: var(--color-bg-white);
  padding: 48px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 600px;
  margin: 0 auto;
}

.cta-benefits {
  list-style: none !important;
  list-style-type: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--color-text-dark);
  padding: 0 !important;
  margin: 0 auto !important;
  width: max-content;
}

.cta-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  list-style-type: none !important;
}

.submit-btn-large {
  font-size: 18px;
  padding: 16px 36px;
  text-align: center;
  width: auto;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.main-footer {
  background-color: var(--color-primary);
  color: #fff;
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo-area {
  margin-bottom: 16px;
}

.footer-logo-area .brand-name {
  color: #fff;
}

.footer-logo {
  border-radius: 6px;
  object-fit: cover;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  max-width: 320px;
}

.footer-links-group h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: #fff;
}

.contact-info-links li {
  line-height: 1.8;
}

.footer-bottom {
  padding-top: 32px;
  color: rgba(255, 255, 255, 0.40);
  font-size: 13px;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-actions {
    align-items: center;
    width: 100%;
  }
  
  .hero-bullets {
    align-items: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-bullets li {
    text-align: left;
  }

  .pain-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .security-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .security-content {
    text-align: center;
  }
  
  .security-features {
    align-items: center;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-text {
    font-size: 16px;
  }

  /* Mobile Nav styles */
  .mobile-nav-toggle {
    display: block;
    z-index: 1001;
  }

  .primary-navigation {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    z-index: 999;
    padding: 120px 24px 40px 24px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 28px;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 20px;
  }

  .nav-link:hover {
    color: #fff;
  }

  .nav-cta {
    display: block;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    padding: 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .lead-form {
    padding: 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
