/* ==========================================================================
   qo'vo' Consulting - Elite Light Executive Styling
   Prestigious, High-Contrast & Elegant Swiss/Austrian Advisory Aesthetic
   ========================================================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --accent-gold: #9d7b2a;
  --accent-gold-light: #b5923b;
  --accent-gold-soft: rgba(157, 123, 42, 0.12);
  --accent-bloodwine: #82151e;
  --accent-bloodwine-light: #9a1c27;
  --accent-bloodwine-soft: rgba(130, 21, 30, 0.08);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --border-gold: rgba(157, 123, 42, 0.35);
  --font-heading: 'Cinzel', 'Trajan Pro', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-elevated: 0 20px 35px -5px rgba(15, 23, 42, 0.09), 0 8px 16px -2px rgba(15, 23, 42, 0.04);
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  /* Feststehendes Alpenpanorama - exakt 45-50% opak */
  background-image: 
    linear-gradient(rgba(248, 250, 252, 0.45), rgba(248, 250, 252, 0.50)),
    url('../img/background.jpg?v=2');
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, .brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

a {
  color: var(--accent-bloodwine);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-bloodwine-light);
}

/* Header & Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  padding: 1.1rem 0;
}

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

.brand-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.12));
}

.brand-logo-img:hover {
  transform: scale(1.05);
}

.hero-logo-wrap {
  margin: 0 auto 2.2rem;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 25px rgba(15, 23, 42, 0.14));
  transition: var(--transition-smooth);
}

.hero-logo-img:hover {
  transform: scale(1.02);
}

.brand-insignia {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-bloodwine), #540c13);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(130, 21, 30, 0.25);
  transform: rotate(45deg);
  transition: var(--transition-smooth);
}

.brand-insignia svg {
  transform: rotate(-45deg);
  fill: #ffffff;
  width: 22px;
  height: 22px;
}

.brand-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  line-height: 1.05;
}

.brand-name span {
  color: #b89853; /* Exaktes qo'vo' Logo-Gold */
  font-size: 0.90rem;
  text-transform: uppercase;
  display: block;
  letter-spacing: 0.20em;
  font-family: var(--font-body);
  font-weight: 800;
  margin-top: 3px;
  text-shadow: 0 1px 2px rgba(184, 152, 83, 0.15);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 0.2rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-bloodwine);
  transition: var(--transition-smooth);
}

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

.nav-links a.nav-link-red {
  color: var(--accent-bloodwine) !important;
  font-weight: 700;
}

.nav-links a.nav-link-red::after {
  background: var(--accent-bloodwine);
}

.nav-links a.nav-link-red:hover {
  color: #a6232e !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bloodwine), #610e15);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(130, 21, 30, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-bloodwine-light), #72111a);
  box-shadow: 0 6px 20px rgba(130, 21, 30, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-bloodwine);
  color: var(--accent-bloodwine);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 6.5rem 0 4.5rem;
  position: relative;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid var(--accent-bloodwine);
  color: var(--accent-bloodwine);
  padding: 0.65rem 1.85rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(130, 21, 30, 0.16);
  backdrop-filter: blur(8px);
}

.hero-mission {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-title {
  font-size: 2.15rem;
  line-height: 1.32;
  margin-bottom: 1.25rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: #1e293b;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.hero-title .highlight {
  color: var(--accent-bloodwine);
  display: inline-block;
  position: relative;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #1e293b;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Wisdom Banner */
.wisdom-banner {
  margin-top: 4rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-gold);
  border-radius: 8px;
  padding: 1.35rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  box-shadow: var(--shadow-subtle);
}

.wisdom-content {
  font-style: italic;
  color: var(--text-main);
  font-size: 1.05rem;
}

.wisdom-author {
  color: var(--accent-gold);
  font-weight: 700;
  font-style: normal;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

.wisdom-refresh {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.55rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
}

.wisdom-refresh:hover {
  background: #ffffff;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  color: var(--accent-bloodwine);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.3rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Feature & Method Cards */
.section {
  padding: 6rem 0;
}

/* Stadt-Skyline Hintergrund für weiße Abschnitte (mitscrollend, ca. 80% opak) */
.section-city {
  position: relative;
  background-image: 
    linear-gradient(rgba(248, 250, 252, 0.80), rgba(248, 250, 252, 0.84)),
    url('../img/city.jpg?v=2');
  background-attachment: scroll;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.bg-alt {
  background: rgba(241, 245, 249, 0.78);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Grid für vertikale Mandats- und Informationskarten */
.cases-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Doktrin Galerie-Slider mit seitlichen Buttons */
.carousel-outer-wrapper {
  position: relative;
  margin: 1.5rem 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
  z-index: 20;
}

.carousel-btn-prev {
  left: -22px;
}

.carousel-btn-next {
  right: -22px;
}

.carousel-btn:hover {
  background: var(--accent-bloodwine);
  color: #ffffff;
  border-color: var(--accent-bloodwine);
  box-shadow: 0 6px 22px rgba(130, 21, 30, 0.35);
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 900px) {
  .carousel-btn-prev {
    left: 2px;
  }
  .carousel-btn-next {
    right: 2px;
  }
}

.method-slider-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 1.75rem;
  padding: 1.5rem 0.5rem 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.method-slider-container::-webkit-scrollbar {
  display: none;
}

.method-card-slide {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

@media (max-width: 600px) {
  .method-card-slide {
    flex: 0 0 85%;
  }
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent-bloodwine);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 2.4rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 21, 30, 0.3);
  box-shadow: var(--shadow-elevated);
}

.card:hover::before {
  background: linear-gradient(90deg, var(--accent-bloodwine), var(--accent-gold));
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-bloodwine-soft);
  border: 1px solid rgba(130, 21, 30, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.7rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.card-subtitle {
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card-quote {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border-subtle);
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* The Founder Section & Manifest */
.founder-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: center;
  box-shadow: var(--shadow-elevated);
}

.founder-visual {
  position: relative;
  text-align: center;
}

.founder-portrait-wrap {
  position: relative;
  max-width: 270px;
  margin: 0 auto;
}

.founder-portrait {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 12px;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.14);
  display: block;
}

.founder-seal-badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.founder-seal-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.founder-badge-shield {
  display: none;
}

.founder-info h3 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.founder-role {
  color: var(--accent-bloodwine);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.manifest-highlight,
.maifest-highlight {
  background: #fdfaf6;
  border: 1px solid rgba(157, 123, 42, 0.25);
  border-left: 4px solid var(--accent-bloodwine);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.manifest-title,
.maifest-title {
  color: var(--accent-bloodwine);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Case Studies / Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

.stat-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.75rem 1rem;
  box-shadow: var(--shadow-subtle);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent-bloodwine);
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

/* Contact / Challenge Form */
.contact-container {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 3.5rem;
  box-shadow: var(--shadow-elevated);
}

.form-group {
  margin-bottom: 1.6rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group label .hint {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.8rem;
}

.form-control {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent-bloodwine);
  box-shadow: 0 0 0 3px rgba(130, 21, 30, 0.1);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.alert {
  padding: 1.1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Footer */
footer.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.db-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.db-online {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.db-fallback {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .founder-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.2rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .contact-container {
    padding: 1.8rem;
  }
}
