/* ==========================================================================
   NEUES FERTIGEN - Zerspanungsbetrieb Website Stylesheet
   Design: Clean, Elegant, Seriös, Leichte Typografie
   Farbe: #01374b (Petrol) & #ea2e9d (Akzent) | Hintergrund: Weiß
   Font: Barlow (Google Fonts)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

:root {
  /* White & Light Color System */
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  
  /* Brand Colors */
  --primary-petrol: #01374b;
  --primary-petrol-hover: #02526e;
  --primary-pink: #ea2e9d;
  --primary-pink-subtle: rgba(234, 46, 157, 0.08);
  --petrol-subtle: rgba(1, 55, 75, 0.06);
  --petrol-border: rgba(1, 55, 75, 0.15);
  
  /* Text Colors */
  --text-heading: #01374b;
  --text-primary: #2d3748;
  --text-secondary: #5a6a80;
  --text-muted: #8492a6;
  
  /* Borders & Shadows */
  --border-light: #e5e9f0;
  --border-medium: #d1d9e6;
  --card-shadow: 0 4px 20px rgba(1, 55, 75, 0.05);
  --card-shadow-hover: 0 10px 30px rgba(1, 55, 75, 0.1);
  
  /* Typography - Leichte, elegante Schnitte */
  --font-base: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  
  /* Dimensions & Spacing */
  --container-width: 1200px;
  --transition: 0.25s ease;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

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

html {
  font-family: var(--font-base);
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-body);
  color: var(--text-primary);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
}

/* Typography Helpers - Leichtere Schriftgrade */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
}

a {
  color: var(--primary-petrol);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-pink);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 15px rgba(1, 55, 75, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: var(--petrol-subtle);
  color: var(--primary-petrol);
  border: 1px solid var(--petrol-border);
  text-transform: uppercase;
}

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

.nav-link {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-petrol);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-petrol);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-petrol-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(1, 55, 75, 0.2);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-petrol);
  border-color: var(--primary-petrol);
}

.btn-outline:hover {
  background: var(--primary-petrol);
  color: #ffffff;
}

.btn-full {
  width: 100%;
}

/* Status Indicator */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--petrol-border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary-petrol);
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-pink);
}

/* ==========================================================================
   HERO / LANDING SECTION (Großes Hintergrundbild Titelbild.png mit leichtem Schriftoverlay)
   ========================================================================== */
.hero-landing {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: url('../Titelbild.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 90px 0 100px;
}

/* Leichtes Schriftoverlay über dem Hintergrundbild */
.hero-landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.90) 45%, 
    rgba(255, 255, 255, 0.55) 75%,
    rgba(255, 255, 255, 0.25) 100%
  );
  z-index: 1;
}

.hero-overlay-card {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 36px rgba(1, 55, 75, 0.08);
}

.hero-year-tag {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-pink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--primary-petrol);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

/* Minimalistischer Countdown */
.hero-countdown {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.countdown-label-intro {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.countdown-units {
  display: flex;
  gap: 12px;
}

.countdown-unit {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.countdown-val {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-petrol);
}

.countdown-lbl {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* ==========================================================================
   Sections & General Layout
   ========================================================================== */
.section {
  padding: 85px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-petrol);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--primary-petrol);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
}

/* ==========================================================================
   4 Leistungs-Pfeiler (Clean Cards, keine Icon-Überladung)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  border-color: var(--primary-petrol);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.pillar-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-pink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pillar-title {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--primary-petrol);
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Maschinenpark / Redundanz-Architektur
   ========================================================================== */
.machine-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.machine-card-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.machine-intro h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-petrol);
  margin-bottom: 14px;
}

.machine-intro p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.machine-duo-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.duo-header {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-petrol);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.duo-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.duo-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.duo-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-petrol);
  margin-bottom: 4px;
}

.duo-desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   Gründungsteam
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
}

.team-card:hover {
  border-color: var(--primary-petrol);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.team-avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--petrol-subtle);
  border: 1px solid var(--petrol-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-petrol);
}

.team-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-petrol);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-pink);
  margin-bottom: 14px;
  min-height: 40px;
}

.team-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Kontaktfeld
   ========================================================================== */
.contact-layout {
  display: block;
  gap: 40px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.contact-info {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-petrol);
  margin-bottom: 12px;
}

.contact-mail-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 24px auto;
  border-left: 3px solid var(--primary-petrol);
}

.contact-mail-link {
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--primary-petrol);
  margin-top: 6px;
  word-break: break-all;
}

.contact-mail-link:hover {
  color: var(--primary-pink);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-heading);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-base);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-heading);
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-petrol);
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
}

.form-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-petrol);
  color: #d1d9e6;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: #a0aec0;
  font-size: 0.92rem;
  font-weight: 300;
  margin-top: 14px;
  max-width: 300px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 300;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  font-weight: 300;
  color: #94a3b8;
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a {
  color: #cbd5e1;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Impressum & Datenschutz
   ========================================================================== */
.legal-page-header {
  padding: 60px 0 30px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  margin: 40px 0 80px;
  box-shadow: var(--card-shadow);
}

.legal-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-petrol);
  margin: 28px 0 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-petrol);
  margin: 18px 0 8px;
}

.legal-card p,
.legal-card ul {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card li {
  margin-bottom: 6px;
}

/* Helpers for Clean Code without inline styles */
.machine-action-wrap {
  margin-top: 24px;
}

.team-lead-highlight {
  font-weight: 500;
  color: var(--text-heading);
}

.contact-label-small {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-note-small {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-brand-logo {
  height: 38px;
  filter: brightness(0) invert(1);
}

.legal-main-title {
  font-size: 2.4rem;
  margin-top: 6px;
}

.legal-subtitle {
  color: var(--text-secondary);
  font-weight: 300;
}

.footer-bottom-flush {
  border-top: none;
  padding-top: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero-landing::before {
    background: rgba(255, 255, 255, 0.94);
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .machine-card-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }
  
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-medium);
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(1, 55, 75, 0.08);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-overlay-card {
    padding: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
}
