/* IDEENDING Website — Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #F5F3F0;
  --dark: #2A2A2A;
  --petrol: #0E7C7B;
  --petrol-light: #10918f;
  --orange: #E8763A;
  --orange-light: #f0925e;
  --white: #FFFFFF;
  --gray-100: #fafaf9;
  --gray-200: #e8e6e3;
  --gray-300: #d4d1cc;
  --gray-500: #8a8680;
  --gray-700: #555250;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.section-label {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--petrol); margin-bottom: 12px; display: block;
}
.section-label-orange { color: var(--orange); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 15px;
  transition: all var(--transition); border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--petrol); color: white; }
.btn-primary:hover { background: var(--petrol-light); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,124,123,0.3); }
.btn-secondary { background: var(--orange); color: white; }
.btn-secondary:hover { background: var(--orange-light); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,118,58,0.3); }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--dark); }
.btn-ghost { background: transparent; color: var(--petrol); border: 2px solid var(--petrol); }
.btn-ghost:hover { background: var(--petrol); color: white; }
.btn-mt { margin-top: 16px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.logo-text { font-weight: 800; font-size: 20px; color: var(--dark); letter-spacing: -0.02em; }
.logo-text-white { color: white; }
.footer-logo { margin-bottom: 12px; }
.footer-logo img { height: 32px; }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px; font-weight: 500; font-size: 15px;
  color: var(--gray-700); transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--petrol); background: rgba(14,124,123,0.06); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 6px 0; transition: all var(--transition); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--dark); overflow: hidden; margin-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-3d-printer.png') center/cover no-repeat;
  opacity: 0.3;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(14,124,123,0.15), rgba(42,42,42,0.8)); }
.hero-content { position: relative; z-index: 1; color: white; max-width: 720px; }
.hero h1 { color: white; margin-bottom: 20px; font-size: clamp(2.5rem, 6vw, 4rem); }
.hero h1 .highlight { color: var(--orange); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); opacity: 0.9; margin-bottom: 36px; line-height: 1.7; max-width: 560px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-flush-top { padding-top: 0; }
.section-dark { background: var(--dark); color: white; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: white; }
.section-petrol { background: var(--petrol); color: white; }
.section-petrol h2, .section-petrol h3 { color: white; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header p { color: var(--gray-500); margin-top: 16px; font-size: 1.05rem; }
.section-header-sub-light { color: var(--gray-300); margin-top: 16px; font-size: 1.05rem; }
.section-cta { text-align: center; margin-top: 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Intro text block */
.intro-text { max-width: 720px; margin: 0 auto; text-align: center; }
.intro-text p { font-size: 1.15rem; color: var(--gray-700); }

/* Showcase block */
.section-showcase { text-align: center; margin-top: 48px; }
.showcase-img { max-width: 480px; margin: 0 auto; border-radius: var(--radius-lg); }
.showcase-caption { color: var(--gray-500); margin-top: 16px; font-size: 0.95rem; }

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-center { text-align: center; }
.card-accent-petrol { border-top: 4px solid var(--petrol); }
.card-accent-orange { border-top: 4px solid var(--orange); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(14,124,123,0.08);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-icon img { width: 32px; height: 32px; object-fit: contain; }
.card-icon-lg { font-size: 2.5rem; margin-bottom: 16px; }
.card-desc { font-size: 0.9rem; color: var(--gray-500); }
.card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14px; }

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

/* ===== LEISTUNGEN ===== */
.service-card { text-align: center; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--gray-500); font-size: 0.95rem; }
.service-card .card-icon { margin: 0 auto 20px; }

.verfahren-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 64px;
}
.verfahren-block.reverse { direction: rtl; }
.verfahren-block.reverse > * { direction: ltr; }
.verfahren-img { border-radius: var(--radius-lg); overflow: hidden; }
.verfahren-img img { width: 100%; height: 360px; object-fit: cover; }
.verfahren-text h3 { margin-bottom: 16px; font-size: 1.6rem; }
.verfahren-text p { color: var(--gray-700); margin-bottom: 16px; }
.verfahren-tags { margin-top: 16px; }
.verfahren-tag {
  display: inline-block; padding: 6px 14px; border-radius: 50px; font-size: 13px;
  font-weight: 600; background: rgba(14,124,123,0.1); color: var(--petrol); margin: 4px 4px 4px 0;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px;
}
.process-step {
  text-align: center; padding: 32px 20px; background: rgba(255,255,255,0.08);
  border-radius: var(--radius); position: relative;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--orange);
  color: white; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; opacity: 0.8; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  aspect-ratio: 1; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
}
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  color: white; z-index: 1; transform: translateY(10px); opacity: 0;
  transition: all var(--transition);
}
.gallery-caption-visible { transform: translateY(0); opacity: 1; }
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }
.gallery-caption h4 { font-size: 1rem; margin-bottom: 4px; color: white; }
.gallery-caption span { font-size: 0.85rem; opacity: 0.8; }

/* Image rounded helper */
.img-rounded { border-radius: var(--radius-lg); overflow: hidden; }
.img-rounded img { width: 100%; height: 320px; object-fit: cover; }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; max-width: 800px; margin: 0 auto; }
.team-member { text-align: center; }
.team-photo {
  width: 220px; height: 220px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 24px; border: 4px solid var(--petrol);
  box-shadow: 0 8px 32px rgba(14,124,123,0.15);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { color: white; margin-bottom: 4px; }
.team-member .role { color: var(--petrol-light); font-weight: 500; margin-bottom: 12px; }
.team-bio { color: var(--gray-300); font-size: 0.95rem; }

/* ===== VALUES ===== */
.value-card {
  text-align: center; padding: 36px 24px;
  background: rgba(255,255,255,0.06); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1);
}
.value-card .value-icon { font-size: 2.5rem; margin-bottom: 16px; }
.value-card h4 { margin-bottom: 8px; color: white; }
.value-card p { font-size: 0.95rem; opacity: 0.8; }

/* ===== TIMELINE ===== */
.timeline { max-width: 600px; margin: 48px auto 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px; background: var(--petrol);
}
.timeline-item { display: flex; gap: 24px; margin-bottom: 36px; position: relative; }
.timeline-dot {
  width: 50px; min-width: 50px; height: 50px; border-radius: 50%;
  background: var(--petrol); color: white; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.timeline-content h4 { margin-bottom: 4px; }
.timeline-content p { color: var(--gray-500); font-size: 0.95rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; }
.contact-form { background: white; padding: 48px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 2px solid var(--gray-200); border-radius: 10px;
  font-family: inherit; font-size: 16px; transition: border-color var(--transition);
  background: var(--gray-100);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--petrol); background: white;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-info-card {
  background: var(--petrol); color: white; padding: 48px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 32px;
}
.contact-info-card h3 { color: white; font-size: 1.4rem; margin-bottom: 8px; }
.contact-info-card p { opacity: 0.85; font-size: 0.95rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 16px; }
.contact-detail-icon {
  width: 44px; height: 44px; min-width: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
}
.contact-detail-icon svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2; }
.contact-detail-text a { color: white; }
.contact-detail-text a:hover { color: var(--orange-light); }
.contact-info-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); }
.contact-info-footer p { font-size: 0.85rem; opacity: 0.7; }

/* ===== CTA SECTION ===== */
.cta-section { text-align: center; padding: 80px 24px; }
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { opacity: 0.9; margin-bottom: 32px; font-size: 1.1rem; }
.cta-dark { background: var(--dark); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: white; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-col h4 { margin-bottom: 16px; font-size: 1rem; color: white; }
.footer-col p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--gray-500); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--orange); }
.footer-brand p { margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--gray-500); font-size: 0.85rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--dark); padding: 140px 0 60px; margin-top: 72px; text-align: center;
}
.page-header h1 { color: white; margin-bottom: 12px; }
.page-header p { color: var(--gray-300); max-width: 560px; margin: 0 auto; }

/* ===== STATS ===== */
.stats-row { display: flex; justify-content: center; gap: 64px; padding: 48px 0; }
.stat { text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--orange); }
.stat-label { font-size: 0.9rem; color: var(--gray-500); margin-top: 4px; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .grid-3, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .verfahren-block { grid-template-columns: 1fr; gap: 32px; }
  .verfahren-block.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { gap: 36px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .gallery-grid { grid-template-columns: 1fr; }
  .grid-4, .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .hero-buttons { flex-direction: column; }
  .stats-row { flex-wrap: wrap; gap: 32px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { width: 180px; height: 180px; }
  .card { padding: 28px; }
  .contact-form { padding: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; background: white;
    flex-direction: column; padding: 24px; gap: 4px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-120%); transition: transform var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
}
