/* egp – belea architekten gmbh
   Gestaltung: Bauhaus-Raster, Grundfarben, geometrische Grotesk (Jost, lokal, SIL OFL) */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f3efe6;
  --paper-2: #e9e3d6;
  --ink: #141414;
  --ink-2: #4a4740;
  --red: #c8332b;
  --blue: #1f4a96;
  --yellow: #efb715;
  --line: 2px solid var(--ink);
  --wrap: min(1240px, 100% - 2 * var(--gut));
  --gut: clamp(1.25rem, 4vw, 3rem);
  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--line);
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 2.4rem; height: 2.4rem; flex: none; }
.brand small { font-weight: 400; font-size: .8rem; letter-spacing: .02em; color: var(--ink-2); display: block; line-height: 1; margin-top: .1rem; }
.nav { display: flex; gap: clamp(.9rem, 2.5vw, 2.25rem); list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; letter-spacing: .04em; padding: .4rem 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--red); color: var(--ink); }
@media (max-width: 640px) {
  .top .wrap { flex-direction: column; align-items: flex-start; gap: .25rem; padding-block: .6rem; }
  .brand small { display: none; }
  .nav { width: 100%; }
}

/* ---------- Bühne ---------- */
.hero { border-bottom: var(--line); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut);
  align-items: end; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 5rem);
}
.hero-text { grid-column: 1 / span 7; }
.hero-art { grid-column: 8 / span 5; align-self: center; }
.hero h1 {
  font-size: clamp(6rem, 21vw, 17rem); font-weight: 700; letter-spacing: -0.065em;
  line-height: .8; margin-left: -0.05em;
}
.hero h1 span { color: var(--red); }
.hero .firm { font-size: clamp(1.35rem, 1rem + 1.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.01em; margin: clamp(1.75rem, 4vw, 3rem) 0 0; }
.hero .lead { max-width: 34rem; color: var(--ink-2); margin: 1.5rem 0 0; font-size: 1.1em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.4rem; border: var(--line); background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 600; letter-spacing: .03em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--paper); transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--red); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--ink); box-shadow: 3px 3px 0 var(--blue); }

.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art .s { transform-box: fill-box; transform-origin: center; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-art .s2 { animation-delay: .12s; }
.hero-art .s3 { animation-delay: .24s; }
.hero-art .s4 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero-text, .hero-art { grid-column: 1 / -1; }
  .hero-art { order: -1; max-width: 22rem; }
}

/* ---------- Zahlenleiste ---------- */
.facts { border-bottom: var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 1.5rem var(--gut) 1.6rem 0; border-right: var(--line); }
.facts li + li { padding-left: var(--gut); }
.facts li:last-child { border-right: 0; }
.facts b { display: block; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.facts span { font-size: .9rem; letter-spacing: .03em; color: var(--ink-2); }
@media (max-width: 760px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li { border-bottom: var(--line); padding-left: 0 !important; padding-right: 1rem; }
  .facts li:nth-child(2n) { border-right: 0; padding-left: 1rem !important; }
  .facts li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); border-bottom: var(--line); }
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); margin-bottom: clamp(2.5rem, 5vw, 4rem); align-items: end; }
.section-head .no { grid-column: 1 / -1; margin-bottom: -.5rem; font-size: .9rem; font-weight: 600; letter-spacing: .12em; display: flex; align-items: center; gap: .6rem; }
.section-head .no::before { content: ""; width: .9rem; height: .9rem; background: var(--c, var(--red)); flex: none; }
.section-head .no.circle::before { border-radius: 50%; }
.section-head .no.tri::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.section-head h2 { grid-column: 1 / span 10; font-size: clamp(2.4rem, 1.5rem + 4vw, 5rem); letter-spacing: -0.045em; }
.section-head p { grid-column: 1 / span 7; margin: 0; color: var(--ink-2); font-size: 1.1em; }
@media (max-width: 760px) {
  .section-head .no, .section-head h2, .section-head p { grid-column: 1 / -1; }
}

.dark { background: var(--ink); color: var(--paper); }
.dark .section-head p, .dark .muted { color: #bdb7aa; }
.dark a:hover { color: var(--yellow); }

/* Büro */
.office { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); align-items: start; }
.office-text { grid-column: 1 / span 6; }
.office-text p:first-child { margin-top: 0; font-size: 1.2em; line-height: 1.5; }
.office-figure { grid-column: 8 / span 5; margin: 0; }
.office-figure .ph { position: relative; }
.office-figure .ph::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; background: var(--blue); z-index: 0;
}
.office-figure .ph::after {
  content: ""; position: absolute; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--yellow);
  top: -2.25rem; left: -2.25rem; z-index: 2;
}
.office-figure img { position: relative; z-index: 1; filter: grayscale(1) contrast(1.05); aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; width: 100%; }
.office-figure figcaption { position: relative; z-index: 1; margin-top: 2rem; font-size: .9rem; color: var(--ink-2); }
.office-figure figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }

.team { list-style: none; padding: 0; margin: 2rem 0 0; border-top: var(--line); }
.team li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--ink); }
.team li i { width: 1.4rem; height: 1.4rem; margin-top: .25rem; display: block; }
@media (max-width: 860px) {
  .office-text { grid-column: 1 / -1; }
  .office-figure { grid-column: 1 / -1; max-width: 22rem; margin: 2rem 0 1.5rem 1.5rem; }
}

/* Leistungen: 9 Leistungsphasen */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); border: var(--line); }
.phases li { padding: 1.1rem .9rem 1.4rem; border-right: var(--line); min-height: 13rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); transition: background .2s ease; }
.phases li:last-child { border-right: 0; }
.phases b { font-size: clamp(2.2rem, 1.5rem + 2vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.phases span { font-size: .92rem; line-height: 1.3; font-weight: 500; hyphens: auto; }
.phases li.focus { background: var(--yellow); }
.phases li:hover { background: var(--ink); color: var(--paper); }
.phase-legend { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 1rem; font-size: .9rem; color: var(--ink-2); }
.phase-legend i { display: inline-block; width: 1rem; height: 1rem; border: 2px solid var(--ink); vertical-align: -2px; margin-right: .4rem; }
.phase-legend .y { background: var(--yellow); }
@media (max-width: 980px) {
  .phases { grid-template-columns: repeat(3, 1fr); }
  .phases li { min-height: 9rem; border-bottom: var(--line); }
  .phases li:nth-child(3n) { border-right: 0; }
  .phases li:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .phases { grid-template-columns: 1fr 1fr; }
  .phases li { border-right: var(--line) !important; border-bottom: var(--line) !important; min-height: 7.5rem; }
  .phases li:nth-child(2n) { border-right: 0 !important; }
  .phases li:last-child { border-bottom: 0 !important; grid-column: 1 / -1; }
}

.specials { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); margin-top: clamp(3rem, 6vw, 5rem); }
.special { border-top: 6px solid var(--c); padding-top: 1.1rem; }
.special h3 { font-size: 1.3rem; margin-bottom: .5rem; letter-spacing: -0.01em; }
.special p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 980px) { .specials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .specials { grid-template-columns: 1fr; } }

/* Projekte */
.featured { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); margin-bottom: clamp(3rem, 7vw, 5.5rem); align-items: center; }
.featured figure { grid-column: 1 / span 5; margin: 0; position: relative; }
.featured figure::before { content: ""; position: absolute; inset: -1.25rem auto auto -1.25rem; width: 55%; height: 55%; background: var(--red); z-index: 0; }
.featured figure a { display: block; position: relative; z-index: 1; border: var(--line); background: #fff; }
.featured figure img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; width: 100%; }
.featured figcaption { margin-top: .75rem; font-size: .85rem; color: var(--ink-2); }
.featured .txt { grid-column: 7 / span 6; }
.featured .kicker { font-size: .85rem; letter-spacing: .14em; font-weight: 600; text-transform: uppercase; color: var(--red); }
.featured h3 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); letter-spacing: -0.035em; margin: .5rem 0 1rem; }
.featured dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; margin: 1.5rem 0 0; padding-top: 1rem; border-top: var(--line); }
.featured dt { font-weight: 600; }
.featured dd { margin: 0; }
@media (max-width: 860px) {
  .featured figure, .featured .txt { grid-column: 1 / -1; }
  .featured figure { margin: 1.25rem 0 0 1.25rem; }
}

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button {
  font: inherit; font-size: .9rem; font-weight: 500; letter-spacing: .03em;
  padding: .5rem 1rem; border: var(--line); background: transparent; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
}
.filters button i { width: .7rem; height: .7rem; background: var(--c, var(--ink)); display: inline-block; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters button:hover { box-shadow: 3px 3px 0 var(--c, var(--red)); }

.projects { list-style: none; margin: 0; padding: 0; border-top: var(--line); }
.project {
  display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) 13rem; gap: 1.25rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--ink); align-items: center;
}
.project[hidden] { display: none; }
.project .mark { width: 1rem; height: 1rem; background: var(--c); }
.project .mark.circle { border-radius: 50%; }
.project .mark.tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.project h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.project p { margin: .15rem 0 0; color: var(--ink-2); font-size: .93rem; line-height: 1.45; }
.project .tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid currentColor; padding: 0 .35rem; margin-left: .4rem; vertical-align: 2px; color: var(--ink-2); }
.lp { display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; }
.lp-bar { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; width: 100%; max-width: 12rem; }
.lp-bar i { aspect-ratio: 1; border: 1.5px solid var(--ink); }
.lp-bar i.on { background: var(--ink); }
.lp small { font-size: .8rem; letter-spacing: .05em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 680px) {
  .project { grid-template-columns: 1.2rem minmax(0, 1fr); }
  .lp { grid-column: 2; align-items: flex-start; }
}

.lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(3rem, 6vw, 5rem); }
.lists h3 { font-size: 1.5rem; padding-bottom: .75rem; border-bottom: var(--line); margin-bottom: .25rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.lists h3 small { font-size: .85rem; font-weight: 500; color: var(--ink-2); letter-spacing: .03em; }
.lists ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.lists li { padding: .55rem 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); break-inside: avoid; font-size: .97rem; }
@media (max-width: 860px) { .lists { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .lists ul { columns: 1; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); align-items: start; }
.contact-main { grid-column: 1 / span 8; grid-row: 1; }
.contact-main .big { font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; display: inline-block; text-decoration: none; border-bottom: 4px solid var(--yellow); padding-bottom: .1rem; word-break: break-word; }
.contact-main .big:hover { color: var(--yellow); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.contact-grid h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #bdb7aa; margin-bottom: .6rem; }
.contact-grid p { margin: 0; }
.contact-grid a { text-decoration: none; }
.contact-art { grid-column: 10 / span 3; grid-row: 1; }
.contact-art svg { width: 100%; height: auto; }
@media (max-width: 860px) {
  .contact-main { grid-column: 1 / -1; }
  .contact-main { grid-row: 2; }
  .contact-art { grid-column: 1 / -1; max-width: 12rem; grid-row: 1; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Fußzeile */
.foot { background: var(--ink); color: #bdb7aa; border-top: 1px solid #3a3833; font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; }
.foot nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.stripe { height: 10px; display: grid; grid-template-columns: 3fr 1fr 2fr 1fr; }
.stripe i:nth-child(1) { background: var(--red); }
.stripe i:nth-child(2) { background: var(--yellow); }
.stripe i:nth-child(3) { background: var(--blue); }
.stripe i:nth-child(4) { background: var(--paper); }

/* Rechtstexte */
.legal { padding-block: clamp(3rem, 7vw, 6rem); }
.legal .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); }
.legal header { grid-column: 1 / -1; margin-bottom: 1rem; }
.legal header h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.5rem); letter-spacing: -0.05em; }
.legal .body { grid-column: 3 / span 8; max-width: 44rem; }
.legal h2 { font-size: 1.45rem; margin: 2.75rem 0 .75rem; padding-top: 1rem; border-top: var(--line); letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
.legal p, .legal li { color: #2b2925; }
.legal address { font-style: normal; }
@media (max-width: 860px) { .legal .body { grid-column: 1 / -1; } }

@media print {
  .top, .filters, .hero-art, .contact-art, .stripe { display: none !important; }
  body { background: #fff; }
  .dark { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
