/* ============================================
   EIST Consulting — Design Tokens
   Extracted from original Durable/Next.js site
   ============================================ */

:root {
  /* Colors */
  --color-primary: #0C0C1D;
  --color-secondary: #0C0C1D;
  --color-bg-dark: #000000;
  --color-bg-card: #0d0d0d;
  --color-bg-section1: #0d0d0d;    /* palette color1 */
  --color-bg-section2: #1A1A1A;    /* palette color2 — heller für bessere Sektionstrennung */
  --color-bg-section3: #1F1F1F;    /* palette color3 */
  --color-bg-section4: #1F1F1F;    /* palette color4 */
  
  --color-accent: #61D7BE;          /* primary accent (teal) */
  --color-accent-secondary: #61D7BE; /* button accent (teal) */
  --color-accent-purple: #4338C9;    /* contact button */
  
  --color-text-primary: #ffffff;
  --color-text-secondary: #C9C9C9;
  --color-text-muted: rgba(255,255,255,0.6);
  --color-border: rgba(255,255,255,0.1);
  
  /* Fonts */
  --font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  
  --font-weight-heading: 500;
  --font-weight-body: 400;
  
  /* Spacing scale (4px base) */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* ============================================
   EIST Consulting — Base / Reset / Global
   ============================================ */

@import url('design-tokens.css');

/* ───── Self-hosted Google Fonts (latin subset) ─────
   font-display: swap ensures text is always visible
   while custom fonts load. Self-hosting eliminates
   external DNS, SSL, and connection overhead. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/poppins-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/poppins-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/roboto-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/roboto-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/roboto-700.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-dark);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: var(--space-md); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Utility */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-gradient {
  background: linear-gradient(135deg, var(--color-accent), #a8e6cf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Section spacing */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-dark    { background-color: var(--color-bg-section1); }
.section-darker  { background-color: var(--color-bg-section2); }
.section-card-bg { background-color: var(--color-bg-card); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent-secondary);
  color: #000;
  border-color: var(--color-accent-secondary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-accent-secondary);
  border-color: var(--color-accent-secondary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: transparent;
  color: var(--color-accent);
}

/* Section labeling */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive font for body text */
.body-text-lg {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
}

/* ============================================
   EIST Consulting — Header / Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  height: var(--header-height);
  transition: background var(--transition-normal);
}

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

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.header-logo img {
  height: 36px;
  width: auto;
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-normal);
}

.nav-desktop a:hover {
  color: var(--color-text-primary);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.nav-desktop a.active {
  color: var(--color-accent);
}

.nav-desktop a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-bg-card);
  border-left: 1px solid var(--color-border);
  flex-direction: column;
  align-items: flex-start;
  padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
  gap: var(--space-lg);
  transition: right var(--transition-normal);
  z-index: 999;
}

.nav-mobile.open {
  right: 0;
}

.nav-mobile a {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  width: 100%;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

/* Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
}

.menu-overlay.open {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .nav-mobile  { display: flex; }
}

/* ============================================
   EIST Consulting — Footer
   ============================================ */

.footer {
  background-color: #000;
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer-links-column h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.footer-links-column a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer-links-column a:hover {
  color: var(--color-accent);
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(97, 215, 190, 0.1);
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   EIST Consulting — Home Page Sections
   ============================================ */

/* ───── Hero / Banner ───── */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(0,0,0,0.2) 0%, 
    rgba(0,0,0,0.6) 50%,
    rgba(0,0,0,0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 var(--space-lg);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 750px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Divider shapes */
.section-divider {
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0 60 L600 0 L1200 60 L1200 60 L0 60 Z' fill='%230d0d0d'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  z-index: 2;
}

/* ───── Certification Cards ───── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.cert-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(97, 215, 190, 0.3);
}

.cert-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto var(--space-md);
}

.cert-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.cert-card .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

/* ───── Pitch / About Section ───── */
.pitch-section {
  text-align: center;
}

.pitch-section blockquote {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 850px;
  margin: 0 auto;
  padding: var(--space-lg);
  border-left: 3px solid var(--color-accent);
  text-align: left;
}

/* ───── Areas / Topics (3 blocks) ───── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.area-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.area-card:hover {
  border-color: rgba(97, 215, 190, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.area-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  color: var(--color-accent);
}

.area-icon svg {
  width: 100%;
  height: 100%;
}

.area-card h3 {
  margin-bottom: var(--space-md);
  font-size: 1.15rem;
}

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

/* ───── Services / Leistungen ───── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.service-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(97, 215, 190, 0.3);
}

.service-card-header {
  padding: var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(97, 215, 190, 0.06) 0%, transparent 100%);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--color-accent);
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card-header h3 {
  font-size: 1.1rem;
}

.service-card-body {
  padding: var(--space-lg);
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.service-card-body strong {
  color: var(--color-text-primary);
}

/* ───── Separator Image Section ───── */
.separator-section {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.separator-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.separator-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0,0,0,1), transparent);
}

.separator-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(13,13,13,1), transparent);
  z-index: 1;
}

/* ───── Responsive ───── */
@media (max-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { min-height: 85vh; }
  .areas-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

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