/* ============================================================
   UnicornJellyfish — Design System
   ============================================================ */

/* --- Self-hosted Inter + Funnel Display (kein Google Fonts CDN) --- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Funnel Display';
  src: url('../fonts/funnel-display-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Funnel Display';
  src: url('../fonts/funnel-display-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Funnel Display';
  src: url('../fonts/funnel-display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Funnel Display';
  src: url('../fonts/funnel-display-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  --bg-deep:    #0f0d1e;
  --bg-dark:    #161330;
  --bg-mid:     #1e1a40;
  --teal:       #40e0d0;
  --teal-dim:   rgba(64, 224, 208, 0.55);
  --teal-ghost: rgba(64, 224, 208, 0.08);
  --purple:     #8a50ff;
  --text:       rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.40);
  --text-faint: rgba(255, 255, 255, 0.20);
  --card-bg:    rgba(255, 255, 255, 0.025);
  --card-border:rgba(255, 255, 255, 0.07);
  --nav-h:      68px;
  --max-w:      1100px;
  --gap:        clamp(1.5rem, 3vw, 2.5rem);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg-deep);
  background-image: linear-gradient(
    145deg,
    var(--bg-deep) 0%,
    var(--bg-dark) 35%,
    var(--bg-mid)  60%,
    #18153a        80%,
    var(--bg-deep) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

/* iOS Safari doesn't support background-attachment:fixed */
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll; }
  /* Ensure reveal elements are visible if JS/IntersectionObserver stalls */
  .reveal { opacity: 1; transform: none; }
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* --- Language switching via CSS --- */
html[lang="de"] .lang-en { display: none; }
html[lang="en"] .lang-de { display: none; }

/* --- Accessibility utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: .5rem 1.25rem;
  background: var(--teal);
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

/* --- Background radial glow --- */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 700px 450px at 15% 85%, rgba(64,224,208,0.04)  0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 85% 15%, rgba(138,80,255,0.05)  0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(64,224,208,0.02)  0%, transparent 70%);
}

/* --- Floating jellyfish background motif --- */
.jelly-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.jelly {
  --jelly-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 30'%3E%3Cpath d='M0 10Q0 0 10 0Q20 0 20 10Q18 13 16 10Q14 7 12 10Q10 13 8 10Q6 7 4 10Q2 13 0 10Z' fill='white'/%3E%3Cpath d='M3.5 12Q2.5 18 3.5 22Q4.5 26 3.5 30L5 30Q6 26 5 22Q4 18 5 12Z' fill='white'/%3E%3Cpath d='M9.25 12Q8.25 18 9.25 22Q10.25 26 9.25 30L10.75 30Q11.75 26 10.75 22Q9.75 18 10.75 12Z' fill='white'/%3E%3Cpath d='M15 12Q16 18 15 22Q14 26 15 30L16.5 30Q17.5 26 16.5 22Q15.5 18 16.5 12Z' fill='white'/%3E%3C/svg%3E");
  position: absolute;
  width: 18px;
  height: 27px;
  background-color: rgba(255, 255, 255, 0.07);
  -webkit-mask-image: var(--jelly-svg);
  mask-image: var(--jelly-svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background-color 0.4s ease, scale 0.4s ease, filter 0.4s ease;
  pointer-events: all;
  cursor: default;
}

.jelly::after { content: ''; position: absolute; inset: -10px; }

.jelly:hover {
  scale: 1.6;
  background-color: var(--teal);
  filter:
    drop-shadow(0 0 6px rgba(64,224,208,0.8))
    drop-shadow(0 0 18px rgba(64,224,208,0.35));
}

.jelly--sm  { width: 12px; height: 18px; background-color: rgba(255,255,255,0.05); }
.jelly--lg  { width: 24px; height: 36px; background-color: rgba(255,255,255,0.09); }

.jelly--float {
  animation: jellyFloat var(--dur, 4s) ease-in-out infinite;
}

@keyframes jellyFloat {
  0%, 100% { translate: 0 0;    rotate: 0deg;  }
  30%       { translate: 0 -8px; rotate: 3deg;  }
  70%       { translate: 0  5px; rotate: -3deg; }
}

/* --- Hero SVG jellyfish animation --- */
.jelly-svg-hero {
  animation: heroDrift 6s ease-in-out infinite;
  filter:
    drop-shadow(0 0 30px rgba(64,224,208,0.18))
    drop-shadow(0 0 80px rgba(138,80,255,0.10));
}

@keyframes heroDrift {
  0%, 100% { transform: translateY(0)    rotate(0deg);   }
  35%       { transform: translateY(-12px) rotate(1.5deg); }
  70%       { transform: translateY(8px)  rotate(-1.5deg);}
}

/* --- Navbar --- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  gap: 2rem;
  transition: background 0.35s, box-shadow 0.35s;
}

.nav--solid {
  background: rgba(15, 13, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--teal);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--text); }

.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-ghost);
}

/* --- Page wrapper --- */
.page {
  position: relative;
  z-index: 10;
  padding-top: var(--nav-h);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

/* --- Sections --- */
section {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(255,255,255,0.04);
}

section:first-child { border-top: none; }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.7;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  color: #fff;
  letter-spacing: 0em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* --- Hero --- */
#hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  border-top: none;
  padding-block: 4rem 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}


@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .hero-visual {
    order: -1;
  }
  .jelly-svg-hero {
    width: 120px;
    height: 125px;
  }
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.75;
  margin-bottom: 1.25rem;
  display: block;
}

.hero-title {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: normal;
  color: var(--teal);
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  text-decoration: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}

.btn:hover {
  background: var(--teal-ghost);
  box-shadow: 0 0 24px rgba(64,224,208,0.15);
  color: var(--teal);
  text-decoration: none;
}

/* --- Shared layout utilities --- */
.section-body-mt { margin-top: 2.5rem; }

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.service-card {
  padding: 2rem 2rem 2.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  transition: opacity 0.6s ease, transform 0.3s, background 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.04);
  border-color: rgba(64,224,208,0.18);
}

.service-card__icon-svg {
  display: block;
  margin-bottom: 1rem;
}

/* Staggered reveal delays for service cards */
.services-grid .service-card:nth-child(1) { transition-delay: .05s; }
.services-grid .service-card:nth-child(2) { transition-delay: .10s; }
.services-grid .service-card:nth-child(3) { transition-delay: .15s; }
.services-grid .service-card:nth-child(4) { transition-delay: .20s; }
.services-grid .service-card:nth-child(5) { transition-delay: .25s; }
.services-grid .service-card:nth-child(6) { transition-delay: .30s; }

.service-card__title {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.service-card__body {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
}

/* --- Layout grids --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.team-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 767px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- About section --- */
.about-body {
  color: var(--text);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.85;
  max-width: 580px;
}

.contact-intro { margin-bottom: 1.75rem; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 2rem;
}

.pill {
  border: 1px solid rgba(64,224,208,0.2);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  font-size: 0.78rem;
  color: var(--teal-dim);
  white-space: nowrap;
}

/* --- Team --- */
.team-intro {
  color: var(--text);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.85;
}



/* --- Contact --- */
.contact-email {
  color: var(--teal);
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.contact-email:hover { opacity: 1; }

.field { margin-bottom: 1rem; }

.input {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder { color: rgba(255,255,255,0.2); }

.input:focus {
  border-color: rgba(64,224,208,0.35);
  box-shadow: 0 0 0 3px rgba(64,224,208,0.06);
}

textarea.input {
  resize: vertical;
  min-height: 130px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

#form-status {
  font-size: 0.84rem;
  min-height: 1.2em;
}

#form-status.ok  { color: var(--teal); }
#form-status.err { color: #ff6b8a; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-block: 2rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.site-footer a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--teal); }

.footer-no-cookies {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-faint);
  font-size: .8rem;
  margin-left: auto;
}

.footer-made-with {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-faint);
  font-size: .8rem;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- Impressum --- */
.impressum-content h1 {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 400;
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 2rem;
}

.impressum-content p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 0.25rem;
}

.impressum-content a {
  color: var(--teal);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.impressum-content a:hover { opacity: 1; }

/* --- Hidden elements (pending content) --- */
.nav-item--hidden { display: none; }

/* --- Honeypot (off-screen, not visually hidden — intentionally unreachable) --- */
.honeypot {
  position: absolute;
  left: -9999px;
}

/* --- Subpage nav back-link --- */
.nav-back-link {
  margin-left: auto;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-back-link:hover { color: var(--text); }

/* --- Impressum / Datenschutz narrow content --- */
.impressum-content--narrow { max-width: 560px; }

/* --- Burger Menu --- */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--teal);
  transition: transform .25s, opacity .25s;
}

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

/* --- Mobile Nav --- */
.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(15, 13, 30, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(calc(-100% - var(--nav-h)));
  transition: transform .3s ease;
  z-index: 999;
}

.nav__mobile a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
}

.nav__mobile.open { transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav__burger { display: flex; }
  .nav__links { display: none; }
}

/* --- Tools strip --- */
#tools { padding-block: 3rem; }

.tools-label {
  text-align: center;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2rem;
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3rem;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: .35;
  transition: opacity .2s;
}

.tool-item:hover { opacity: .7; }

.tool-icon {
  width: 28px;
  height: 28px;
  color: var(--text);
}

.tool-name {
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --- Team headshot --- */
.team-headshot {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid rgba(64, 224, 208, 0.45);
  box-shadow: 0 0 24px rgba(64, 224, 208, 0.12), 0 0 6px rgba(138, 80, 255, 0.15);
}

@media (max-width: 640px) {
  .team-headshot {
    width: 120px;
    height: 120px;
  }
}
