/* ============================================================
   jonashoever.de — Premium Dach-Marke
   Dark · Glass · Gradient · kinetische Scroll-Reveals
   ============================================================ */

:root {
  --bg:        #08090d;
  --bg-2:      #0d0f16;
  --surface:   rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --border:    rgba(255, 255, 255, .09);
  --border-2:  rgba(255, 255, 255, .16);
  --text:      #eef0f6;
  --muted:     #99a0b3;
  --muted-2:   #6b7285;
  --brand:     #7c5cff;
  --brand-2:   #22d3ee;
  --accent:    #ff5c9d;
  --radius:    20px;
  --radius-sm: 14px;
  --maxw:      1120px;
  --shadow:    0 30px 80px -30px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% -5%,  rgba(124, 92, 255, .22), transparent 60%),
    radial-gradient(55% 45% at 95% 10%,  rgba(34, 211, 238, .16), transparent 60%),
    radial-gradient(50% 50% at 60% 105%, rgba(255, 92, 157, .14), transparent 60%),
    var(--bg);
}
/* subtle grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.gradient-text {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 45%, var(--accent) 75%, var(--brand) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: flow 8s ease-in-out infinite;
}
@keyframes flow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ─── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 9, 13, .6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(8, 9, 13, .82); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; }
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 18px var(--brand);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--muted); font-size: .95rem; padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s, box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #8b6dff 0%, #6d4df0 100%);
  box-shadow: 0 10px 30px -12px rgba(124, 92, 255, .8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -12px rgba(124, 92, 255, .95); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-2); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-2); }

/* ─── Hero ────────────────────────────────────────────── */
.hero { position: relative; padding: 92px 0 70px; overflow: hidden; }
.hero-aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  z-index: -1; filter: blur(60px); opacity: .55;
  background:
    radial-gradient(40% 60% at 25% 30%, var(--brand), transparent 70%),
    radial-gradient(40% 60% at 75% 25%, var(--brand-2), transparent 70%),
    radial-gradient(45% 55% at 55% 70%, var(--accent), transparent 70%);
  animation: aurora 16s ease-in-out infinite alternate,
             hueshift 18s ease-in-out infinite alternate;
}
@keyframes hueshift {
  from { filter: blur(60px) hue-rotate(0deg); }
  to   { filter: blur(60px) hue-rotate(34deg); }
}
@keyframes aurora {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(4%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.02); }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 7px 14px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); margin-bottom: 26px;
}
.eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: #35e08a; box-shadow: 0 0 10px #35e08a; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); white-space: pre-line; }
.hero p.lead { max-width: 620px; margin: 24px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* stat strip */
.stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 58px; }
.stat .n { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; }
.stat .l { color: var(--muted); font-size: .9rem; }

/* ─── Sections ────────────────────────────────────────── */
section.block { padding: 78px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: 1.1rem; }

/* ─── Service cards ───────────────────────────────────── */
.services-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.svc {
  position: relative; display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.svc::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
.svc::after {
  content: ''; position: absolute; top: -40%; right: -30%; width: 60%; height: 80%;
  background: radial-gradient(circle, var(--c1), transparent 70%);
  opacity: .16; filter: blur(30px); transition: opacity .3s;
}
.svc:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); }
.svc:hover::after { opacity: .3; }
.svc-icon {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 26px -8px var(--c1);
}
.svc-badge {
  position: absolute; top: 26px; right: 26px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-2);
}
.svc h3 { font-size: 1.4rem; }
.svc .tagline { color: var(--text); font-weight: 600; margin: 6px 0 10px; }
.svc p { color: var(--muted); margin: 0 0 22px; font-size: .98rem; flex: 1; }
.svc-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  color: var(--brand-2); transition: gap .2s;
}
.svc:hover .svc-link { gap: 13px; }

/* empty state */
.empty { text-align: center; color: var(--muted); padding: 60px 0; border: 1px dashed var(--border); border-radius: var(--radius); }

/* ─── Contact ─────────────────────────────────────────── */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.contact-side {
  padding: 46px; background:
    linear-gradient(150deg, rgba(124, 92, 255, .18), rgba(34, 211, 238, .08)),
    var(--bg-2);
}
.contact-side h2 { font-size: 2.2rem; }
.contact-side p { color: var(--muted); margin-top: 14px; }
.contact-meta { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.contact-meta a { color: var(--text); display: inline-flex; align-items: center; gap: 10px; }
.contact-meta i { color: var(--brand-2); }
.contact-form { padding: 46px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--text);
  background: rgba(0, 0, 0, .28); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .22);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ─── Flash / alerts ──────────────────────────────────── */
.flash { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .95rem; border: 1px solid transparent; }
.flash.success { background: rgba(53, 224, 138, .12); border-color: rgba(53, 224, 138, .4); color: #8ff0c0; }
.flash.danger, .flash.error { background: rgba(255, 92, 92, .12); border-color: rgba(255, 92, 92, .4); color: #ffb0b0; }
.flash.warning { background: rgba(255, 200, 80, .12); border-color: rgba(255, 200, 80, .4); color: #ffe0a0; }

/* ─── Footer ──────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border); padding: 44px 0; margin-top: 40px;
  color: var(--muted); font-size: .92rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* ─── legal page ──────────────────────────────────────── */
.legal { max-width: 780px; margin: 0 auto; padding: 60px 0; }
.legal h1 { font-size: 2.4rem; margin-bottom: 28px; }
.legal pre {
  white-space: pre-wrap; font-family: inherit; color: var(--muted);
  line-height: 1.8; font-size: 1.02rem;
}

/* ─── Motion: premium (cmblu + Framer + Trionn) ───────── */
/* --ease: expo-out (deliberate). --spring: sanfter Overshoot (Framer). */
:root { --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.4, .5, 1); }

/* fade-up + blur-to-focus reveal (Framer-Feel) */
.reveal { opacity: 0; transform: translateY(36px); filter: blur(9px);
  transition: opacity .9s var(--ease), transform 1.05s var(--spring), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }

/* clip/line-mask reveal für Überschriften: Text steigt hinter einer Maske auf */
.reveal-head { }
.mask { display: block; overflow: hidden; padding-bottom: .08em; }
.mask > span { display: block; transform: translateY(118%); transition: transform 1.05s var(--ease); }
.reveal-head.in .mask > span { transform: none; }

/* langsam rotierender Hex-Motiv-Spinner (Signature-Motion) */
.hero-hex {
  position: absolute; top: 8%; right: 4%; width: 190px; height: 190px;
  z-index: -1; opacity: .5; will-change: transform;
}
.hero-hex svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pfeil-Mikrobewegung bei Hover */
.btn i.bi-arrow-right, .btn i.bi-arrow-down { transition: transform .3s var(--ease); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }
.btn:hover i.bi-arrow-down  { transform: translateY(3px); }

/* ─── Marquee (Trionn-Signature) ──────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--border);
  padding: 20px 0; background: linear-gradient(90deg, var(--bg-2), var(--bg)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 34px; padding: 0 17px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--muted); letter-spacing: -.01em; }
.marquee-item .sep { color: var(--brand-2); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Ambient Cursor-Glow (Framer-Feel) ───────────────── */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; border-radius: 50%;
  z-index: -1; pointer-events: none; opacity: 0; will-change: transform;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(124, 92, 255, .18), rgba(34, 211, 238, .05) 45%, transparent 65%);
  transition: opacity .5s ease;
}

/* ─── Cursor-Spotlight auf Service-Karten ─────────────── */
.svc::after {
  background: radial-gradient(240px circle at var(--mx, 80%) var(--my, -10%), var(--c1), transparent 55%) !important;
  top: 0 !important; right: 0 !important; width: 100% !important; height: 100% !important;
}
.svc > .svc-icon, .svc > h3, .svc > .tagline, .svc > p, .svc > .svc-link { position: relative; z-index: 1; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 820px) {
  .contact-card { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 40px; }
  section.block { padding: 56px 0; }
}

/* Motion aus, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal, .mask > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-aurora, .hero-hex svg { animation: none; }
}
