/* ==========================================================================
   Gerald Bind e.U. – Design System
   Ultra-modern dark AI/automation theme. Vanilla CSS, no framework.
   Used by index.html, impressum.html, datenschutz.html.
   ========================================================================== */

:root {
  /* base surfaces */
  --bg-base: #0b0f1a;
  --bg-raised: #10162a;
  --bg-card: rgba(30, 41, 59, 0.5);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* accents */
  --accent-cyan: #00f2ff;
  --accent-cyan-dim: rgba(0, 242, 255, 0.15);
  --accent-violet: #8b5cf6;
  --accent-violet-dim: rgba(139, 92, 246, 0.15);
  --gradient-brand: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);

  /* text */
  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* radius / shadow */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow-cyan: 0 10px 25px rgba(0, 242, 255, 0.35);
  --shadow-glow-violet: 0 10px 25px rgba(139, 92, 246, 0.35);

  /* spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* fluid type scale */
  --fs-hero: clamp(2.25rem, 4vw + 1.25rem, 4rem);
  --fs-h2: clamp(1.75rem, 2vw + 1.25rem, 2.75rem);
  --fs-h3: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --fs-body: clamp(1rem, 0.3vw + 0.9rem, 1.125rem);

  --font-body: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --nav-height: 76px;
  --container-max: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------------- */
/* Reset / base                                                           */
/* ---------------------------------------------------------------------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
}

p { margin: 0 0 var(--space-sm); }

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

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

ul { margin: 0; }

section, header, footer {
  scroll-margin-top: var(--nav-height);
}

/* ---------------------------------------------------------------------- */
/* Layout primitives                                                      */
/* ---------------------------------------------------------------------- */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--space-3xl);
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.04) 50%, transparent 100%);
}

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-primary);
}

.section-lead {
  color: var(--text-muted);
  font-size: var(--fs-body);
  max-width: 560px;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; text-align: center; }
  .grid-2 .order-swap { order: -1; }
}

/* ---------------------------------------------------------------------- */
/* Navigation                                                             */
/* ---------------------------------------------------------------------- */

#nav-sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(11, 15, 26, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(11, 15, 26, 0.88);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-link:hover::after {
  width: 100%;
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

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

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(11, 15, 26, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }

  .nav-links.is-open {
    max-height: 320px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Buttons / badges / pills                                               */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-gradient {
  background: var(--gradient-brand);
  color: #05070a;
  animation: pulse-glow 3.5s ease-in-out infinite;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 242, 255, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* ---------------------------------------------------------------------- */
/* Cards                                                                  */
/* ---------------------------------------------------------------------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  margin-bottom: var(--space-sm);
}

.card-icon svg { width: 24px; height: 24px; }

.card-visual {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  aspect-ratio: 16 / 10;
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-visual img {
  transform: scale(1.06);
}

.card-visual-generated {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  aspect-ratio: 16 / 10;
  position: relative;
  background: conic-gradient(from 0deg, var(--accent-cyan), var(--accent-violet), var(--accent-cyan));
  animation: rotate-mesh 8s linear infinite;
}

.card-visual-generated::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--radius-sm) - 2px);
  background: radial-gradient(circle at 30% 30%, rgba(11, 15, 26, 0.15), rgba(11, 15, 26, 0.85));
}

.card-visual-generated .badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 1;
}

.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}

.feature-list li {
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.feature-list strong {
  color: var(--text-primary);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--nav-height) + 5.5rem) 0 var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.hero-rotator-wrap {
  display: block;
  min-height: 1.15em;
}

#hero-rotator {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#hero-rotator.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-more-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-more-link:hover { color: var(--accent-cyan); }

.hero .pill-row {
  justify-content: center;
  margin-top: var(--space-lg);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  animation: float 20s ease-in-out infinite alternate;
}

.blob-cyan {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: var(--accent-cyan);
}

.blob-violet {
  width: 480px;
  height: 480px;
  bottom: -180px;
  right: -100px;
  background: var(--accent-violet);
  animation-duration: 24s;
  animation-delay: -6s;
}

/* ---------------------------------------------------------------------- */
/* Feature rows (IT section)                                              */
/* ---------------------------------------------------------------------- */

.feature-row {
  margin-bottom: var(--space-2xl);
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row .service-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.feature-row .service-image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}

.feature-row:hover .service-image-container img {
  transform: scale(1.05);
}

.feature-row h3 {
  font-size: var(--fs-h2);
  color: var(--accent-cyan);
}

/* ---------------------------------------------------------------------- */
/* Contact CTA panel                                                      */
/* ---------------------------------------------------------------------- */

.cta-panel {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: 30px;
  border: 1px solid var(--accent-cyan);
  background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-base) 100%);
}

.cta-panel h2 { font-size: var(--fs-h2); }

.cta-panel p {
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.cta-panel .hero-ctas { margin-bottom: 0; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

footer {
  background: #05070a;
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

footer .footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

footer .footer-address {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--accent-cyan); }

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Legal pages (Impressum / Datenschutz)                                  */
/* ---------------------------------------------------------------------- */

.legal-header {
  text-align: center;
  padding: calc(var(--nav-height) + 4rem) 0 var(--space-lg);
}

.legal-header h1 {
  font-size: var(--fs-h2);
}

.legal-header .muted {
  color: var(--text-muted);
}

.legal-content {
  max-width: 840px;
  margin-inline: auto;
  padding-bottom: var(--space-2xl);
}

.legal-content .card {
  margin-bottom: var(--space-md);
}

.legal-content .card:hover {
  transform: none;
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: none;
}

.legal-content h2.section-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.muted { color: var(--text-muted); }

/* ---------------------------------------------------------------------- */
/* Scroll reveal                                                          */
/* ---------------------------------------------------------------------- */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------------- */
/* Focus visibility                                                       */
/* ---------------------------------------------------------------------- */

.nav-link:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------- */
/* Keyframes                                                              */
/* ---------------------------------------------------------------------- */

@keyframes float {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(40px, -30px) rotate(15deg); }
  100% { transform: translate(-20px, 20px) rotate(-10deg); }
}

@keyframes rotate-mesh {
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 242, 255, 0); }
  50% { box-shadow: 0 0 25px rgba(0, 242, 255, 0.45); }
}

/* ---------------------------------------------------------------------- */
/* Reduced motion                                                         */
/* ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-animate] {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .blob,
  .card-visual-generated,
  .btn-gradient {
    animation: none;
  }

  #hero-rotator.is-swapping {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Mobile typography / spacing adjustments                                */
/* ---------------------------------------------------------------------- */

@media (max-width: 768px) {
  .feature-row { text-align: center; }
  .section { padding-block: var(--space-2xl); }
}
