/* ==========================================================================
   Diestel + Partner – "Dachlinie"
   The two roof lines of the logo mark as a quiet recurring motif (labels,
   section accents, image frames), condensed headings like the logo, logo
   blue as accent, graphite, cool light grey and green for energy
   consulting. Generous white space, large images. Fonts self-hosted.
   ========================================================================== */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  --graphite: #2a302f;
  --graphite-2: #1f2423;
  --paper: #f3f4f7;
  --paper-2: #e4e6ee;
  --white: #ffffff;
  --text: #2a302f;
  --muted: #5f5f5f;
  --logo-grey: #8a8a8a;
  --accent: #0d0d8f;        /* logo blue – text, buttons, accents */
  --accent-light: #aab3ff;  /* logo blue lightened for dark backgrounds */
  --green: #3d7034;         /* energy consulting (5.9:1 on white) */
  --green-light: #8fc27f;
  --green-bg: #e9f1e4;
  --line: #d6d9e3;

  --wrap: 1200px;
  --radius: 4px;
  --shadow: 0 26px 50px -30px rgba(31, 36, 35, .45);
  --font: "Barlow", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Barlow", Arial, sans-serif;
  --roof: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22'%3E%3Cpath d='M2 20 22 4l20 16' fill='none' stroke='%230d0d8f' stroke-width='3.2'/%3E%3Cpath d='M12 20 22 12l10 8' fill='none' stroke='%230d0d8f' stroke-width='3.2'/%3E%3C/svg%3E");
  --roof-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22'%3E%3Cpath d='M2 20 22 4l20 16' fill='none' stroke='%23aab3ff' stroke-width='3.2'/%3E%3Cpath d='M12 20 22 12l10 8' fill='none' stroke='%23aab3ff' stroke-width='3.2'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.65; color: var(--text); background: var(--white); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--graphite); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; color: var(--graphite); margin: 0 0 .5em; letter-spacing: 0; }
h1 { text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; }
h1 span, h2 span { color: var(--accent); }
p { margin: 0 0 1em; }
@media (max-width: 600px) { h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 800px) { .wrap { padding: 0 40px; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--graphite); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.small { font-size: .9rem; color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--muted); }

/* Kicker: label with the roof lines of the logo mark */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 30px; height: 15px; flex: none; background: var(--roof) center / contain no-repeat; }
.kicker-light::before { background-image: var(--roof-light); }
.section-green .kicker-light::before, .cta-band .kicker-light::before { filter: brightness(0) invert(1); }
.kicker-light { color: var(--accent-light); }
.section-head { max-width: 820px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: .35em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 28px; border: 2px solid transparent; border-radius: var(--radius); font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--graphite); color: #fff; }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-ghost:hover { background: var(--graphite); color: #fff; }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-line:hover { background: #fff; color: var(--graphite); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.more { font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 12px; }
.more::after { content: " →"; }

/* Logo (text, like the original logo) */
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 50px; height: auto; flex: none; }
.logo-text { display: flex; flex-direction: column; font-family: var(--display); text-transform: uppercase; color: var(--logo-grey); line-height: 1; }
.logo-name { font-size: 1.75rem; font-weight: 500; letter-spacing: .02em; color: #6f6f6f; }
.logo-plus { color: inherit; }
.logo-sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: .92rem; letter-spacing: .2em; color: #6f6f6f; }
.logo-dot { width: 5px; height: 5px; background: currentColor; display: inline-block; }
.brand-light .logo-name, .brand-light .logo-sub { color: #d6d6d6; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 14px; font-weight: 600; font-size: 1rem; color: var(--graphite); text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-cta { margin-left: 8px; background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 10px 20px; }
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--accent); }
.nav-toggle { display: none; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 11px; width: 26px; height: 2px; background: var(--graphite); transition: transform .2s; }
.bars { top: 23px; }
.bars::before, .bars::after { content: ""; left: 0; }
.bars::before { top: -8px; }
.bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 20px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { margin: 14px 0 0; text-align: center; border: 0; }
}
@media (max-width: 380px) { .logo-name { font-size: 1.4rem; } .logo-sub { font-size: .74rem; } .logo-mark { width: 42px; } }

.crumbs ol { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { position: relative; background: var(--graphite); }
.hero-media img { width: 100%; height: min(86vh, 820px); min-height: 520px; object-fit: cover; object-position: 50% 45%; }
.hero-inner { position: absolute; left: 0; right: 0; bottom: clamp(24px, 6vw, 72px); }
.hero-card { position: relative; max-width: 620px; background: rgba(31, 36, 35, .9); color: #e3e7e6; padding: clamp(30px, 4vw, 52px); box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; right: 26px; top: 26px; width: 84px; height: 42px; background: var(--roof-light) center / contain no-repeat; opacity: .9; }
.hero-card .kicker { color: var(--accent-light); }
.hero-card .kicker::before { background-image: var(--roof-light); }
.hero-card h1 { color: #fff; }
.hero-card h1 span { color: var(--accent-light); }
.hero-card .lead { color: #cfd5d4; }
.hero-card h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
@media (max-width: 760px) {
  .hero-media img { height: min(60vh, 460px); min-height: 320px; }
  .hero-inner { position: relative; bottom: auto; }
  .hero-card { margin: -70px 0 0; }
  .hero-card::after { width: 56px; height: 28px; right: 18px; top: 18px; }
  .hero { background: var(--white); padding-bottom: 8px; }
}

/* Page hero */
.page-hero { background: var(--paper); padding: clamp(36px, 6vw, 72px) 0; }
.page-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.page-hero-media { margin: 0; position: relative; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.page-hero-media::after { content: ""; position: absolute; right: -18px; top: -30px; width: 120px; height: 60px; background: var(--roof) center / contain no-repeat; }
.page-hero-plain h1 { max-width: 14ch; }

/* Sections */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--graphite); color: #dfe3e2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #c8cecd; }
.section-green { background: var(--green); color: #eef5ea; }
.section-green h2, .section-green h3 { color: #fff; }
.section-green .lead { color: #e2eedb; }
.section-green .kicker-light { color: #fff; }
.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split-top { align-items: start; } }

/* Two paths */
.two-paths { display: grid; gap: 22px; }
@media (min-width: 800px) { .two-paths { grid-template-columns: 1fr 1fr; } }
.path-card { position: relative; background: var(--paper); padding: 36px 32px 30px; border-left: 4px solid var(--accent); }
.path-no { position: absolute; right: 24px; top: 14px; font-family: var(--display); font-size: 3.4rem; line-height: 1; color: #c9cee0; }
.path-card h3 { padding-right: 60px; }
.path-card p { margin: 0; color: var(--muted); }
.intro-text { max-width: 860px; margin: 36px 0 0; font-size: 1.12rem; }

/* Pillars */
.pillars { display: grid; gap: 24px; margin-bottom: 48px; }
@media (min-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { display: flex; flex-direction: column; background: #fff; text-decoration: none; color: var(--text); box-shadow: var(--shadow); border-bottom: 5px solid var(--accent); transition: transform .25s; }
.pillar:hover { transform: translateY(-5px); color: var(--text); }
.pillar-green { border-bottom-color: var(--green); }
.pillar-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pillar-media-contain { background: #fff; }
.pillar-media-contain img { object-fit: contain; padding: 12px; }
.pillar-body { display: flex; flex-direction: column; gap: 8px; padding: 26px 30px 30px; flex: 1; }
.pillar-kicker { font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pillar-green .pillar-kicker, .pillar-green .more { color: var(--green); }
.pillar-body strong { font-family: var(--display); font-weight: 500; font-size: 1.7rem; line-height: 1.12; color: var(--graphite); }
.pillar-body > span:not(.pillar-kicker):not(.more) { color: var(--muted); }
.list-title { margin-top: 0; }

/* Lists with square markers (the dot from the logo) */
.plus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plus-list li { position: relative; padding-left: 34px; }
.plus-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; background: var(--accent); }
.plus-list-grid { gap: 14px 40px; }
@media (min-width: 800px) { .plus-list-grid { grid-template-columns: 1fr 1fr; } }
.plus-list-grid li { background: #fff; padding: 16px 18px 16px 50px; }
.plus-list-grid li::before { left: 22px; top: 1.45em; }
.plus-list-grid li { border-left: 3px solid transparent; transition: border-color .2s; }
.plus-list-grid li:hover { border-left-color: var(--accent); }

/* Projects */
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .project-grid { grid-template-columns: repeat(4, 1fr); } .project-large { grid-column: span 2; grid-row: span 2; } }
.project-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .project-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.project { position: relative; overflow: hidden; background: var(--paper-2); }
.project img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.project:hover img { transform: scale(1.04); }

/* Portrait */
.portrait { margin: 0; position: relative; max-width: 440px; }
.portrait img { width: 100%; }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--accent-light); z-index: 0; }
.portrait::after { content: ""; position: absolute; left: -10px; top: -46px; width: 110px; height: 55px; background: var(--roof-light) center / contain no-repeat; }
.portrait img { position: relative; z-index: 1; }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; padding: 30px 28px; border-top: 4px solid var(--graphite); }

.card p { margin: 0; color: var(--muted); }
.card-accent { border-top-color: var(--green); background: var(--green-bg); }
.card-accent a { color: var(--green); font-weight: 600; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.steps li { counter-increment: s; border-top: 2px solid var(--line); padding-top: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }
.steps-light li { border-top-color: rgba(255, 255, 255, .35); }
.steps-light li::before { color: #fff; }
.steps-light p { color: #e2eedb; }

.text-block p:last-child { margin-bottom: 0; }
.figure-contain { margin: 0; }
.quote-box { background: var(--paper); padding: clamp(28px, 4vw, 48px); border-left: 5px solid var(--green); }
.quote-box p { margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; color: var(--graphite); }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-list details { background: #fff; border: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
.faq-list details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Team */
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { display: flex; flex-direction: column; gap: 4px; }
.member img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; margin-bottom: 12px; }
.member strong { font-family: var(--display); font-weight: 500; font-size: 1.5rem; }
.member span { color: var(--muted); }
.member-text { background: #fff; padding: 30px; justify-content: flex-end; border-top: 4px solid var(--accent); }

/* Contact */
.contact-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.contact-lines { margin: 0 0 28px; display: grid; gap: 14px; }
.contact-lines div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.contact-lines dt { font-family: var(--display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.contact-lines dd { margin: 0; }
.map { min-height: 320px; background: var(--paper); display: flex; border: 1px solid var(--line); }
.map iframe { width: 100%; min-height: 320px; border: 0; }
.map-placeholder { margin: auto; padding: 28px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.map-placeholder p { margin: 0; }
.form-card { background: var(--paper); padding: clamp(24px, 4vw, 44px); border-top: 6px solid var(--accent); }
.form { display: grid; gap: 18px; }
.form h2 { font-size: 2rem; margin: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; border: 0; padding: 0; margin: 0; }
.field input, .field textarea { font: 400 1rem/1.4 var(--font); width: 100%; padding: 13px 14px; border: 1.5px solid #aab0c2; border-radius: var(--radius); background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(13, 13, 143, .25); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { font-size: .88rem; color: #b3261e; }
.field-error:empty { display: none; }
.topic legend { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 16px; border: 1.5px solid #aab0c2; border-radius: 999px; background: #fff; font-weight: 600; }
.chips input:checked + span { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-error { background: #fbe3e1; color: #7d1a14; padding: 14px 16px; margin: 0; }
.form-error a { color: inherit; font-weight: 600; }
.form-success { outline: none; }
.form-success h2 { color: var(--green); }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--accent); color: #fff; }
.cta-band::before { content: ""; position: absolute; right: -60px; bottom: -40px; width: 520px; height: 260px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22'%3E%3Cpath d='M2 20 22 4l20 16' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3Cpath d='M12 20 22 12l10 8' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .12; }
.cta-inner { position: relative; }
.cta-inner { display: grid; gap: 24px; align-items: center; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; font-size: 1.12rem; }
.cta-band .kicker-light { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-actions { justify-content: flex-end; } }
.cta-band .btn-accent { background: var(--graphite); }
.cta-band .btn-accent:hover { background: #fff; color: var(--graphite); }

/* Footer */
.site-footer { background: var(--graphite-2); color: #c5cbca; padding: 60px 0 26px; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-light); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { margin-top: 18px; max-width: 420px; }
.footer-heading { font-family: var(--display); font-size: 1.1rem; letter-spacing: .14em; color: var(--accent-light); margin-bottom: 14px; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .9rem; }

/* Legal */
.legal-text { max-width: 860px; }
.legal-text h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal-text h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1300px); }
.lightbox::backdrop { background: rgba(31, 36, 35, .9); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox figure { margin: 0; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 10px; }
.lightbox-close { position: absolute; top: -8px; right: -8px; width: 44px; height: 44px; border: 0; background: var(--accent); color: #fff; font-size: 1.7rem; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Featured project + tiles */
.feature { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .feature { grid-template-columns: 1.5fr 1fr; gap: 56px; } }
.feature-images { position: relative; padding-bottom: 14%; }
.feature-images figure { margin: 0; position: relative; }
.feature-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow); }
.feature-small { position: absolute !important; right: -12px; bottom: 0; width: 42%; border: 6px solid #fff; box-shadow: var(--shadow); }
.feature-small img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-small figcaption { position: absolute; left: 0; bottom: 0; background: var(--graphite); color: #fff; font-size: .85rem; padding: 3px 10px; }
.feature-meta { font-family: var(--display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.feature-text .btn { margin-top: 8px; }
.section-head-sub { margin-top: clamp(64px, 9vw, 110px); }
.viz-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255, 255, 255, .92); color: var(--graphite); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; }
.project .project-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(transparent, rgba(31, 36, 35, .85)); color: #dfe3e2; font-size: .95rem; display: grid; }
.project .project-caption strong { font-family: var(--display); font-weight: 500; font-size: 1.35rem; color: #fff; }
.more-link { margin-top: 24px; }
.more-link a { font-weight: 600; }
.more-link a::after { content: " →"; }
.gallery { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; overflow: hidden; text-align: left; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.shot:hover img { transform: scale(1.03); }
.shot-caption { position: absolute; left: 0; bottom: 0; background: var(--graphite); color: #fff; padding: 6px 14px; font-size: .95rem; }
.hero-card h1, .path-card h3 { -webkit-hyphens: manual; hyphens: manual; }

/* Portrait with caption */
.portrait-cut img { aspect-ratio: 1 / 1; object-fit: cover; }
.portrait-cut figcaption { position: absolute; left: 0; bottom: 20px; z-index: 2; background: #fff; color: var(--graphite); padding: 10px 16px; line-height: 1.3; font-size: .95rem; }
.portrait-cut figcaption strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.3rem; }
.page-hero-media img[src*="heiko-diestel"] { object-position: center 30%; }
.page-hero-media img[src*="rennau-ansichten"] { background: #fff; object-fit: contain; padding: 12px; }
.team { grid-template-columns: 1fr; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Architectural layer: plan grid, dimension lines, blueprint
   ========================================================================== */
:root {
  --grid-fine: rgba(13, 13, 143, .06);
  --grid-major: rgba(13, 13, 143, .1);
}

/* Split hero on a faint plan grid */
.hero-split {
  display: grid; grid-template-columns: 1fr; position: relative; overflow: hidden;
  background:
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(var(--grid-fine) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px) 0 0 / 24px 24px,
    #fff;
}
@media (min-width: 960px) { .hero-split { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: min(88vh, 820px); } }
.hero-text {
  align-self: center; padding: clamp(40px, 6vw, 90px) 20px clamp(36px, 5vw, 70px);
  max-width: 680px; width: 100%; justify-self: end;
}
@media (min-width: 800px) { .hero-text { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 960px) { .hero-text { padding-right: 56px; } }
.hero-text h1 { font-size: clamp(3.2rem, 7.6vw, 6.6rem); line-height: .92; margin-bottom: .35em; letter-spacing: -.005em; }
.hero-text h1 span { color: var(--accent); }
.hero-text .lead { max-width: 520px; }
.hero-facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--graphite); }
.hero-facts div { padding: 14px 14px 0 0; border-right: 1px solid var(--line); margin-right: 14px; }
.hero-facts div:last-child { border-right: 0; margin-right: 0; }
.hero-facts dt { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1; color: var(--accent); }
.hero-facts dd { margin: 6px 0 0; font-size: .9rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 480px) { .hero-facts { grid-template-columns: 1fr; } .hero-facts div { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-right: 0; } }
.hero-figure { position: relative; margin: 0; min-height: 340px; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
@media (max-width: 959px) { .hero-figure { aspect-ratio: 4 / 3; } }
@media (min-width: 960px) { .hero-figure { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); } }
.hero-figure figcaption { position: absolute; right: 0; bottom: 0; background: var(--graphite); color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; }

/* Dimension lines (Bemaßung) */
.dim { position: absolute; z-index: 2; color: #fff; font-family: var(--display); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.dim::before { content: ""; position: absolute; background: currentColor; }
.dim span { position: absolute; background: rgba(31, 36, 35, .55); padding: 2px 8px; white-space: nowrap; }
.dim-h { left: 16%; right: 6%; top: 28px; height: 14px; border-left: 1.5px solid; border-right: 1.5px solid; }
.dim-h::before { left: 0; right: 0; top: 50%; height: 1.5px; }
.dim-h span { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.dim-v { right: 28px; top: 70px; bottom: 70px; width: 14px; border-top: 1.5px solid; border-bottom: 1.5px solid; }
.dim-v::before { top: 0; bottom: 0; left: 50%; width: 1.5px; }
.dim-v span { left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
@media (max-width: 959px) { .dim-h { left: 6%; } }
@media (max-width: 600px) { .dim-v { display: none; } }

/* Section heads get a dimension line with end ticks above the kicker */
.section-head { position: relative; padding-top: 22px; }
.section-head::before {
  content: ""; position: absolute; left: 0; top: 0; width: min(260px, 60%); height: 10px;
  border-left: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent);
  background: linear-gradient(var(--accent), var(--accent)) 0 50% / 100% 1.5px no-repeat;
}
.section-dark .section-head::before, .section-blueprint .section-head::before, .section-green .section-head::before { border-color: rgba(255, 255, 255, .7); background-image: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, .7)); }

/* Blueprint section (logo blue + drafting grid) */
.section-blueprint {
  color: #dfe2ff;
  background:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--accent);
}
.section-blueprint h2, .section-blueprint h3 { color: #fff; }
.section-blueprint .lead { color: #d3d7ff; }
.section-blueprint .kicker { color: #fff; }
.section-blueprint .kicker::before { background-image: var(--roof-light); filter: brightness(0) invert(1); }
.section-blueprint .btn-line:hover { color: var(--accent); }
.section-blueprint .portrait::before { border-color: rgba(255, 255, 255, .6); }
.section-blueprint .portrait::after { filter: brightness(0) invert(1); }

/* Bolder type rhythm */
.two-paths .path-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.path-no { color: transparent; -webkit-text-stroke: 1.5px var(--accent); font-size: 4rem; opacity: .5; }
.pillar { border-bottom-width: 0; position: relative; }
.pillar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 34%; background: var(--accent); transition: width .35s; }
.pillar-green::after { background: var(--green); }
.pillar:hover::after { width: 100%; }
.project-grid .project { box-shadow: 0 1px 0 var(--line); }
.cta-band { background: var(--graphite); }
.cta-band .btn-accent { background: var(--accent); }
.cta-band::before { opacity: .08; }
@media (prefers-reduced-motion: reduce) { .pillar::after { transition: none; } }
@media (min-width: 960px) { .hero-text { justify-self: stretch; max-width: none; padding-left: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); } .hero-text > * { max-width: 600px; } }
/* Sub page heads on the same plan grid */
.page-hero {
  background:
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(var(--grid-fine) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .95; }
.hero-split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hero-split { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); } }
.hero-text { min-width: 0; }
.hero-text h1 { font-size: clamp(3rem, 6.2vw, 5.6rem); overflow-wrap: normal; word-break: normal; -webkit-hyphens: manual; hyphens: manual; }
@media (max-width: 380px) { .hero-text h1 { font-size: 2.7rem; } }
.hero-figure { min-width: 0; width: 100%; overflow: hidden; }
@media (max-width: 959px) { .hero-figure { min-height: 0; } }
