/* Fabian Beine — Rechtsanwalt | Grundstil */

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/libre-baskerville-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/libre-baskerville-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/libre-baskerville-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/libre-baskerville-bolditalic.woff2") format("woff2");
}

:root {
  --navy: #1f2937;
  --navy-dark: #161c26;
  --grey: #b7bcc4;
  --grey-light: #f4f5f6;
  --ink: #2a2f38;
  --white: #ffffff;
  --max-width: 1120px;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--navy);
}

em {
  font-family: var(--serif);
  font-style: italic;
}

strong {
  font-weight: 700;
}

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

/* Scroll reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid #e6e7ea;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgba(20, 24, 33, 0.08);
}

.site-header .container {
  position: relative;
}

.header-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 108px;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  line-height: 0;
}

.logo-img {
  height: 52px;
  width: auto;
}

@media (min-width: 800px) {
  .logo-img {
    height: 68px;
  }
}

.nav-toggle {
  position: relative;
  z-index: 1;
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
}

.main-nav {
  display: none;
  width: 100%;
  padding-bottom: 1rem;
}

.main-nav.is-open {
  display: block;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 1rem;
  color: var(--navy);
  position: relative;
  padding-bottom: 0.2rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--navy);
  transition: right 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  right: 0;
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    width: auto;
    padding-bottom: 0;
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
  }

  .main-nav ul {
    flex-direction: row;
    gap: 2rem;
    padding: 0;
  }

  .main-nav a {
    font-size: 0.95rem;
  }
}

/* Hero */

.hero {
  position: relative;
  background: var(--grey-light);
  padding: 3.5rem 0;
  border-bottom: 4px solid var(--grey);
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -4rem;
  width: 26rem;
  max-width: 60vw;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}

.hero .container {
  position: relative;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-size: clamp(1.7rem, 8.5vw, 3.5rem);
  margin: 0.5rem 0 0.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy);
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--navy);
  font-weight: 600;
}

.hero p.lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
  color: var(--ink);
}

.hero .cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 2px;
  border: 1px solid var(--navy);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-linkedin svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: var(--white);
}

/* Sections */

section {
  padding: 3.5rem 0;
}

section h2 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.65rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

.section-intro {
  max-width: 46rem;
  margin: -0.75rem auto 2rem;
  color: var(--ink);
  text-align: center;
}

.section-alt {
  background: var(--grey-light);
}

/* Rechtsgebiete cards */

.services {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border: 1px solid #e6e7ea;
  border-top: 3px solid var(--navy);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(20, 24, 33, 0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--navy);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 0.65rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  text-align: justify;
  hyphens: auto;
}

/* Über mich */

.about-grid {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.about-photo {
  margin-bottom: 1.75rem;
}

.about-photo figure {
  margin: 0;
}

.about-photo img {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #e6e7ea;
}

.about-photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #8a909b;
  text-align: center;
}

.about-text p {
  text-align: justify;
  hyphens: auto;
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  display: inline-grid;
  gap: 0.6rem;
  font-size: 0.95rem;
  text-align: left;
}

.fact-list li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--grey);
}

.engagement-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 2rem 0 0.75rem;
  text-align: center;
}

/* Kontakt */

.contact-card {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.contact-card h2 {
  color: var(--white);
}

.contact-item {
  display: block;
  color: var(--white);
}

a.contact-item {
  color: var(--white);
  font-size: 1.15rem;
  text-decoration: none;
}

a.contact-item:hover {
  text-decoration: underline;
}

.contact-item .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--grey);
  margin-bottom: 0.3rem;
}

.contact-note {
  font-size: 0.85rem;
  color: #d3d6db;
  max-width: 32rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid #e6e7ea;
  padding: 2rem 0;
  font-size: 0.85rem;
  color: #5a6270;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #5a6270;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Legal pages (Impressum / Datenschutz) */

.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.legal-page h2 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p {
  font-size: 0.97rem;
  text-align: justify;
  hyphens: auto;
}

.legal-page li {
  font-size: 0.97rem;
}

.legal-page address {
  font-style: normal;
}

.legal-page ul {
  padding-left: 1.2rem;
}

.highlight-box {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--grey-light);
  border: 1px solid #e6e7ea;
  border-left: 4px solid var(--navy);
}

.highlight-box h3 {
  margin-top: 0;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
}

@media print {
  .site-header,
  .site-footer,
  .back-link {
    display: none;
  }
}
