/* ============================================================
   Hanseatisches Immobilienzentrum — style.css
   ============================================================ */

:root {
  --hiz-navy:     #0D1B2A;
  --hiz-gold:     #C19A5B;
  --hiz-grey:     #667085;
  --hiz-offwhite: #FAF9F6;
  --hiz-white:    #FFFFFF;

  --hiz-serif: "Cinzel", "Georgia", serif;
  --hiz-sans:  "Montserrat", "Segoe UI", sans-serif;

  --section-pad: clamp(60px, 8vw, 120px);
  --max-width: 1200px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--hiz-sans);
  color: var(--hiz-navy);
  background: var(--hiz-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: var(--hiz-sans);
  border: none;
  background: none;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--hiz-gold);
  outline-offset: 3px;
}

/* ── Typography helpers ───────────────────────────────────── */
.label-tag {
  font-family: var(--hiz-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hiz-gold);
}

.gold-divider {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--hiz-gold);
  margin: 16px 0;
}

.gold-divider--center {
  margin: 16px auto;
}

.gold-divider--60 {
  width: 60px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--hiz-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn--primary {
  background: var(--hiz-navy);
  color: var(--hiz-white);
  border: 1px solid var(--hiz-navy);
}

.btn--primary:hover {
  background: #1a2e42;
  border-color: #1a2e42;
}

.btn--secondary {
  background: transparent;
  color: var(--hiz-white);
  border: 1px solid var(--hiz-gold);
}

.btn--secondary:hover {
  background: var(--hiz-gold);
  color: var(--hiz-navy);
}

.btn--gold {
  background: transparent;
  color: var(--hiz-gold);
  border: 1px solid var(--hiz-gold);
  font-size: 12px;
}

.btn--gold:hover {
  background: var(--hiz-gold);
  color: var(--hiz-navy);
}

.btn--navy-solid {
  background: var(--hiz-navy);
  color: var(--hiz-white);
  border: 1px solid var(--hiz-navy);
}

.btn--navy-solid:hover {
  background: #1a2e42;
  border-color: #1a2e42;
}

/* ── Section wrapper ──────────────────────────────────────── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

section {
  padding: var(--section-pad) 0;
}

/* ── Animate on scroll ────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--hiz-navy);
  padding: 20px 0;
  transition: padding 0.3s ease;
}

#site-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(13,27,42,0.4);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo area */
.header-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-logo img {
  height: 32px;
  width: auto;
  mix-blend-mode: screen;
}

.header-logo-divider {
  width: 1px;
  height: 36px;
  background: var(--hiz-gold);
  opacity: 0.6;
}

.header-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark-top {
  font-family: var(--hiz-serif);
  font-weight: 400;
  color: var(--hiz-white);
  font-size: 18px;
  letter-spacing: 0.12em;
  line-height: 1;
}

.wordmark-bottom {
  font-family: var(--hiz-sans);
  font-weight: 500;
  color: var(--hiz-gold);
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--hiz-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--hiz-white);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--hiz-gold);
}

.header-cta {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--hiz-white);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--hiz-navy);
  padding: 16px clamp(20px, 4vw, 60px) 24px;
  border-top: 1px solid rgba(193,154,91,0.2);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--hiz-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--hiz-white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}

.mobile-nav a:last-child {
  border-bottom: none;
  margin-top: 8px;
  color: var(--hiz-gold);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, #0D1B2A 60%, #1a2e42 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: auto;
  opacity: 0.08;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(100px, 15vw, 160px) clamp(20px, 4vw, 60px) 80px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.hero-label {
  font-family: var(--hiz-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--hiz-gold);
  margin-bottom: 20px;
}

.hero-h1 {
  font-family: var(--hiz-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: 0.05em;
  color: var(--hiz-white);
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero-sub {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.hero-gold-line {
  height: 1px;
  background: var(--hiz-gold);
  opacity: 0.4;
}

.values-bar {
  background: rgba(13,27,42,0.6);
  text-align: center;
  padding: 24px clamp(20px, 4vw, 60px);
}

.values-bar p {
  font-family: var(--hiz-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--hiz-gold);
  text-transform: uppercase;
}

/* ============================================================
   ÜBER UNS
   ============================================================ */
#ueber-uns {
  background: var(--hiz-offwhite);
}

.ueber-uns-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-top: 40px;
}

.ueber-uns-text p {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--hiz-navy);
  margin-bottom: 20px;
}

.ueber-uns-text p:last-child { margin-bottom: 0; }

.stat-cards {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-card {
  background: var(--hiz-navy);
  padding: 32px;
  border-top: 2px solid var(--hiz-gold);
}

.stat-number {
  font-family: var(--hiz-serif);
  font-weight: 400;
  font-size: 48px;
  color: var(--hiz-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number--medium {
  font-size: 32px;
}

.stat-label {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--hiz-white);
  line-height: 1.4;
}

.section-gold-divider {
  height: 1px;
  background: var(--hiz-gold);
  margin-top: var(--section-pad);
  opacity: 0.3;
}

/* ============================================================
   PARTNERSCHAFT
   ============================================================ */
#partnerschaft {
  background: var(--hiz-white);
}

.partnerschaft-intro {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--hiz-grey);
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--hiz-white);
  border-top: 2px solid var(--hiz-gold);
  box-shadow: 0 2px 24px rgba(13,27,42,0.07);
  padding: 36px 28px;
  border-radius: 2px;
}

.feature-card-title {
  font-family: var(--hiz-serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--hiz-navy);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.feature-card-body {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--hiz-grey);
}

.partnerschaft-cta {
  text-align: center;
}

/* Section header helper */
.section-header {
  text-align: center;
  margin-bottom: 12px;
}

.section-header--left {
  text-align: left;
}

.section-h2 {
  font-family: var(--hiz-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--hiz-navy);
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-h2--white {
  color: var(--hiz-white);
}

/* ============================================================
   WIE ES FUNKTIONIERT
   ============================================================ */
#wie-es-funktioniert {
  background: var(--hiz-offwhite);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.steps-row::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(16.666% + 28px);
  right: calc(16.666% + 28px);
  height: 1px;
  background: var(--hiz-gold);
  opacity: 0.5;
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 56px;
  height: 56px;
  border: 1px solid var(--hiz-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hiz-offwhite);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.step-number {
  font-family: var(--hiz-serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--hiz-navy);
}

.step-title {
  font-family: var(--hiz-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--hiz-navy);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.step-body {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--hiz-grey);
}

/* ============================================================
   STANDORTE
   ============================================================ */
#standorte {
  background: var(--hiz-navy);
}

#standorte .label-tag {
  color: var(--hiz-gold);
}

.standorte-intro {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto 48px;
  text-align: center;
}

.location-card {
  background: var(--hiz-white);
  border-top: 2px solid var(--hiz-gold);
  border-radius: 2px;
  padding: 40px;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 2px 24px rgba(13,27,42,0.07);
}

.location-card-icon {
  color: var(--hiz-gold);
  margin: 0 auto 20px;
}

.location-city {
  font-family: var(--hiz-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--hiz-navy);
  margin-bottom: 8px;
}

.location-name {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--hiz-grey);
  margin-bottom: 12px;
}

.location-more {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-style: italic;
  font-size: 13px;
  color: var(--hiz-gold);
}

/* ============================================================
   TEAM
   ============================================================ */
#team {
  background: var(--hiz-white);
}

.team-intro {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--hiz-grey);
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.team-card {
  background: var(--hiz-navy);
  border-top: 2px solid var(--hiz-gold);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(13,27,42,0.07);
}

.team-photo {
  background: #0D1B2A;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(193,154,91,0.15);
}

.team-photo svg {
  color: var(--hiz-gold);
  opacity: 0.5;
}

.team-info {
  padding: 24px 28px;
}

.team-name {
  font-family: var(--hiz-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--hiz-white);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.team-role {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--hiz-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   KONTAKT
   ============================================================ */
#kontakt {
  background: var(--hiz-offwhite);
}

.kontakt-sub {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 17px;
  color: var(--hiz-grey);
  margin: 0 auto 48px;
  text-align: center;
  max-width: 480px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  font-family: var(--hiz-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hiz-grey);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hiz-gold);
  padding: 10px 0;
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--hiz-navy);
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--hiz-navy);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aab0b8;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--hiz-navy);
  color: var(--hiz-white);
  font-family: var(--hiz-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 8px;
}

.form-submit:hover {
  background: #1a2e42;
}

.form-thanks {
  display: none;
  text-align: center;
  padding: 48px 0;
}

.form-thanks p {
  font-family: var(--hiz-serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--hiz-navy);
  letter-spacing: 0.04em;
}

.form-thanks span {
  display: block;
  font-family: var(--hiz-sans);
  font-size: 15px;
  color: var(--hiz-grey);
  margin-top: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--hiz-navy);
  padding-top: 0;
}

.footer-top-line {
  height: 1px;
  background: var(--hiz-gold);
  opacity: 0.35;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.footer-brand {
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-logo img {
  height: 28px;
  width: auto;
  mix-blend-mode: screen;
}

.footer-logo-divider {
  width: 1px;
  height: 28px;
  background: var(--hiz-gold);
  opacity: 0.5;
}

.footer-wordmark .wordmark-top {
  font-size: 15px;
  letter-spacing: 0.1em;
}

.footer-wordmark .wordmark-bottom {
  font-size: 9px;
}

.footer-subline {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--hiz-grey);
  letter-spacing: 0.04em;
  padding-left: 42px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-col-title {
  font-family: var(--hiz-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hiz-gold);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.footer-col ul a:hover {
  color: var(--hiz-gold);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--hiz-sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--hiz-grey);
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }

  .ueber-uns-grid {
    grid-template-columns: 1fr;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps-row::before { display: none; }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .hero-h1 {
    font-size: clamp(28px, 8vw, 42px);
  }
}
