/* =========================================================
   ANDREJ VÖLLMIN — PERSONAL SITE
   Ethereal Glass · OLED Dark · Awwwards-Tier
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

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

:root {
  --bg:          #060605;
  --bg-2:        #0e0e0c;
  --surface:     rgba(255,255,255,0.045);
  --surface-h:   rgba(255,255,255,0.08);
  --border:      rgba(255,255,255,0.08);
  --border-hi:   rgba(255,255,255,0.14);
  --text:        #f2f0ec;
  --text-dim:    rgba(242,240,236,0.52);
  --text-muted:  rgba(242,240,236,0.28);
  --accent:      #BAFF6A;
  --accent-dim:  rgba(186,255,106,0.1);
  --accent-glow: rgba(186,255,106,0.2);
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }

/* ── BLOBS ── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(186,255,106,0.055) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: blobMove 20s ease-in-out infinite alternate;
}
.blob-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(106,212,255,0.04) 0%, transparent 70%);
  bottom: -100px; right: -50px;
  animation: blobMove 26s ease-in-out infinite alternate-reverse;
}
@keyframes blobMove {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(70px,50px) scale(1.12); }
}

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; position: relative; z-index: 1; }

.section-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.accent-text { color: var(--accent); }
.section-sub { color: var(--text-dim); font-size: 1.1rem; max-width: 560px; margin-bottom: 4rem; }

/* ── CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.card:hover { border-color: var(--border-hi); background: var(--surface-h); transform: translateY(-3px); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  width: calc(100% - 3rem);
  max-width: 1020px;
}
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,8,7,0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-hi);
  border-radius: 9999px;
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  transition: border-color 0.3s var(--ease-out);
}
.nav-pill:hover { border-color: rgba(255,255,255,0.22); }

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 0.1rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-h); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #050504;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  transition: transform 0.2s var(--ease-out), background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #d2ffa0; transform: scale(1.04); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 0.4rem;
}
.hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-drawer), opacity 0.3s var(--ease-drawer);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,4,0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.overlay.open { opacity: 1; pointer-events: all; }
.overlay-link {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 9vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.2s;
}
.overlay.open .overlay-link { opacity: 1; transform: translateY(0); }
.overlay.open .overlay-link:nth-child(1) { transition-delay: 0.05s; }
.overlay.open .overlay-link:nth-child(2) { transition-delay: 0.10s; }
.overlay.open .overlay-link:nth-child(3) { transition-delay: 0.15s; }
.overlay.open .overlay-link:nth-child(4) { transition-delay: 0.20s; }
.overlay.open .overlay-link:nth-child(5) { transition-delay: 0.25s; }
.overlay-link:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 5rem;
}
.hero-content { display: flex; flex-direction: column; gap: 1.75rem; }

.eyebrow {
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(186,255,106,0.2);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  width: fit-content;
}

.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-sub { color: var(--text-dim); font-size: 1.1rem; line-height: 1.7; max-width: 480px; }

.hero-btns { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #050504;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  transition: transform 0.25s var(--ease-out), background 0.2s;
}
.btn-primary:hover { background: #d2ffa0; transform: scale(1.04); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border-hi);
  border-radius: 9999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); background: var(--surface-h); }
.btn-icon { font-size: 0.95rem; }

.hero-meta { display: flex; align-items: center; gap: 1.5rem; padding-top: 0.5rem; }
.meta-item { display: flex; flex-direction: column; gap: 0.1rem; }
.meta-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; line-height: 1; }
.meta-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.05em; }
.meta-div { width: 1px; height: 2.5rem; background: var(--border-hi); }

/* portrait */
.hero-portrait { position: relative; display: flex; align-items: center; justify-content: center; }
.portrait-outer {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hi);
  border-radius: 2rem;
  padding: 0.5rem;
}
.portrait-inner {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: calc(2rem - 0.375rem);
  overflow: hidden;
  position: relative;
}
.portrait-img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: cover;
  border-radius: calc(2rem - 0.5rem);
  filter: contrast(1.04) brightness(0.97);
  transition: transform 0.6s var(--ease-out);
}
.portrait-inner:hover .portrait-img { transform: scale(1.025); }

.portrait-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8,8,7,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-hi);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.portrait-accent-ring {
  position: absolute;
  width: 120%; height: 120%;
  border: 1px solid rgba(186,255,106,0.07);
  border-radius: 2.5rem;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  animation: ringPulse 4s ease-in-out infinite alternate;
}
@keyframes ringPulse {
  from { opacity: 0.4; transform: translate(-50%,-50%) scale(1); }
  to   { opacity: 0.8; transform: translate(-50%,-50%) scale(1.02); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--text-dim); margin-bottom: 1rem; font-size: 1.02rem; }
.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.about-card { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.card-icon { font-size: 1.4rem; color: var(--accent); margin-bottom: 0.25rem; }
.about-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; }
.about-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.team-card--featured {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.team-card { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.85rem; }
.team-card--featured .team-portrait-wrap { margin: -1.75rem -1.75rem 1.5rem; }

.team-portrait-wrap { overflow: hidden; border-radius: 1rem; position: relative; }
.team-portrait-wrap--sm {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-hi);
}
.team-portrait {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}
.team-card:hover .team-portrait { transform: scale(1.04); filter: grayscale(0%) contrast(1.05); }
.team-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,5,0.7) 0%, transparent 50%);
}
.team-role-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(186,255,106,0.18);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  width: fit-content;
}
.team-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.team-desc { color: var(--text-dim); font-size: 0.88rem; line-height: 1.65; flex-grow: 1; }
.team-contact { color: var(--accent); font-size: 0.82rem; text-decoration: none; transition: opacity 0.2s; }
.team-contact:hover { opacity: 0.75; }
.team-info { display: flex; flex-direction: column; gap: 0.85rem; }

/* ── LEISTUNGEN ── */
.leistungen { background: var(--bg-2); }
.leistungen-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  margin-top: 3rem;
}
.leistung-divider { height: 1px; background: var(--border); }
.leistung-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 3rem;
  transition: background 0.3s var(--ease-out);
}
.leistung-item:hover { background: var(--surface); }
.leistung-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--text-muted);
  line-height: 1;
  padding-top: 0.2rem;
}
.leistung-body h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.35rem; margin-bottom: 0.75rem; }
.leistung-body p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; max-width: 440px; }
.leistung-tags { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; flex-shrink: 0; }
.leistung-tags span {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

/* ── FAQ / TRANSPARENZ ── */
.faq { background: var(--bg); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.faq-card {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-q-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.faq-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
}

.faq-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ── KONTAKT ── */
.kontakt-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 620px;
  margin: 0 auto;
}
.kontakt-inner .section-label { margin-bottom: 0; }
.kontakt-sub { color: var(--text-dim); font-size: 1.05rem; }
.kontakt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #050504;
  background: var(--accent);
  text-decoration: none;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  transition: transform 0.25s var(--ease-out), background 0.2s;
  box-shadow: 0 0 40px var(--accent-glow);
}
.kontakt-btn:hover { transform: scale(1.05); background: #d2ffa0; }
.kontakt-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: center;
}
.dot { color: var(--border-hi); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.95rem; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }


/* ── CONTACT FORM ── */
.contact-form-wrap {
  width: 100%;
  max-width: 560px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cf-field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cf-field input,
.cf-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hi);
  border-radius: 0.85rem;
  padding: 0.85rem 1.1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
  width: 100%;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--text-muted); }

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--accent);
  background: rgba(186,255,106,0.04);
}

.cf-status {
  font-size: 0.85rem;
  min-height: 1.2rem;
  text-align: center;
}
.cf-status.ok  { color: var(--accent); }
.cf-status.err { color: #ff6b6b; }

#cf-submit { width: 100%; justify-content: center; cursor: pointer; border: none; }
#cf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: 0.18s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .team-card--featured { grid-column: 1/3; grid-row: auto; flex-direction: row; gap: 2rem; }
  .team-card--featured .team-portrait-wrap { margin: -1.75rem 0 -1.75rem -1.75rem; min-width: 200px; max-width: 220px; border-radius: 0 1rem 1rem 0; }
  .leistung-item { grid-template-columns: 60px 1fr; padding: 2rem; }
  .leistung-tags { grid-column: 2; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 6rem 1.5rem 4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-portrait { order: -1; }
  .portrait-img { max-width: 300px; margin: 0 auto; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }

  .team-grid { grid-template-columns: 1fr; }
  .team-card--featured { flex-direction: column; grid-column: 1; }
  .team-card--featured .team-portrait-wrap { margin: -1.75rem -1.75rem 1.5rem; min-width: auto; max-width: none; border-radius: 0; }

  .leistung-item { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 1.5rem; }
  .leistung-num { font-size: 1.5rem; }
  .leistung-tags { align-items: flex-start; }

  .faq-card { padding: 1.5rem; }

  .section { padding: 5rem 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}
