/*
 * TAO Real Estate – Kapitalanlagen. Farben und Schriften nach dem TAO-Markenhandbuch 2.6:
 * Burgundy #591922, Oxblood #3D1118, Cream Cashmere #DDC8B3, Vintage Greige #9F8E87,
 * Alabaster #F7F2EC. Transparenzen entstehen nur aus diesen Werten; Bildabdunklungen nur aus
 * Oxblood. Kein reines Weiß, kein Schwarz, keine Schatten, kein Weichzeichner.
 */

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #3D1118;
  --paper: #F7F2EC;
  --wine: #591922;
  --cream: #DDC8B3;
  --muted: #9F8E87;
  --line: rgba(247,242,236,.16);
  --pad: clamp(20px, 4vw, 72px);
  --max: 1440px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Instrument Sans", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
picture { display: contents; }
::selection { background: var(--wine); color: var(--paper); }

/* Sprungziele landen unter dem festen Kopf, nicht dahinter. */
[id] { scroll-margin-top: 110px; }

/* Deutsche Komposita dürfen die Spalten der Startseite nicht verbreitern. */
#top :is(h1, h2, h3) { hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: anywhere; }

a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; border-radius: 2px; }
.section-dark :focus-visible, .site-header :focus-visible { outline-color: var(--cream); }

/*
 * Die Wortmarke ist bei 116 px Breite 70 px hoch. Die Leiste der Vorlage (78/68 px) war niedriger
 * als die Marke selbst; sie ragte oben an den Rand und unten über die Leiste hinaus. Die Höhen
 * hier lassen ihr oben und unten Luft, auch in der gescrollten Leiste.
 */
.site-header { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 96px; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--paper); transition: background .2s ease; }
.site-header.is-scrolled { height: 88px; background: var(--ink); border-bottom: 1px solid rgba(247,242,236,.12); }
.brand { width: 116px; display: block; }
.brand img { width: 100%; }
.site-header nav { display: flex; gap: 34px; font-size: 14px; }
.site-header nav a, .header-cta { text-decoration: none; opacity: .72; transition: opacity .2s ease; }
.site-header nav a:hover, .header-cta:hover { opacity: 1; }
.header-cta { justify-self: end; padding-bottom: 2px; border-bottom: 1px solid currentColor; opacity: 1; }
.nav-toggle { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.section-dark { background: var(--ink); color: var(--paper); }
.kicker, .eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 650; }
.kicker { color: var(--wine); }
.section-dark .kicker, .section-dark .eyebrow { color: var(--cream); }
.button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 650; transition: transform .18s var(--ease), background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(.98); }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: var(--cream); }
.button-dark { background: var(--wine); color: var(--paper); }
.text-link { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(247,242,236,.5); padding-bottom: 4px; font-size: 15px; }

.hero { min-height: 100svh; position: relative; display: grid; grid-template-columns: 52% 48%; align-items: center; padding: 118px var(--pad) 60px; overflow: hidden; }
.hero-copy { position: relative; z-index: 3; max-width: 900px; padding-bottom: 5vh; }
.hero h1 { max-width: 12ch; margin: 22px 0 28px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(54px, 7vw, 112px); line-height: .96; letter-spacing: -.045em; font-weight: 400; text-wrap: balance; }
.hero-lead { max-width: 610px; color: var(--cream); font-size: clamp(18px, 1.7vw, 25px); line-height: 1.42; letter-spacing: -.02em; }
.actions { margin-top: 40px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-stage { position: absolute; inset: 0 0 0 48%; }
.hero-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(61,17,24,.64) 20%, rgba(61,17,24,.05) 58%, rgba(61,17,24,.22) 100%); pointer-events: none; }
.hero-image { position: absolute; inset: 8vh 0 0; margin: 0; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 45% center; filter: saturate(.7) sepia(.08) contrast(1.05) brightness(.72); transform: scale(1.04); }
.hero-caption { position: absolute; z-index: 4; right: var(--pad); bottom: 42px; text-align: right; font-size: 12px; line-height: 1.5; color: rgba(247,242,236,.72); letter-spacing: .04em; }
.scroll-cue { position: absolute; z-index: 5; left: var(--pad); bottom: 34px; display: flex; align-items: center; gap: 12px; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: var(--muted); }
.scroll-cue span { display: block; width: 42px; height: 1px; background: currentColor; }

.thesis { max-width: var(--max); margin: 0 auto; padding: 124px var(--pad) 120px; position: relative; }
.section-number { position: absolute; right: var(--pad); top: 124px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.display { margin: 30px 0 72px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(46px, 6.7vw, 100px); line-height: 1.02; letter-spacing: -.04em; font-weight: 400; }
.display em { color: var(--wine); font-style: normal; }
.thesis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 160px); margin-left: 18%; align-items: start; }
.large-copy { margin: 0; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.15; letter-spacing: -.04em; }
.body-copy { max-width: 560px; margin: 6px 0 0; color: rgba(61,17,24,.72); font-size: 19px; }

.sequence { min-height: 165vh; display: grid; grid-template-columns: 42% 58%; padding: 0 var(--pad); }
.sequence-sticky { position: sticky; top: 0; height: 100vh; padding-top: 18vh; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 12vh; }
.sequence-counter { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; max-width: 270px; font-size: 13px; color: var(--muted); }
.sequence-counter i { height: 1px; background: rgba(247,242,236,.18); position: relative; overflow: hidden; }
.sequence-counter i::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleX(var(--sequence-progress, .33)); transform-origin: left; transition: transform .24s var(--ease); }
.sequence-steps { padding: 31vh 0 16vh; }
.sequence-step { min-height: 42vh; max-width: 750px; }
.sequence-step > span { color: var(--muted); font-size: 13px; transition: color .2s ease; }
.sequence-step h3 { margin: 12px 0 24px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(54px, 7vw, 108px); line-height: .98; letter-spacing: -.04em; font-weight: 400; color: var(--muted); transition: color .2s ease; }
.sequence-step p { max-width: 600px; margin: 0; color: var(--cream); font-size: clamp(19px, 2vw, 27px); }
/* Der aktive Schritt: Titel in Alabaster, Nummer in Cream. Der Text bleibt bei allen lesbar. */
.sequence-step.is-active > span { color: var(--cream); }
.sequence-step.is-active h3 { color: var(--paper); }

.advantage { max-width: var(--max); margin: 0 auto; padding: 124px var(--pad); display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 6vw; }
.advantage-intro { position: sticky; top: 130px; align-self: start; }
.advantage-intro h2 { max-width: 10ch; margin: 25px 0 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(43px, 5vw, 76px); line-height: 1.03; letter-spacing: -.04em; font-weight: 400; }
.advantage-list article { padding: 34px 0 55px; border-top: 1px solid rgba(61,17,24,.24); display: grid; grid-template-columns: 60px 1fr; }
.advantage-list article > span { color: var(--wine); font-size: 12px; }
.advantage-list h3 { grid-column: 2; margin: 0 0 18px; font-size: clamp(27px, 3vw, 44px); line-height: 1.08; letter-spacing: -.04em; font-weight: 560; }
.advantage-list p { grid-column: 2; max-width: 560px; margin: 0; color: rgba(61,17,24,.72); font-size: 18px; }

.project { min-height: 76vh; display: grid; grid-template-columns: 58% 42%; background: var(--paper); }
.project-visual { position: relative; overflow: hidden; min-height: 70vh; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.62) contrast(1.04); transition: transform .24s var(--ease); }
.project:hover .project-visual img { transform: scale(1.015); }
.project-badge { position: absolute; top: 28px; left: 28px; padding: 9px 14px; border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 650; }
.project-copy { min-width: 0; padding: clamp(50px, 8vw, 130px) var(--pad); align-self: center; }
.project-copy h2 { margin: 24px 0 30px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(42px, 5.8vw, 82px); line-height: 1; letter-spacing: -.04em; font-weight: 400; }
.project-copy > p:not(.kicker) { max-width: 520px; color: rgba(61,17,24,.72); font-size: 18px; }
.project-copy .button { margin-top: 26px; }

.fit { padding: 124px var(--pad); }
.fit > h2, .fit > .kicker, .fit-lines { max-width: 1240px; margin-left: auto; margin-right: auto; }
.fit > h2 { margin-top: 28px; margin-bottom: 105px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(46px, 7.3vw, 108px); line-height: .98; letter-spacing: -.04em; font-weight: 400; }
.fit-lines { border-top: 1px solid var(--line); }
.fit-lines div { display: grid; grid-template-columns: 70px 1fr; padding: 30px 0; border-bottom: 1px solid var(--line); }
.fit-lines span { color: var(--muted); font-size: 12px; }
.fit-lines p { margin: 0; font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -.025em; }

.faq { max-width: var(--max); margin: 0 auto; padding: 124px var(--pad); display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 7vw; }
.faq-heading { position: sticky; top: 130px; align-self: start; }
.faq-heading h2 { margin: 18px 0 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(48px, 5vw, 78px); line-height: 1; letter-spacing: -.04em; font-weight: 400; }
.accordion details { border-top: 1px solid rgba(61,17,24,.24); }
.accordion details:last-child { border-bottom: 1px solid rgba(61,17,24,.24); }
.accordion summary { cursor: pointer; list-style: none; position: relative; padding: 30px 58px 30px 0; font-size: clamp(20px, 2vw, 29px); line-height: 1.25; letter-spacing: -.025em; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span, .accordion summary span::after { position: absolute; right: 4px; top: 50%; width: 18px; height: 1px; background: var(--ink); content: ""; transition: transform .2s ease; }
.accordion summary span::after { right: 0; top: 0; transform: rotate(90deg); }
.accordion details[open] summary span::after { transform: rotate(0); }
.accordion details p { max-width: 690px; margin: -4px 0 34px; color: rgba(61,17,24,.72); font-size: 17px; }

.contact { min-height: 80vh; display: grid; grid-template-columns: 58% 42%; align-items: stretch; }
.contact-copy { align-self: center; padding: 110px var(--pad); }
.contact-copy h2 { max-width: 9ch; margin: 26px 0 34px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(52px, 7.2vw, 105px); line-height: .97; letter-spacing: -.04em; font-weight: 400; }
.contact-copy > p:not(.kicker) { max-width: 620px; color: var(--cream); font-size: 19px; }
.contact-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.phone { color: var(--paper); text-decoration: none; font-size: 17px; }
.portrait { margin: 0; min-height: 660px; position: relative; overflow: hidden; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 33%; filter: grayscale(1) contrast(1.08); transform: scale(1.13); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(61,17,24,0) 55%, rgba(61,17,24,.86)); }
.portrait figcaption { position: absolute; z-index: 2; left: 34px; bottom: 30px; display: grid; color: var(--paper); }
.portrait figcaption strong { font-size: 20px; }
.portrait figcaption span { color: var(--cream); font-size: 14px; }
.portrait figcaption a { margin-top: 8px; font-size: 14px; color: var(--paper); }

footer { background: var(--paper); color: var(--muted); border-top: 1px solid rgba(61,17,24,.14); padding: 50px var(--pad); display: grid; grid-template-columns: 1fr auto; gap: 25px 50px; align-items: start; font-size: 12px; }
footer > img { width: 120px; }
footer div { display: flex; gap: 24px; color: var(--ink); }
footer p { grid-column: 1 / -1; max-width: 850px; margin: 20px 0 0; }

/* Impressum und Datenschutzerklärung: eine ruhige Textspalte auf Alabaster unter deckendem Kopf. */
.legal { padding: 170px var(--pad) 140px; }
.legal article { max-width: 760px; margin: 0 auto; }
/* „Datenschutzerklärung" ist 9,2 Schriftgrade breit; die Größe hält das Wort in einer Zeile. */
.legal h1 { margin: 22px 0 64px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(30px, calc((100vw - 40px) / 10), 72px); line-height: 1; letter-spacing: -.04em; font-weight: 400; overflow-wrap: break-word; }
.legal-section { margin: 72px 0 8px; padding-top: 40px; border-top: 1px solid rgba(61,17,24,.24); font-family: "Playfair Display", Georgia, serif; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 400; }
.legal-block { padding: 26px 0; border-top: 1px solid rgba(61,17,24,.14); }
.legal-section + .legal-block { border-top: 0; }
.legal-block h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
.legal-block p { margin: 0; color: rgba(61,17,24,.82); font-size: 17px; overflow-wrap: anywhere; }
.legal-block a { color: var(--wine); }

/* Einwilligungsbanner (lib/funnel/consent.ts) in TAO-Farben. Erscheint nur mit GTM-Container. */
body .fn-cc-box { background: var(--paper); color: var(--ink); border: 1px solid rgba(61,17,24,.24); border-radius: 0; box-shadow: none; font-family: inherit; }
body .fn-cc-wahl input { accent-color: var(--wine); }
body .fn-cc-knoepfe button { border: 1px solid rgba(61,17,24,.32); border-radius: 999px; background: var(--paper); color: var(--ink); }
body .fn-cc-knoepfe .fn-cc-primaer { background: var(--wine); border-color: var(--wine); color: var(--paper); }
body .fn-cc-oeffnen { border: 1px solid rgba(61,17,24,.24); border-radius: 999px; background: var(--paper); color: var(--ink); }

@media (max-width: 900px) {
  .site-header, .site-header.is-scrolled { height: 86px; grid-template-columns: 1fr auto auto; column-gap: 18px; }
  .site-header nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 2px; padding: 14px var(--pad) 18px; background: var(--ink); border-bottom: 1px solid rgba(247,242,236,.12); font-size: 16px; }
  .js .site-header nav { display: none; }
  .js .site-header.is-open nav { display: grid; }
  .site-header.is-open nav a { min-height: 44px; display: flex; align-items: center; opacity: 1; }
  .js .nav-toggle { width: 44px; height: 44px; padding: 0; display: grid; align-content: center; justify-items: center; gap: 6px; border: 1px solid rgba(247,242,236,.42); border-radius: 50%; background: transparent; color: var(--paper); }
  .nav-toggle span:not(.sr-only) { width: 16px; height: 1px; background: currentColor; transition: transform .2s var(--ease); }
  .site-header.is-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; align-items: end; padding-top: 100px; padding-bottom: 72px; min-height: 780px; }
  .hero-copy { align-self: end; }
  .hero h1 { font-size: clamp(42px, 13.5vw, 82px); max-width: 10ch; }
  .hero-stage { inset: 0 0 45% 20%; opacity: .78; }
  .hero-stage::after { background: linear-gradient(180deg, rgba(61,17,24,.16), var(--ink) 93%); }
  .hero-caption { display: none; }
  .scroll-cue { display: none; }
  .thesis { padding-top: 88px; padding-bottom: 92px; }
  .section-number { top: 92px; }
  .display { margin-bottom: 70px; }
  .thesis-grid { grid-template-columns: 1fr; margin-left: 0; }
  .sequence { grid-template-columns: 1fr; min-height: auto; padding-top: 88px; }
  .sequence-sticky { position: relative; height: auto; padding: 0; }
  .sequence-counter { margin-top: 40px; }
  .sequence-steps { padding: 68px 0 20px; }
  .sequence-step { min-height: auto; margin-bottom: 78px; }
  .sequence-step > span { color: var(--cream); }
  .sequence-step h3 { color: var(--paper); }
  .advantage { grid-template-columns: 1fr; padding-top: 92px; padding-bottom: 92px; }
  .advantage-intro { position: relative; top: auto; margin-bottom: 50px; }
  .advantage-intro h2 { max-width: 13ch; }
  .project { grid-template-columns: 1fr; }
  .project-visual { min-height: 58vh; }
  .fit { padding-top: 92px; padding-bottom: 92px; }
  .fit > h2 { margin-bottom: 70px; }
  .faq { grid-template-columns: 1fr; padding-top: 92px; padding-bottom: 92px; }
  .faq-heading { position: relative; top: auto; margin-bottom: 50px; }
  .contact { grid-template-columns: 1fr; }
  .portrait { min-height: 70vh; min-width: 0; order: -1; }
  .legal { padding-top: 140px; padding-bottom: 100px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand { width: 110px; }
  .header-cta { font-size: 13px; }
  .hero { min-height: 720px; }
  .hero-stage { inset: 0 0 48% 6%; }
  .hero h1 { margin-top: 16px; margin-bottom: 22px; }
  .hero-lead { font-size: 18px; }
  .actions { align-items: stretch; flex-direction: column; gap: 20px; }
  .button { width: 100%; }
  .text-link { align-self: center; }
  /* Schriftgrößen der Vorlage bei 390 px; darunter schrumpfen sie mit, statt über den Rand zu laufen. */
  .display { font-size: min(45px, 12.5vw); }
  .large-copy { font-size: 28px; }
  .sequence-step h3 { font-size: min(57px, 14.6vw); }
  .advantage-list article { grid-template-columns: 44px 1fr; }
  .project-visual { min-height: 400px; }
  .fit > h2 { font-size: min(46px, 11.8vw); }
  .fit-lines div { grid-template-columns: 44px 1fr; }
  .fit-lines p { font-size: 21px; }
  .faq-heading h2 { font-size: min(48px, 13vw); }
  .contact-copy { padding-top: 95px; padding-bottom: 95px; }
  .contact-copy h2 { font-size: min(51px, 13vw); }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .phone { text-align: center; }
  footer { grid-template-columns: 1fr; }
  footer div { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .button:hover, .project:hover .project-visual img { transform: none; }
}
