/* =====================
   Managed Confidential Nextcloud – CSS
   ===================== */

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #004266;
  --navy-dark: #002d47;
  --navy-light: #005a8a;
  --orange: #FFA106;
  --orange-hover: #e08e00;
  --bg-light: #f4f6f9;
  --bg-section: #eef2f7;
  --text: #1a1a1a;
  --text-muted: #5a6a7a;
  --border: #d8e2ec;
  --success: #0fa968;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text);
  line-height: 1.6;
  background: white;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--navy-light);
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: 1.5rem;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Sections */
section {
  padding: 6rem 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1.25rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.nav-sub-brand {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--orange-hover);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  position: relative;
  color: white;
  overflow: hidden;
  background: #001d30;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('bilder/header-background.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 18, 38, 0.76);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem clamp(5rem, 10vw, 8rem);
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.75rem;
}

.hero h1 {
  color: white;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.hero h1 .highlight {
  color: var(--orange);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-sub-tagline {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--orange);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 161, 6, 0.3);
}

.btn-ghost {
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  border: 2px solid white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Trust Bar */
.trust-bar {
  background: white;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.trust-bar-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-item {
  padding: 1rem;
}

.trust-item .stat {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.trust-item .label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Definition Section */
.definition {
  padding: 4.5rem 1.5rem 6rem;
}

.definition p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
}

/* Explainer Section */
.explainer {
  background: var(--bg-light);
  padding: 6rem 6rem;
}


.explainer-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;‚
  line-height: 1.8;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.dimension-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.dimension-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.dimension-card.highlight {
  background: var(--navy);
  color: white;
  border-color: var(--orange);
  border-width: 3px;
}

.dimension-card.highlight h3 {
  color: var(--orange);
}

.dimension-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.dimension-card h3 {
  margin-bottom: 0.75rem;
}

.dimension-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.dimension-card.highlight p {
  color: rgba(255, 255, 255, 0.9);
}

.explainer-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--orange);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Features Grid */
.features {
  background: white;
  padding: 6rem 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.25rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--orange);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Comparison Section */
.comparison {
  background: var(--bg-section);
  padding: 6rem 1.5rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th {
  background: var(--navy);
  color: white;
  padding: 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison-table th.highlight {
  background: var(--orange);
}

.comparison-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 600;
  background: var(--bg-light);
}

.comparison-table td.success {
  background: rgba(15, 169, 104, 0.1);
  color: var(--success);
  font-weight: 600;
}

/* Target Audience */
.audience {
  background: white;
  padding: 6rem 1.5rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.audience-card {
  padding: 2.25rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.audience-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.audience-card h3 {
  margin-bottom: 0.75rem;
}

.audience-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Pricing Section */
.pricing {
  background: var(--bg-section);
  padding: 6rem 1.5rem;
}

#kalkulator-frame {
  width: 100%;
  min-height: 1400px;
  border: none;
  background: transparent;
  display: block;
  overflow: hidden;
}

/* Partner Section */
.partner {
  background: var(--navy-dark);
  color: white;
  padding: 6rem 1.5rem;
}

.partner .section-header {
  color: white;
}

.partner .section-header h2 {
  color: white;
}

.partner .eyebrow {
  color: var(--orange);
}

.partner .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.partner .features-grid {
  gap: 1.5rem;
}

.partner .feature-card {
  padding: 2rem;
}

.partner .partner-grid {
  margin-top: 2.5rem !important;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.partner-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.partner-card h3 {
  color: var(--orange);
  margin-bottom: 1rem;
}

.partner-card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

/* FAQ Section */
.faq {
  background: white;
  padding: 6rem 1.5rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.65rem 1.5rem;
  background: var(--bg-light);
  border: none;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-section);
}

.faq-toggle {
  font-size: 1.25rem;
  color: var(--orange);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding: 1.5rem 1.5rem 1.75rem;
  background: white;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}

.faq-item[aria-expanded="true"] .faq-answer {
  display: block;
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: white;
  padding: 7.5rem 1.5rem;
  text-align: center;
}

.final-cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.final-cta .eyebrow {
  color: var(--orange);
}

.final-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 500px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.footer-brand a {
  color: rgba(255,255,255,0.7);
  transition: color 0.25s ease;
}

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

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* Popups */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.popup-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.popup-close:hover {
  color: var(--navy);
}

.popup-body {
  padding: 2rem;
}

.popup-body iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: var(--radius-sm);
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }

  section {
    padding: 4.5rem 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .dimensions-grid,
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.5rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero-content {
    padding: 3rem 1rem 4rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas button {
    width: 100%;
  }

  .trust-bar-content {
    grid-template-columns: 1fr 1fr;
  }

  .definition {
    padding: 3.5rem 1.5rem 4rem;
  }

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

  .final-cta-buttons {
    flex-direction: column;
  }

  .final-cta-buttons button {
    width: 100%;
  }

  .popup-content {
    max-width: 95%;
  }
}

@media (max-width: 640px) {
  .nav-wrapper {
    padding: 1rem;
  }

  .nav-sub-brand {
    display: none;
  }

  .nav-divider {
    display: none;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .trust-bar-content {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }

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