/* ============================================
   SIGMA EWA GmbH – Landing Page Styles
   Apple-inspired minimal design
   ============================================ */

/* --- Font Faces (lokal, DSGVO-konform) --- */
@font-face {
  font-family: 'Libre Franklin';
  src: url('../fonts/libre-franklin-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-variable.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Custom Properties --- */
:root {
  --color-navy: #002B49;
  --color-navy-light: #003d66;
  --color-grey: #4A5568;
  --color-anthracite: #1A202C;
  --color-cyan: #00F5FF;
  --color-cyan-dim: rgba(0, 245, 255, 0.08);
  --color-cyan-subtle: rgba(0, 245, 255, 0.15);
  --color-white: #FFFFFF;
  --color-off-white: #F9FAFB;
  --color-light-grey: #E2E8F0;
  --color-border: #EDF2F7;
  --color-placeholder-bg: #FFF3CD;
  --color-placeholder-border: #856404;

  --font-heading: 'Libre Franklin', 'Franklin Gothic Medium', system-ui, sans-serif;
  --font-body: 'Source Serif 4', 'Cambria', Georgia, serif;

  --max-width: 1080px;
  --section-padding: 8rem 2rem;
  --nav-height: 96px;
  --nav-height-scrolled: 64px;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height-scrolled);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-anthracite);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-cyan);
}

/* --- Platzhalter-Styling --- */
.placeholder {
  background-color: var(--color-placeholder-bg);
  border: 2px dashed var(--color-placeholder-border);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--color-placeholder-border);
  position: relative;
}

.placeholder::before {
  content: attr(data-placeholder-nr);
  position: absolute;
  top: -10px;
  left: 10px;
  background: var(--color-placeholder-border);
  color: var(--color-white);
  font-size: 0.75rem;
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 3px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

h4 {
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--color-grey);
}

.section-subtitle {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-grey);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 4rem;
  max-width: 600px;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--color-off-white);
}

.section-dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section-dark h2 {
  color: var(--color-white);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(0, 43, 73, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: height 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
  height: var(--nav-height-scrolled);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo img {
  height: 52px;
  width: auto;
  transition: height 0.4s var(--ease-out);
}

.nav.scrolled .nav__logo img {
  height: 36px;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s var(--ease-out);
  white-space: nowrap;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--color-cyan);
  transition: all 0.3s var(--ease-out);
  transform: translateX(-50%);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a:hover {
  color: var(--color-white);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-white);
  transition: all 0.3s var(--ease-out);
}

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

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-navy);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 30% 50%, var(--color-navy-light) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(0, 245, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 2rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin-bottom: 3rem;
  max-width: 560px;
}

/* CTA Button */
.btn-primary {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-navy);
  background: var(--color-white);
  padding: 0.875rem 2.25rem;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  letter-spacing: 0;
  transition: all 0.4s var(--ease-out);
}

.btn-primary:hover {
  background: var(--color-cyan);
  color: var(--color-navy);
  transform: scale(1.04);
}

/* --- Drei Säulen --- */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.pillar-card {
  padding: 0;
  text-align: left;
}

.pillar-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--color-navy);
}

.pillar-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-navy);
  stroke-width: 1.5;
  fill: none;
}

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

.pillar-card p {
  color: var(--color-grey);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* --- Sicherheitskompass --- */
.matrix__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.matrix__description {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-grey);
}

.matrix__aspects {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.matrix__aspect {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.matrix__aspect-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matrix__aspect-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-navy);
  stroke-width: 1.5;
  fill: none;
}

.matrix__aspect h3 {
  color: var(--color-navy);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.matrix__aspect p {
  color: var(--color-grey);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* --- Sicherheitskompass auf dunklem Hintergrund --- */
.section-dark .matrix__description {
  color: rgba(255, 255, 255, 0.75);
}

.section-dark .matrix__aspect-icon svg {
  stroke: var(--color-cyan);
}

.section-dark .matrix__aspect h3 {
  color: var(--color-white);
}

.section-dark .matrix__aspect p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Über mich --- */
.about__content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about__portrait {
  border-radius: 12px;
  overflow: hidden;
}

.about__portrait img {
  width: 100%;
}

.about__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
  letter-spacing: -0.025em;
}

.about__title {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-grey);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.about__bio {
  margin-bottom: 2.5rem;
}

.about__qualifications h3 {
  margin-bottom: 1rem;
}

.about__qualifications ul {
  list-style: none;
  padding: 0;
}

.about__qualifications li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--color-grey);
}

.about__qualifications li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-navy);
  transform: translateY(-50%);
}

/* --- Über mich auf dunklem Hintergrund --- */
.section-dark .about__name {
  color: var(--color-white);
}

.section-dark .about__title {
  color: rgba(255, 255, 255, 0.6);
}

.section-dark .about__qualifications li {
  color: rgba(255, 255, 255, 0.75);
}

.section-dark .about__qualifications li::before {
  background: rgba(255, 255, 255, 0.4);
}

/* --- Ablauf --- */
.process__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
  max-width: 720px;
}

.process__step {
  position: relative;
  padding: 2rem 0;
  padding-left: 5rem;
  counter-increment: step;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.process__step:last-child {
  border-bottom: none;
}

.process__step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
  letter-spacing: -0.04em;
}

.process__step h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.process__step p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Ablauf auf hellem Hintergrund --- */
.section-alt .process__step {
  border-bottom: 1px solid rgba(0, 43, 73, 0.1);
}

.section-alt .process__step::before {
  color: rgba(0, 43, 73, 0.15);
}

.section-alt .process__step h3 {
  color: var(--color-navy);
}

.section-alt .process__step p {
  color: var(--color-text);
}

/* --- FAQ --- */
.faq__list {
  max-width: 680px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.75rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-white);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: color 0.3s var(--ease-out);
}

.faq__question:hover {
  color: rgba(255, 255, 255, 0.6);
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.4s var(--ease-out-quart);
  flex-shrink: 0;
}

.faq__item.active .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-quart), padding 0.4s var(--ease-out);
}

.faq__item.active .faq__answer {
  max-height: 500px;
  padding-bottom: 1.75rem;
}

.faq__answer p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
}

/* --- Schulungen --- */
.schulungen__content p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.schulungen__compliance {
  border-left: 3px solid var(--color-cyan);
  padding: 1.25rem 1.5rem;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 8px 8px 0;
  max-width: 720px;
}

.schulungen__compliance p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.schulungen__compliance strong {
  color: var(--color-cyan);
}

/* --- FAQ auf hellem Hintergrund --- */
.section-alt .faq__item {
  border-bottom: 1px solid rgba(0, 43, 73, 0.12);
}

.section-alt .faq__question {
  color: var(--color-navy);
}

.section-alt .faq__question:hover {
  color: var(--color-grey);
}

.section-alt .faq__question::after {
  color: rgba(0, 43, 73, 0.35);
}

.section-alt .faq__answer p {
  color: var(--color-text);
}

/* --- Kontakt --- */
.contact {
  background-color: var(--color-off-white);
  text-align: center;
}

.contact__methods {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin-top: 3rem;
}

.contact__method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact__method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.contact__method-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-navy);
  stroke-width: 1.5;
  fill: none;
}

.contact__method-label {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-grey);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact__method a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-navy);
}

.contact__method a:hover {
  color: var(--color-cyan);
}

/* --- Footer --- */
.footer {
  background: rgba(0, 43, 73, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  padding: 2rem 2rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
}

.footer__links a:hover {
  color: var(--color-cyan);
}

.footer__copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.pillars__grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.pillars__grid .fade-in:nth-child(3) { transition-delay: 0.2s; }

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 6rem 1.5rem;
  }

  .matrix__content,
  .about__content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__content {
    justify-items: center;
    text-align: center;
  }

  .about__portrait {
    max-width: 240px;
  }

  .about__qualifications li {
    text-align: left;
  }

}

@media (max-width: 768px) {
  :root {
    --section-padding: 5rem 1.25rem;
  }

  .nav {
    background: rgba(0, 43, 73, 0.98);
  }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-navy);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    padding: 1rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
  }

  .nav__links a::after {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .pillars__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .contact__methods {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 4rem 1rem;
    --nav-height: 72px;
    --nav-height-scrolled: 56px;
  }

  body {
    font-size: 1rem;
  }
}
