/* Presentation only: the original stylesheet and application contracts remain intact. */
:root {
  --bg: #f5f5f1;
  --bg-soft: #f5f5f1;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #182d3b;
  --muted: #53616a;
  --line: #dce1df;
  --blue: #145a94;
  --red: #cf2617;
  --red-deep: #a61c10;
  --green: #4a701f;
  --shadow: 0 12px 36px rgb(24 45 59 / 5%);
  --section-space: clamp(40px, 6vw, 88px);
  --font-heading: "Source Sans 3", "Segoe UI", sans-serif;
}

html { scroll-padding-top: var(--header-offset, 220px); }
body {
  background: radial-gradient(ellipse at 90% 4%, #e5eceb 0, transparent 38%), #f5f5f1;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
}
.page-shell { width: min(1320px, calc(100% - 80px)); padding: 0 0 64px; }
.site-header {
  top: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgb(245 245 241 / 96%);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.brand { width: 262px; }
.site-nav { gap: 3px; font-size: .84rem; }
.site-nav a, .mobile-menu-panel__sections a { border-radius: 6px; }
.site-nav a.is-current, .site-nav a[aria-current="true"],
.mobile-menu-panel__sections a.is-current, .mobile-menu-panel__sections a[aria-current="true"] {
  background: var(--blue);
  box-shadow: none;
}
.language-switcher { gap: 2px; }
.language-switcher a {
  min-width: 36px;
  min-height: 36px;
  border-radius: 4px;
  background: transparent;
  border-color: transparent;
  letter-spacing: 0;
  font-size: .72rem;
}
.language-switcher a[aria-current="true"] { background: var(--blue); }
.header-cta, .header-urgency, .button {
  border-radius: 6px;
  box-shadow: none;
  min-height: 48px;
  padding: 12px 22px;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.header-cta { background: var(--green); }
.header-cta:hover, .header-cta:focus-visible { background: #385617; }
.header-urgency, .nav-emphasis { background: var(--red); box-shadow: none; }
.button-primary { background: var(--blue); box-shadow: none; border: 1px solid transparent; }
.button-primary:hover { background: #104872; }
.button-secondary { background: transparent; border-color: #b4bfbe; }
.button-secondary:hover { background: #e9eeeb; }
.admin-link { background: none; border: 0; border-radius: 4px; min-height: 28px; font-size: .68rem; letter-spacing: .12em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #307fa9;
  outline-offset: 4px;
}
main { gap: 0; margin-top: 0; }
section {
  padding: var(--section-space) 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  scroll-margin-top: 20px;
}
h1, h2, h3, strong,
.gallery-featured-photo figcaption, .photo-card figcaption,
.form-card legend { font-family: var(--font-heading); }
h1 { font-size: clamp(2.8rem, 4.6vw, 4.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; overflow-wrap: anywhere; }
html[lang="de"] h1, html[lang="it"] h1 { hyphens: auto; }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 600; line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 1.38rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
p { line-height: 1.8; }
.eyebrow, .stat-label { font-size: .69rem; letter-spacing: .17em; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--blue); }
.eyebrow::before { content: ""; flex: 0 0 24px; height: 2px; background: var(--red); }
.hero {
  grid-template-columns: 1.05fr 1fr;
  gap: 0 clamp(32px, 5vw, 72px);
  padding: 48px 0 0;
  user-select: auto;
}
.hero-copy { padding: 16px 0 40px; }
.hero-text { font-size: .96rem; max-width: 62ch; margin-top: 20px; }
.hero-actions { margin-top: 26px; gap: 12px; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; }
.hero-highlights li {
  padding: 0;
  font-size: .73rem;
  border: 0;
  border-radius: 0;
  background: none;
  gap: 8px;
}
.hero-highlights li::before { width: 5px; height: 5px; background: var(--green); }
.hero-visual { position: relative; margin: 0 0 40px; min-height: 500px; border-radius: 4px; overflow: hidden; background: #d9d9cc; }
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 61% center; }
.hero-visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 48px 24px 22px;
  color: white;
  background: linear-gradient(transparent, rgb(12 23 27 / 78%));
  font-size: .72rem;
  letter-spacing: .02em;
}
.hero-visual.hero-film { min-height: 0; aspect-ratio: auto; align-self: center; background: #182d3b; }
.hero-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.hero-film video[data-format="portrait"] { aspect-ratio: 4 / 5; }
.hero-film figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; position: static; min-height: 74px; padding: 14px 18px; background: none; font-size: .8rem; }
.hero-film video:focus-visible { outline: 3px solid #307fa9; outline-offset: -3px; }
.film-player { position: relative; }
.video-launch {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: max-content; max-width: 100%; min-height: 46px; padding: 10px 14px;
  color: #fff; background: var(--blue); border: 0; border-radius: 6px;
  font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 20px rgb(24 45 59 / 18%);
}
.video-launch:hover { background: #104872; }
.video-launch[hidden] { display: none; }
.video-launch svg { width: 20px; height: 20px; flex: 0 0 auto; }
.video-feedback:not(:empty) { display: block; padding: 14px; color: #fff; font-size: .85rem; }
.hero-panel { grid-column: 1 / -1; margin-top: 16px; }
.stat-card.accent {
  padding: 40px 0 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 48px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--text);
}
.stat-card.accent .stat-label { margin: 0; color: var(--blue); grid-column: 1 / -1; }
.stat-card.accent strong { font-size: 2rem; font-weight: 600; line-height: 1.25; grid-column: 1 / -1; max-width: 620px; margin: 0 0 8px; }
.stat-card.accent p { color: var(--muted); margin: 0; font-size: .92rem; }
.services, .expertise, .process, .contact, .quote-hero, .quote-form-section, .gallery-hero, .gallery-section { padding: var(--section-space) 0; }
.section-heading { gap: 12px; margin-bottom: 36px; }
.section-heading .eyebrow { margin: 0 0 6px; }
.section-heading h2 { max-width: 760px; }
.section-heading > p:not(.eyebrow) { max-width: 760px; margin: 0; font-size: .96rem; }
.service-grid { gap: 0; }
.service-card {
  padding: 28px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-left: 1px solid #cdd5d3;
}
.service-grid .service-card:first-child { border-left: 0; padding-left: 0; }
.service-grid .service-card:last-child { padding-right: 0; }
.service-card > span { color: var(--blue); font-family: var(--font-heading); font-weight: 400; font-size: 2.1rem; letter-spacing: -.01em; margin-bottom: 36px; }
.service-card p { font-size: .88rem; line-height: 1.85; }
.expertise-layout { gap: 64px; grid-template-columns: 1fr 1fr; }
.expertise-copy { padding: 0; }
.expertise-copy p:first-child { margin-top: 0; }
.checklist { gap: 0; }
.checklist div { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 22px 0; }
.checklist div:first-child { padding-top: 0; }
.checklist div:last-child { border-bottom: 0; }
.checklist strong { font-size: 1.25rem; font-weight: 500; }
.checklist p { margin-bottom: 0; font-size: .9rem; }
.process .section-heading h2 { max-width: 780px; }
.timeline { grid-template-columns: .8fr 1.2fr; gap: 0; background: #e7ece9; border-radius: 4px; overflow: hidden; }
.timeline article { border: 0; border-radius: 0; background: none; padding: 36px; min-height: 340px; gap: 18px; }
.timeline article span { margin: 0; font-weight: 500; color: var(--text); font-size: 1.6rem; font-family: var(--font-heading); }
.timeline article p { font-size: .9rem; }
.timeline-link { background: var(--blue); color: white; border-color: transparent; }
.timeline-link:hover { background: #104872; }
.projects-preview { display: block; position: relative; min-height: 340px; overflow: hidden; }
.projects-preview img { width: 100%; height: 100%; position: absolute; object-fit: cover; transition: transform 400ms ease; }
.projects-preview:hover img { transform: scale(1.025); }
.emergency { background: #172f3d; padding: 0; border: 0; margin-top: 44px; border-radius: 4px; }
.emergency-card { padding: 44px 48px; border: 0; border-radius: 0; background: none; }
.emergency-card h2 { max-width: 860px; }
.emergency-card p { color: #d5dfe2; }
.emergency-card .button-primary { background: var(--red); }
.emergency-card .button-primary:hover { background: var(--red-deep); }
.contact { grid-template-columns: 1fr 1fr; gap: 44px 64px; }
.contact-copy h2 { max-width: 550px; }
.contact-copy > p:not(.eyebrow) { font-size: 1.05rem; }
.contact-card { padding: 0; background: none; border: 0; border-radius: 0; gap: 0; }
.contact-row { padding: 15px 0; border-bottom: 1px solid var(--line); grid-template-columns: 100px 1fr; align-items: baseline; gap: 14px; }
.contact-row span { font-size: .75rem; }
.contact-row strong { font-size: .95rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--blue); text-decoration: underline; }
.map-card { grid-column: 1 / -1; padding: 0; background: none; border: 0; border-radius: 0; }
.map-card > .contact-row { grid-template-columns: auto 1fr; }
.map-frame { border-radius: 4px; }
.map-frame iframe { min-height: 300px; }
.map-link { font-size: .8rem; }
.gallery-hero { gap: 64px; align-items: start; }
.gallery-featured-photo { border: 0; border-radius: 4px; background: none; padding: 0; box-shadow: none; align-self: center; }
.gallery-featured-photo img { border-radius: 4px; aspect-ratio: 4 / 3; }
.gallery-featured-photo figcaption { text-align: left; padding: 14px 0; font-size: .83rem; font-weight: 400; }
.gallery-grid, .gallery-cluster { gap: 40px 28px; }
.gallery-card { border-radius: 4px; background: transparent; border: 0; box-shadow: none; }
.photo-card img { border: 0; border-radius: 4px; }
.photo-card figcaption { text-align: left; padding: 18px 0 0; font-size: .9rem; font-weight: 500; }
.gallery-link:focus-visible { outline-offset: -3px; }
.quote-hero { grid-template-columns: 1.3fr .7fr; gap: 72px; align-items: center; }
.quote-hero-copy h1 { max-width: 700px; }
.quote-aside .service-card { background: #e7ece9; border: 0; border-radius: 4px; padding: 36px; }
.quote-aside .service-card > span { font-family: "Manrope", sans-serif; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 24px; }
.quote-aside a { text-decoration: underline; text-underline-offset: 4px; }
.quote-form-section { max-width: 100%; }
.quote-form { gap: 28px; }
.form-grid { gap: 28px; }
.form-card { border-radius: 4px; border-color: #cdd5d3; background: #fff; padding: 28px; margin: 0; }
.form-card legend { padding: 0 10px; font-size: 1.1rem; font-weight: 500; }
.form-card label { min-height: 32px; align-items: center; cursor: pointer; font-size: .92rem; }
.form-card input[type="checkbox"] { accent-color: var(--blue); width: 18px; height: 18px; flex: 0 0 18px; margin: 0; }
.form-card label:has(input:checked) { color: var(--blue); font-weight: 700; }
.text-field { border-radius: 4px; border-color: #bfc9c8; background: #fbfcfa; }
.text-field::placeholder { color: #6b777d; }
.form-grid-single .form-card { max-width: 100%; }
.form-note { font-size: .83rem; }
.admin-login-shell { padding: 60px 0; gap: 72px; align-items: center; }
.admin-login-card { border-radius: 6px; box-shadow: none; border-color: var(--line); padding: 32px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; color: var(--muted); font-size: .75rem; }
.site-footer strong { color: var(--text); font-size: .86rem; font-weight: 500; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }

@media (min-width: 1081px) {
  .site-header { display: grid; grid-template-columns: 262px 1fr; column-gap: 32px; row-gap: 12px; }
  .brand { grid-row: 1 / 3; }
  .header-actions { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0 12px; }
  .header-actions .language-switcher { justify-content: flex-end; padding-right: 12px; }
  .header-actions .admin-link { grid-column: 3; }
  .site-nav { grid-row: 2; grid-column: 2; justify-content: flex-end; align-self: start; margin-top: -5px; }
  .header-actions .header-urgency { min-height: 44px; }
  .header-actions .header-cta { min-height: 44px; }
}
@media (max-width: 1080px) {
  html { scroll-padding-top: 0; }
  section[id] { scroll-margin-top: 16px; }
  .page-shell { width: calc(100% - 48px); }
  .site-header { padding: 12px 0; }
  .site-header.is-collapsed { padding-bottom: 12px; }
  .brand { width: 260px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 0 32px; padding-top: 36px; }
  .hero-visual { min-height: 430px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .service-grid .service-card:nth-child(3) { border-left: 0; padding-left: 0; }
  .service-grid .service-card:nth-child(2) { padding-right: 0; }
  .expertise-layout, .gallery-hero { gap: 32px; }
  .contact { gap: 32px; }
  .mobile-menu-toggle { background: var(--blue); box-shadow: 0 6px 20px rgb(24 45 59 / 18%); }
  .mobile-menu-panel { background: #f5f5f1; border-color: #cbd5d2; max-height: calc(100dvh - 90px); overflow-y: auto; }
  .mobile-menu-panel__actions, .mobile-menu-panel__sections { background: none; border: 0; box-shadow: none; }
  .mobile-menu-panel__sections { border-top: 1px solid var(--line); border-radius: 0; max-height: none; overflow: visible; }
  .mobile-menu-panel__sections a { min-height: 48px; font-size: .9rem; background: #e9eeeb; }
  .mobile-menu-panel__sections .nav-emphasis,
  .mobile-menu-panel__sections .nav-emphasis.is-current { background: var(--red); box-shadow: none; }
  .mobile-menu-panel__actions .language-switcher { padding-bottom: 12px; margin-bottom: 4px; }
  .mobile-menu-panel__actions .header-cta, .mobile-menu-panel__actions .admin-link { min-height: 48px; }
  .mobile-menu-panel__actions .admin-link { border: 1px solid #c3ceca; }
  .mobile-menu-toggle.is-open .header-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-menu-toggle.is-open .header-toggle-icon span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.is-open .header-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .quote-hero { gap: 32px; grid-template-columns: 1.2fr .8fr; }
  .quote-aside .service-card { padding: 24px; }
  .admin-login-shell { gap: 32px; }
}
@media (max-width: 720px) {
  :root { --section-space: 48px; }
  .page-shell { width: calc(100% - 40px); padding: 0 0 86px; }
  .site-header { padding-top: 24px; }
  .brand { width: min(280px, 100%); }
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 30px; }
  h1 { font-size: clamp(2.45rem, 10vw, 3.6rem); line-height: 1.15; }
  h2 { font-size: clamp(1.9rem, 7.2vw, 2.4rem); }
  .hero-copy { padding: 0 0 30px; }
  .hero-text { font-size: .94rem; }
  .hero-text, .expertise-copy p, .contact-copy p, .form-note,
  .quote-hero-copy .hero-text, .quote-form-section .section-heading p:not(.eyebrow) { text-align: left; }
  .hero-visual { min-height: 0; aspect-ratio: 4 / 3; margin-bottom: 20px; }
  .hero-highlights { gap: 12px 18px; }
  .stat-card.accent { grid-template-columns: 1fr; padding: 28px 0 36px; gap: 18px; }
  .stat-card.accent strong { font-size: 1.7rem; }
  .hero-panel { margin-top: 0; }
  .hero-actions { flex-direction: row; }
  .hero-actions .button { width: auto; flex: 1 1 auto; padding: 12px 16px; }
  .service-grid { grid-template-columns: 1fr; gap: 0; }
  .service-grid .service-card { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .service-card > span { font-size: 1.5rem; margin-bottom: 16px; }
  .service-card p { font-size: .93rem; }
  .expertise-layout, .contact, .gallery-hero, .quote-hero { grid-template-columns: 1fr; gap: 32px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline article { min-height: 280px; padding: 28px; }
  .timeline-link { width: auto; }
  .projects-preview { min-height: 240px; }
  .emergency { margin-top: 24px; }
  .emergency-card { padding: 32px 24px; }
  .emergency-card h2 { font-size: 1.85rem; }
  .contact-card { padding: 0; }
  .contact-row { grid-template-columns: 90px 1fr; }
  .map-card > .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .map-frame iframe { min-height: 240px; }
  .gallery-grid, .gallery-cluster { grid-template-columns: 1fr; gap: 28px; }
  .gallery-featured-photo img { aspect-ratio: 16 / 9; }
  .gallery-card, .gallery-featured-photo { border-radius: 4px; }
  .gallery-hero, .quote-hero { padding-top: 30px; }
  .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-card { border-radius: 4px; padding: 20px; }
  .form-card label { min-height: 36px; font-size: .92rem; }
  .text-field { font-size: 1rem; }
  .admin-login-shell { padding: 32px 0; }
  .admin-login-card { padding: 24px; }
  .site-footer { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes hydro-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .hero-copy, .quote-hero-copy, .gallery-hero-copy { animation: hydro-enter .6s ease both; }
  .hero-visual { animation: hydro-enter .8s .12s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
