/* ====================================================================
   Nord Immobilienservice — Shared styles for legal/contact subpages
   Mirrors the design tokens of the main site.
==================================================================== */

:root {
  --navy:    #1B3A5C;
  --gold:    #C9A84C;
  --bg:      #F5F2EC;
  --midblue: #4A6B8A;
  --ink:     #2C2C2A;
  --white:   #FFFFFF;
  --hairline: rgba(27,58,92,0.12);
  --hairline-strong: rgba(27,58,92,0.20);
  --tag-bg:  #EFF3F7;
  --serif:   "Cormorant Garamond", "Times New Roman", serif;
  --sans:    "DM Sans", system-ui, -apple-system, sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; color: var(--navy); }

/* Eyebrow / Label */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--midblue);
}
.label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.label--gold { color: var(--gold); }
.label--white { color: rgba(255,255,255,0.7); }
.label--white::before { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  border: 0.5px solid transparent;
  cursor: pointer;
  transition: all 200ms var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #142B45; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--hairline-strong); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-1px); }

/* ---------- Brand / Nav ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand-bar {
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 38px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  padding-bottom: 12px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1;
}
.brand-sub {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  color: var(--midblue);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1;
  border-bottom: 0.5px solid var(--gold);
  padding-bottom: 5px;
  padding-right: 56px;
  display: inline-block;
  width: fit-content;
}
.brand-est {
  position: absolute;
  right: 0;
  bottom: -10px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  color: var(--midblue);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: italic;
  opacity: 0.7;
  white-space: nowrap;
}

nav.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,242,236,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  transition: color 150ms var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.is-active { color: var(--navy); }
.nav-links a.is-active::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--gold);
  margin-top: 4px;
}
.nav-cta {
  padding: 10px 18px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: all 200ms var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: #142B45; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* ---------- Page-content area ---------- */
.page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 32px 5rem;
}

.page-title {
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.page-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--midblue);
  font-weight: 400;
  line-height: 1.45;
  margin-top: 18px;
  margin-bottom: 56px;
}

.page-wrap h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.005em;
  margin-top: 56px;
  margin-bottom: 18px;
  padding-top: 32px;
  border-top: 0.5px solid var(--hairline);
}
.page-wrap > h2:first-of-type { padding-top: 0; border-top: none; margin-top: 32px; }

.page-wrap h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 12px;
}

.page-wrap h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-top: 24px;
  margin-bottom: 6px;
}

.page-wrap p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: pretty;
}

.page-wrap a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 0.5px solid var(--hairline-strong);
  transition: border-color 150ms var(--ease);
}
.page-wrap a:hover { border-color: var(--navy); }

.page-wrap ul {
  margin: 8px 0 18px;
  padding-left: 22px;
  color: var(--ink);
}
.page-wrap ul li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 4px;
}

.page-wrap strong { color: var(--navy); font-weight: 600; }

.legal-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 0.5px solid var(--hairline);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--midblue);
}

.legal-note {
  margin: 36px 0;
  padding: 18px 22px;
  background: rgba(201,168,76,0.08);
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
}

/* ---------- Hero (kontakt) ---------- */
.subhero {
  background: var(--navy);
  color: var(--white);
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute;
  top: 50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06), transparent 60%);
  transform: translateY(-50%);
  pointer-events: none;
}
.subhero .container { position: relative; }
.subhero h1 {
  color: var(--white);
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin-bottom: 22px;
}
.subhero h1 em { color: var(--gold); font-style: italic; }
.subhero p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
  line-height: 1.45;
}

/* ---------- Contact two-column ---------- */
.contact-section { padding: 6rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--midblue);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 0.5px solid var(--hairline-strong);
  border-radius: 4px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; font-family: var(--sans); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231B3A5C' stroke-width='1.5'%3E%3Cpolyline points='1 1 6 6 11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,92,0.08);
}
.contact-form .btn {
  margin-top: 12px;
  padding: 16px 26px;
  font-size: 14px;
}
.contact-form .btn.is-sent {
  background: #2E5A3D;
  color: #fff;
  pointer-events: none;
}

.contact-aside { display: flex; flex-direction: column; gap: 36px; }
.contact-aside .group {
  padding-top: 24px;
  border-top: 0.5px solid var(--hairline);
}
.contact-aside .group:first-child { padding-top: 0; border-top: none; }
.contact-aside .group .label { margin-bottom: 14px; }
.contact-aside .row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; margin-bottom: 8px; }
.contact-aside .row .k {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--midblue);
  padding-top: 4px;
}
.contact-aside .row .v { font-size: 15px; color: var(--ink); line-height: 1.5; }
.contact-aside .row .v a { color: var(--ink); text-decoration: none; border-bottom: 0.5px solid var(--hairline-strong); }
.contact-aside .row .v a:hover { border-color: var(--navy); }

.map-card {
  margin-top: 8px;
  border: 0.5px solid var(--hairline);
  border-radius: 6px;
  height: 260px;
  position: relative;
  overflow: hidden;
}
.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.02);
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold);
  padding-bottom: 3px;
  transition: gap 180ms var(--ease);
}
.map-link:hover { gap: 12px; }

.gf-card {
  display: flex; align-items: center; gap: 18px;
  padding-top: 24px;
  border-top: 0.5px solid var(--hairline);
}
.gf-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.gf-card .name { font-family: var(--serif); font-size: 22px; color: var(--navy); font-weight: 500; line-height: 1.1; }
.gf-card .role { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--midblue); margin-top: 4px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 40px;
  font-size: 13px;
}
.ft-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.ft-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.005em;
}
.ft-brand .sep { color: var(--gold); margin: 0 10px; font-style: italic; }
.ft-links { display: flex; gap: 28px; flex-wrap: wrap; }
.ft-links a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.ft-links a:hover { color: var(--white); }
.ft-links a.is-active { color: var(--gold); font-weight: 500; }
.ft-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.1);
  margin-top: 36px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.ft-legal {
  margin-top: 14px;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { gap: 22px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .page-wrap { padding: 3rem 24px 4rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .field-row { grid-template-columns: 1fr; }
  .subhero { padding: 5rem 0 4rem; }
}

/* ---------- Print (Impressum / AGB / Datenschutz) ---------- */
@media print {
  nav.top, footer, .nis-cookie { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-wrap { max-width: 100%; padding: 0; }
  .page-title { font-size: 26pt; }
  .page-lede { font-size: 13pt; }
  .page-wrap h2 { font-size: 15pt; }
  .page-wrap a { color: #000; border: 0; }
  .label { color: #555; }
}
