/* V20 · Satz und Bildaufteilung der Portfolio-Startseite */
:root {
  --bg: #121211;
  --text: #f2f0e9;
  --muted: #c6c3bb;
  --soft: #aaa79f;
  --shadow: 0 0 0 transparent;
  --rule: #46443f;
  --container: min(1360px, calc(100% - clamp(40px, 8vw, 128px)));
}
body, .site-header { background: var(--bg); }
.container { width: var(--container); }
.header-row { padding-block: 16px; }
.identity { font: 500 1.45rem/1.15 system-ui, "Segoe UI", sans-serif; text-transform: none; letter-spacing: -.035em; }
.identity strong { font-weight: inherit; }
.identity-dot { font-weight: bold; }
.navigation .nav-contact, .contrast-toggle, .button { border-radius: 4px; }
.nav-contact span, .button span { color: inherit; }
.hero { padding: clamp(36px,5vw,80px) 0 clamp(40px,6vw,88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0,1.25fr); gap: clamp(32px,4vw,72px); align-items: center; }
.hero h1 { font: 400 clamp(3.25rem,5.6vw,5.8rem)/1.01 system-ui, "Segoe UI", sans-serif; letter-spacing: -.052em; }
.hero-headline-sub { font-size: .74em; line-height: 1.08; color: var(--text); margin-top: .12em; text-wrap: balance; }
.eyebrow,.kicker,.project-type,.small-label { text-transform: none; letter-spacing: .025em; font-size: .83rem; color: var(--muted); font-weight: 500; }
.eyebrow { display: block; margin-bottom: 28px; }
.eyebrow span,.kicker::before,.project-type::before { display: none; }
.eyebrow i { margin-inline: 4px; color: var(--soft); }
.hero-description { max-width: 43ch; font-size: 1rem; line-height: 1.65; }
.hero-actions { align-items: center; gap: 16px; margin-top: 24px; }
.button { color: var(--text); font-size: .95rem; min-height: 48px; padding-inline: 16px; font-weight: 550; }
.button-primary { background: var(--accent); box-shadow: none; }
.hero-actions .button-line { border: 0; border-radius: 0; padding-inline: 0; background: none; }
.hero-figure,.about-picture { height: auto; background: transparent; box-shadow: none; border-radius: 0; }
.hero-figure img,.about-picture img { position: static; width: 100%; height: auto; filter: none; }
.hero-figure::after,.video-trigger::after { display: none; }
.hero-figure figcaption,.picture-label {
  position: static; display: flex; align-items: center; gap: 10px;
  padding: 12px 0 0; border: 0; border-radius: 0; background: none;
  font: 400 .83rem/1.4 system-ui,sans-serif; text-transform: none; letter-spacing: 0; color: var(--muted);
  justify-content: flex-start;
}
.hero-figure figcaption::before,.picture-label::before,.project-meta::before {
  content: ''; display: inline-block; flex: none; width: 24px; height: 2px; background: var(--accent-2);
}
.section-heading h2,.contact-top h2,.about-text h2 { font-weight: 400; font-size: clamp(2.6rem,4.3vw,4.5rem); }
.section-heading h2 em,.about-text h2 em { color: var(--text); }
.services-section { border-top: 1px solid var(--rule); }
.services-list { border-top: 0; }
.service-row { grid-template-columns: 32px minmax(0,1fr); padding: 24px 0; align-items: center; gap: 16px; }
.service-row > span:first-child { margin: 0; }
.service-row > span:first-child { color: var(--soft); font: 400 .87rem/1.5 system-ui,sans-serif; }
.service-row h3 { font-weight: 500; }
.portfolio-subhead {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(0, max-content);
  align-items: center;
  padding-block: 24px;
  margin-bottom: 0;
}
.portfolio-subhead > div { justify-content: flex-start; align-items: center; margin: 0; }
.portfolio-subhead p { max-width: none; }
@media (max-width: 980px) {
  .portfolio-subhead { grid-template-columns: 1fr; gap: 8px; text-align: left; }
  .portfolio-subhead p { justify-self: start; }
}
.sub-index { border: 0; border-radius: 0; background: none; color: var(--soft); width: auto; height: auto; }
.project-grid { gap: 48px 32px; }
.project-card { overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
.project-card .project-copy { padding: 16px 0 0; }
.project-copy h3 { font-weight: 400; font-size: clamp(1.45rem,1.9vw,2rem); }
.project-meta,.project-card--featured .project-meta { margin-top: 16px; padding: 0; align-items: center; border: 0; display: flex; gap: 10px; }
.project-card--featured { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: clamp(24px,4vw,64px); align-items: center; border-block: 1px solid var(--rule); padding-block: 24px; }
.project-card--featured .video-trigger { height: auto; min-height: 0; aspect-ratio: 16/9; }
.project-card--featured .project-copy { padding: 0; }
.project-card--featured .project-copy h3 { font-size: clamp(2rem,3.2vw,3.4rem); font-weight: 400; }
.play-badge { width: 40px; height: 40px; left: 12px; bottom: 12px; box-shadow: none; }
.play-badge svg { width: 16px; }
.project-card:has(.video-trigger:hover) { border-color: var(--rule); box-shadow: none; }
.thumbnail-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 4px;
}
.thumbnail-frame rect {
  x: 2px;
  y: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  stroke-dasharray: 0 1;
  stroke-dashoffset: var(--frame-origin, 0);
}
@media (hover: hover) {
  .video-trigger:hover .thumbnail-frame rect { stroke-dasharray: 1 0; }
}

.video-trigger:focus-visible .thumbnail-frame rect {
  transition: none;
  stroke-dasharray: 1 0;
}
@media (forced-colors: active) {
  .thumbnail-frame { stroke: Highlight; }
}
.video-trigger:focus-visible { outline-offset: 3px; }
.contact-section { border-top: 1px solid var(--rule); }
.contact-layout { gap: clamp(32px,6vw,96px); }
.contact-form,.contact-aside { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.contact-aside { padding-top: 20px; border-top: 1px solid var(--rule); }
.form-field input,.form-field textarea,.video-modal-dialog,.video-consent,.video-frame-wrap { border-radius: 4px; }
.form-field input:focus-visible,.form-field textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
html[data-contrast=high] .contrast-toggle { border-width: 1px; }
html[data-contrast=high] .project-card { background: transparent; }
html[data-contrast=high] .video-trigger { border-bottom: 0; }
html[data-contrast=high] .hero-figure figcaption { color: white; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); }
  .hero-text { max-width: 64ch; }
  .hero-description { max-width: 58ch; }
}
@media (max-width:820px) {
  .project-card--featured { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .hero h1 { font-size: clamp(2.65rem,10vw,4.75rem); }
  .hero-grid { gap: 28px; }
  .eyebrow { margin-bottom: 16px; }
  .hero-description { margin-top: 16px; }
  .hero-actions { gap: 12px 20px; }
  .section,.contact-section { padding-block: 64px; }
  .project-grid { row-gap: 36px; }
  .service-row h3,.project-copy h3 { overflow-wrap: anywhere; hyphens: auto; }
}
#leistungen,#ueber,#kontakt,#start { scroll-margin-top: 88px; }
@media (min-width:821px) {
  .nav-dropdown:not(.is-open) .nav-submenu { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion:reduce) {
  .button:is(:hover,:focus-visible),.video-trigger:hover .project-thumb,.nav-contact:hover,.contrast-toggle:hover { transform: none; }
}

/* Gemeinsamer Rhythmus der vier nummerierten Abschnitte */
main > section:is(#leistungen, #portfolio, #ueber, #kontakt) {
  padding-block: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--rule);
}
main section[id] .kicker {
  font-size: 1rem;
  margin: 0 0 16px;
  line-height: 1.4;
}
body:not(.legal-page) :is(#portfolio, #ueber) .section-heading {
  margin-bottom: clamp(32px, 4vw, 48px);
}
#leistungen .section-heading { margin-bottom: 24px; }
#ueber .about-section { align-items: start; }
#ueber .about-lead { margin-top: 0; }
em, i, cite, address { font-style: normal; }

.about-text .text-action {
  font-size: 1.125rem;
  color: #fff;
}
.about-text .text-action span { color: inherit; }

.video-modal-close {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}
.video-modal-close svg { display: block; }

.service-row { grid-template-columns: minmax(0,1fr); }
.hero { padding: 0; }
.hero-stage { padding-block: 32px; }
.hero .hero-stage h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 10vw, 10rem);
  white-space: nowrap;
}
.hero-stage .hero-grid {
  grid-template-columns: minmax(0,1.25fr) minmax(0,.92fr);
  padding-block: 24px;
}
.hero-grid .hero-figure {
  grid-area: 1 / 1;
  box-shadow: 0 0 clamp(24px,4vw,64px) rgba(212,133,80,.23);
}
.hero-grid .hero-text { grid-area: 1 / 2; }
.hero-figure img { max-height: 64svh; object-fit: contain; }
@media (max-width: 720px) {
  .hero-stage .hero-grid { grid-template-columns: minmax(0,1fr); gap: 18px; padding-block: 0; }
  .hero-grid .hero-figure, .hero-grid .hero-text { grid-area: auto; }
  .hero-grid .hero-figure { grid-row: 1; justify-self: center; }
  .hero-figure img { max-height: 33svh; width: auto; }
}
