/* ==========================================================================
   OA Consulting · One-Pager
   Indigo als Marke · Tiefes Violett-Navy für dunkle Flächen · Smaragd als Signal
   ========================================================================== */

:root {
  --indigo: #4F46E5;
  --indigo-mid: #6366F1;
  --indigo-soft: #818CF8;
  --indigo-dark: #1E1B4B;
  --indigo-darker: #14123A;
  --indigo-light: #EEF2FF;
  --emerald: #10B981;
  --emerald-light: #34D399;

  --white: #FFFFFF;
  --off-white: #F7F7FB;
  --line: #E6E4F5;
  --ink: #1B1730;
  --ink-soft: #5B5876;
  --ink-on-dark: #E4E2F7;
  --ink-on-dark-soft: #ABA7D6;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -24px rgba(30, 27, 75, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  color: var(--indigo-dark);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 14px;
}

.eyebrow-light { color: var(--indigo-soft); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--indigo), var(--emerald-light));
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo-mid), var(--indigo));
  color: var(--white);
  box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(79, 70, 229, 0.75);
}

.btn-quiet {
  background: var(--white);
  border-color: var(--line);
  color: var(--indigo-dark);
}

.btn-quiet:hover {
  border-color: var(--indigo);
  background: var(--indigo-light);
  transform: translateY(-2px);
}

.btn-quiet-dark {
  background: transparent;
  border-color: rgba(228, 226, 247, 0.35);
  color: var(--white);
}

.btn-quiet-dark:hover {
  border-color: var(--emerald-light);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-large { padding: 17px 38px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  max-width: 1120px;
  height: 62px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px -16px rgba(30, 27, 75, 0.3);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.site-header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px -16px rgba(30, 27, 75, 0.42);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--indigo-dark);
  font-size: 0.98rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8B85F1 0%, var(--indigo) 45%, var(--indigo-dark) 100%);
  position: relative;
  overflow: hidden;
}

.brand-glyph { width: 60%; height: 60%; display: block; }

.brand-mark-small { width: 28px; height: 28px; border-radius: 8px; }

.ueber-mich-mark .brand-glyph { width: 56%; height: 56%; filter: drop-shadow(0 8px 14px rgba(10, 8, 40, 0.35)); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.main-nav a:not(.btn):hover { color: var(--indigo); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--indigo-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections (generic rhythm) ---------- */
.section { padding: 104px 0; }

@media (max-width: 640px) {
  .section { padding: 72px 0; }
}

h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 148px 0 104px;
  background: radial-gradient(120% 100% at 15% 0%, #2E2A73 0%, var(--indigo-darker) 55%, #0F0D2B 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.45), transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25%; left: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 20px;
}

.hero-copy { max-width: 700px; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
}

.hero .eyebrow { color: var(--emerald-light); }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero-lead {
  color: var(--ink-on-dark-soft);
  font-size: 1.12rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 34px 0 30px;
}

.hero .btn-quiet {
  background: transparent;
  border-color: rgba(228, 226, 247, 0.3);
  color: var(--white);
}

.hero .btn-quiet:hover {
  border-color: var(--emerald-light);
  background: rgba(255, 255, 255, 0.06);
}

.hero-proof {
  display: flex;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-on-dark-soft);
}

.hero-proof a { color: var(--emerald-light); font-weight: 600; }
.hero-proof a:hover { text-decoration: underline; }

/* ---------- Hero 3D scene ---------- */
.hero-visual { display: none; }

@media (min-width: 900px) {
  .hero-visual {
    display: block;
    position: relative;
    height: 400px;
  }
}

.scene-wrap {
  width: 100%;
  height: 100%;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene {
  position: relative;
  width: 340px;
  height: 340px;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.card-pos {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.card-pos-1 { transform: translate3d(-78px, -66px, 70px) rotateY(-16deg) rotateX(7deg); }
.card-pos-2 { transform: translate3d(66px, -6px, -20px) rotateY(12deg) rotateX(-5deg); }
.card-pos-3 { transform: translate3d(-16px, 96px, -70px) rotateY(-7deg) rotateX(10deg); }

.card-float {
  transform-style: preserve-3d;
  animation: cardFloat 7s ease-in-out infinite;
}

.card-pos-2 .card-float { animation-duration: 8.2s; animation-delay: -2.4s; }
.card-pos-3 .card-float { animation-duration: 6.4s; animation-delay: -4.6s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotateZ(0deg); }
  50% { transform: translateY(-14px) rotateZ(1.4deg); }
}

.card-face {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  border: 1px solid rgba(228, 226, 247, 0.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -20px rgba(8, 6, 32, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
}

.card-face-web { background: linear-gradient(160deg, rgba(129, 140, 248, 0.55), rgba(79, 70, 229, 0.18)); }
.card-face-seo { background: linear-gradient(160deg, rgba(99, 102, 241, 0.5), rgba(30, 27, 75, 0.25)); }
.card-face-geo { background: linear-gradient(160deg, rgba(52, 211, 153, 0.42), rgba(16, 185, 129, 0.12)); }

.card-icon { font-size: 1.5rem; }
.card-label { font-weight: 700; letter-spacing: 0.02em; font-size: 0.92rem; }

.orb {
  position: absolute;
  border-radius: 50%;
}

.orb-1 {
  width: 14px; height: 14px;
  top: 18%; right: 8%;
  background: var(--emerald-light);
  box-shadow: 0 0 22px 5px rgba(52, 211, 153, 0.55);
  animation: orb1Float 5s ease-in-out infinite;
}

.orb-2 {
  width: 10px; height: 10px;
  bottom: 14%; left: 6%;
  background: var(--indigo-soft);
  box-shadow: 0 0 18px 4px rgba(129, 140, 248, 0.55);
  animation: orb2Float 6.5s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes orb1Float {
  0%, 100% { transform: translateZ(90px) translateY(0); }
  50% { transform: translateZ(90px) translateY(-18px); }
}

@keyframes orb2Float {
  0%, 100% { transform: translateZ(40px) translateY(0); }
  50% { transform: translateZ(40px) translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  .card-float, .orb-1, .orb-2 { animation: none !important; }
  .scene { transition: none !important; }
}

/* ---------- Problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.problem-card {
  background: var(--indigo-light);
  border-radius: var(--radius);
  padding: 32px;
}

.problem-card-label {
  font-weight: 700;
  color: var(--indigo-dark);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.problem-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.problem-card li { margin-bottom: 12px; }
.problem-card li:last-child { margin-bottom: 0; }

/* ---------- Leistungen ---------- */
.leistungen { background: var(--off-white); }

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.leistung-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.leistung-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.leistung-card-accent {
  background: linear-gradient(160deg, var(--indigo-dark), var(--indigo-darker));
  border-color: transparent;
}

.leistung-card-accent h3,
.leistung-card-accent .leistung-num { color: var(--white); }
.leistung-card-accent p { color: var(--ink-on-dark-soft); }

.leistung-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--indigo-soft);
  margin-bottom: 18px;
}

/* ---------- GEO deep dive ---------- */
.geo-deep {
  background: radial-gradient(120% 120% at 85% 10%, #2E2A73 0%, var(--indigo-darker) 60%, #100D30 100%);
}

.geo-deep h2 { color: var(--white); }
.geo-deep p { color: var(--ink-on-dark-soft); }

.geo-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

.geo-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.geo-point {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(228, 226, 247, 0.12);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}

.geo-point h3 { color: var(--white); margin-bottom: 6px; }
.geo-point p { margin: 0; color: var(--ink-on-dark-soft); font-size: 0.94rem; }

/* ---------- Über mich ---------- */
.ueber-mich-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: center;
}

.ueber-mich-mark {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(135deg, #8B85F1 0%, var(--indigo) 45%, var(--indigo-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

/* ---------- Ablauf ---------- */
.ablauf { background: var(--off-white); }

.ablauf-steps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.ablauf-steps li {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ablauf-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--indigo-light);
  color: var(--indigo);
  font-weight: 700;
  font-family: var(--font-heading);
}

.ablauf-steps h3 { margin-bottom: 6px; }
.ablauf-steps p { margin: 0; font-size: 0.94rem; }

/* ---------- Referenz ---------- */
.referenz-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.referenz-text .btn { margin-top: 8px; }

.referenz-image {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease);
}

.referenz-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.referenz-image:hover { transform: translateY(-4px); }

/* ---------- Kontakt ---------- */
.kontakt {
  background: radial-gradient(120% 130% at 50% 0%, #2E2A73 0%, var(--indigo-darker) 55%, #0F0D2B 100%);
  text-align: center;
}

.kontakt-inner { max-width: 640px; margin: 0 auto; }

.kontakt h2 { color: var(--white); }

.kontakt-lead { color: var(--ink-on-dark-soft); font-size: 1.05rem; }

.kontakt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 30px 0 34px;
}

.kontakt-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink-on-dark-soft);
  font-size: 0.88rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo-darker);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-on-dark-soft);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.88rem;
}

.footer-links a { color: var(--ink-on-dark-soft); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal {
  padding: 140px 0 100px;
  max-width: 780px;
  margin: 0 auto;
}

.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--indigo); }
.legal a:hover { text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 1500;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(20, 18, 58, 0.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(228, 226, 247, 0.15);
  border-radius: 18px;
  box-shadow: 0 20px 50px -18px rgba(10, 8, 40, 0.6);
  padding: 18px 20px;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  color: var(--ink-on-dark-soft);
  font-size: 0.86rem;
  flex: 1 1 300px;
}

.cookie-banner a { color: var(--emerald-light); font-weight: 600; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }

@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner .btn { width: 100%; text-align: center; }
}
.legal ul { padding-left: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .problem-grid,
  .geo-grid,
  .referenz-grid { grid-template-columns: 1fr; }

  .referenz-image { order: -1; }

  .ueber-mich-grid { grid-template-columns: 1fr; text-align: center; }
  .ueber-mich-mark { width: 140px; height: 140px; margin: 0 auto; }

  .leistungen-grid { grid-template-columns: 1fr 1fr; }
  .ablauf-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 84px;
    left: 16px; right: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 22px 20px;
    box-shadow: 0 20px 44px -18px rgba(30, 27, 75, 0.32);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 14px; width: 100%; text-align: center; }

  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .leistungen-grid { grid-template-columns: 1fr; }
  .ablauf-steps { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .kontakt-actions { flex-direction: column; }
}
