/* ============================================
   WIENZEK Beratungsgesellschaft - Custom Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #7B93AC;
  --primary-dark: #5B7591;
  --primary-deeper: #3D5A80;
  --primary-light: #A3B5C8;
  --primary-pale: #E8EDF2;
  --text-dark: #1a1a2e;
  --text-body: #3a3a4a;
  --text-muted: #6b7280;
  --bg-white: #ffffff;
  --bg-off: #f7f8fb;
  --border-subtle: #e2e6ec;
  --transition-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--primary-pale);
  color: var(--primary-deeper);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 600;
}

/* ---------- Navigation ---------- */
.nav-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition-base);
  background: transparent;
}

.nav-main.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-link {
  position: relative;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-dark);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--primary-dark);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--primary-pale) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-logo {
  max-width: 340px;
  width: 100%;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.2s forwards;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--text-dark);
  font-weight: 600;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.5s forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--primary-dark);
  font-weight: 500;
  letter-spacing: 0.15em;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.7s forwards;
}

.hero-desc {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.9s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  opacity: 0;
  animation: fadeUp 1s ease-out 1.1s forwards;
}

.hero-cta:hover {
  background: var(--primary-deeper);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: var(--primary);
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}

/* ---------- Section Styles ---------- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--primary);
  margin-bottom: 2rem;
}

.section-divider-center {
  width: 48px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto 2rem;
}

/* ---------- Philosophy Cards ---------- */
.philosophy-item {
  position: relative;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 2px solid var(--primary-pale);
  transition: var(--transition-base);
}

.philosophy-item:hover {
  border-left-color: var(--primary);
}

.philosophy-item p {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* ---------- WIENZEK Values ---------- */
.value-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-light);
  transition: color var(--transition-base);
}

.value-item:hover .value-letter {
  color: var(--primary-dark);
}

.value-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-base);
}

.value-item:last-child {
  border-bottom: none;
}

.value-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.value-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
}

/* ---------- Service Cards ---------- */
.service-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  transition: var(--transition-base);
  object-fit: contain;
}

.service-card:hover .service-icon {
  transform: scale(1.08);
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Seminars ---------- */
.seminar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-base);
}

.seminar-item:hover {
  background: var(--primary-pale);
  padding-left: 1.75rem;
}

.seminar-item:last-child {
  border-bottom: none;
}

.seminar-bullet {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.seminar-text {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* ---------- Career Timeline ---------- */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
  border-left: 1px solid var(--border-subtle);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-white);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0.25rem 0;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Qualifications ---------- */
.qual-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-pale);
  color: var(--primary-deeper);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: var(--transition-base);
}

.qual-tag:hover {
  border-color: var(--primary-light);
  background: var(--bg-white);
}

/* ---------- Contact ---------- */
.contact-cta {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition-base);
}

.contact-cta:hover {
  background: var(--primary-deeper);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer a:hover {
  color: var(--primary-light);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav-link {
  font-size: 1.25rem;
  display: block;
  padding: 0.75rem 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 300;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-dark);
  transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Stats Counter ---------- */
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-logo {
    max-width: 240px;
  }

  .value-letter {
    font-size: 2.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    max-width: 200px;
  }

  .hero-tagline {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 1.5rem 1.25rem;
  }
}
