/*
Theme Name: Rainer Deville
Author: Kanzlei Deville
Description: Schlichtes Theme für die Kanzlei Rainer Deville.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rainer-deville
*/

:root {
  --dunkel: #1f2a44;
  --akzent: #a8834a;
  --text: #2b2b2b;
  --grau: #c9ceda;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--dunkel);
}
h1 { font-size: 2.4rem; margin: 0 0 1.5rem; }
h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.3rem; }
a { color: var(--akzent); }
img { max-width: 100%; height: auto; }

.rd-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.rd-header {
  background: var(--dunkel);
  padding: 1.2rem 0;
}
.rd-header-inner {
  max-width: 1140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.rd-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.rd-title {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  font-size: 1.4rem;
}
.rd-tagline {
  color: var(--grau);
  font-size: 0.85rem;
}
.rd-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}
.rd-menu a {
  color: #fff;
  text-decoration: none;
}
.rd-menu a:hover,
.rd-menu .current-menu-item > a { color: var(--akzent); }

.rd-burger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .rd-burger { display: block; }
  .rd-nav { display: none; width: 100%; }
  .rd-nav.offen { display: block; }
  .rd-menu { flex-direction: column; gap: 0.8rem; padding-top: 0.5rem; }
}

/* ---------- Inhalt ---------- */
.rd-main {
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.rd-content .wp-block-image img { border-radius: 4px; }
.rd-content .alignwide {
  width: min(1140px, 100vw - 48px);
  margin-left: 50%;
  transform: translateX(-50%);
}
.rd-content .alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.wp-block-button__link {
  background: var(--dunkel);
  color: #fff;
  border-radius: 3px;
}

/* ---------- Footer ---------- */
.rd-footer {
  background: var(--dunkel);
  color: var(--grau);
  padding: 2rem 0;
  font-size: 0.9rem;
}
.rd-footer-inner {
  max-width: 1140px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.rd-footer p { margin: 0; }
.rd-footer .rd-menu { gap: 1.2rem; }
.rd-footer .rd-menu a:hover { color: var(--akzent); }