:root {
  --blue: #5BB8F5;
  --blue-dark: #2E9BE0;
  --blue-soft: #EAF6FE;
  --ink: #0F1A2A;
  --ink-soft: #3A4A5E;
  --muted: #6B7A8F;
  --line: #E5ECF3;
  --bg: #FFFFFF;
  --bg-alt: #F7FAFD;
  --shadow-sm: 0 2px 8px rgba(15, 26, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 26, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(91, 184, 245, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --t: cubic-bezier(.2,.8,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; }

p { color: var(--ink-soft); }

a { color: var(--blue-dark); text-decoration: none; transition: color 0.2s var(--t); }
a:hover { color: var(--ink); }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { color: var(--blue-dark); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: all 0.2s var(--t);
}

.nav-links a:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.nav-links a.active {
  background: var(--ink);
  color: #fff;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: all 0.3s var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--t), box-shadow 0.2s var(--t), background 0.2s var(--t);
  font-family: inherit;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(91, 184, 245, 0.35);
}

.btn-ghost {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-dark); }

.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s var(--t);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(91, 184, 245, 0.18), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(91, 184, 245, 0.10), transparent 70%),
    #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(91, 184, 245, 0.25);
}

.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--blue-dark); }

.hero .lead {
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .blob {
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(91, 184, 245, 0.35), transparent 70%);
  filter: blur(20px);
  animation: float 6s ease-in-out infinite;
}

.hero-visual .logo-card {
  position: relative;
  width: 78%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: float 7s ease-in-out infinite;
}
.hero-visual .logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat .lbl {
  font-size: 0.85rem;
  color: var(--muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- SECTIONS ---------- */
section { padding: 5rem 0; }
section.alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.section-head p {
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s var(--t), box-shadow 0.3s var(--t), border-color 0.3s var(--t);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.card .icon {
  width: 56px; height: 56px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  transition: transform 0.3s var(--t);
}
.card:hover .icon { transform: scale(1.05) rotate(-3deg); }
.card .icon svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.97rem; }

.card .more {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--blue-dark);
}
.card .more::after { content: "→"; transition: transform 0.2s var(--t); }
.card:hover .more::after { transform: translateX(4px); }

/* feature cards (Leistungen) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.feature {
  padding: 1.4rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.feature h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.feature h4::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
}
.feature p { font-size: 0.92rem; }

.service-block { margin-bottom: 4rem; }
.service-block .head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 0.6rem;
}
.service-block .head .icon {
  width: 52px; height: 52px;
  background: var(--blue-soft); color: var(--blue-dark);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.service-block .head .icon svg { width: 26px; height: 26px; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 90% 0%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(30% 50% at 0% 100%, rgba(255,255,255,0.12), transparent 60%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-banner p { color: rgba(255,255,255,0.92); margin-bottom: 1.6rem; }
.cta-banner .btn-primary {
  background: #fff; color: var(--blue-dark);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}
.cta-banner .btn-primary:hover { background: var(--ink); color: #fff; }

/* ---------- FORM ---------- */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s var(--t), box-shadow 0.2s var(--t);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(91, 184, 245, 0.18);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.checkbox {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 1rem 0 1.5rem;
}
.checkbox input { margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--blue); }

.form-success {
  display: none;
  padding: 1.5rem;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
  border-radius: 12px;
  margin-top: 1.2rem;
  font-weight: 500;
}
.form-success.show { display: block; animation: fadeIn 0.5s var(--t); }

.form-error {
  display: none;
  padding: 1rem 1.2rem;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  border-radius: 12px;
  margin-top: 1.2rem;
  font-weight: 500;
}
.form-error.show { display: block; animation: fadeIn 0.5s var(--t); }

/* ---------- PORTFOLIO ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--t), box-shadow 0.3s var(--t);
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project .thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  position: relative;
  overflow: hidden;
}
.project .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(closest-side at 80% 80%, rgba(0,0,0,0.15), transparent 60%);
}
.project.t2 .thumb { background: linear-gradient(135deg, #7DC9F8 0%, #4AA8E5 100%); }
.project.t3 .thumb { background: linear-gradient(135deg, #2E9BE0 0%, #0F1A2A 100%); }
.project.t4 .thumb { background: linear-gradient(135deg, #B8E1F8 0%, #5BB8F5 100%); }
.project.t5 .thumb { background: linear-gradient(135deg, #5BB8F5 0%, #1B6FA8 100%); }
.project.t6 .thumb { background: linear-gradient(135deg, #EAF6FE 0%, #5BB8F5 100%); }

.project .body { padding: 1.4rem 1.6rem; }
.project .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.project h3 { font-size: 1.1rem; }

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.team-card .avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}
.team-card h3 { font-size: 1.15rem; }
.team-card .role {
  font-size: 0.9rem;
  color: var(--blue-dark);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ---------- INFO BOX ---------- */
.info-box {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  color: var(--ink-soft);
  margin: 1.5rem 0;
}
.info-box strong { color: var(--ink); display: block; margin-bottom: 0.4rem; }

/* ---------- PAGE HEADER ---------- */
.page-head {
  padding: 5rem 0 3rem;
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(91, 184, 245, 0.16), transparent 70%),
    #fff;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow {
  display: inline-block;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.page-head p {
  max-width: 620px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: #C8D4E2;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}
footer .brand-block .brand { color: #fff; }
footer .brand-block p {
  color: #8FA0B5;
  font-size: 0.92rem;
  margin-top: 0.8rem;
  max-width: 340px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.5rem; }
footer a {
  color: #C8D4E2;
  font-size: 0.95rem;
}
footer a:hover { color: var(--blue); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid #1F2D44;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8FA0B5;
}
.footer-bottom a { color: #8FA0B5; }
.footer-bottom a:hover { color: #fff; }

/* ---------- ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--t), transform 0.7s var(--t);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .hero-stats { gap: 1.2rem; }
  footer .container { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(82%, 320px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -20px 0 60px rgba(0,0,0,0.08);
    transform: translateX(110%);
    transition: transform 0.35s var(--t);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
  }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .cta-banner { padding: 2.2rem 1.6rem; }
  .form-wrap { padding: 1.6rem; }
  .hero-stats { flex-wrap: wrap; }
}
