/* Design DNA: Asymmetric diagonal hero with skewed Berlin courtyard panel; graphite + amber brass; strict German Kanzlei mood */

:root {
  --rb-graphite: #22262B;
  --rb-brass: #B08D57;
  --rb-brass-light: #C9A96E;
  --rb-paper: #F4F1EA;
  --rb-paper-dark: #E8E4DB;
  --rb-text: #1A1D21;
  --rb-text-muted: #5A5F66;
  --rb-white: #FFFFFF;
  --rb-font-serif: "IBM Plex Serif", Georgia, serif;
  --rb-font-sans: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--rb-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--rb-text);
  background: var(--rb-paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rb-brass); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rb-brass-light); }

h1, h2, h3, h4 {
  font-family: var(--rb-font-serif);
  font-weight: 600;
  line-height: 1.25;
}

/* Cookie strip */
.rb-cookie {
  background: var(--rb-graphite);
  color: var(--rb-paper);
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

.rb-cookie p { flex: 1; min-width: 200px; }

.rb-cookie a { color: var(--rb-brass-light); text-decoration: underline; }

.rb-cookie__btn {
  background: var(--rb-brass);
  color: var(--rb-graphite);
  border: none;
  padding: 0.4rem 1.2rem;
  font-family: var(--rb-font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.rb-cookie__btn:hover { background: var(--rb-brass-light); }

.rb-cookie--hidden { display: none; }

/* Header */
.rb-header {
  background: var(--rb-graphite);
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 2px solid var(--rb-brass);
}

.rb-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.rb-logo {
  display: flex;
  flex-direction: column;
  color: var(--rb-white);
  text-decoration: none;
}

.rb-logo:hover { color: var(--rb-white); }

.rb-logo__name {
  font-family: var(--rb-font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rb-logo__tag {
  font-size: 0.7rem;
  color: var(--rb-brass);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rb-nav { display: flex; gap: 0.25rem; }

.rb-nav a {
  color: var(--rb-paper);
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.rb-nav a:hover,
.rb-nav a.rb-nav--active {
  color: var(--rb-brass-light);
  border-bottom-color: var(--rb-brass);
}

.rb-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.rb-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rb-paper);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero — asymmetric diagonal */
.rb-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--rb-graphite);
}

.rb-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  max-width: 1400px;
  margin: 0 auto;
}

.rb-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 4rem;
  position: relative;
  z-index: 2;
}

.rb-hero__content::after {
  content: "";
  position: absolute;
  top: 0;
  right: -80px;
  width: 160px;
  height: 100%;
  background: var(--rb-graphite);
  transform: skewX(-6deg);
  z-index: -1;
}

.rb-hero__label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rb-brass);
  margin-bottom: 1rem;
  font-weight: 600;
}

.rb-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--rb-white);
  margin-bottom: 1.25rem;
}

.rb-hero__text {
  color: var(--rb-paper-dark);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.rb-hero__panel {
  position: relative;
  overflow: hidden;
}

.rb-hero__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: skewX(-3deg) scale(1.08);
  transform-origin: center;
}

.rb-hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,38,43,0.3) 0%, rgba(176,141,87,0.15) 100%);
  z-index: 1;
}

/* Buttons */
.rb-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--rb-font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.rb-btn--primary {
  background: var(--rb-brass);
  color: var(--rb-graphite);
}

.rb-btn--primary:hover {
  background: var(--rb-brass-light);
  color: var(--rb-graphite);
}

.rb-btn--outline {
  background: transparent;
  color: var(--rb-brass);
  border: 2px solid var(--rb-brass);
}

.rb-btn--outline:hover {
  background: var(--rb-brass);
  color: var(--rb-graphite);
}

.rb-btn--dark {
  background: var(--rb-graphite);
  color: var(--rb-paper);
}

.rb-btn--dark:hover {
  background: #2E3339;
  color: var(--rb-paper);
}

/* Sections */
.rb-section {
  padding: 5rem 1.5rem;
}

.rb-section--dark {
  background: var(--rb-graphite);
  color: var(--rb-paper);
}

.rb-section--paper { background: var(--rb-paper); }

.rb-container {
  max-width: 1100px;
  margin: 0 auto;
}

.rb-section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.rb-section__label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rb-brass);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.rb-section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.rb-section__subtitle {
  color: var(--rb-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.rb-section--dark .rb-section__subtitle { color: var(--rb-paper-dark); }

/* Services grid */
.rb-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.rb-service-card {
  background: var(--rb-white);
  border-top: 3px solid var(--rb-brass);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.rb-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(34,38,43,0.12);
}

.rb-service-card__img {
  height: 200px;
  overflow: hidden;
}

.rb-service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.rb-service-card:hover .rb-service-card__img img { transform: scale(1.05); }

.rb-service-card__body { padding: 1.75rem; }

.rb-service-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--rb-graphite);
}

.rb-service-card__text {
  font-size: 0.92rem;
  color: var(--rb-text-muted);
  margin-bottom: 1rem;
}

/* About split */
.rb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.rb-split__img {
  position: relative;
}

.rb-split__img::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  width: 80px;
  height: 80px;
  border-top: 3px solid var(--rb-brass);
  border-left: 3px solid var(--rb-brass);
}

.rb-split__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.rb-split__content h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--rb-graphite);
}

.rb-split__content p {
  margin-bottom: 1rem;
  color: var(--rb-text-muted);
}

.rb-list {
  list-style: none;
  margin: 1.5rem 0;
}

.rb-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--rb-text);
}

.rb-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 2px;
  background: var(--rb-brass);
}

/* Stats */
.rb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.rb-stat__num {
  font-family: var(--rb-font-serif);
  font-size: 2.5rem;
  color: var(--rb-brass);
  font-weight: 600;
}

.rb-stat__label {
  font-size: 0.85rem;
  color: var(--rb-paper-dark);
  margin-top: 0.25rem;
}

/* Team */
.rb-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.rb-team-card { text-align: center; }

.rb-team-card__photo {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border-bottom: 3px solid var(--rb-brass);
}

.rb-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.rb-team-card:hover .rb-team-card__photo img { filter: grayscale(0%); }

.rb-team-card__name {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.rb-team-card__role {
  font-size: 0.85rem;
  color: var(--rb-brass);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rb-team-card__bio {
  font-size: 0.88rem;
  color: var(--rb-text-muted);
}

/* CTA band */
.rb-cta {
  position: relative;
  padding: 5rem 1.5rem;
  background: var(--rb-graphite);
  overflow: hidden;
}

.rb-cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
}

.rb-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rb-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.rb-cta__title {
  font-size: 2rem;
  color: var(--rb-white);
  margin-bottom: 1rem;
}

.rb-cta__text {
  color: var(--rb-paper-dark);
  margin-bottom: 2rem;
}

/* Contact */
.rb-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.rb-contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--rb-graphite);
}

.rb-contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.rb-contact-item__icon {
  width: 40px;
  height: 40px;
  background: var(--rb-graphite);
  color: var(--rb-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.rb-contact-item__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rb-text-muted);
}

.rb-contact-item__value {
  font-size: 1rem;
  color: var(--rb-text);
}

.rb-form { display: flex; flex-direction: column; gap: 1.25rem; }

.rb-form__group { display: flex; flex-direction: column; gap: 0.4rem; }

.rb-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rb-graphite);
}

.rb-form input,
.rb-form textarea,
.rb-form select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--rb-paper-dark);
  background: var(--rb-white);
  font-family: var(--rb-font-sans);
  font-size: 0.95rem;
  color: var(--rb-text);
  transition: border-color 0.2s;
}

.rb-form input:focus,
.rb-form textarea:focus,
.rb-form select:focus {
  outline: none;
  border-color: var(--rb-brass);
}

.rb-form textarea { min-height: 140px; resize: vertical; }

/* Page header */
.rb-page-hero {
  background: var(--rb-graphite);
  padding: 4rem 1.5rem 3rem;
  position: relative;
}

.rb-page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rb-brass) 0%, transparent 70%);
}

.rb-page-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.rb-page-hero__label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rb-brass);
  margin-bottom: 0.75rem;
}

.rb-page-hero__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--rb-white);
  margin-bottom: 0.75rem;
}

.rb-page-hero__text {
  color: var(--rb-paper-dark);
  max-width: 600px;
}

/* Legal content */
.rb-legal { padding: 4rem 1.5rem; }

.rb-legal h2 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  color: var(--rb-graphite);
}

.rb-legal h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}

.rb-legal p, .rb-legal li {
  color: var(--rb-text-muted);
  margin-bottom: 0.75rem;
}

.rb-legal ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Service detail */
.rb-practice {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rb-paper-dark);
}

.rb-practice:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.rb-practice__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.rb-practice__tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rb-brass);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rb-practice__title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--rb-graphite);
}

.rb-practice__text {
  color: var(--rb-text-muted);
  margin-bottom: 1rem;
}

/* Footer */
.rb-footer {
  background: var(--rb-graphite);
  color: var(--rb-paper-dark);
  padding: 3.5rem 1.5rem 1.5rem;
}

.rb-footer__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244,241,234,0.1);
}

.rb-footer__brand {
  font-family: var(--rb-font-serif);
  font-size: 1.25rem;
  color: var(--rb-white);
  margin-bottom: 0.75rem;
}

.rb-footer__desc {
  font-size: 0.88rem;
  line-height: 1.6;
}

.rb-footer h4 {
  font-family: var(--rb-font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rb-brass);
  margin-bottom: 1rem;
}

.rb-footer ul { list-style: none; }

.rb-footer li { margin-bottom: 0.5rem; }

.rb-footer a { color: var(--rb-paper-dark); font-size: 0.88rem; }
.rb-footer a:hover { color: var(--rb-brass-light); }

.rb-footer__bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 960px) {
  .rb-hero__grid { grid-template-columns: 1fr; }
  .rb-hero__content { padding: 3rem 1.5rem; }
  .rb-hero__content::after { display: none; }
  .rb-hero__panel { min-height: 300px; }
  .rb-services, .rb-team, .rb-stats { grid-template-columns: 1fr; }
  .rb-split, .rb-contact-grid, .rb-practice { grid-template-columns: 1fr; }
  .rb-footer__grid { grid-template-columns: 1fr; }
  .rb-stats { grid-template-columns: repeat(2, 1fr); }

  .rb-burger { display: block; }

  .rb-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--rb-graphite);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--rb-brass);
  }

  .rb-nav.rb-nav--open { display: flex; }

  .rb-nav a { padding: 0.75rem 1rem; }
}

@media (max-width: 480px) {
  .rb-stats { grid-template-columns: 1fr; }
  .rb-section { padding: 3rem 1rem; }
}
