/* ============================================================
   naefweb. — Stylesheet
   Hell & edel: viel Weissraum, grosse Typografie, ein Akzent.
   ============================================================ */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #14141b;
  --ink-soft: #3d3d47;
  --muted: #6b6b76;
  --accent: #2b44ff;
  --accent-dark: #1e31c9;
  --accent-soft: #eef0ff;
  --border: #e9e7e0;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 27, 0.05);
  --shadow-md: 0 14px 40px -12px rgba(20, 20, 27, 0.14);
  --shadow-accent: 0 14px 40px -10px rgba(43, 68, 255, 0.35);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 0.9rem;
  max-width: 24ch;
}

.section-lead {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 3rem;
}

section { padding: 6.5rem 0; }

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.logo .accent { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: background 0.2s ease !important;
}
.nav-cta:hover { background: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.hero {
  position: relative;
  padding: 11.5rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(20, 20, 27, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 27, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

.hero-blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-blob-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(43, 68, 255, 0.35), transparent 65%);
  top: -120px; right: -80px;
}
.hero-blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 184, 74, 0.4), transparent 65%);
  bottom: -140px; left: -100px;
  animation-delay: -6s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.08); }
}

.hero-inner {
  max-width: 820px;
  text-align: center;
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.3rem);
  margin-bottom: 1.4rem;
}

.hero .highlight {
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}
.hero .highlight svg {
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.32em;
  overflow: visible;
}
.hero .highlight svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.55;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 auto 2.6rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Trust-Leiste ---------- */

.trustbar { padding: 2.5rem 0 0; }
.trustbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  box-shadow: var(--shadow-sm);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  justify-content: center;
}
.trust-item svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--accent);
}

/* ---------- Leistungen ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(43, 68, 255, 0.35);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

.feature-list {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem;
  list-style: none;
}
.feature-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
}
.feature-list svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--accent);
  margin-top: 0.15rem;
}
.feature-list strong { font-family: var(--font-display); display: block; }
.feature-list span { color: var(--muted); font-size: 0.94rem; }

/* ---------- Preise ---------- */

.pricing { background: linear-gradient(180deg, var(--bg), #f3f2ee 60%, var(--bg)); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 2.1rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-accent);
}

.price-tag-pop {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.3rem; }
.price-card .price-desc { color: var(--muted); font-size: 0.94rem; margin: 0.4rem 0 1.4rem; }

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  display: block;
  letter-spacing: 0;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.price-features li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.42rem 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.price-features svg {
  flex-shrink: 0;
  width: 19px; height: 19px;
  color: var(--accent);
  margin-top: 0.2rem;
}

.price-card .btn { justify-content: center; }

.pricing-note {
  text-align: center;
  color: var(--muted);
  margin-top: 2.8rem;
  font-size: 0.98rem;
}
.pricing-note a { color: var(--accent); font-weight: 600; }
.pricing-note a:hover { text-decoration: underline; }

/* ---------- Referenzen ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.project-thumb-1 { background: linear-gradient(135deg, #dfe4ff, #f4e9d8); }
.project-thumb-2 { background: linear-gradient(135deg, #e8f4ec, #dfe4ff); }
.project-thumb-3 { background: linear-gradient(135deg, #f9e8dc, #e6e0f7); }

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,20,27,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,27,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.project-thumb .soon {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border: 1px solid rgba(20, 20, 27, 0.08);
}

.project-info { padding: 1.5rem 1.7rem 1.7rem; }
.project-info h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.project-info p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Über mich ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--accent-soft), #f4e9d8);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-photo::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 68, 255, 0.18), transparent 70%);
}
.about-initials {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
}
.about-photo figcaption {
  position: absolute;
  bottom: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.2rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-text p:last-of-type { margin-bottom: 1.8rem; }

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
}
.about-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.about-facts svg { width: 17px; height: 17px; color: var(--accent); }

/* ---------- CTA-Block ---------- */

.cta-section { padding-bottom: 7rem; }

.cta-box {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 4.5rem 3rem;
  text-align: center;
  overflow: hidden;
}
.cta-box::before,
.cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.cta-box::before {
  width: 340px; height: 340px;
  background: rgba(43, 68, 255, 0.55);
  top: -140px; left: -80px;
}
.cta-box::after {
  width: 300px; height: 300px;
  background: rgba(255, 184, 74, 0.35);
  bottom: -140px; right: -60px;
}

.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 22ch;
  margin: 0 auto 1rem;
}
.cta-box p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 50ch;
  margin: 0 auto 2.2rem;
}

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

.site-footer {
  background: #101016;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .logo { color: #fff; display: inline-block; margin-bottom: 0.9rem; }
.footer-tagline { max-width: 36ch; }

.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Unterseiten (Kontakt / Rechtliches) ---------- */

.page-hero {
  padding: 10rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.page-hero p { color: var(--muted); max-width: 58ch; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: start;
  padding-bottom: 6rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.6rem;
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}
.form-group label .optional { color: var(--muted); font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 68, 255, 0.12);
}
.form-group textarea { resize: vertical; min-height: 150px; }

.form-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.form-check input {
  margin-top: 0.3rem;
  width: 17px; height: 17px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.form-check a { color: var(--accent); }
.form-check a:hover { text-decoration: underline; }

.form-note {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-note svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.contact-aside .card { margin-bottom: 1.3rem; }
.contact-aside .card h3 { font-size: 1.05rem; }
.contact-aside .card a.link { color: var(--accent); font-weight: 600; }
.contact-aside .card a.link:hover { text-decoration: underline; }

/* Rechtliche Seiten */
.legal-content { padding-bottom: 6rem; max-width: 760px; }
.legal-content h2 {
  font-size: 1.35rem;
  margin: 2.4rem 0 0.8rem;
}
.legal-content p, .legal-content li { color: var(--ink-soft); margin-bottom: 0.8rem; }
.legal-content ul { padding-left: 1.4rem; }
.legal-content .placeholder {
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  font-weight: 600;
}

/* ---------- Scroll-Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s 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; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-blob { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  section { padding: 4.5rem 0; }

  .cards-3, .pricing-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .trustbar-inner { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { max-width: 340px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }

  .cards-3, .pricing-grid, .portfolio-grid, .feature-list,
  .trustbar-inner, .form-row, .footer-grid { grid-template-columns: 1fr; }

  .trust-item { justify-content: flex-start; }
  .hero { padding-top: 9rem; }
  .price-card.featured { transform: none; }
  .cta-box { padding: 3.2rem 1.6rem; }
  .contact-form { padding: 1.8rem 1.4rem; }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 6%;
    gap: 1.2rem;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: -1;
  }
  .main-nav.open { transform: translateY(0); }

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