/* Kanzlei-Website – überarbeitete, reduzierte Styles */

:root {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-alt: #f8f5f0;
  --text: #1f2933;
  --muted: #5f6c78;
  --line: #ddd4c8;
  --brand: #8d6e63;
  --brand-dark: #5d4037;
  --shadow: 0 18px 40px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

strong {
  color: var(--brand-dark);
}

#wrapper {
  overflow: hidden;
}

.wrapper {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

#header {
  background: linear-gradient(135deg, rgba(34, 34, 34, 0.72), rgba(93, 64, 55, 0.72)),
    url("../img/header background.png") center/cover no-repeat;
  padding: 72px 0 220px;
}

.hero-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 32px;
}

.hero-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.hero-copy {
  color: #fff;
  max-width: 48rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#header h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.9rem);
  line-height: 1.02;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #fff;
  color: var(--brand-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.info-panel,
.block,
.contact-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.info-panel,
.contact-card {
  padding: 28px;
}

#featured,
#blocks,
.content,
#kontakt {
  padding: 72px 0;
}

#featured {
  margin-top: -160px;
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.78fr);
  gap: 32px;
  align-items: start;
}

.profile-panel-intro {
  display: grid;
  gap: 20px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-panel-image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  object-position: center top;
}

.profile-panel-heading {
  padding: 0 40px 40px;
}

.profile-panel-copy {
  padding: 32px;
  align-self: start;
  margin-top: 120px;
}

.profile-kicker {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

#featured h2,
#blocks h2,
.content h2,
#kontakt h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

p {
  color: var(--muted);
}

#featured .profile-panel-copy p + p,
.content p + p,
.contact-card p + p {
  margin-top: 14px;
}

.info-panel h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
}

.info-list i,
.divider i {
  color: var(--brand);
}

.info-list a,
#kontakt a,
#footer a {
  color: var(--brand-dark);
}

.divider .wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider .wrapper::before,
.divider .wrapper::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider i {
  margin: 0 18px;
  font-size: 1.5rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.block {
  padding: 28px;
  border: 1px solid rgba(141, 110, 99, 0.1);
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.content aside {
  text-align: center;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
}

.contact-highlight {
  font-size: 1.35rem;
  font-weight: 700;
}

#footer {
  background: #231f20;
  color: rgba(255, 255, 255, 0.78);
  padding: 28px 0;
}

.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

#footer p,
#footer strong {
  color: inherit;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 900px) {
  .hero-grid,
  .profile-panel,
  .blocks-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  #header {
    padding: 48px 0 180px;
  }

  #featured {
    margin-top: -128px;
  }

  #featured,
  #blocks,
  .content,
  #kontakt {
    padding: 56px 0;
  }

  .profile-panel-copy {
    margin: 0;
    padding: 28px;
  }

  .hero-copy {
    max-width: 38rem;
  }

  .profile-panel-image img {
    min-height: 360px;
  }

  .profile-panel-heading {
    padding: 0 28px 28px;
  }

  .profile-panel-copy {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .wrapper,
  .narrow {
    width: min(100% - 24px, 1100px);
  }

  #header {
    padding-bottom: 140px;
  }

  #featured {
    margin-top: -96px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .info-panel,
  .block,
  .contact-card,
  .content aside {
    padding: 22px;
  }
}

.legal-page-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f4f1ec 0%, #efe7dd 100%);
}

.legal-page {
  padding: 64px 0;
}

.legal-wrapper {
  width: min(860px, calc(100% - 40px));
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
}

.legal-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(141, 110, 99, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px;
  backdrop-filter: blur(6px);
}

.legal-kicker {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.legal-intro {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.legal-section + .legal-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.legal-card h3 {
  margin: 22px 0 10px;
  font-size: 1.05rem;
  color: var(--text);
}

.legal-card ul {
  margin: 14px 0 18px 20px;
  color: var(--muted);
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card a {
  color: var(--brand-dark);
}

@media (max-width: 640px) {
  .legal-page {
    padding: 32px 0;
  }

  .legal-card {
    padding: 24px;
    border-radius: 22px;
  }
}
