/* --- FLOWBOTICS DESIGN SYSTEM (FINAL POLISH - EISBLAU) --- */

:root {
  /* --- FlowBotics CI Palette --- */
  --fb-purple-900: #22124F;
  --fb-purple-deep: #150b33; /* Tiefster Ton für Hero/Footer Background */
  
  --fb-blue-500: #65AFE1; /* Primary Action Color */
  --fb-blue-700: #3b82f6;
  
  --fb-ice-blue: #D8F1FD; /* Dein neuer heller CI-Ton für Kontrast-Sektionen */

  /* Semantik Colors */
  --bg-dark: var(--fb-purple-deep);
  --bg-light: var(--fb-ice-blue); /* Heller Hintergrund jetzt Eisblau */
  
  /* Text auf dunklem Grund */
  --text-on-dark: #F0F0F5;
  --text-muted-on-dark: #B4B4C8;
  
  /* Text auf hellem Grund (Muss dunkel sein für Kontrast) */
  --text-on-light: #0F172A;      /* Ein sehr tiefes Dunkelblau */
  --text-muted-on-light: #475569; /* Ein mittleres Schieferblau */

  --color-primary: var(--fb-blue-500);
  --color-accent: #4ade80; /* Success Green */

  /* Layout & Borders */
  --border-on-dark: rgba(255,255,255,0.08);
  --border-on-light: rgba(101, 175, 225, 0.2); /* Zartes Blau für helle Bereiche */
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1120px;
  --spacing-section: 120px;
}

/* --- BASE --- */
body { 
    margin: 0; 
    font-family: var(--font-sans); 
    background-color: var(--bg-dark); 
    color: var(--text-on-dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: 0.2s ease; }
* { box-sizing: border-box; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.2; }

/* Typografie-Anpassung für helle Sektionen */
.section-alt h2, .section-alt h3, .tech-stack-bar h2 { color: var(--text-on-light); }
.section-alt p, .section-alt li, .tech-stack-bar p { color: var(--text-muted-on-light); }

/* --- LAYOUT UTILS --- */
.container { 
    max-width: var(--container); 
    margin: 0 auto; 
    padding: 0 24px; 
    position: relative; 
    z-index: 2; 
}

.section { padding: var(--spacing-section) 0; position: relative; }

/* 1. DARK SECTION (Standard) */
.section-dark { 
    background-color: var(--bg-dark); 
    color: var(--text-on-dark);
}

/* 2. LIGHT SECTION (Jetzt in Eisblau!) */
.section-alt { 
    background-color: var(--bg-light); 
    color: var(--text-on-light);
    border-top: 1px solid var(--border-on-light);
    border-bottom: 1px solid var(--border-on-light);
}

/* --- NAVIGATION --- */
.nav { padding: 24px 0; position: absolute; top: 0; width: 100%; z-index: 50; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-logo-custom { height: 36px; width: auto; display: block; }

/* --- HERO SECTION --- */
.hero { 
    display: block; 
    min-height: 90vh; 
    padding-top: 160px; padding-bottom: 80px;
    position: relative; 
    /* Satter, dunkler Verlauf */
    background: radial-gradient(circle at 50% 0%, #2e1a66 0%, var(--bg-dark) 70%);
}

.hero-content { text-align: center; max-width: 850px; margin: 0 auto; }

.badge { 
    display: inline-block; padding: 8px 20px; 
    border: 1px solid rgba(101, 175, 225, 0.3); 
    border-radius: 50px; 
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; 
    margin-bottom: 32px; font-family: var(--font-mono); font-weight: 600;
    color: var(--color-primary); background: rgba(101, 175, 225, 0.1); 
}

h1 { 
    font-size: clamp(3rem, 5vw, 5rem); 
    font-weight: 800; letter-spacing: -1px; margin-bottom: 24px; color: #fff;
}

.text-gradient { 
    background: linear-gradient(135deg, #fff 30%, var(--color-primary) 100%); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}

.hero p { 
    font-size: 1.25rem; color: var(--text-muted-on-dark); 
    margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto; 
}

.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 80px; }

.hero-stats { 
    display: flex; justify-content: center; gap: 80px; 
    margin-top: 40px; padding-top: 40px;
    border-top: 1px solid var(--border-on-dark);
}
.stat-num { display: block; font-weight: 800; font-size: 2.2rem; color: #fff; margin-bottom: 4px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted-on-dark); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.stat-sep { width: 1px; height: 50px; background: var(--border-on-dark); }

/* --- BUTTONS --- */
.btn { 
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; border-radius: 12px; 
    font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.2s ease; 
    border: 1px solid transparent;
}
.btn-primary { background: var(--color-primary); color: #000; }
.btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 0 25px rgba(101,175,225,0.4); }
.btn-ghost { background: rgba(255,255,255,0.05); color: #fff; border-color: var(--border-on-dark); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: #fff; transform: translateY(-2px); }
.btn-full { width: 100%; margin-top: 20px; }

/* --- TECH STACK BAR (Jetzt hell & kontrastreich!) --- */
.tech-stack-bar {
    padding: 60px 0;
    background-color: var(--bg-light); /* Eisblau */
    border-bottom: 1px solid var(--border-on-light);
    color: var(--text-on-light);
}
.stack-row { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; gap: 20px; }
.stack-row:last-child { margin-bottom: 0; } 
.stack-category { font-size: 0.75rem; color: var(--text-muted-on-light); font-weight: 700; letter-spacing: 1.5px; margin-right: 10px; text-transform: uppercase; font-family: var(--font-mono); min-width: 140px; text-align: right; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }

.tech-tag { 
    font-size: 0.9rem; font-weight: 500; padding: 6px 14px; border-radius: 8px; 
    border: 1px solid transparent; cursor: default; transition: 0.2s;
}
/* Tags angepasst für hellen Hintergrund */
.tag-ms { background: rgba(15, 23, 42, 0.05); color: var(--text-on-light); border-color: rgba(15, 23, 42, 0.1); }
.tag-ops { background: rgba(101, 175, 225, 0.1); color: var(--color-primary); border-color: rgba(101, 175, 225, 0.3); }
.tech-tag:hover { transform: translateY(-2px); border-color: var(--color-primary); background: #fff; box-shadow: 0 2px 10px rgba(101, 175, 225, 0.2); }

/* --- CORE COMPETENCIES (Dark) --- */
.section-label { text-align: center; margin-bottom: 60px; font-family: var(--font-mono); color: var(--color-primary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; }

.tech-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 32px; 
}

.tech-card { 
    background: rgba(255,255,255,0.02); 
    padding: 40px; border-radius: var(--radius-md); 
    border: 1px solid var(--border-on-dark); 
    transition: transform 0.3s ease;
}
.tech-card:hover { transform: translateY(-5px); border-color: var(--color-primary); }
.tech-head { font-weight: 700; font-size: 1.25rem; margin-bottom: 20px; color: #fff; border-bottom: 1px solid var(--border-on-dark); padding-bottom: 15px; }
.tech-list { list-style: none; padding: 0; margin: 0; font-size: 1rem; color: var(--text-muted-on-dark); }
.tech-list li { margin-bottom: 12px; display: flex; align-items: center; }
.tech-list li::before { content: "›"; color: var(--color-primary); margin-right: 12px; font-weight: 800; font-size: 1.2rem; line-height: 0; }


/* --- SPRINTS (Light - Eisblau) --- */
/* Nutzt .section-alt Farben */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 80px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }

.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.card { 
    /* Weisse Karten auf Eisblauem Grund für maximalen Pop */
    background: #ffffff; 
    border: 1px solid var(--border-on-light); 
    padding: 40px; border-radius: var(--radius-md); 
    height: 100%; display: flex; flex-direction: column; transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.card:hover { 
    border-color: var(--color-primary); 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(101, 175, 225, 0.15);
}
.card h3 { color: var(--text-on-light); font-size: 1.4rem; font-weight: 700; margin: 0 0 15px 0; }
.card p { color: var(--text-muted-on-light); font-size: 1rem; margin-bottom: 30px; flex-grow: 1; }
.card-icon { 
    width: 56px; height: 56px; 
    background: rgba(101, 175, 225, 0.15); color: var(--fb-blue-700); 
    border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; 
}
.check-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border-on-light); padding-top: 25px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.95rem; color: var(--text-muted-on-light); }
.check-list li::before { content: "✓"; color: var(--color-accent); font-weight: 800; }


/* --- PROJECT SHOWCASE (Dark) --- */
.case-card { 
    background: #1a162e; /* Leicht heller als Body für Abhebung */
    border: 1px solid var(--border-on-dark); border-radius: var(--radius-lg); 
    overflow: hidden; max-width: 950px; margin: 0 auto; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.case-header { padding: 40px; border-bottom: 1px solid var(--border-on-dark); background: rgba(255,255,255,0.02); }
.badge-case { background: var(--color-accent); color: #000; font-weight: 700; font-size: 0.75rem; padding: 6px 12px; border-radius: 6px; font-family: var(--font-mono); }
.client-logo-link:hover { opacity: 0.8; }
.client-logo-img { height: 40px; width: auto; background: #fff; padding: 8px 12px; border-radius: 6px; display: block; }
.case-header h3 { font-size: 1.8rem; margin: 15px 0 0 0; color: #fff; }
.case-body { display: grid; grid-template-columns: 1.3fr 1fr; }
.case-main { padding: 50px; }
.case-main h4 { color: var(--color-primary); font-size: 1.1rem; margin-bottom: 15px; }
.case-main p { color: var(--text-muted-on-dark); margin-bottom: 40px; }
.case-details { background: rgba(0,0,0,0.2); padding: 50px; border-left: 1px solid var(--border-on-dark); }
.tech-stack-mini { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.check-list-sm { list-style: none; padding: 0; margin: 0; }
.check-list-sm li { font-size: 0.9rem; color: var(--text-muted-on-dark); margin-bottom: 12px; position: relative; padding-left: 20px; }
.check-list-sm li::before { content: "›"; color: var(--color-accent); font-weight: 800; position: absolute; left: 0; top: 0; }


/* --- ABOUT (Light - Eisblau) --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.code-badge { font-family: var(--font-mono); color: var(--fb-blue-700); margin-bottom: 20px; font-weight: 700; letter-spacing: 1px; }
.about-content h2 { font-size: 3rem; margin-bottom: 25px; letter-spacing: -1px; }
.about-content p { font-size: 1.15rem; line-height: 1.7; }
.visual-inner { 
    background: #fff; border: 1px solid var(--border-on-light); 
    border-radius: var(--radius-lg); padding: 60px 20px; text-align: center; 
    position: relative; box-shadow: 0 10px 40px rgba(101, 175, 225, 0.1); 
}
.visual-inner img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid var(--fb-blue-700); margin-bottom: 25px; }
.visual-text { font-family: var(--font-sans); font-weight: 700; color: var(--text-on-light); }


/* --- CONTACT (Dark - Improved Pop) --- */
.contact-container { max-width: 600px; }
.contact-card { 
    padding: 50px; text-align: center; 
    /* Satterer, etwas hellerer Blauton für die Karte */
    background: #1E2338; 
    border-radius: var(--radius-lg); 
    /* Hellere Border und stärkerer Schatten für "Pop"-Effekt */
    border: 1px solid rgba(101, 175, 225, 0.3); 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
}
.contact-card h2 { color: #fff; }
.contact-card p { color: var(--text-muted-on-dark); margin-bottom: 40px; }

.form-group input, .form-group textarea { 
    width: 100%; 
    /* Dunklere Eingabefelder für Kontrast IN der Karte */
    background: #0F1324; 
    border: 1px solid var(--border-on-dark); 
    padding: 16px; border-radius: 8px; color: #fff; 
    font-family: var(--font-sans); font-size: 1rem; transition: 0.2s; 
}
.form-group input:focus, .form-group textarea:focus { 
    outline: none; border-color: var(--color-primary); background: #151A30; 
    box-shadow: 0 0 0 3px rgba(101, 175, 225, 0.25); /* Fokus-Ring */
}


/* --- FOOTER --- */
.footer { 
    background: #0d0620; /* Fast schwarz für soliden Abschluss */
    border-top: 1px solid var(--border-on-dark); 
    padding: 80px 0; 
    color: var(--text-muted-on-dark); 
    font-size: 0.9rem; 
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; align-items: center; gap: 30px; }
.footer-links a:hover { color: var(--color-primary); }
.social-icon { 
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; 
    background: rgba(255,255,255,0.05); border-radius: 50%; 
    transition: 0.2s; color: #fff;
}
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.social-icon:hover { background: #0077b5; color: #fff; transform: translateY(-3px); }


/* --- MOBILE FIXES --- */
@media (max-width: 900px) {
    .tech-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 100px; padding-bottom: 60px; min-height: auto; text-align: left; }
    .hero-content { margin: 0; text-align: left; }
    .hero-actions { justify-content: flex-start; flex-direction: column; }
    .hero-stats { flex-direction: column; gap: 30px; border-top: none; padding-top: 20px; align-items: flex-start; }
    .stat-sep { display: none; }
    .stack-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .stack-category { text-align: left; margin-bottom: 5px; }
    .tag-list { justify-content: flex-start; }
    .about-grid { display: flex; flex-direction: column-reverse; gap: 40px; }
    .case-body { grid-template-columns: 1fr; }
    .case-details { border-left: none; border-top: 1px solid var(--border-on-dark); padding: 30px; }
    .footer-inner { flex-direction: column; gap: 30px; text-align: center; }
}