@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: 83px; /* header height */
}

:root {
  --red: #e3001a;
  --dark: #1A1A1A;
  --text: #575656;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: #fff;
  padding: 0 125px 50px;
}

/* HEADER */
header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 125px;
  margin: 0 -125px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 35px;
  width: auto;
}

.logo-wordmark {
  font-size: 26px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
}

nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

nav a {
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
}

nav a:hover, nav a.active { color: #e3001a; }

/* 3-COLUMN GRID (no gaps) */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
  background: #fff;
}

.grid-3 + .grid-3 {
  margin-top: 50px;
}

/* RED BLOCKS */
.red-block {
  background: var(--red);
  color: #fff;
}

.red-block.claim {
  display: flex;
  align-items: flex-end;
  padding: 32px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.red-block.claim h1 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: break-word;
  hyphens: auto;
}

.red-block.claim h1.page-title {
  font-size: 25px;
}

.red-block.label {
  display: flex;
  align-items: flex-start;
  padding: 32px;
  align-self: stretch;
}

.red-block.label.cta {
  align-items: flex-end;
}

.red-block.label.cta span {
  font-weight: 300;
  line-height: 1.75;
}

.red-block.label span {
  font-size: 15px;
  font-weight: 400;
}

.red-block.label span.section-heading {
  font-size: 25px;
  font-weight: 600;
}

.red-block.label span a {
  color: #fff;
  text-decoration: none;
}

@media (min-width: 769px) {
  #richard .red-block.label {
    min-height: 220px;
  }
}

/* PHOTOS */
.photo-cell {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #575656;
  text-decoration: none;
}

.photo-cell:hover .photo-caption {
  background: rgba(227, 0, 26, 0.95);
}

.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top right;
  display: block;
}

.photo-cell img.img-contain {
  object-fit: cover;
  object-position: top;
}

/* ABOUT TEXT: spans 2 columns */
.about-text.no-span {
  grid-column: span 1;
}

.about-text {
  grid-column: span 2;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
}

.about-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
}

.about-text strong {
  font-weight: 600;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: all 0.25s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* PHOTO CAPTION */
.photo-cell { position: relative; }

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(227, 0, 26, 0.75);
  color: #fff;
  font-size: 13px;
  font-weight: 300;
  padding: 6px 12px;
}

/* RECHTSGEBIET */
.photo-cell.full {
  grid-column: 1 / -1;
  aspect-ratio: auto;
}

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

.red-block.rechtsgebiet {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  align-self: stretch;
}

.red-block.rechtsgebiet h1 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.red-block.rechtsgebiet span {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: #fff;
}

.red-block.rechtsgebiet span a {
  color: #fff;
  text-decoration: none;
}

/* GOOGLE MAPS */
.map-wrapper {
  position: relative;
  align-self: stretch;
}

.map-wrapper.map-full {
  grid-column: span 2;
  height: 350px;
}

#kontakt .red-block {
  grid-row: span 2;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: #f0ede9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-overlay-content {
  text-align: center;
  padding: 24px;
  max-width: 260px;
}

.map-overlay-content p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.map-overlay-content button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.map-overlay-content button:hover {
  opacity: 0.85;
}

.kontakt-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.kontakt-logo img {
  width: 40%;
  height: auto;
}

.about-text a {
  color: var(--red);
  text-decoration: none;
}

.about-text a:hover { text-decoration: underline; }

/* FULL WIDTH IMAGE */
.full-width-image {
  margin-top: 30px;
  width: 100%;
  overflow: hidden;
}

.full-width-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ACCORDION */
.accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  gap: 16px;
}

.accordion-header span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.accordion-header .accordion-toggle {
  font-size: 20px;
  font-weight: 300;
  color: var(--red);
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
}

.accordion-body {
  display: none;
  padding-bottom: 16px;
}

.accordion-body p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
}

.accordion-body ul {
  margin: 8px 0 0 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
  list-style: none;
}

.accordion-body ul li {
  padding-left: 24px;
  position: relative;
}

.accordion-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  background-image: url('../images/iconElement%202.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.accordion-item.open .accordion-body { display: block; }

/* FOOTER */
footer {
  background: var(--red);
  color: #fff;
  margin-top: 50px;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 300;
}

footer a {
  color: #fff;
  text-decoration: none;
}

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

.footer-links { display: flex; gap: 28px; }

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 1024px) {
  body { padding: 30px; }

  header { padding: 24px 30px; margin: 0 -30px; }

  .grid-3 { gap: 20px; }
  .grid-3 + .grid-3 { margin-top: 20px; }

  .red-block.claim h1 { font-size: 30px; }

  nav { gap: 16px; }
  nav a { font-size: 12px; }
}

/* Mobile */
@media (max-width: 768px) {
  body { padding: 16px; }

  header {
    position: relative;
    height: auto;
    padding: 16px 16px;
    margin: 0 -16px 16px;
  }

  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }

  nav.open { display: flex; }

  nav a {
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
  }

  nav a:last-child { border-bottom: none; }

  /* Hero: roter Block oben, dann beide Fotos nebeneinander */
  .grid-3 {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 8px;
  }

  .grid-3 + .grid-3 { margin-top: 16px; }

  #kanzlei { margin-top: 40px; }

  .red-block.claim {
    grid-column: span 2;
    aspect-ratio: auto;
    padding: 20px;
  }

  .red-block.label,
  .red-block.rechtsgebiet {
    padding: 20px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .red-block.claim h1 { font-size: 28px; }

  /* Über uns: volle Breite untereinander */
  .red-block.label { grid-column: span 2; }
  .red-block.rechtsgebiet { grid-column: span 2; }
  .about-text {
    grid-column: span 2;
    padding: 0 0 24px 0;
  }

  .map-wrapper.map-full { height: 250px; grid-column: span 2; }

  #kontakt .red-block {
    grid-row: auto;
    grid-column: span 2;
  }

  #kontakt .about-text {
    grid-column: span 2;
    padding: 0;
  }

  #kontakt .kontakt-logo {
    grid-column: span 2;
    justify-content: flex-start;
    padding: 8px 0;
  }
}

/* Kleines Mobile */
@media (max-width: 480px) {
  /* Fotos untereinander */
  .grid-3 { grid-template-columns: 1fr; }
  .red-block.claim { grid-column: 1; }
  .red-block.label { grid-column: 1; }
  .red-block.rechtsgebiet { grid-column: 1; }
  .about-text { grid-column: 1; }
}
