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

/* ── VARIABLES ── */
:root {
  --bg:      #fafafa;
  --surface: #e8eaef;
  --ink:     #111111;
  --muted:   #6b6e74;
  --line:    #d8dbe2;
  --nav-bg:  rgba(250,250,250,0.93);
}
[data-theme="dark"] {
  --bg:      #131415;
  --surface: #1d1f24;
  --ink:     #eaebee;
  --muted:   #7a7d85;
  --line:    #28292f;
  --nav-bg:  rgba(19,20,21,0.93);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s, border-color 0.3s;
}
[data-theme="dark"] nav { border-bottom-color: var(--line); }
.nav-logo {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.13em;
  color: var(--ink);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}
.nav-cta {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  transition: opacity 0.2s, background-color 0.3s, color 0.3s;
}
.nav-cta:hover { opacity: 0.78; }
#theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 34px; height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
#theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
#theme-toggle .icon-moon { display: none; }
[data-theme="dark"] #theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] #theme-toggle .icon-moon { display: flex; }

/* ── LAYOUT HELPERS ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.bg-default { background: var(--bg);      padding: 6rem 0; transition: background-color 0.3s; }
.bg-surface { background: var(--surface); padding: 6rem 0; transition: background-color 0.3s; }
.bg-dark    { background: #0c0b0a;        padding: 6rem 0; }
.bg-darkest { background: #080706;        padding: 6rem 0; border-top: 1px solid #141312; }

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 3rem;
  color: var(--ink);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding-top: 64px;
  transition: background-color 0.3s;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
  width: 100%;
}
.hero-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero-text h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.hero-text h1 span { color: var(--muted); }
.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 400px;
  margin-bottom: 2.2rem;
}
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border-radius: 8px;
  transition: opacity 0.2s, background-color 0.3s, color 0.3s;
}
.btn-primary:hover { opacity: 0.78; }
.hero-photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.hero-photo {
  position: relative;
  width: 100%;
  height: 680px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
  transition: background-color 0.3s;
}
.photo-caption {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.55;
  padding-left: 0.1rem;
}
.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: opacity 1.8s ease-in-out;
}
#slide-a { z-index: 1; }
#slide-b { z-index: 2; opacity: 0; }
.photo-gallery-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  pointer-events: none;
}

/* ── WER ICH BIN ── */
.wer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.wer-left { display: flex; flex-direction: column; }
.wer-text { margin-bottom: 0; }
.wer-text p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.wer-text p:last-child { margin-bottom: 0; }

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 2.5rem;
  max-width: 100%;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: var(--line);
  transition: background-color 0.3s;
}
.tl-item {
  position: relative;
  padding-left: 1.8rem;
  padding-bottom: 1.6rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -1.85rem; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--ink);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.tl-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.2rem;
}
.tl-content h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.tl-org {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── IMAGE CARDS ── */
.img-cards {
  position: relative;
  min-height: 760px;
}
.img-card {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  box-shadow: 0 10px 36px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.img-card:hover,
.img-card.active { box-shadow: 0 18px 52px rgba(0,0,0,0.2); z-index: 10 !important; }

/* Collage — spread across full column */
.img-card:nth-child(1) { width: 270px; top: 0;    left: 0;   z-index: 3; animation: fl-a 5.2s ease-in-out infinite; }
.img-card:nth-child(2) { width: 248px; top: 60px; right: 0;  z-index: 2; animation: fl-b 4.6s ease-in-out infinite 0.9s; }
.img-card:nth-child(3) { width: 258px; bottom: 60px; left: 15px; z-index: 4; animation: fl-c 5.9s ease-in-out infinite 0.4s; }
.img-card:nth-child(4) { width: 244px; bottom: 0;    right: 15px; z-index: 1; animation: fl-d 5.0s ease-in-out infinite 1.3s; }

.img-card { aspect-ratio: 1 / 1; }
.img-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  transition: background 0.35s ease;
}
.img-card:hover .img-overlay,
.img-card.active .img-overlay { background: rgba(0,0,0,0.72); }
.img-overlay h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.28rem;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.3s, transform 0.3s;
}
.img-overlay p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.3s 0.04s, transform 0.3s 0.04s;
}
.img-card:hover .img-overlay h4,
.img-card.active .img-overlay h4,
.img-card:hover .img-overlay p,
.img-card.active .img-overlay p { opacity: 1; transform: translateY(0); }

/* Float animations */
@keyframes fl-a {
  0%, 100% { transform: rotate(-4deg) translateY(0px);  }
  50%       { transform: rotate(-1deg) translateY(-11px); }
}
@keyframes fl-b {
  0%, 100% { transform: rotate(3deg)  translateY(0px);  }
  50%       { transform: rotate(5deg)  translateY(-8px);  }
}
@keyframes fl-c {
  0%, 100% { transform: rotate(6deg)  translateY(0px);  }
  50%       { transform: rotate(3deg)  translateY(-13px); }
}
@keyframes fl-d {
  0%, 100% { transform: rotate(-2deg) translateY(0px);  }
  50%       { transform: rotate(-5deg) translateY(-9px);  }
}

/* ── WARUM IMMOBILIEN ── */
.warum-intro {
  max-width: 600px;
  margin-bottom: 3rem;
  margin-top: -1.5rem;
}
.warum-intro p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.78;
}
.warum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}
.warum-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.warum-block p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.78;
}

/* ── PRAXIS ── */
.praxis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.praxis-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.praxis-text:last-child { margin-bottom: 0; }
.praxis-pull {
  transform: translateY(-3rem);
}
.praxis-pull blockquote {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.3s;
}

/* ── WAS ICH SUCHE ── */
.suche-label { color: var(--muted); text-align: left; }
.suche-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1rem;
  text-align: left;
}
.suche-intro {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.72;
  max-width: 500px;
  margin: 0 0 2.5rem;
  text-align: left;
}
.suche-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.suche-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: border-color 0.3s;
}
.suche-item:nth-child(even) { border-right: none; }
.suche-item:nth-last-child(-n+2) { border-bottom: none; }
.suche-num {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.5;
  letter-spacing: 0.1em;
  margin-top: 0.18rem;
  flex-shrink: 0;
  width: 18px;
}
.suche-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.18rem;
}
.suche-item span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── SUCHE HINT ── */
.suche-hint {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  color: var(--muted);
}

/* ── KONTAKT ── */
.kontakt-label { color: #484440; }
.kontakt-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #eeecea;
  margin-bottom: 1.8rem;
}
.kontakt-sub {
  font-size: 0.93rem;
  color: rgba(238,236,234,0.4);
  line-height: 1.72;
  max-width: 460px;
  margin-bottom: 2.5rem;
}
.kontakt-links {
  display: flex;
  gap: 3.5rem;
}
.kontakt-link {
  text-decoration: none;
  color: #eeecea;
  transition: opacity 0.2s;
}
.kontakt-link:hover { opacity: 0.65; }
.kontakt-link-label {
  font-size: 0.62rem;
  color: rgba(238,236,234,0.35);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.kontakt-link-value { font-size: 0.88rem; font-weight: 500; }

/* ── FOOTER ── */
footer {
  background: #080706;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.72rem;
  color: rgba(238,236,234,0.14);
}

/* ── SCROLL PROGRESS ── */
#scroll-bar {
  position: fixed;
  top: 64px; left: 0;
  height: 2px; width: 0%;
  background: var(--ink);
  z-index: 200;
  pointer-events: none;
  transition: background-color 0.3s;
}

/* ── FADE IN ── */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-right { grid-column: 2; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 2rem; }
  .hero-photo { height: 360px; }
  .hero-text h1 { font-size: 3.2rem; }
  .hero-sub { max-width: 100%; }
  .wer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .img-cards { min-height: auto; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .img-card { position: static; width: 100%; animation: none; transform: none; box-shadow: none; z-index: auto !important; }
  .img-card img { aspect-ratio: 1/1; }
  .warum-grid { grid-template-columns: 1fr; gap: 2rem; }
  .praxis-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .suche-list { grid-template-columns: 1fr; max-width: 100%; }
  .suche-item { border-right: none !important; }
  .suche-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line) !important; }
  .suche-item:last-child { border-bottom: none !important; }
  .kontakt-links { flex-direction: column; gap: 1.8rem; }
  .img-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* ── Base ── */
  body { overflow-x: hidden; }
  img  { max-width: 100%; height: auto; }
  .container { padding: 0 1.2rem; }
  .bg-default, .bg-surface, .bg-dark, .bg-darkest { padding: 3.5rem 0; }
  .section-title { font-size: 1.8rem; margin-bottom: 2rem; }

  /* ── 1. Header: luftiger & größer ── */
  nav { height: 76px; padding: 0 1.4rem; }
  .nav-logo { font-size: 1rem; letter-spacing: 0.1em; }
  .nav-cta { font-size: 0.86rem; padding: 0.6rem 1.3rem; }
  #theme-toggle { width: 36px; height: 36px; }

  /* ── 2. Hero-Bild: vollständig sichtbar ── */
  .hero-inner { padding: 2rem 1.2rem; gap: 1.8rem; }
  .hero-text h1 { font-size: 2.6rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero-tag { font-size: 0.65rem; }
  .hero-photo {
    height: auto;
    aspect-ratio: 3 / 4;
    background: var(--bg);
  }
  .gallery-slide {
    object-fit: contain;
    object-position: center center;
  }
  .photo-gallery-badge { font-size: 0.58rem; padding: 0.22rem 0.45rem; }

  /* ── 3. Kleine Bilder: 1 Spalte für Intersection Observer ── */
  .img-cards { grid-template-columns: 1fr; gap: 0.8rem; }

  /* ── Wer ── */
  .wer-text p { font-size: 0.88rem; }

  /* ── Warum ── */
  .warum-intro p { font-size: 0.88rem; }
  .warum-block h3 { font-size: 0.9rem; }
  .warum-block p { font-size: 0.85rem; }

  /* ── Praxis ── */
  .praxis-pull { transform: none; }
  .praxis-pull blockquote { font-size: 1.3rem; }
  .praxis-text { font-size: 0.88rem; }

  /* ── Suche ── */
  .suche-title { font-size: 1.8rem; }
  .suche-intro { font-size: 0.88rem; }
  .suche-item strong { font-size: 0.84rem; }
  .suche-item span { font-size: 0.75rem; }
  .suche-hint { padding: 1rem 0; }

  /* ── Kontakt ── */
  .kontakt-title { font-size: 1.8rem; }
  .kontakt-sub { font-size: 0.88rem; }
}

@media (max-width: 600px) {
  .bg-default, .bg-surface, .bg-dark, .bg-darkest { padding: 3rem 0; }
  .hero-text h1 { font-size: 2.2rem; }
  nav { padding: 0 1rem; }
  .container { padding: 0 1rem; }
  .hero-inner { padding: 2rem 1rem; }
  .praxis-pull blockquote { font-size: 1.2rem; }
  .hero-photo { height: 260px; }
  .img-cards { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
}
