/* Base Variables: Premium Blue & Elegant Light Mode */
:root {
  /* Colors - "Edles Blau" */
  --primary: #0A192F;       /* Very deep, luxurious navy/night blue */
  --primary-light: #172A45; /* Slightly lighter navy for hover/contrast */
  --accent: #2563EB;        /* Refined, vibrant blue for subtle highlights/buttons */
  
  --bg-color: #FAFCFF;      /* Very soft, cool white for the background */
  --bg-surface: #FFFFFF;    /* Pure white for floating cards/sections */
  
  --text-main: #1E293B;     /* Slate for high readability but softer than black */
  --text-muted: #64748B;
  
  --border-light: rgba(10, 25, 47, 0.08); /* Very subtle borders */

  /* Typography: Modern & Elegant */
  --font-sans: 'Outfit', 'Inter', system-ui, sans-serif;
  
  /* Styling & Layout */
  --shadow-sm: 0 4px 15px rgba(10, 25, 47, 0.05);
  --shadow-lg: 0 20px 40px rgba(10, 25, 47, 0.08); /* Elegant, soft drop shadow */
  --radius: 8px; /* Slightly rounded for an elegant, approachable feel */
  
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 8rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px; /* Pill shape for elegance */
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 25, 47, 0.15);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.btn-light {
  background-color: #fff;
  color: var(--primary);
}

.btn-light:hover {
  background-color: var(--bg-color);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(250, 252, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
  transition: padding var(--transition);
}

header.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links a.nav-item {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a.nav-item:hover,
.nav-links a.nav-item.active {
  color: var(--accent);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

/* Premium Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 120px; /* Offset header */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Background aesthetic element */
.hero-bg-accent {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(250, 252, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: fadeSlideUp 1s ease-out forwards;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--accent);
}

.hero p.lead {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* Image Placeholder Styling for Hero */
.hero-image-wrapper {
  position: relative;
  height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeSlideLeft 1.2s ease-out forwards;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
}

.hero-image-placeholder::after {
  content: 'Atmosphärisches Bild (z.B. modernes Büro/Architektur)';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  text-align: center;
  padding: 2rem;
}

/* Feature/Value Section - Overlapping Layout */
.value-section {
  background-color: var(--bg-surface);
  position: relative;
  z-index: 10;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: -5rem; /* Overlaps previous section */
}

.value-card {
  background: var(--bg-surface);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: transform var(--transition);
}

.value-card:hover {
  transform: translateY(-8px);
}

.value-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Image + Text Block (Broschüren-Style) */
.split-section {
  padding: 10rem 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.split-grid.reverse {
  direction: rtl;
}

.split-grid.reverse > * {
  direction: ltr;
}

.split-image-placeholder {
  width: 100%;
  height: 500px;
  background: linear-gradient(to bottom right, #f1f5f9, #e2e8f0);
  border-radius: var(--radius);
  position: relative;
}

.split-image-placeholder::after {
  content: 'Portrait / Beratungssituation';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
}

/* Edler CTA Bereich */
.elegant-cta {
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8rem 0;
  border-radius: var(--radius);
  margin: 0 2.5rem 6rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.elegant-cta h2, .elegant-cta h3 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.elegant-cta p {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Content Pages (Legal) */
.page-wrapper {
  padding-top: 150px;
  padding-bottom: 8rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.page-divider {
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1.5rem;
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

h4.footer-title {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

/* Animations */
@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
  0% { opacity: 0; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Scroll Reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-image-wrapper {
    height: 400px;
  }
  
  .value-grid {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }
  
  .elegant-cta {
    margin: 0 1rem 4rem;
    padding: 5rem 1rem;
  }
}

@media (max-width: 768px) {
  h1, .hero h1 { font-size: 2.5rem; }
  .menu-toggle { display: flex; }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
