/* ========================================================
   Kanzlei Bellmann — modernes Redesign
   Farben: Warmes Orange, Dunkelgrau, Weiß
   ======================================================== */

:root {
  --color-orange: #E8792C;
  --color-orange-dark: #C8611E;
  --color-orange-light: #FDF1E7;
  --color-dark: #2B2B2B;
  --color-gray: #5B5B5B;
  --color-gray-light: #8A8A8A;
  --color-border: #E7E3DE;
  --color-white: #FFFFFF;
  --color-bg-alt: #FAF7F4;

  --font-base: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1140px;
  --radius: 10px;
  --shadow-soft: 0 10px 30px rgba(43, 43, 43, 0.06);
  --shadow-hover: 0 16px 40px rgba(43, 43, 43, 0.1);
}

* {
  box-sizing: border-box;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll-reveal: elements start hidden, animate in when scrolled into view */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item:nth-child(1)  { transition-delay: 0.00s; }
.reveal-item:nth-child(2)  { transition-delay: 0.05s; }
.reveal-item:nth-child(3)  { transition-delay: 0.10s; }
.reveal-item:nth-child(4)  { transition-delay: 0.15s; }
.reveal-item:nth-child(5)  { transition-delay: 0.20s; }
.reveal-item:nth-child(6)  { transition-delay: 0.25s; }
.reveal-item:nth-child(7)  { transition-delay: 0.30s; }
.reveal-item:nth-child(8)  { transition-delay: 0.35s; }
.reveal-item:nth-child(9)  { transition-delay: 0.40s; }
.reveal-item:nth-child(10) { transition-delay: 0.45s; }
.reveal-item:nth-child(11) { transition-delay: 0.50s; }
.reveal-item:nth-child(12) { transition-delay: 0.55s; }
.reveal-item:nth-child(13) { transition-delay: 0.60s; }
.reveal-item:nth-child(14) { transition-delay: 0.65s; }
.reveal-item:nth-child(15) { transition-delay: 0.70s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal-item,
  .hero-inner > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--color-dark);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.15rem;
  color: var(--color-orange-dark);
}

p {
  margin: 0 0 16px;
  color: var(--color-gray);
}

a {
  color: var(--color-orange-dark);
}

ul {
  margin: 0;
  padding: 0;
}

/* ---------- Header / Sticky Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.logo span {
  color: var(--color-orange);
}

.main-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background-color: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover {
  background-color: var(--color-orange-light);
  color: var(--color-orange-dark);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a.is-active {
  background-color: var(--color-orange-light);
  color: var(--color-orange-dark);
}

.main-nav a.is-active::after {
  transform: scaleX(1);
}

.logo span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo:hover span {
  transform: translateY(-2px) rotate(-3deg);
}

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(232, 121, 44, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(232, 121, 44, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-orange);
  color: var(--color-orange-dark);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

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

.hero {
  position: relative;
  padding: 110px 0 100px;
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 121, 44, 0.14), transparent 45%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-white) 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--color-orange);
  opacity: 0.08;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero-inner > * {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.35s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.45s; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-orange-dark);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray);
  margin-bottom: 24px;
}

.hero-text {
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 32px;
}

/* ---------- Sections ---------- */

.section {
  padding: 90px 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-lead {
  max-width: 760px;
  font-size: 1.05rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

/* ---------- Cards ---------- */

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--color-gray);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-orange);
}

/* ---------- Topics grid (Familienrecht) ---------- */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 40px;
}

.topic {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-orange);
  border-radius: 8px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-width 0.25s ease;
}

.topic:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-left-width: 8px;
}

/* ---------- Page header (Unterseiten) ---------- */

.page-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 121, 44, 0.14), transparent 45%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-white) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0;
}

/* ---------- Profile card (Kanzlei) ---------- */

.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  background: linear-gradient(150deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo .avatar-fallback {
  color: var(--color-white);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.profile-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-gray-light);
  margin-top: 12px;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h3 {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.faq-number {
  color: var(--color-orange);
  font-weight: 700;
}

/* ---------- Callout / Hinweisbox ---------- */

.callout {
  background-color: var(--color-orange-light);
  border-left: 4px solid var(--color-orange);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 24px;
}

.callout p {
  color: var(--color-dark);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Fee content (Kosten) ---------- */

.fee-content h3 {
  margin-top: 40px;
}

.fee-content h3:first-child {
  margin-top: 0;
}

/* ---------- Impressum ---------- */

.impressum-block {
  max-width: 820px;
}

.impressum-block h3 {
  margin-top: 32px;
}

.impressum-block h3:first-child {
  margin-top: 0;
}

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

.site-footer {
  background-color: var(--color-dark);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer p {
  color: #C9C9C9;
  margin: 0;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: #C9C9C9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--color-orange);
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */

@media (max-width: 900px) {
  .section-grid,
  .contact-grid,
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 70px 0;
  }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 12px 8px;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .section {
    padding: 56px 0;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
