/* ═══════════════════════════════════════════════
   ALEACON — Main Stylesheet
   Brand: Navy #0D2B5E · Steel #4A90D9 · Burgundy #6B1A2A
   Font: Arial (system)
═══════════════════════════════════════════════ */

:root {
  --navy:      #0D2B5E;
  --blue-mid:  #1A5FA8;
  --steel:     #4A90D9;
  --ice:       #7BB8E8;
  --frost:     #C8E0F4;
  --burgundy:  #6B1A2A;
  --wine:      #9B2B40;
  --blush:     #E8C4CB;
  --slate:     #6B7280;
  --silver:    #9CA3AF;
  --cloud:     #F3F5F7;
  --charcoal:  #374151;
  --white:     #FFFFFF;
  --black:     #111111;

  --font:      Arial, Helvetica, sans-serif;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--charcoal); background: var(--white); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: var(--steel); text-decoration: none; }
a:hover { color: var(--navy); }

/* ── Container ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,43,94,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123,184,232,0.15);
  height: 68px; display: flex; align-items: center;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700; color: var(--white);
  letter-spacing: 4px; text-decoration: none;
}
.nav-logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 400;
  letter-spacing: 0.03em; transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-lang {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5); cursor: pointer; border: none;
  background: transparent; padding: 4px 8px; border-radius: 4px;
  transition: color var(--transition);
}
.nav-lang:hover, .nav-lang.active { color: var(--ice); }
.nav-lang-sep { color: rgba(255,255,255,0.2); font-size: 12px; }
.btn-nav {
  background: var(--burgundy); color: var(--white) !important;
  padding: 8px 20px; border-radius: var(--radius); font-size: 13px;
  font-weight: 600; letter-spacing: 0.03em;
  transition: background var(--transition);
}
.btn-nav:hover { background: var(--wine); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-actions { display: none; flex-direction: column; gap: 12px; }
  .nav-links.open, .nav-actions.open { display: flex; }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 12px 24px; }
  .nav { height: auto; position: relative; }
  .nav-links { width: 100%; padding: 8px 0 16px; }
  .nav-links a { font-size: 16px; padding: 8px 0; display: block; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary   { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--blue-mid); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--cloud); }
.btn-accent    { background: var(--burgundy); color: var(--white); }
.btn-accent:hover { background: var(--wine); color: var(--white); }
.btn-steel     { background: var(--steel); color: var(--white); }
.btn-steel:hover { background: var(--blue-mid); color: var(--white); }
.btn-sm        { padding: 8px 18px; font-size: 13px; }
.btn-lg        { padding: 16px 36px; font-size: 17px; }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  background: var(--navy); min-height: 100vh;
  display: flex; align-items: center; padding: 100px 0 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(74,144,217,0.12) 0%, transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--steel); }
.hero h1 { font-size: clamp(32px, 4vw, 54px); font-weight: 700; color: var(--white); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--ice); }
.hero p { font-size: 17px; color: rgba(200,224,244,0.75); line-height: 1.75; margin-bottom: 40px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-cube-wrap { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
}

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.section { padding: 96px 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-cloud { background: var(--cloud); }
.section-title { font-size: clamp(26px, 3vw, 38px); font-weight: 700; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 12px; }
.section-dark .section-title { color: var(--white); }
.section-sub { font-size: 17px; color: var(--slate); font-weight: 300; margin-bottom: 56px; max-width: 600px; line-height: 1.7; }
.section-dark .section-sub { color: var(--ice); }
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); margin-bottom: 10px; }
.section-dark .section-eyebrow { color: var(--ice); }

/* ══════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════ */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid #E5E7EB; padding: 32px;
  box-shadow: var(--shadow); transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-dark { background: rgba(255,255,255,0.06); border-color: rgba(123,184,232,0.15); }
.card-dark:hover { background: rgba(255,255,255,0.09); }
.card-accent-top { border-top: 3px solid var(--steel); }
.card-accent-top.burgundy { border-top-color: var(--burgundy); }

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

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

/* ══════════════════════════════════════════════
   PRODUCTS
══════════════════════════════════════════════ */
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid #E5E7EB; overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card-header { background: var(--navy); padding: 24px 28px; }
.product-card-header h3 { color: var(--white); font-size: 17px; font-weight: 700; letter-spacing: 0.01em; margin-bottom: 4px; }
.product-card-header p { color: var(--ice); font-size: 13px; font-weight: 300; }
.product-card-body { padding: 24px 28px; }
.product-price { font-size: 28px; font-weight: 700; color: var(--navy); }
.product-price span { font-size: 13px; color: var(--slate); font-weight: 400; }
.product-submodules { margin-top: 16px; }
.product-submodule {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--cloud); font-size: 13px;
}
.product-submodule:last-child { border-bottom: none; }
.submodule-name { color: var(--charcoal); }
.submodule-price { color: var(--slate); font-size: 12px; }
.submodule-toggle { width: 36px; height: 20px; border-radius: 10px; background: #E5E7EB; position: relative; cursor: pointer; border: none; transition: background var(--transition); }
.submodule-toggle.on { background: var(--steel); }
.submodule-toggle::after { content: ''; position: absolute; width: 16px; height: 16px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: left var(--transition); box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.submodule-toggle.on::after { left: 18px; }

/* ══════════════════════════════════════════════
   PORTAL / DASHBOARD
══════════════════════════════════════════════ */
.portal-layout { display: flex; min-height: 100vh; }
.portal-sidebar {
  width: 260px; background: var(--navy); flex-shrink: 0;
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100; overflow-y: auto;
}
.portal-sidebar-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(123,184,232,0.15);
}
.portal-sidebar-logo a { color: var(--white); font-size: 18px; font-weight: 700; letter-spacing: 3px; display: flex; align-items: center; gap: 10px; }
.portal-nav { padding: 20px 16px; flex: 1; }
.portal-nav-section { font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(123,184,232,0.45); padding: 16px 8px 8px; }
.portal-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 400;
  transition: all var(--transition); margin-bottom: 2px;
}
.portal-nav a:hover, .portal-nav a.active { background: rgba(74,144,217,0.18); color: var(--white); }
.portal-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }
.portal-nav a:hover svg, .portal-nav a.active svg { opacity: 1; }
.portal-content { margin-left: 260px; flex: 1; padding: 0; }
.portal-topbar {
  background: var(--white); border-bottom: 1px solid #E5E7EB;
  padding: 16px 32px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 10;
}
.portal-page { padding: 32px; }
.portal-page-title { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.portal-page-sub { font-size: 13px; color: var(--slate); margin-bottom: 28px; }

@media (max-width: 768px) {
  .portal-sidebar { width: 100%; position: relative; bottom: auto; }
  .portal-content { margin-left: 0; }
  .portal-layout { flex-direction: column; }
}

/* KPI boxes */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.kpi-box { background: var(--white); border-radius: var(--radius-lg); border: 1px solid #E5E7EB; padding: 24px; }
.kpi-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1; }
.kpi-sub { font-size: 12px; color: var(--slate); margin-top: 4px; }
.kpi-box.accent { border-top: 3px solid var(--burgundy); }
.kpi-box.positive { border-top: 3px solid #16A34A; }

@media (max-width: 960px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; } }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); padding: 12px 16px; text-align: left; border-bottom: 1px solid #E5E7EB; background: var(--cloud); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid #F3F5F7; color: var(--charcoal); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cloud); }
.table-wrap { background: var(--white); border-radius: var(--radius-lg); border: 1px solid #E5E7EB; overflow: hidden; }

/* Status badges */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.badge-active   { background: #DCFCE7; color: #166534; }
.badge-inactive { background: #F3F4F6; color: var(--slate); }
.badge-trial    { background: #EFF6FF; color: var(--blue-mid); }
.badge-billed   { background: #FEF9C3; color: #854D0E; }
.badge-paid     { background: #DCFCE7; color: #166534; }

/* ══════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid #D1D5DB;
  border-radius: var(--radius); font-family: var(--font); font-size: 14px;
  color: var(--charcoal); background: var(--white);
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(74,144,217,0.15); }
.form-control.error { border-color: var(--wine); }
.form-error { font-size: 12px; color: var(--wine); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid #E5E7EB; padding: 40px; box-shadow: var(--shadow-md); }

/* ══════════════════════════════════════════════
   ALERT
══════════════════════════════════════════════ */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info    { background: #EFF6FF; color: var(--blue-mid); border: 1px solid var(--frost); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer { background: var(--navy); color: var(--white); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-size: 20px; font-weight: 700; letter-spacing: 4px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-tagline { font-size: 13px; color: var(--ice); margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-desc { font-size: 13px; color: rgba(200,224,244,0.6); line-height: 1.7; font-weight: 300; }
.footer-title { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: rgba(200,224,244,0.65); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(123,184,232,0.15); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(200,224,244,0.4); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(200,224,244,0.4); }
.footer-legal a:hover { color: var(--ice); }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════
   MISC
══════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-navy   { color: var(--navy); }
.text-steel  { color: var(--steel); }
.text-burg   { color: var(--burgundy); }
.text-muted  { color: var(--slate); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-auto { margin-top: auto; }
.flex   { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2  { gap: 16px; }
.gap-3  { gap: 24px; }

/* Cube SVG inline helper */
.cube-icon { display: inline-block; }

/* Impressum */
.impressum-text { font-size: 14px; line-height: 1.9; color: var(--charcoal); white-space: pre-line; }

/* Page hero (non-landing) */
.page-hero {
  background: var(--navy); padding: 120px 0 60px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px,4vw,48px); font-weight: 700; color: var(--white); margin-bottom: 12px; letter-spacing: -0.02em; }
.page-hero p { font-size: 17px; color: var(--ice); font-weight: 300; }

/* Tabs */
.tabs { display: flex; border-bottom: 2px solid #E5E7EB; margin-bottom: 28px; gap: 4px; }
.tab-btn { padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--slate); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-btn:hover { color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
