:root {
  color-scheme: light;
  --blue: #145b9e;
  --deep-blue: #0c3158;
  --gold: #e09a17;
  --light-gold: #ffda83;
  --ink: #142e49;
  --muted: #435c75;
  --light: #edf5fc;
  --line: #cbdced;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: white;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .21em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { letter-spacing: -.045em; }
h2, .project-grid h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--deep-blue); }
p, address { overflow-wrap: anywhere; }
.wrap { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.skip { position: absolute; z-index: 1; left: 1rem; top: .5rem; transform: translateY(-160%); padding: .5rem 1rem; background: white; }
.skip:focus { transform: none; }

.site-header { border-bottom: 3px solid var(--gold); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-inner { min-height: 5.25rem; }
.brand { display: inline-block; flex-shrink: 0; max-width: 100%; }
.brand img { width: clamp(11.5rem, 19vw, 15rem); height: auto; }
.header-inner nav, .footer-inner nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2rem); flex-wrap: wrap; }
.header-inner nav a { color: var(--blue); font-weight: 650; text-decoration: none; }
.header-inner nav a:hover { text-decoration: underline; }
.header-inner nav .nav-contact { padding: .5rem .9rem; background: var(--blue); color: white; border-radius: .25rem; }
.hero { background: linear-gradient(115deg, var(--deep-blue) 18%, var(--blue)); color: white; padding-block: clamp(2.5rem, 5vw, 4.8rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.eyebrow { color: var(--blue); font-size: .9rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .95rem; }
.hero .eyebrow { color: var(--light-gold); }
.hero h1 { font-size: clamp(2.9rem, 5.3vw, 5rem); max-width: 11ch; }
.hero-description { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 34ch; color: #e5eff9; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.75rem; }
.anniversary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) clamp(2.4rem, 10vw, 5rem);
  align-items: center;
  gap: clamp(.55rem, 2vw, .95rem);
  width: min(100%, 22rem);
  margin-top: 1.35rem;
  padding: .5rem clamp(.65rem, 2vw, 1rem);
  border: 1px solid var(--gold);
  border-left: .25rem solid var(--gold);
  border-radius: .25rem;
  background: linear-gradient(110deg, #102943, var(--deep-blue));
  color: white;
}
.anniversary-number {
  color: var(--light-gold);
  font-size: clamp(2.6rem, 7vw, 3.65rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.08em;
  line-height: 1.05;
}
.anniversary-label > * { display: block; }
.anniversary-label strong { font-size: 1.1rem; line-height: 1.2; }
.anniversary-label span { color: #e5eff9; font-size: .95rem; }
.anniversary-circuit { position: relative; height: 2.25rem; color: var(--gold); }
.anniversary-circuit::before, .anniversary-circuit::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.anniversary-circuit::before {
  inset: .22rem .2rem .95rem 0;
  clip-path: polygon(0 0, 42% 0, 65% 85%, 100% 85%, 100% 100%, 63% 100%, 40% 15%, 0 15%);
}
.anniversary-circuit::after {
  inset: 1rem 23% .2rem 0;
  clip-path: polygon(0 0, 33% 0, 60% 83%, 100% 83%, 100% 100%, 57% 100%, 30% 17%, 0 17%);
}
.anniversary-circuit > span {
  position: absolute;
  right: 0;
  bottom: .77rem;
  width: .5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--light-gold);
}

@media (prefers-reduced-motion: no-preference) {
  :is(.hero .anniversary, .anniversary.is-revealed) .anniversary-number { animation: anniversary-number-in 650ms ease-out both; }
  :is(.hero .anniversary, .anniversary.is-revealed) .anniversary-circuit { animation: anniversary-trace 900ms ease-out 150ms both; }
  :is(.hero .anniversary, .anniversary.is-revealed) .anniversary-circuit > span { animation: anniversary-signal 650ms ease-out 980ms both; }
  .reveal.is-revealed { animation: reveal-in 350ms ease-out; }
}

@keyframes reveal-in {
  from { opacity: .35; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes anniversary-number-in {
  from { opacity: .35; transform: translateY(.3rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes anniversary-trace {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(-.55rem -.55rem -.55rem 0); }
}

@keyframes anniversary-signal {
  0%, 100% { box-shadow: 0 0 0 0 rgb(255 218 131 / 0); }
  38% { box-shadow: 0 0 .45rem .22rem rgb(255 218 131 / .65); }
}
.button { display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1rem; border: 1px solid transparent; border-radius: .35rem; font-weight: 700; text-decoration: none; }
.button:hover { text-decoration: underline; }
.hero a:focus-visible, .site-footer a:focus-visible { outline-color: var(--light-gold); }
.button-primary { background: var(--gold); color: #16283a; }
.button-primary:hover { background: var(--light-gold); }
.button-secondary { border-color: #b7cde4; color: white; }
.button-dark { background: var(--blue); color: white; }
.hero-image {
  --frame-offset: .65rem;
  --frame-cut: 1.8rem;
  position: relative;
  isolation: isolate;
  margin: 0 var(--frame-offset) var(--frame-offset) 0;
}
.hero-image::before, .hero-image img {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--frame-cut)), calc(100% - var(--frame-cut)) 100%, 0 100%);
}
.hero-image::before {
  content: "";
  position: absolute;
  inset: var(--frame-offset) calc(-1 * var(--frame-offset)) calc(-1 * var(--frame-offset)) var(--frame-offset);
  z-index: -1;
  background: var(--gold);
}
.hero-image img { width: 100%; height: auto; }
.section { padding-block: clamp(3rem, 6vw, 5.4rem); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.7rem; }
.service {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: .3rem;
  background: white;
  padding: clamp(1.15rem, 3vw, 1.7rem);
}
.service h3 { color: var(--blue); font-size: 1.22rem; }
.service h3::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: .2rem;
  margin-bottom: .65rem;
  background: var(--gold);
}
.service p, .contact p { color: var(--muted); margin-top: .65rem; }
.service--partner { background: var(--light); }
.service--illustrated { padding: 0; overflow: hidden; }
.service-photo { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; background: var(--light); }
.service-copy { padding: clamp(1.15rem, 3vw, 1.7rem); }
.service .service-partner { color: var(--deep-blue); font-weight: 700; }
.service-link { display: inline-block; margin-top: .85rem; color: var(--blue); font-weight: 650; }
.service-logo { width: min(100%, 12rem); height: auto; margin-top: 1.15rem; }
.service-on-site {
  margin-top: .9rem;
  padding: .7rem .75rem;
  border-left: 3px solid var(--gold);
  background: white;
}
.service-on-site h4 { color: var(--deep-blue); font-size: 1rem; line-height: 1.25; }
.service-on-site p { margin-top: .35rem; }
.about { background: var(--light); padding-block: clamp(2.6rem, 5vw, 4rem); }
.about-grid, .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.about-grid > div { border-left: 4px solid var(--gold); padding-left: 1.2rem; }
.about-grid > p { font-size: 1.1rem; max-width: 48ch; }
.contact p { max-width: 50ch; }
.contact .button { margin-top: 1.1rem; }
address { font-style: normal; }
.contact-details {
  padding: clamp(1rem, 3vw, 1.55rem);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: .3rem;
  background: var(--light);
}
.contact address { display: grid; gap: .2rem; }
.contact address a { justify-self: start; color: var(--blue); }
.office-hours { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.office-hours h3 { font-size: 1.05rem; color: var(--deep-blue); }
.office-hours dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: .35rem 1rem;
  margin: .55rem 0 0;
}
.office-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.site-footer { background: var(--deep-blue); border-top: 3px solid var(--gold); color: #e5eff9; padding-block: 1.5rem; }
.footer-brand { color: white; font-weight: 750; text-decoration: none; }
.footer-links .support-link { text-decoration-color: var(--light-gold); }
.legal { max-width: 49rem; padding-block: clamp(2.75rem, 6vw, 5rem); }
.legal h1 { color: var(--blue); font-size: clamp(2.15rem, 6vw, 4rem); overflow-wrap: anywhere; }
.legal h2 { margin-top: 1.75rem; font-size: 1.36rem; letter-spacing: -.02em; }
.legal p, .legal address { margin-top: .5rem; max-width: 72ch; }

.hero-service-note { margin-top: 1.15rem; color: #e5eff9; }
.hero-service-note a { color: var(--light-gold); font-weight: 650; }
.help-section, .project-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.help-section { background: var(--light); }
.help-grid, .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.help-grid p, .project-grid p { max-width: 55ch; }
.help-grid p, .project-grid :is(h1, h2) + p { margin-top: .65rem; color: var(--muted); }
.help-grid .button { margin-top: 1rem; }
.help-link { display: block; width: fit-content; margin-top: .6rem; color: var(--blue); }
.help-remote {
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: .3rem;
  background: white;
}
.help-remote h3 { color: var(--deep-blue); }
.action-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; margin-top: 1rem; }
.action-links a:not(.button) { color: var(--blue); font-weight: 650; }
.project-section { border-top: 1px solid var(--line); }
.project-grid img { width: 100%; max-height: 23rem; height: auto; object-fit: cover; border-radius: .3rem; }

.detail-page { max-width: 58rem; padding-block: clamp(2.75rem, 6vw, 5rem); }
.project-details { padding-top: 0; }
.detail-intro h1 { max-width: 22ch; color: var(--deep-blue); font-size: clamp(2.2rem, 5vw, 4.1rem); overflow-wrap: anywhere; }
.detail-intro h1 + p { font-size: clamp(1rem, 2vw, 1.15rem); margin-top: 1rem; }
.detail-page p { max-width: 67ch; color: var(--muted); }
.detail-page .eyebrow { color: var(--blue); }
.detail-section { margin-top: clamp(2rem, 5vw, 3.2rem); }
.detail-section h2 { font-size: clamp(1.55rem, 3.5vw, 2.3rem); }
.detail-section h2 + p { margin-top: .65rem; }
.service-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; padding: 0; list-style-position: inside; }
.service-steps li { padding: .9rem 1rem; background: var(--light); border-top: 3px solid var(--gold); border-radius: .3rem; }
.service-steps li::marker { color: var(--blue); font-weight: 750; }
.service-steps p { margin-top: .3rem; }
.project-phases { display: grid; gap: .55rem; margin-top: 1rem; }
.project-track { display: none; }

@supports selector(:has(*)) {
  .project-track {
    --project-progress: 0;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 4.1rem;
    margin-bottom: .35rem;
    border: 1px solid var(--line);
    border-radius: .3rem;
    background: var(--light);
    text-align: center;
  }
  .project-track::before, .project-track::after {
    content: "";
    position: absolute;
    top: 1.24rem;
    inset-inline: calc(100% / 6);
    height: .2rem;
    border-radius: .1rem;
    z-index: -1;
  }
  .project-track::before { background: var(--line); }
  .project-track::after { background: var(--gold); transform: scaleX(var(--project-progress)); transform-origin: left center; }
  .project-track span { position: relative; padding-top: 2rem; color: var(--muted); font-weight: 650; }
  .project-track span::before {
    content: "";
    position: absolute;
    top: .88rem;
    left: 50%;
    width: .9rem;
    aspect-ratio: 1;
    border: 2px solid var(--blue);
    border-radius: 50%;
    background: white;
    transform: translateX(-50%);
  }
  .project-phases:has(> #projekt-aufbau[open]) .project-track { --project-progress: .5; }
  .project-phases:has(> #projekt-uebergabe[open]) .project-track { --project-progress: 1; }
  .project-phases:has(> #projekt-planung[open]) .project-track span:nth-child(1),
  .project-phases:has(> #projekt-aufbau[open]) .project-track span:nth-child(2),
  .project-phases:has(> #projekt-uebergabe[open]) .project-track span:nth-child(3) { color: var(--deep-blue); }
  .project-phases:has(> #projekt-planung[open]) .project-track span:nth-child(1)::before,
  .project-phases:has(> #projekt-aufbau[open]) .project-track span:nth-child(2)::before,
  .project-phases:has(> #projekt-uebergabe[open]) .project-track span:nth-child(3)::before { background: var(--gold); border-color: var(--deep-blue); }
}

@media (prefers-reduced-motion: no-preference) {
  .project-track::after { transition: transform 450ms ease-out; }
  .project-phases details[open] > div { animation: project-phase-in 220ms ease-out both; }
}

@keyframes project-phase-in {
  from { opacity: .6; transform: translateY(.2rem); }
  to { opacity: 1; transform: translateY(0); }
}

.project-phases details { border: 1px solid var(--line); border-radius: .3rem; background: var(--light); }
.project-phases details[open] { border-left: 4px solid var(--gold); }
.project-phases summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; color: var(--deep-blue); font-weight: 700; cursor: pointer; list-style: none; }
.project-phases summary::-webkit-details-marker { display: none; }
.project-phases summary::after { content: "+" / ""; color: var(--blue); font-size: 1.25rem; line-height: 1; }
.project-phases details[open] summary::after { content: "−" / ""; }
.project-phases summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.project-phases details > div { padding: 0 1rem 1rem; }
.project-phases p + p { margin-top: .5rem; }
.detail-contact { padding: 1.15rem; background: var(--light); border-left: 4px solid var(--gold); }
.detail-contact .button { margin-top: .85rem; }

@media (max-width: 53rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-image img { max-height: 22rem; object-fit: cover; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: .5rem; padding-block: .7rem; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .service-grid, .about-grid, .contact, .project-grid, .help-grid, .service-steps { grid-template-columns: 1fr; }
  .about-grid, .contact { gap: 1.05rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
