/* ============================================
   Rechtsanwalt André Kurz — zentrales Stylesheet
   ============================================ */

@font-face {
  font-family: 'Libre Franklin';
  src: url('../fonts/librefranklin-variable.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/publicsans-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1b3a5f;
  --navy-dark: #12283f;
  --cream: #f7f4ee;
  --white: #ffffff;
  --gold: #a9825a;
  --text: #262a30;
  --text-muted: #5b6067;
  --border: #e2ded4;

  --font-heading: 'Libre Franklin', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Public Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --max-width: 1140px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-dark);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
}

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

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 58, 95, 0.25);
}

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

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

/* ---------- Header ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  line-height: 1.1;
  text-decoration: none;
  color: var(--navy-dark);
}

.logo .logo-kicker {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.logo .logo-img {
  height: 26px;
  width: auto;
  display: block;
  margin-bottom: 2px;
  object-fit: contain;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.main-nav ul a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding-bottom: 4px;
}

.main-nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.main-nav ul a:hover::after,
.main-nav ul a[aria-current="page"]::after {
  width: 100%;
}

.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-switch:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  padding: 4.5rem 0 4rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Placeholder graphics ---------- */

.placeholder {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.placeholder svg {
  width: 34%;
  height: 34%;
  opacity: 0.85;
}

.placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.placeholder.ratio-4-3 { aspect-ratio: 4 / 3; }
.placeholder.ratio-1-1 { aspect-ratio: 1 / 1; }
.placeholder.ratio-16-9 { aspect-ratio: 16 / 9; }

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

section {
  padding: 4rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--navy-dark);
  color: var(--cream);
}

.section-dark h2, .section-dark h3 {
  color: var(--white);
}

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

.grid {
  display: grid;
  gap: 1.75rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(18, 40, 63, 0.08);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card a.card-link {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

.practice-area {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
}

.practice-area:last-of-type {
  border-bottom: none;
}

.practice-area h3 {
  margin-bottom: 0.6rem;
}

/* ---------- Strengths / trust points ---------- */

.strengths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.strength-number {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ---------- Contact / forms ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.contact-portrait {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.contact-info dl {
  margin: 0;
}

.contact-info dt {
  font-weight: 600;
  color: var(--navy-dark);
  margin-top: 1.25rem;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
}

form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--navy-dark);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--text);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.form-row textarea {
  resize: vertical;
  min-height: 130px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* honeypot field, hidden from real visitors */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #e9f3ea;
  color: #2b5c33;
  border: 1px solid #bfdcc3;
}

.form-status.error {
  display: block;
  background: #fbeaea;
  color: #7a2b2b;
  border: 1px solid #edc2c2;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  text-align: center;
  padding: 3.5rem 0;
}

.cta-banner p.lede {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Karte / Anfahrt ---------- */

.map-embed {
  aspect-ratio: 16 / 9;
  max-height: 480px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

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

.site-footer {
  background: var(--navy-dark);
  color: var(--cream);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.site-footer .logo .logo-kicker {
  color: rgba(247, 244, 238, 0.65);
}

.site-footer .logo .logo-img {
  filter: brightness(0) invert(1);
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: rgba(247, 244, 238, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 244, 238, 0.15);
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: rgba(247, 244, 238, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */

.legal-content h2 {
  margin-top: 2.25rem;
}

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

.legal-notice {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- FAQ / accordion feel not used but kept minimal ---------- */

/* ---------- Reveal-on-scroll ---------- */

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

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

/* ---------- Breadcrumb-ish page intro ---------- */

.page-intro {
  padding: 3.5rem 0 1rem;
}

/* ============================================
   Responsive: Tablet
   ============================================ */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

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

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

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

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

/* ============================================
   Responsive: Mobile
   ============================================ */

@media (max-width: 640px) {
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 300px);
    background: var(--cream);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    flex-direction: column;
    align-items: stretch;
    padding-top: 5rem;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav .btn {
    margin: 0 1.5rem;
  }

  .nav-toggle {
    display: block;
    z-index: 60;
  }

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

  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 2.75rem 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  form {
    padding: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}
