/* =========================================================
   GLOBAL VARIABLES / THEME
========================================================= */
:root{
  --bg: #0b1220;
  --bg-2:#0f172a;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --card:#0f1628;
  --border:#1e293b;
  --accent:#38bdf8;
  --accent-2:#7dd3fc;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --header-height: 100px; /* Desktop Höhe */
}

*{box-sizing:border-box}
body,html{margin:0;padding:0}
html{scroll-behavior:smooth}

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg,var(--bg),var(--bg-2));
  color:var(--text);
  line-height:1.6;
  overflow-x: hidden;
  
  /* Sticky Footer Fix */
  min-height: 100vh;       
  display: flex;           
  flex-direction: column;  
}

body.no-scroll { overflow: hidden; }

main {
  flex: 1; 
  width: 100%; 
}

.container{ max-width:1200px; margin:0 auto; padding:0 1.4rem; }
.section{ padding:3.2rem 0; }
.section-alt{ background:rgba(255,255,255,0.015); }
.section h2{ font-size:2rem; margin:0 0 0.5rem; color: #fff; }
.section-intro{ color:var(--muted); max-width:720px; margin-bottom: 2rem; }

/* HEADER */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(11,18,32,.85); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
  height: var(--header-height); display: flex; align-items: center;
}
.header-inner{ display:flex; justify-content:space-between; align-items:center; width: 100%; }
.logo img{ height:90px; width:auto; display:block; }

/* NAV DESKTOP */
.nav{ display:flex; gap:1.2rem; align-items:center; }
.mobile-menu-logo { display: none !important; }
.nav-toggle { display: none; }
.nav a{ font-size:.97rem; font-weight:500; color:var(--muted); text-decoration:none; }
.nav a:hover{ color:var(--accent); transition:color .2s; }

/* BUTTONS & CARDS */
.btn{
  padding:.7rem 1.45rem; border-radius:999px; font-size:.95rem; font-weight:600;
  text-decoration:none; cursor:pointer; border:1px solid transparent;
  display:inline-flex; align-items:center; justify-content:center; transition: all 0.2s;
}
.btn-primary{ background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#0b1120; box-shadow:0 0 15px rgba(56,189,248,.35); }
.btn-primary:hover{ filter:brightness(1.05); transform: translateY(-2px); }
.btn-secondary{ background:transparent; border-color:var(--border); color:var(--muted); }
.btn-secondary:hover{ border-color:var(--accent); color:var(--accent); }
.btn-block { width: 100%; }

.card{ background:var(--card); border-radius:var(--radius); padding:1.5rem; border:1px solid rgba(148,163,184,.25); box-shadow:var(--shadow); }
.check-list{ padding:0; list-style:none; }
.check-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--muted); }
.check-list li::before { content: "✔"; color: var(--accent); position: absolute; left: 0; font-weight: bold; }

/* GRIDS */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
.two-column{ display:grid; grid-template-columns:1.3fr 0.7fr; gap:1.8rem; }
.contact-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:1.8rem; }

/* FIX: Globale Zentrierung der Section Header */
.section-header {
  text-align: center;
}

/* HERO */
.hero{ padding:3.8rem 0 4rem; }
.hero-inner{ display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:1.8rem; }
.hero-text h1{ font-size:clamp(2rem,4vw,3rem); line-height:1.15; color: #fff; margin-top: 0;}
.hero-text p{ color:var(--muted); max-width:42rem; }
.hero-actions{ display:flex; gap:0.8rem; margin-top:1.2rem; flex-wrap: wrap; }
.hero-note{ color:var(--muted); font-size:.9rem; margin-top: 1rem; }

/* VIDEO */
.video-wrap{ border-radius:var(--radius); overflow:hidden; background:#000; margin-top: 1rem; aspect-ratio: 16 / 9; }
.video{ width:100%; display:block; height:100%; object-fit: cover; }

/* FORM */
.contact-form label{ font-size:.9rem; display:block; margin-bottom:.4rem; color: var(--text); }
.contact-form input, .contact-form textarea{
  width:100%; background:#020617; border:1px solid var(--border);
  padding:.65rem .75rem; border-radius:8px; color:var(--text); font-family: inherit; margin-bottom: 1rem;
}
.form-note{ font-size:.8rem; color:var(--muted); margin-bottom: 1rem; }

/* FOOTER */
.site-footer{ padding:1.6rem 0 2.1rem; border-top:1px solid var(--border); background:rgba(2,6,23,.92); margin-top:2rem; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; flex-wrap: wrap; gap: 1rem; }
.footer-links a{ margin-left:1rem; color:var(--muted); text-decoration:none; }
.footer-links a:hover{ color:var(--accent); }

/* FAQ SECTION */
.faq-grid { width: 100%; max-width: 800px; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover { border-color: var(--accent); }
.faq-item summary { padding: 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; list-style: none; color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; margin-left: 1rem; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--accent); top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 2px; transition: transform 0.3s ease; }
.faq-icon::before { width: 2px; height: 100%; } 
.faq-icon::after { width: 100%; height: 2px; } 
details[open] .faq-icon::before { transform: translate(-50%, -50%) rotate(90deg); }
.faq-content { padding: 0 1.5rem 1.5rem 1.5rem; color: var(--muted); line-height: 1.6; border-top: 1px solid transparent; }
details[open] .faq-content { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* FAQ 2-Spalten Layout */
.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.faq-intro { position: sticky; top: 120px; }
.faq-contact-box { margin-top: 2rem; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.faq-contact-box h3 { font-size: 1.1rem; margin-top: 0; margin-bottom: 0.5rem; color: #fff; }
.faq-grid { width: 100%; max-width: 100%; } 
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 2rem; } .faq-intro { position: static; text-align: center; } .faq-contact-box { display: none; } .section-intro { margin-left: auto; margin-right: auto; } }


/* =========================================================
   ABOUT PAGE STYLES
========================================================= */

.about-hero { 
  position: relative; 
}

/* Schriftgröße für Über uns */
.about-hero h1 {
  font-size: 2rem; 
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Das Layout Grid (Zentriert, ohne Bild) */
.about-grid-layout {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}

/* Die Textbox */
.about-content {
  position: relative;
  z-index: 2;
  border: 1px solid var(--border);
  background: rgba(15, 22, 40, 0.8);
  backdrop-filter: blur(10px);
}

.about-content h3 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

/* Das Siegel */
.experience-badge {
  position: relative;
  bottom: auto; 
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.experience-badge i { font-size: 1.5rem; color: var(--accent); }
.experience-badge span { font-weight: 700; font-size: 0.9rem; line-height: 1.2; }


/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

.stat-item svg {
  color: var(--accent);
  width: 24px; height: 24px;
}

/* Werte Karten */
.value-card { text-align: center; transition: transform 0.3s ease; }
.value-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.value-icon { width: 60px; height: 60px; background: rgba(56, 189, 248, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 1.5rem; color: var(--accent); }

/* CONTACT PAGE STYLES */
.contact-section { position: relative; overflow: hidden; }
.glow-effect { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0,0,0,0) 70%); top: -100px; right: -100px; z-index: -1; pointer-events: none; }
/* HIER FIX FÜR DAS GRID-LAYOUT DER ZWEI SPALTEN */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: flex-start; } 

.contact-details { margin: 2.5rem 0; display: flex; flex-direction: column; gap: 1.5rem; }
.detail-item { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text); transition: transform 0.2s; }
.detail-item:hover { transform: translateX(5px); }
.detail-item:hover .icon-box { background: var(--accent); color: #0b1120; border-color: var(--accent); }
.icon-box { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--accent); transition: all 0.3s ease; }
.detail-item .label { display: block; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.detail-item .value { display: block; font-size: 1.1rem; font-weight: 500; }
.why-us { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.why-us h4 { margin-top: 0; color: #fff; margin-bottom: 1rem;}
.contact-form-wrapper .card { padding: 2.5rem; border: 1px solid var(--border); background: rgba(15, 22, 40, 0.6); backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-select { width: 100%; background: #020617 url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2338bdf8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 1rem center; background-size: 12px; border: 1px solid var(--border); padding: 0.85rem .75rem; border-radius: 8px; color: var(--text); font-family: inherit; margin-bottom: 1rem; appearance: none; cursor: pointer; }
.form-footer-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 1rem; margin-bottom: 0; }
.contact-form input:focus, .contact-form textarea:focus, .form-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); background: #0f172a; }

/* =========================================================
   PROCESS / TIMELINE STYLES
========================================================= */

.process-hero {
  position: relative;
  overflow: visible;
}

.process-timeline-section .container {
  max-width: 95%;
  width: 100%;
  padding: 0 2rem;
}

.timeline {
  position: relative;
  max-width: 1600px; 
  margin: 0 auto;
  padding: 1.5rem 0; 
}

.timeline-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(56,189,248,0) 0%, var(--accent) 20%, var(--accent) 80%, rgba(56,189,248,0) 100%);
  transform: translateX(-1px);
}

.timeline-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem; 
  position: relative;
  width: 100%;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  z-index: 2;
}

.timeline-content {
  width: 46%; 
  position: relative;
  padding: 1.2rem 1.5rem; 
  background: rgba(15, 22, 40, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.timeline-content:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.timeline-text h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.timeline-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.step-icon-wrapper {
  width: 40px; height: 40px;
  min-width: 40px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

.timeline-item:nth-child(odd) { justify-content: flex-start; }
.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 52%; 
  text-align: right;
  flex-direction: row-reverse; 
}

.timeline-item:nth-child(even) { justify-content: flex-end; }
.timeline-item:nth-child(even) .timeline-content {
  margin-left: 52%; 
  text-align: left;
  flex-direction: row;
}

.glow-center {
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: -1;
}

/* PORTFOLIO STYLES */
.project-hero { position: relative; overflow: visible; padding-bottom: 2rem; }
.project-card { background: transparent; border-radius: var(--radius); transition: transform 0.3s ease; display: flex; flex-direction: column; height: 100%; }
.project-card:hover { transform: translateY(-5px); }
.browser-frame { background: #1e293b; border-radius: 12px 12px 0 0; border: 1px solid var(--border); border-bottom: none; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.project-card:hover .browser-frame { border-color: var(--accent); box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15); }
.browser-header { height: 36px; background: #0f172a; display: flex; align-items: center; padding: 0 1rem; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.browser-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; } .dot.yellow { background: #eab308; } .dot.green { background: #22c55e; }
.video-container { aspect-ratio: 16 / 9; background: #000; position: relative; }
.video-container video { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-info { background: var(--card); border: 1px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-info h3 { margin: 0.5rem 0 0.8rem; font-size: 1.25rem; color: #fff; }
.project-info p { font-size: 0.95rem; color: var(--muted); margin: 0; line-height: 1.5; }
.project-tags { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 4px; background: rgba(56, 189, 248, 0.1); color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.2); }
.cta-box { margin-top: 5rem; text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; padding: 3rem; background: linear-gradient(180deg, rgba(15, 22, 40, 0) 0%, rgba(15, 22, 40, 0.8) 100%); border-radius: var(--radius); border: 1px solid transparent; }
.cta-box h3 { color: #fff; margin-top: 0; } .cta-box p { color: var(--muted); margin-bottom: 2rem; }
@media (max-width: 768px) { .project-grid { grid-template-columns: 1fr; gap: 3rem; } }

/* =========================================================
   MOBILE DESIGN & HAMBURGER FIX
========================================================= */
@media (max-width: 1024px) {
  /* 1. Layout Basics */
  .grid-3, .two-column, .contact-grid, .hero-inner, .footer-inner { grid-template-columns: 1fr; display: flex; flex-direction: column; gap: 2.5rem; }
  .hero-inner, .section-header, .footer-inner { text-align: center; }
  .hero-text p, .section-intro, .hero-note { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .footer-inner { gap: 1.5rem; }
  .site-header { height: auto; min-height: 80px; padding: 0.5rem 0; }
  .logo img { height: 60px; width: auto; object-fit: contain; }

  /* 2. Hamburger Button - RAHMEN ENTFERNT, X FIXIERT */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;             
    height: 50px;            
    background: transparent;
    border: none;            /* RAHMENLOS */
    z-index: 9999;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
  }
  
  .nav-toggle .bar { 
      display: block; 
      width: 30px; 
      height: 2px; 
      background: #ffffff !important; 
      margin: 6px 0;           /* Angepasster Abstand */
      border-radius: 2px; 
      transition: all 0.3s ease-in-out;
  }
  
  /* Animation zum X - Perfekt berechnet damit nichts abgeschnitten wird */
  .nav-toggle.open .bar:nth-child(1){ transform: translateY(14px) rotate(45deg); }
  .nav-toggle.open .bar:nth-child(2){ opacity: 0; }
  .nav-toggle.open .bar:nth-child(3){ transform: translateY(-14px) rotate(-45deg); }

  /* 3. Nav Menu (Vollbild & Solid) */
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0; width: 100%; height: 100vh;
    
    background: #0b1220; 
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem; 
    
    transform: translateX(100%);
    opacity: 0; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 9998; 
  }
  
  .nav.open { 
      transform: translateX(0); 
      opacity: 1;
  }

  /* 4. Nav Links als Buttons */
  .nav a { 
      font-size: 1.2rem;
      font-weight: 600; 
      color: #ffffff !important; 
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      width: 100%; 
      max-width: 300px; 
      padding: 1rem 0; 
      display: block; 
      text-align: center; 
      transition: all 0.2s ease;
  }
  
  .nav a:active { 
      background: var(--accent); 
      color: #0b1120 !important; 
      border-color: var(--accent);
      transform: scale(0.98); 
  }
  
  /* CTA Button (Kontakt) */
  .nav a[href="/kontakt"] {
      background: transparent;
      border: 2px solid var(--accent);
      color: var(--accent) !important;
      margin-top: 1rem;
  }
  .nav a[href="/kontakt"]:active {
      background: var(--accent);
      color: #0b1120 !important;
  }
  
  /* Mobile Logo */
  .mobile-menu-logo { display: block !important; margin-bottom: 2rem; width: 100%; text-align: center; padding: 0 !important; }
  .mobile-menu-logo img { height: 70px; width: auto; margin: 0 auto; display: block; }

  /* Restliche Fixes */
  .footer-links a { margin: 0 0.8rem; display: inline-block; margin-top: 1rem; font-size: 1rem; color: var(--muted); }
  .process-timeline-section .container { padding: 0 1.4rem; width: 100%; max-width: 1200px; }
  .timeline-line { left: 20px; }
  .timeline-dot { left: 20px; }
  .timeline-item { justify-content: flex-start !important; margin-bottom: 2rem; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { width: 100%; margin: 0 0 0 60px; text-align: left; flex-direction: row; }
  .timeline-content { padding: 1.5rem; }
  .step-icon-wrapper { margin-left: 0 !important; }
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; } 
  .faq-intro { position: static; text-align: center; } 
  .faq-contact-box { display: none; } 
  .section-intro { margin-left: auto; margin-right: auto; }
  
  /* Kontakt Mobile Fixes */
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form-wrapper .card { padding: 1.5rem; }
  .contact-info { text-align: center; }
  .section-header { text-align: center !important; }
  .detail-item { justify-content: center; text-align: left; }
  .why-us { text-align: left; display: inline-block; margin: 3rem auto 0; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .glow-effect { display: none; }
}