/* ============================================
   Burwitz Immobilien – Stylesheet
   Clean & modern: Weiß/Grau, Petrol-Akzent, Inter
   ============================================ */

:root {
  --accent: #132947;
  --accent-hover: #1e3a5f;
  --gold: #af8d5d;
  --gold-text: #8f7342;
  --gold-light: #d8c09a;
  --text: #1c1c1a;
  --text-muted: #5f5e5a;
  --bg: #ffffff;
  --bg-gray: #f6f6f5;
  --border: #e5e4e1;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; }

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
h3 { font-size: 1.05rem; font-weight: 600; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--text); background: transparent; }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  display: block;
  height: 46px;
  width: auto;
}
.logo--footer img { height: 40px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav > a:not(.btn) {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav > a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Intro (Startbereich mit Portrait) ---------- */
.intro {
  padding: 5.5rem 0 4.5rem;
  background:
    linear-gradient(100deg, rgba(19, 41, 71, 0.82) 0%, rgba(19, 41, 71, 0.90) 55%, rgba(19, 41, 71, 0.82) 100%),
    url("header-hamburg.jpg") center / cover no-repeat;
  color: #fff;
}
.intro .eyebrow { color: var(--gold-light); }
.intro h1 { color: #fff; }
.intro .about__text .intro__lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.intro .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.intro .btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.intro__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.intro__facts li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.intro__facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}

/* ---------- Über mich ---------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.about__photo img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.about__text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about__text .btn { margin-top: 0.75rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--gray { background: var(--bg-gray); }
.section__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42rem;
  margin-bottom: 2.75rem;
}
.section__note {
  margin-top: 1.75rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 42rem;
}

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Leistungen (Services) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 2.5rem;
}
.service__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--gold);
}
.service__head svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  stroke: var(--gold-text);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ---------- Ablauf (Steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--gold);
  padding-top: 1.25rem;
}
.step__number {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-text);
  margin-bottom: 0.5rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.faq__item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
}
.faq__item summary {
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}
.contact__list {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}
.contact__list strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.contact__list a:hover { color: var(--accent); }

.form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form__field { margin-bottom: 1rem; }
.form__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.93rem;
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(19, 41, 71, 0.12);
}
.form__field textarea { resize: vertical; }
.form__field--checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.form__field--checkbox input { width: auto; margin-top: 0.25rem; }
.form__field--checkbox label {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}
.form__field--checkbox a { color: var(--accent); text-decoration: underline; }
.form__status { margin-top: 0.9rem; font-size: 0.9rem; font-weight: 500; }
.form__status--success { color: var(--accent); }
.form__status--error { color: #b91c1c; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__text {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 20rem;
}
.footer__nav {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.footer__nav strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.footer__nav a { font-size: 0.92rem; color: var(--text-muted); }
.footer__nav a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ---------- Rechtstexte ---------- */
.legal { padding: 4.5rem 0; max-width: 720px; }
.legal h1 { margin-bottom: 2rem; }
.legal h2 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal a { color: var(--accent); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about__photo { max-width: 420px; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav--open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 0.9rem; }
  .nav-toggle { display: flex; }

  .intro { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .grid--2, .grid--3, .grid--4, .services, .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
}
