/* css/style.css */

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

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Custom Properties ── */
:root {
  --color-bg: #fafaf8;
  --color-text: #1a1a1a;
  --color-accent: #4a7c6f;
  --color-accent-hover: #3d6b5f;
  --color-accent-light: rgba(74, 124, 111, 0.08);
  --color-section-bg: #f3f2ee;
  --color-footer-bg: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-border: #e2e0da;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --nav-height: 76px;
  --radius: 2px;
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lift: 0 12px 40px rgba(0,0,0,0.1);
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 2.6rem;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.35rem;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 110px 0;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-muted);
  margin-bottom: 3.5rem;
  font-size: 1.15rem;
  max-width: 520px;
}

/* Center subtitle when section text is centered */
.leistungen .section-subtitle,
.ablauf .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.leistungen h2,
.ablauf h2 {
  text-align: center;
}

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 15px 36px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 124, 111, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-text);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: box-shadow 0.4s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* ── Hero ── */
.hero {
  margin-top: var(--nav-height);
  padding: 140px 0 160px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial gradient behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(74, 124, 111, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
}

/* Decorative line beneath hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: var(--color-accent);
}

/* ── Leistungen ── */
.leistungen {
  background: var(--color-section-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-bg);
  padding: 44px 32px;
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
  color: var(--color-accent);
  opacity: 0.7;
}

.service-card h3 {
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ── Über ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image {
  background: var(--color-section-bg);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  position: relative;
}

/* Accent border on photo placeholder */
.about-image::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid var(--color-accent);
  opacity: 0.3;
  pointer-events: none;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: #444;
  line-height: 1.8;
}

/* ── Ablauf ── */
.ablauf {
  background: var(--color-section-bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 1;
  transition: all 0.35s ease;
}

.step:hover .step-number {
  background: var(--color-accent);
  color: #fff;
}

.step h3 {
  margin-bottom: 0.7rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ── Kontakt ── */
#kontakt {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--color-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  border: 1px solid var(--color-border);
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 400;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

.contact-info h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.contact-detail p {
  font-size: 1rem;
  color: #444;
}

.map-placeholder {
  margin-top: 2.5rem;
  background: var(--color-section-bg);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
}

/* ── Footer ── */
.footer {
  background: var(--color-footer-bg);
  color: #777;
  padding: 28px 0;
  font-size: 0.85rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: #777;
  transition: color 0.3s ease;
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  h2 {
    font-size: 2rem;
  }

  .container {
    padding: 0 20px;
  }

  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    gap: 36px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    padding: 100px 0 120px;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Grids → single column */
  .services-grid,
  .about-grid,
  .steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 40px;
  }

  .about-image::after {
    display: none;
  }

  /* Ablauf: hide connecting line on mobile */
  .steps::before {
    display: none;
  }

  /* Footer mobile */
  .footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
