/* Variables */
:root {
  --teal: #53bec3;
  --blue: #3b7fc2;
  --blue-dark: #2d6aaa;
  --gray: #535d62;
  --gray-light: #6b7a82;
  --surface: #f4f7fa;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #53bec3 0%, #3b7fc2 100%);
  --shadow-sm: 0 2px 8px rgba(59, 127, 194, 0.08);
  --shadow-md: 0 6px 24px rgba(59, 127, 194, 0.14);
  --shadow-lg: 0 16px 48px rgba(59, 127, 194, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--gray); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* Layout */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(83, 190, 195, 0.12);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(59, 127, 194, 0.1); }

.nav {
  display: flex; align-items: center;
  height: 68px; gap: 36px;
}
.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo { height: 38px; width: auto; }

.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--gray); transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--gradient);
  transform: scaleX(0); transform-origin: left; transition: transform 0.2s;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }

.lang-switcher { display: flex; gap: 2px; align-items: center; }
.lang-btn {
  background: none; border: 1px solid transparent;
  padding: 4px 9px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; color: var(--gray-light);
  transition: all 0.2s; line-height: 1;
}
.lang-btn:hover { border-color: var(--teal); color: var(--teal); }
.lang-btn.active {
  background: var(--gradient); color: var(--white);
  border-color: transparent; box-shadow: 0 2px 8px rgba(83,190,195,0.35);
}

.menu-toggle {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; margin-left: auto;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--gray); border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 110px 0 64px;
  background: radial-gradient(ellipse at 70% 50%, rgba(83,190,195,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(59,127,194,0.06) 0%, transparent 60%),
              var(--surface);
  overflow: hidden;
}
.hero-text { padding: 0 0 0 max(28px, calc((100vw - 1160px) / 2 + 28px)); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(83,190,195,0.12); border: 1px solid rgba(83,190,195,0.3);
  color: var(--teal); border-radius: 100px;
  padding: 6px 14px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px; background: var(--teal);
  border-radius: 50%; animation: blink 2s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.13;
  color: var(--gray); margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--gray-light);
  max-width: 480px; margin-bottom: 40px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  display: flex; align-items: center; justify-content: center;
  padding-right: max(28px, calc((100vw - 1160px) / 2 + 28px));
}
.hero-network { width: 100%; max-width: 420px; height: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.25s ease; text-align: center;
}
.btn-primary {
  background: var(--gradient); color: var(--white);
  box-shadow: 0 4px 16px rgba(59,127,194,0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,127,194,0.38);
}
.btn-secondary {
  border-color: rgba(59,127,194,0.35); color: var(--blue);
  background: rgba(59,127,194,0.04);
}
.btn-secondary:hover { border-color: var(--blue); background: rgba(59,127,194,0.1); }
.btn-white {
  border-color: rgba(255,255,255,0.5); color: var(--white);
}
.btn-white:hover { background: rgba(255,255,255,0.15); border-color: white; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700; color: var(--gray);
  line-height: 1.2; letter-spacing: -0.015em;
}
.section-sub {
  margin-top: 14px; font-size: 1rem;
  color: var(--gray-light); max-width: 540px;
  margin-left: auto; margin-right: auto; line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(83,190,195,0.18);
  border-radius: var(--radius); padding: 32px 26px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(83,190,195,0.35);
}
.card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(83,190,195,0.12), rgba(59,127,194,0.12));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--blue);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1rem; font-weight: 600; color: var(--gray); margin-bottom: 10px; }
.card p { font-size: 0.875rem; color: var(--gray-light); line-height: 1.7; }

/* ============================================================
   WHY THINGWARE
   ============================================================ */
.why { background: var(--surface); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.why-text h2 { margin-bottom: 18px; }
.why-text p { color: var(--gray-light); margin-bottom: 32px; line-height: 1.75; }
.why-list { display: flex; flex-direction: column; gap: 16px; }
.why-item { display: flex; align-items: flex-start; gap: 14px; }
.why-check {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
  background: var(--gradient); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.why-check svg { width: 12px; height: 12px; stroke: white; }
.why-item span { font-size: 0.95rem; color: var(--gray); }

.why-visual {
  display: flex; align-items: center; justify-content: center;
}
.why-logo-wrap {
  background: var(--white); border-radius: 20px;
  padding: 40px; box-shadow: var(--shadow-md);
  border: 1px solid rgba(83,190,195,0.15);
}
.why-logo-img { width: 260px; border-radius: 8px; }

/* ============================================================
   SHOP TEASER
   ============================================================ */
.shop { background: var(--gradient); padding: 56px 0; }
.shop-inner {
  display: flex; align-items: center;
  gap: 40px; color: var(--white);
}
.shop-icon-wrap {
  flex-shrink: 0; width: 64px; height: 64px;
  background: rgba(255,255,255,0.15); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.shop-icon-wrap svg { width: 32px; height: 32px; }
.shop-body { flex: 1; }
.shop-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.shop-body p { font-size: 0.9rem; opacity: 0.88; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 0;
}
.contact-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 28px 24px; display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid rgba(83,190,195,0.1);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.contact-card:hover { box-shadow: var(--shadow-sm); border-color: rgba(83,190,195,0.25); }
.contact-card-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  background: var(--white); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); box-shadow: var(--shadow-sm);
}
.contact-card-icon svg { width: 20px; height: 20px; }
.contact-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--teal); margin-bottom: 6px; display: block;
}
.contact-value { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }
.contact-value a:hover { color: var(--blue); }

/* ============================================================
   TEAM / PROFILE
   ============================================================ */
.team { background: var(--white); }
.team-grid {
  display: grid; grid-template-columns: auto 1fr;
  gap: 56px; align-items: center;
}
.profile-photo-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.profile-photo {
  width: 200px; height: 200px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 4px solid transparent;
  background: var(--gradient) border-box;
  outline: 4px solid transparent;
  box-shadow: 0 8px 32px rgba(59,127,194,0.2);
}
.profile-linkedin {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid rgba(59,127,194,0.3);
  font-size: 0.8rem; font-weight: 600; color: var(--blue);
  transition: all 0.2s;
}
.profile-linkedin:hover { background: var(--blue); color: white; border-color: var(--blue); }
.profile-linkedin svg { width: 14px; height: 14px; }
.profile-text h2 { margin-bottom: 4px; }
.profile-name { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--gray); }
.profile-role {
  font-size: 0.9rem; font-weight: 600; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 20px; display: block;
}
.profile-bio { color: var(--gray-light); line-height: 1.8; max-width: 580px; }

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.ecosystem { background: var(--surface); }
.eco-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.eco-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(83,190,195,0.18);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
  transition: all 0.3s ease;
}
.eco-card:hover { box-shadow: var(--shadow-md); border-color: rgba(83,190,195,0.35); transform: translateY(-3px); }
.eco-card-header { display: flex; align-items: center; gap: 14px; }
.eco-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(83,190,195,0.12), rgba(59,127,194,0.12));
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0;
}
.eco-icon svg { width: 24px; height: 24px; }
.eco-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray); }
.eco-card p { font-size: 0.875rem; color: var(--gray-light); line-height: 1.75; flex: 1; }
.eco-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--blue);
  padding: 10px 18px; border: 1.5px solid rgba(59,127,194,0.3);
  border-radius: var(--radius-sm); transition: all 0.2s;
  align-self: flex-start;
}
.eco-link:hover { background: var(--blue); color: white; border-color: var(--blue); }
.eco-link svg { width: 14px; height: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray); color: rgba(255,255,255,0.65);
  padding: 40px 0;
}
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px; text-align: center;
}
.footer-logo {
  height: 32px; width: auto;
  filter: brightness(0) invert(1); opacity: 0.75;
}
.footer-uid { font-size: 0.78rem; }
.footer-copy { font-size: 0.78rem; }
.footer-links { display: flex; gap: 20px; font-size: 0.78rem; }
.footer-links a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes node-pulse {
  0%, 100% { r: 7; opacity: 0.85; }
  50% { r: 9; opacity: 1; }
}
@keyframes node-pulse-sm {
  0%, 100% { r: 4; opacity: 0.7; }
  50% { r: 5.5; opacity: 1; }
}
@keyframes dash-flow {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}
.net-node-main { animation: node-pulse 3s ease-in-out infinite; }
.net-node { animation: node-pulse-sm 3s ease-in-out infinite; }
.net-node:nth-child(2) { animation-delay: 0.4s; }
.net-node:nth-child(3) { animation-delay: 0.8s; }
.net-node:nth-child(4) { animation-delay: 1.2s; }
.net-node:nth-child(5) { animation-delay: 1.6s; }
.net-node:nth-child(6) { animation-delay: 2s; }
.net-node:nth-child(7) { animation-delay: 2.4s; }
.net-line {
  stroke-dasharray: 200;
  animation: dash-flow 4s linear infinite;
}
.net-line:nth-child(2) { animation-delay: 0.5s; }
.net-line:nth-child(3) { animation-delay: 1s; }
.net-line:nth-child(4) { animation-delay: 1.5s; }
.net-line:nth-child(5) { animation-delay: 2s; }
.net-line:nth-child(6) { animation-delay: 2.5s; }
.net-line:nth-child(7) { animation-delay: 3s; }

/* Scroll-in */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-text { padding: 0 28px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { display: none; }

  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { display: none; }

  .contact-grid { grid-template-columns: 1fr; }

  .eco-grid { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile-bio { margin: 0 auto; }
}

/* ============================================================
   LEGAL PAGES (impressum / datenschutz)
   ============================================================ */
.legal-page { padding: 110px 0 80px; }
.legal-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--gray); margin-bottom: 40px; }
.legal-page h2 { font-size: 1.1rem; font-weight: 700; color: var(--gray); margin: 36px 0 10px; }
.legal-page p { color: var(--gray-light); margin-bottom: 14px; line-height: 1.75; }
.legal-page a { color: var(--blue); }
.legal-page a:hover { text-decoration: underline; }
.legal-page ul { margin: 0 0 14px 20px; list-style: disc; color: var(--gray-light); }
.legal-page ul li { margin-bottom: 6px; line-height: 1.75; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--blue); margin-bottom: 40px; }
.legal-back:hover { text-decoration: underline; }
.legal-back svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column; padding: 20px 28px;
    border-bottom: 1px solid rgba(83,190,195,0.15);
    gap: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: flex; }
  .lang-switcher { margin-left: auto; }

  .services-grid { grid-template-columns: 1fr; }

  section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .hero h1 { font-size: 1.9rem; }
}
