/* ==========================================================
   Die KI-Wende · Global Stylesheet
   frank-weiler.de
   ========================================================== */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── VARIABLES ── */
:root {
  --bg:         #F7F4F0;
  --surface:    #FFFFFF;
  --surface2:   #EDE9E3;
  --text:       #100F0E;
  --mid:        #6B645E;
  --soft:       #A8A09A;
  --accent:     #E8440A;
  --green:      #2C7A4A;
  --border:     rgba(16, 15, 14, 0.09);
  --shadow:     0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.1), 0 3px 12px rgba(0,0,0,0.05);
  --radius:     16px;
  --radius-sm:  10px;
  --nav-h:      64px;
  --s-e:        #C4A030;
  --s-d:        #CC5C0A;
  --s-u:        #E8440A;
  --ind-g:      #2C7A4A;
  --ind-a:      #B07D30;
}

/* ── BODY ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(247, 244, 240, 0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-brand { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; }
.nav-brand-name { font-family: 'Urbanist', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--text); letter-spacing: -0.01em; }
.nav-sep { color: var(--soft); font-size: 0.85rem; }
.nav-brand-project { font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 400; color: var(--mid); }
.nav-links { display: flex; gap: 0.25rem; }
.nav-link { font-size: 0.8rem; font-weight: 400; color: var(--mid); text-decoration: none; padding: 0.4rem 0.85rem; border-radius: 100px; transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--text); font-weight: 500; }
.nav-cta { font-size: 0.8rem; font-weight: 500; color: var(--surface); background: var(--text); text-decoration: none; padding: 0.45rem 1.1rem; border-radius: 100px; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.75; }

/* ── HERO (Subpage-Standard, Index überschreibt lokal) ── */
.hero {
  min-height: 65vh;
  padding: calc(var(--nav-h) + 10vh) 0 7vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  position: relative;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}
.hero-hl {
  font-family: 'Urbanist', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.25s forwards;
}
.hero-hl em { font-style: normal; font-family: 'Urbanist', sans-serif; font-weight: 800; color: var(--accent); }
.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  line-height: 1.5;
  color: var(--mid);
  opacity: 0;
  animation: fadeUp 0.7s 0.45s forwards;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mid);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.7rem 1.4rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.btn-ghost:hover { color: var(--text); background: var(--surface); transform: translateY(-1px); }

/* ── SECTIONS ── */
.section {
  padding: 7rem 2.5rem;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
.section-outer { border-bottom: 1px solid var(--border); }
.section-outer.bg-white { background: var(--surface); }
.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-hl {
  font-family: 'Urbanist', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

/* ── IMG PLACEHOLDER ── */
.img-ph {
  width: 100%; height: 100%;
  background: var(--surface2);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,0.04) 39px, rgba(0,0,0,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,0,0,0.04) 39px, rgba(0,0,0,0.04) 40px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--soft);
}
.img-ph-icon { font-size: 1.5rem; opacity: 0.5; }
.img-ph-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.img-ph-desc { font-size: 0.7rem; color: var(--soft); opacity: 0.7; }

/* ── LIVE DOT ── */
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

/* ── FOOTER ── */
footer {
  padding: 1.75rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}
footer p { font-size: 0.72rem; color: var(--soft); }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { font-size: 0.72rem; color: var(--soft); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.7); }
}

/* ── HERO BADGE ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}
.hero-badge.g { background: rgba(44,122,74,0.12); color: var(--ind-g); }
.hero-badge.a { background: rgba(176,125,48,0.12); color: var(--ind-a); }
.hero-badge.r { background: rgba(232,68,10,0.12); color: var(--accent); }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: 0.12s; }

/* ── RESPONSIVE (Base) ── */
@media (max-width: 860px) {
  .nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .hero { padding: calc(var(--nav-h) + 6vh) 0 6vh; }
  .hero-inner { padding: 0 1.5rem; }
  .section { padding: 4.5rem 1.5rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 1.5rem; }
}
