/* ============================================
   PROJEKT55 BAUMANAGEMENT — Bone + Bronze + Charcoal
   Typografisch, asymmetrisch, nummerierte Phasen
   Fonts: Fraunces (Display) + Inter (Body)
   ============================================ */

:root {
    --bg:           #EFEAE2;
    --bg-alt:       #FBF9F5;
    --bg-dark:      #26241F;
    --bg-deep:      #1B1916;
    --surface:      #E3DCCF;
    --ink:          #26241F;
    --ink-soft:     #45413A;
    --ink-muted:    #837D72;
    --ink-light:    #B5AEA1;
    --line:         #D8D1C3;
    --line-soft:    #E5DFD3;
    --accent:       #8A6A4F;
    --accent-deep:  #6E523C;
    --accent-light: #C2A78C;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Inter', sans-serif;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--ink);
}
h1 { font-size: clamp(2.9rem, 7.5vw, 6.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); }

/* Italic-em-Safety: Fraunces hat echtes Italic */
em, .italic {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    color: var(--accent-deep);
}
h1 em, h2 em, h3 em, h4 em {
    display: inline-block;
    padding-right: 0.08em;
}

body { background: var(--bg); }
section { padding: 7.5rem 0; }

.label {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1.4rem; display: block;
}

/* === NAV === */
.nav { background: transparent; padding: 1.6rem 0; }
.nav.scrolled {
    background: rgba(239, 234, 226, 0.96);
    border-bottom-color: var(--line);
}
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav-logo .accent { color: var(--accent); }
.nav-links a { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-cta { border-radius: 0 !important; }

/* === HERO — Bone, asymmetrisch, riesige 55-Kontur === */
.hero {
    background: var(--bg);
    color: var(--ink);
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    padding-top: 7rem;
    padding-bottom: 2.5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-bg, .hero-bg::after { display: none; }
.hero::after {
    content: '55';
    position: absolute;
    right: -2rem; top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(16rem, 38vw, 38rem);
    font-weight: 700;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(138, 106, 79, 0.3);
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 1.8s ease 0.8s both;
}
.hero-inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 0;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 1rem;
    font-family: var(--font-body);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--ink-muted);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInLeft 0.9s cubic-bezier(0.22,0.61,0.36,1) 0.2s both;
}
.hero-eyebrow::before {
    content: ''; width: 44px; height: 2px; background: var(--accent);
}
.hero h1 {
    color: var(--ink);
    max-width: 14ch;
    margin-bottom: 2rem;
}
.hero h1 .h1-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 1.1s cubic-bezier(0.22,0.61,0.36,1) both;
}
.hero h1 .h1-line:nth-child(1) { animation-delay: 0.3s; }
.hero h1 .h1-line:nth-child(2) { animation-delay: 0.5s; }
.hero h1 .h1-line:nth-child(3) { animation-delay: 0.7s; }
.hero h1 .h1-brand { font-weight: 700; }
.hero h1 .h1-brand .num { color: var(--accent); }
.hero .lead {
    color: var(--ink-soft);
    font-size: 1.12rem;
    max-width: 52ch;
    margin-bottom: 2.75rem;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.22,0.61,0.36,1) 1s both;
}
.hero-actions {
    display: flex; align-items: center; gap: 2.25rem; flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.22,0.61,0.36,1) 1.3s both;
}
.hero-actions .btn {
    background: var(--ink); color: var(--bg-alt);
    border-radius: 0;
    padding: 1.05rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
}
.hero-actions .btn:hover { background: var(--accent-deep); transform: none; }
.hero-actions .secondary {
    font-family: var(--font-body);
    font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
    font-weight: 600; color: var(--ink-soft);
    border-bottom: 1px solid var(--ink-soft); padding-bottom: 0.3rem;
}
.hero-actions .secondary:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* === PHASEN-BAND — statisch: 01—02—03—04—05 mit Labels === */
.phasen-band {
    background: var(--bg-dark);
    color: var(--bg);
    padding: 2rem 0;
}
.pb-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.25rem;
}
.pb-item {
    display: flex; align-items: baseline; gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.74rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(239, 234, 226, 0.8);
    white-space: nowrap;
}
.pb-item .n {
    font-family: var(--font-display);
    font-size: 1.45rem; font-weight: 700;
    color: var(--accent-light);
}
.pb-rule {
    flex: 1 1 auto;
    height: 1px;
    background: rgba(239, 234, 226, 0.25);
    min-width: 16px;
}

/* === POSITION — Bauherrenvertretung, asymmetrisch === */
.position-section { background: var(--bg-alt); }
.position-grid {
    display: grid; grid-template-columns: 1.25fr 1fr;
    gap: 5.5rem; align-items: start;
}
.position-content h2 { margin-bottom: 1.75rem; max-width: 20ch; }
.position-content p { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.25rem; max-width: 58ch; }
.position-roles {
    border-top: 1px solid var(--ink);
    margin-top: 1rem;
}
.position-roles li {
    display: grid; grid-template-columns: 56px 1fr;
    gap: 1.5rem; align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    font-weight: 600;
    color: var(--ink);
}
.position-roles li .idx {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.22em; color: var(--accent);
}

/* === PHASEN — nummerierte Leistungsliste === */
.phasen-section { background: var(--bg); }
.phasen-head {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: end;
    margin-bottom: 3.5rem;
}
.phasen-head p { font-size: 1.05rem; color: var(--ink-soft); }
/* Signature: VERTIKALE Timeline mit durchgehender Linie + Knoten */
.phasen-list {
    position: relative;
    max-width: 880px;
}
.phasen-list::before {
    content: '';
    position: absolute;
    left: 132px; top: 0.85rem; bottom: 0.85rem;
    width: 1px;
    background: var(--line);
}
.phase-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0 4.25rem;
    padding: 0 0 3.75rem;
    align-items: start;
    position: relative;
}
.phase-item:last-child { padding-bottom: 0.5rem; }
.phase-item::before {
    content: '';
    position: absolute;
    left: 127px; top: 0.6rem;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    z-index: 1;
}
.phase-item .num {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 0.85;
    letter-spacing: -0.02em;
    text-align: right;
}
.phase-item h3 { font-weight: 600; line-height: 1.15; grid-column: 2; }
.phase-item p { grid-column: 2; margin-top: 0.9rem; }
.phase-item h3 small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 0.6rem;
}
.phase-item p { font-size: 0.98rem; line-height: 1.65; color: var(--ink-soft); max-width: 58ch; }

/* === PROJEKTE — Surface (hell, damit der dunkle Kontakt-Schluss wirkt) === */
.projekte-section {
    background: var(--surface);
    color: var(--ink);
}
.projekte-head { max-width: 760px; margin-bottom: 4rem; }
.projekte-head h2 { color: var(--ink); }
.projekte-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 1.25rem; }
.projekte-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
}
.projekt-cell {
    padding: 2.75rem 2.5rem 3rem 0;
    border-bottom: 1px solid var(--line);
}
.projekt-cell:not(:last-child) { border-right: 1px solid var(--line); padding-right: 2.75rem; }
.projekt-cell:not(:first-child) { padding-left: 2.75rem; }
.projekt-cell .p-num {
    font-family: var(--font-display);
    font-size: 0.95rem; font-weight: 700;
    color: var(--accent);
    display: block; margin-bottom: 1.5rem;
    letter-spacing: 0.06em;
}
.projekt-cell h3 { color: var(--ink); margin-bottom: 0.9rem; }
.projekt-cell p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }
.projekte-section .placeholder-banner {
    background: var(--bg-alt);
    border-radius: 0;
    margin-top: 3rem;
}

/* === KONTAKT — dunkle Vollbreite-Section mit XXL-Telefonnummer === */
.contact-section {
    background: var(--bg-deep);
    color: var(--bg);
    padding: 8.5rem 0;
}
.contact-inner-p55 { text-align: center; }
.contact-section .label { color: var(--accent-light); }
.contact-section h2 { color: var(--bg); max-width: 22ch; margin: 0 auto 1.5rem; }
.contact-section h2 em { color: var(--accent-light); }
.contact-lead {
    font-size: 1.05rem; color: rgba(239, 234, 226, 0.75);
    max-width: 52ch; margin: 0 auto 3rem;
}
.xxl-phone {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 8.5vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--bg);
    margin: 0 auto 0.75rem;
    font-variant-numeric: tabular-nums;
    transition: color 250ms ease;
}
.xxl-phone:hover { color: var(--accent-light); }
.contact-meta {
    display: flex; align-items: center; justify-content: center;
    gap: 1.25rem; flex-wrap: wrap;
    margin: 2rem auto 2.75rem;
    font-family: var(--font-body); font-size: 0.92rem;
    color: rgba(239, 234, 226, 0.7);
}
.contact-meta a:hover { color: var(--accent-light); }
.contact-meta .cm-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.btn-row { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.btn-mail {
    border: 1px solid rgba(239, 234, 226, 0.5); color: var(--bg);
    padding: 1.1rem 2.6rem;
    font-family: var(--font-body);
    font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
    transition: all 250ms;
}
.btn-mail:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.contact-section .placeholder-banner {
    background: rgba(239, 234, 226, 0.07);
    color: rgba(239, 234, 226, 0.85);
    border-left-color: var(--accent-light);
    max-width: 640px;
    margin: 3.25rem auto 0;
    text-align: left;
}
.contact-section .placeholder-banner strong { color: var(--accent-light); }

/* === FOOTER === */
.footer { background: var(--bg); color: var(--ink-soft); border-top: 1px solid var(--line); padding: 4.5rem 0 2rem; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr; padding-bottom: 2.5rem; }
.footer h4 { color: var(--ink); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.footer h4 .accent { color: var(--accent); }
.footer h5 { color: var(--ink-muted); letter-spacing: 0.26em; }
.footer p { color: var(--ink-muted); }
.footer ul li { color: var(--ink-soft); font-size: 0.92rem; padding: 0.35rem 0; }
.footer ul a { color: var(--ink-soft); }
.footer ul a:hover { color: var(--accent-deep); }
.footer-bottom { border-top: 1px solid var(--line); color: var(--ink-muted); }
.footer-bottom a { color: var(--ink-muted); }
.footer-bottom a:hover { color: var(--accent-deep); }

/* === PLACEHOLDER === */
.placeholder-banner {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0;
    margin-top: 2.5rem;
}
.placeholder-banner strong { color: var(--accent-deep); }

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms cubic-bezier(0.22,0.61,0.36,1), transform 900ms cubic-bezier(0.22,0.61,0.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* === RESPONSIVE === */
/* Kurze Desktop-Viewports (z.B. 1280×800): Hero kompakter */
@media (min-width: 981px) and (max-height: 860px) {
    .hero { padding-top: 6.5rem; padding-bottom: 2rem; }
    .hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 1.5rem; }
    .hero-eyebrow { margin-bottom: 1.6rem; }
    .hero .lead { font-size: 1.02rem; margin-bottom: 2rem; }
    .hero::after { font-size: clamp(13rem, 30vw, 26rem); }
}
@media (max-width: 1180px) {
    .position-grid { gap: 3.5rem; }
}
@media (max-width: 980px) {
    section { padding: 5rem 0; }
    .hero { height: auto; max-height: none; min-height: 0; padding-top: 6.5rem; padding-bottom: 4rem; }
    .hero::after { font-size: 13rem; right: -1.5rem; top: auto; bottom: -2rem; transform: none; }
    .pb-inner { flex-wrap: wrap; justify-content: flex-start; gap: 1rem 1.75rem; }
    .pb-rule { display: none; }
    .position-grid { grid-template-columns: 1fr; gap: 3rem; }
    .phasen-head { grid-template-columns: 1fr; gap: 1.5rem; }
    .phasen-list::before { left: 5px; top: 0.4rem; }
    .phase-item { grid-template-columns: 1fr; gap: 0; padding-left: 2.25rem; padding-bottom: 3rem; }
    .phase-item::before { left: 0; top: 0.4rem; border-color: var(--bg); }
    .phase-item .num { text-align: left; font-size: 2rem; margin-bottom: 0.6rem; line-height: 1; }
    .phase-item h3, .phase-item p { grid-column: 1; }
    .projekte-grid { grid-template-columns: 1fr; }
    .projekt-cell { border-right: none !important; padding: 2.25rem 0 !important; }
    .contact-section { padding: 6rem 0; }
}
@media (max-width: 560px) {
    section { padding: 4.5rem 0; }
    .hero { padding-top: 5.5rem; padding-bottom: 3.5rem; }
    .hero h1 { font-size: clamp(2.3rem, 10vw, 3.1rem); }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
    .pb-item { font-size: 0.68rem; }
    .pb-item .n { font-size: 1.15rem; }
    .xxl-phone { font-size: clamp(2.2rem, 11.5vw, 2.9rem); }
    .contact-meta { flex-direction: column; gap: 0.6rem; }
    .contact-meta .cm-sep { display: none; }
    .btn-row { flex-direction: column; align-items: center; }
    .btn-mail { width: 100%; max-width: 320px; text-align: center; }
}
