*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --color-bg: #FAF9F6;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-accent: #8B6F4E;
  --color-accent-light: #C4A882;
  --color-warm: #F0EBE3;
  --color-white: #FFFFFF;
  --color-divider: #E0D9CF;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s;
}

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

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text); margin: 5px 0;
  transition: 0.3s;
}

/* ─── HERO ─── */
.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 3rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-text h1 span { color: var(--color-accent); }

.hero-text p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background 0.3s, transform 0.2s;
}

.hero-cta:hover { background: #7A6043; transform: translateY(-1px); }

.hero-image {
  background: var(--color-warm);
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.6s ease;
}

.hero-img-secondary { opacity: 0; }

.hero-image:hover .hero-img-primary { opacity: 0; }

.hero-image:hover .hero-img-secondary { opacity: 1; }

/* ─── SECTIONS ─── */
section { padding: 4.5rem 2rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.section-title span { color: var(--color-accent); }

/* ─── LEISTUNGEN ─── */
#leistungen { background: var(--color-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.2rem;
  align-items: stretch;
}

.service-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-divider);
  transition: border-color 0.3s, transform 0.2s;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--color-accent-light);
  transform: translateY(-3px);
}

.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;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-accent);
  margin: 0 auto 1.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  min-height: 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

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

/* ─── ÜBER MICH ─── */
#ueber-mich { background: var(--color-bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.about-image {
  aspect-ratio: 1;
  background: var(--color-warm);
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.6s ease;
}

.about-img-secondary { opacity: 0; }

.about-image:hover .about-img-primary { opacity: 0; }

.about-image:hover .about-img-secondary { opacity: 1; }

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.linkedin-link:hover { color: #7A6043; }

.about-lead {
  max-width: 700px;
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin: 2rem 0 2.5rem;
}

/* ─── ANSATZ ─── */
#ansatz { background: var(--color-warm); }

.approach-text {
  max-width: 700px;
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 1.75rem;
}

.approach-steps {
  margin-top: 1rem;
}

.approach-step {
  padding: 1.8rem 0;
  border-top: 1px solid var(--color-divider);
}

.approach-step:last-child {
  border-bottom: 1px solid var(--color-divider);
}

.approach-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
}

.approach-step h4 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  max-width: 760px;
}

.approach-step p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 760px;
}

/* ─── KONTAKT ─── */
#kontakt { background: var(--color-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-text p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.contact-detail svg { flex-shrink: 0; color: var(--color-accent); }
.contact-detail a { color: var(--color-text); text-decoration: none; }
.contact-detail a:hover { color: var(--color-accent); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form form { display: flex; flex-direction: column; gap: 1.2rem; }

.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--color-accent); }

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form button {
  padding: 0.85rem 2.2rem;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.3s;
  align-self: flex-start;
}

.contact-form button:hover { background: #7A6043; }

.contact-alt {
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.4rem;
}
.contact-alt a { color: var(--color-accent); text-decoration: none; font-weight: 500; }
.contact-alt a:hover { text-decoration: underline; }

.form-status {
  font-size: 0.95rem;
  padding: 0;
  margin: 0;
  line-height: 1.5;
}
.form-status.success {
  padding: 1rem 1.2rem;
  background: #F0EFEA;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text);
}
.form-status.error {
  padding: 1rem 1.2rem;
  background: #F8EFEA;
  border-left: 3px solid #B54B3A;
  color: #6B2D20;
}

/* ─── TRUST STRIP ─── */
.trust-strip {
  padding: 1.6rem 2rem;
  background: var(--color-warm);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
  font-size: 0.9rem;
  color: var(--color-text);
  letter-spacing: 0.03em;
  text-align: center;
}

.trust-inner span {
  position: relative;
  white-space: nowrap;
}

.trust-inner span:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -1.4rem;
  color: var(--color-accent);
  font-weight: 600;
}

.trust-clients {
  max-width: 1100px;
  margin: 1rem auto 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .trust-inner span { white-space: normal; }
  .trust-inner span:not(:last-child)::after { display: none; }
  .trust-clients { font-size: 0.72rem; padding: 0 1rem; }
}

/* ─── SECTION BRIDGES (führen leise in die nächste Sektion) ─── */
.section-bridge {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--color-text);
  text-align: center;
  margin-top: 2rem;
  letter-spacing: 0.01em;
}

.section-bridge a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
  transition: opacity 0.3s;
}

.section-bridge a:hover { opacity: 0.65; }

.section-coda {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-accent);
  text-align: center;
  margin-top: 2rem;
  letter-spacing: 0.02em;
}

/* Engerer Übergang zwischen Sektionen, wenn eine Brücke nahtlos weiterführt */
#leistungen { padding-bottom: 1rem; }
#ueber-mich { padding-top: 2rem; padding-bottom: 3rem; }
#ansatz { padding-top: 3rem; padding-bottom: 2rem; }

/* ─── IMPRESSUM / LEGAL ─── */
.legal-page {
  padding-top: 10rem;
  min-height: 80vh;
}

.legal-date {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

.legal-content {
  max-width: 720px;
  margin-top: 2.5rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2.5rem 0 0.6rem;
  color: var(--color-text);
}

.legal-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.legal-content a:hover { text-decoration: underline; }

.legal-source {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ─── FOOTER ─── */
footer {
  padding: 2rem 2rem;
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-accent);
  text-align: center;
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-divider);
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--color-text-light); text-decoration: none; }
.footer-links a:hover { color: var(--color-accent); }

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-divider);
    gap: 1rem;
  }
  .nav-toggle { display: block; }

  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { aspect-ratio: 4 / 3; max-height: 400px; }
  .hero { min-height: auto; padding-top: 7rem; }

  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .approach-step { padding: 2.2rem 0; }
  .approach-label { font-size: 0.68rem; margin-bottom: 0.9rem; }
  .contact-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
