@font-face { font-family: Lato; src: url("./fonts/lato-light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: Lato; src: url("./fonts/lato-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Raleway; src: url("./fonts/raleway-light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: Raleway; src: url("./fonts/raleway-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Raleway; src: url("./fonts/raleway-medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Raleway; src: url("./fonts/raleway-semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Solid Icons; src: url("./fonts/fa-solid-900.woff") format("woff"); font-display: block; }
@font-face { font-family: Brand Icons; src: url("./fonts/fa-brands-400.woff") format("woff"); font-display: block; }
@font-face { font-family: Outline Icons; src: url("./fonts/flaticon.woff") format("woff"); font-display: block; }
@font-face { font-family: Material Icons; src: url("./fonts/material.woff") format("woff"); font-display: block; }

:root {
  --background: #272e3d;
  --footer: #1d222e;
  --red: #d1000d;
  --red-line: #d1000d;
  --text: #5e5e5e;
  --heading: #3d3d3d;
  --paper: #f5f8f8;
  --body-size: 20px;
  --body-line: 30px;
  --gutter: 25px;
  --content-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow-x: clip; background: var(--background); color: var(--text); font: 300 var(--body-size)/var(--body-line) Lato, sans-serif; letter-spacing: 1px; }
h1, h2, h3, h4, p, figure, ul { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid #0078d4; outline-offset: 4px; }
html:has(dialog[open]) { overflow: hidden; }
.wrap { width: min(var(--content-width), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 9; padding: 8px 16px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.accent { color: var(--red); }
.underlined { text-decoration: underline; }
.rich { display: flow-root; }
.rich h3 { color: #1b1b1d; text-align: center; font: 300 32px/42px Raleway, sans-serif; letter-spacing: 0; }
.rich h4, .partner-heading { color: var(--red); font: 400 24px/42px Raleway, sans-serif; letter-spacing: 0; text-align: center; text-transform: uppercase; }
.partner-heading h4 { font: inherit; }
.rich a { color: var(--red); text-underline-offset: .13em; }

.icon { display: inline-grid; place-items: center; flex: none; font-family: Solid Icons; font-weight: 400; line-height: 1; letter-spacing: 0; }
.icon-phone::before { content: "\f2a0"; }
.icon-mail::before { font-family: Material Icons; content: "\f15a"; }
.icon-external::before { content: "\f35d"; }
.icon-check::before { font-family: Material Icons; content: "\f26b"; }
.icon-up::before { font-family: Material Icons; content: "\f2fc"; }
.icon-left::before { content: "\f053"; }
.icon-right::before { content: "\f054"; }
.icon-facebook::before { font-family: Material Icons; content: "\f343"; }
.icon-instagram::before { font-family: Brand Icons; content: "\f16d"; }
.icon-route::before { font-family: Outline Icons; content: "\f206"; }
.icon-users::before { font-family: Outline Icons; content: "\f263"; }
.icon-checkbox::before { font-family: Outline Icons; content: "\f12d"; }

.site-header { position: relative; z-index: 2; }
.brand { display: grid; place-items: center; height: 258px; }
.brand img { width: 250px; height: auto; }
.topbar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 88px;
  padding-inline: 15px; border-block: 4px solid #d90b0b;
  background: linear-gradient(#fff, #dbdbdb); box-shadow: 0 10px 20px rgb(0 0 0 / 41%);
}
.desktop-nav { display: flex; justify-content: center; }
.desktop-nav a, .menu-dialog a {
  display: block; padding: 15px 20px; color: #636363; font: 300 16px/16px Raleway, sans-serif;
  letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: color .25s;
}
.desktop-nav a:hover, .menu-dialog a:hover, [aria-current="page"] { color: var(--red) !important; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; padding: 0 25px;
  color: white; background: var(--red); font: 400 16px/1 Lato, sans-serif; letter-spacing: 0;
  text-transform: uppercase; text-decoration: none; border-radius: 10px; transition: background-color .25s, color .25s;
}
.button:hover { color: var(--red); background: #fff; }
.phone { justify-self: start; width: 210px; min-height: 48px; font: 400 18px/1 Raleway, sans-serif; letter-spacing: 1px; }
.phone .icon, .top-contact .icon { font-size: 17px; }
.top-contact { justify-self: end; min-width: 161px; min-height: 50px; font: 400 16px/20px Raleway, sans-serif; }
.menu-trigger { display: none; }
.menu-dialog { display: none; }
dialog { border: 0; padding: 0; color: inherit; }
.close { position: absolute; top: 15px; right: 15px; width: 26px; height: 26px; border: 0; background: transparent; z-index: 1; }
.close::before, .close::after { content: ""; position: absolute; width: 21px; height: 1px; background: currentColor; left: 3px; top: 12px; transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }

.hero {
  position: relative; padding-block: 300px; border-bottom: 6px solid var(--red-line);
  background-position: center; background-repeat: no-repeat; background-size: cover;
}
.hero .wrap { display: grid; align-items: center; }
.hero h1, .hero [data-hero-size]::before {
  grid-area: 1 / 1; color: #fafafa; font: 500 60px/79px Raleway, sans-serif;
  letter-spacing: 2px; text-align: center;
}
/* Match the space taken by the home headline at the current width. */
.hero [data-hero-size]::before { content: attr(data-hero-size); visibility: hidden; }
.home .hero h1, .hero [data-hero-size]::before { font-weight: 600; }
.home .hero { background-image: linear-gradient(rgb(0 0 0 / 13%), rgb(0 0 0 / 13%)), url("./images/beru-team.webp"); }
.company .hero { background-image: linear-gradient(rgb(0 0 0 / 10%), rgb(0 0 0 / 10%)), url("./images/dach-himmel.jpg"); }
.services .hero { background-image: linear-gradient(rgb(0 0 0 / 16%), rgb(0 0 0 / 16%)), url("./images/blech-biegen.jpg"); }
.intro { position: relative; margin-top: -50px; padding-bottom: 175px; }
.card {
  padding: 50px; border-radius: 20px; background: linear-gradient(#fff, #f2f2f2);
  box-shadow: 0 10px 20px rgb(0 0 0 / 33%);
}
.card h2, .team-section > h2, .gallery-section > h2, .projects-section > h2 {
  color: var(--heading); font: 400 40px/50px Helvetica, Arial, sans-serif;
  letter-spacing: 0; text-align: center; text-transform: uppercase;
}
.home-subtitle { margin-top: 10px; margin-bottom: 40px; }
.home-subtitle h3 { color: var(--heading); font: 300 26px/42px Raleway, sans-serif; text-align: center; letter-spacing: 0; }
.home-closing { margin-block: 25px; }
.qualities, .ticks { list-style: none; padding: 0; }
.qualities { display: grid; gap: 14px; }
.qualities li, .ticks li { display: flex; align-items: center; gap: 20px; }
.qualities li { min-height: 39px; font-weight: 400; }
.qualities .icon { font-size: 24px; }
.content-image img, .service-image img { width: 100%; height: auto; transition: opacity .3s; }
.content-image img:hover, .service-image img:hover { opacity: .85; }
.partner-heading { margin-top: 80px; }
.company-story { margin: 50px 0 25px; }
.company-story h3 { margin: 0; }
.company:not(.archive) .company-story { font: 300 16px/normal Lato, sans-serif; letter-spacing: normal; }
.company:not(.archive) .company-story p { font-size: var(--body-size); line-height: var(--body-line); letter-spacing: 1px; }

.cta {
  border-block: 20px solid #374054; padding-block: 150px;
  color: #fff; background-position: center; background-size: cover; background-attachment: fixed;
}
.cta-home { background-image: linear-gradient(rgb(39 46 61 / 76%), rgb(39 46 61 / 76%)), url("./images/day-planner-828611_1920.jpg"); }
.cta-company { background-image: linear-gradient(rgb(39 46 61 / 76%), rgb(39 46 61 / 76%)), url("./images/anruf-mann.jpg"); }
.cta-services { background-image: linear-gradient(rgb(39 46 61 / 76%), rgb(39 46 61 / 76%)), url("./images/dsc_0729.jpg"); }
.cta-inner { display: grid; grid-template-columns: minmax(0,2.06fr) minmax(0,1fr); align-items: center; gap: 25px; }
.cta h3 { margin: 0; color: inherit; font: 300 30px/50px Raleway, sans-serif; text-align: center; letter-spacing: 1px; }
.cta-home h3 { line-height: 44px; }
.cta-company h3 { color: #f5f5f5; }
.cta-company .cta-question { margin-bottom: 10px; font-weight: 500; text-transform: uppercase; }
.cta-action { display: flex; justify-content: center; }
.pill { min-width: 333px; min-height: 90px; border-radius: 50px; font: 400 20px/1 Raleway, sans-serif; letter-spacing: 1px; }
.cta-home .pill { min-width: 340px; min-height: 80px; font-size: 18px; }
.cta-home .icon { font-size: 16px; }
.tel-pill { font: 400 20px/1 Raleway, sans-serif; }
.tel-pill .icon { font-size: 22px; }
.rotate-headline span { display: inline-block; white-space: pre; }
.rotate-headline .word { white-space: nowrap; }
.motion [data-enter]:not(.reveal), .motion .rotate-headline:not(.reveal) { opacity: 0; }
.motion [data-enter].reveal { animation: var(--enter) var(--enter-time,.9s) both; }
[data-enter="bounce-left"] { --enter: bounce-in; --entrance: -3000px; --rebound: 16px; --settle: -5px; }
[data-enter="bounce-right"] { --enter: bounce-in; --entrance: 3000px; --rebound: -16px; --settle: 5px; }
[data-enter="fade-up"] { --enter: fade-in; --vertical: 100%; }
[data-enter="fade-left"] { --enter: fade-in; --horizontal: -100%; }
[data-enter="fade-right"] { --enter: fade-in; --horizontal: 100%; }
.jobs [data-enter] { --enter-time: 1s; }
[data-enter="zoom"] { --enter: zoom-in; }
.rotate-headline.reveal span span { animation: rotate-in .65s both; animation-delay: calc(var(--letter) * 10ms); }
@keyframes bounce-in {
  0% { opacity: 0; transform: translateX(var(--entrance)); }
  62% { opacity: 1; transform: translateX(var(--rebound)); }
  78% { transform: translateX(var(--settle)); }
  100% { transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translate(var(--horizontal, 0), var(--vertical, 0)); }
  to { opacity: 1; transform: none; }
}
@keyframes zoom-in { from { opacity: 0; transform: scale(.3); } 70% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes rotate-in { from { opacity: 0; transform: translateY(50%) rotateX(-90deg); } to { opacity: 1; transform: none; } }

.two-parts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.07fr); gap: 25px; align-items: start; }
.directions { padding-block: 150px; color: #fff; }
.directions-symbol { text-align: right; }
.directions-symbol a { display: inline-grid; place-items: center; width: 160px; height: 160px; color: var(--red); font-size: 120px; text-decoration: none; transition: color .25s; }
.directions-symbol a:hover { color: white; }
.directions h3 { margin-bottom: 25px; font: 300 32px/42px Raleway, sans-serif; letter-spacing: 0; text-transform: uppercase; }
.directions h4 { font: 300 22px/32px Raleway, sans-serif; letter-spacing: 0; }

.carousel { position: relative; min-width: 0; --gap: 30px; --visible: 4; }
.slide-window { overflow: hidden; cursor: grab; }
.slide-window:active { cursor: grabbing; }
.slides { display: flex; width: 100%; padding: 0; list-style: none; gap: var(--gap); will-change: transform; }
.slide { position: relative; flex: 0 0 calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible)); min-width: 0; }
.partners img { width: 100%; height: 150px; object-fit: contain; filter: grayscale(1); }
.team-section { padding-block: 150px; color: white; }
.team-section > h2, .gallery-section > h2, .projects-section > h2 { color: inherit; padding-inline: var(--gutter); }
.team-section > h2, .gallery-section > h2, .projects-section > h2 { margin-bottom: 50px; }
.team { --visible: 3.6; }
.team img { width: 100%; height: 450px; object-fit: cover; }
.team .slide-caption {
  position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 15px; opacity: 0;
  background: rgb(0 0 0 / 60%); color: white; text-align: center; transition: opacity .3s;
}
.team .slide:hover .slide-caption, .team .slide:focus-visible .slide-caption { opacity: 1; }
.team .slide-caption h3 { font: 500 24px/32px Raleway, sans-serif; }
.team .slide-caption p { font-size: 18px; }
.slide-control, .to-top {
  display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%;
  background: var(--red); color: white; font-size: 15px; line-height: 1; z-index: 1;
  transition: color .25s, background-color .25s, opacity .25s;
}
.slide-control:hover, .to-top:hover { background: white; color: var(--red); }
.slide-control.previous { left: 20px; }
.slide-control.next { right: 20px; }
.jobs { margin-top: 125px; align-items: center; min-height: 199px; }
.jobs-symbol { display: flex; justify-content: center; }
.jobs-symbol .icon { width: 156px; height: 156px; border: 3px solid #eee; border-radius: 50%; font-size: 70px; }
.jobs h3 { color: var(--red); letter-spacing: 2px; font: 500 32px/42px Raleway, sans-serif; }
.jobs h4 { color: var(--paper); font: 400 24px/42px Raleway, sans-serif; margin: 10px 0 25px; text-transform: uppercase; letter-spacing: 0; }
.flip-grid { display: grid; padding-inline: 25px; gap: 30px; grid-template-columns: repeat(6,minmax(0,1fr)); }
.flip-management { width: min(100%, 1200px); margin: 75px auto 0; grid-template-columns: repeat(2,minmax(0,1fr)); justify-items: center; }
.flip { position: relative; height: 350px; min-width: 0; padding: 0; border: 0; background: none; perspective: 900px; }
.flip-management .flip { width: min(100%, 363px); height: 550px; }
.flip-inner { display: block; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flip:hover .flip-inner, .flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
.flip-photo, .flip-copy { position: absolute; inset: 0; display: grid; align-content: center; border-radius: 16px; overflow: hidden; backface-visibility: hidden; }
.flip-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.flip-copy { padding: 16px; color: white; background: #374153; font: 300 17px/1.4 Lato, sans-serif; transform: rotateY(180deg); }
.flip-h3 { font: 500 24px/1.2 Raleway, sans-serif; }
.archive .team-section > h2 { margin-bottom: 75px; }
.archive .jobs { margin-top: 125px; }

.services .intro { padding-bottom: 50px; }
.services-overview { margin-top: 50px; }
.service-tabs { margin-top: 75px; }
.tab-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.tab-list button {
  min-height: 61px; border: 0; border-bottom: 5px solid transparent; background: none; color: rgb(29 29 31 / 40%);
  font: 500 20px/20px Helvetica, Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase;
}
.tab-list button[aria-selected="true"], .tab-list button:hover { color: var(--red); border-bottom-color: var(--red); }
.tab-panel { margin: 20px 20px 0; padding-bottom: 37px; }
.service-row, .service-lists { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.service-row { padding-top: 25px; }
.service-image img { max-height: 334px; object-fit: cover; box-shadow: 0 11px 22px rgb(0 0 0 / 13%); }
#service-panel-1 .service-image img { width: min(500px, 100%); margin-inline: auto; }
.service-description { padding: 25px 0 25px; }
.service-lead { padding-top: 25px; }
.service-lists { padding-top: 50px; }
.ticks { display: grid; gap: 20px; align-content: start; }
.ticks li { min-height: 36px; font: 300 19px/30px Lato, sans-serif; text-transform: uppercase; }
.ticks .icon { color: var(--red); font-size: 14px; }
.gallery-section { color: #fff; padding: 125px var(--gutter) 170px; }
.gallery-section > h2, .projects-section > h2 { padding-inline: 0; }
.gallery { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 10px; }
.gallery-image { position: relative; display: block; height: 150px; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: #333; }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.gallery-image:hover img, .gallery-image:focus-visible img { transform: scale(1.04); opacity: .77; }
.projects-section { padding: 150px var(--gutter) 146px; color: #fff; }
.project-list {
  display: flex; gap: 8px; width: min(100%, var(--content-width)); height: clamp(350px, 37vw, 510px);
  margin-inline: auto; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #646d7f var(--background);
}
.project {
  position: relative; isolation: isolate; flex: 0 0 38px; min-width: 0; padding: 0; border: 0;
  overflow: hidden; background: var(--footer); color: #fff;
  text-align: left; transition: flex-grow .6s cubic-bezier(.2,.8,.2,1), flex-basis .6s cubic-bezier(.2,.8,.2,1);
}
.project.is-open { flex-grow: 1; }
.project:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project::after {
  content: ''; position: absolute; inset: 0; background: rgb(10 14 23 / 40%);
  opacity: 1; transition: opacity .35s ease; pointer-events: none;
}
.project.is-open::after { opacity: 0; }
.project-caption {
  position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: 5px;
  padding: 48px clamp(16px, 3vw, 36px) 24px;
  background: linear-gradient(transparent, rgb(12 16 24 / 94%)); pointer-events: none;
  opacity: 0; transform: translateX(-12px); transition: opacity .16s ease, transform .24s ease;
}
.project.is-open .project-caption { opacity: 1; transform: none; transition: opacity .25s .2s ease, transform .35s .16s ease; }
.project-town { font: 600 14px/1.25 Lato, sans-serif; }
.project-name { font: 600 clamp(21px, 2.4vw, 34px)/1.12 Raleway, sans-serif; letter-spacing: 0; overflow-wrap: anywhere; }
.project-facts { font: 400 15px/1.35 Lato, sans-serif; letter-spacing: 0; }
.project-gallery { display: none; }

@media (max-width: 1024px) {
  .project-list { height: clamp(320px, 62vw, 460px); }
  .project { flex-basis: 48px; }
  .project.is-open { flex: 0 0 min(82%, 580px); }
}
@media (max-width: 768px) and (orientation: portrait) {
  .has-mobile-gallery .project-list { display: none; }
  .has-mobile-gallery .project-gallery { display: block; }
  .project-gallery-photos { touch-action: pan-y pinch-zoom; background: var(--footer); }
  .project-gallery figure > img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #181d27;
  }
  .project-gallery figcaption { display: grid; gap: 5px; padding: 16px; }
  .project-gallery figcaption:focus-visible { outline-offset: -3px; }
  .project-gallery-nav {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center; text-align: center; margin-block: 12px;
  }
  .project-gallery-nav output { font: 400 15px/1.35 Lato, sans-serif; font-variant-numeric: tabular-nums; }
  .project-gallery-nav button {
    display: grid; place-items: center; min-height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: var(--red); color: white; font-size: 15px;
  }
  .project-gallery-nav button:active { background: white; color: var(--red); }
  .project-overview { border-block-start: 1px solid #626b7d; letter-spacing: 0; }
  .project-overview summary { min-height: 44px; padding: 9px 4px; cursor: pointer; font-weight: 400; }
  .project-overview ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; list-style: none; }
  .project-overview button {
    display: grid; align-content: start; width: 100%; height: 100%; padding: 0; border: 0;
    background: var(--footer); text-align: left; font: 400 15px/1.3 Lato, sans-serif;
  }
  .project-overview button[aria-current="true"] { box-shadow: inset 0 -3px var(--red); }
  .project-overview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .project-overview button span { padding: 9px 10px 12px; overflow-wrap: anywhere; }
  .project-overview small { display: block; margin-top: 4px; color: #d5d9e1; font-size: 13px; }
}

.gallery-dialog { width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden; color: #fff; background: rgb(0 0 0 / 50%); }
.gallery-dialog[open] { display: grid; align-items: center; justify-items: center; }
.gallery-dialog .close { top: 48px; right: 50px; opacity: .6; }
.gallery-dialog .close::before, .gallery-dialog .close::after { width: 29px; height: 2px; }
.gallery-dialog figure { text-align: center; }
.gallery-dialog img { max-width: 90vw; max-height: calc(100dvh - 100px); object-fit: contain; margin-inline: auto; }
.gallery-dialog figcaption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.gallery-dialog .slide-control { width: 55px; height: 55px; background: transparent; opacity: .25; }
.gallery-dialog .slide-control:hover, .gallery-dialog .slide-control:focus-visible { background: rgb(255 255 255 / 15%); color: #fff; opacity: 1; }

.legal main { padding-block: 125px; }
.legal-card { padding: 75px 50px; border-radius: 20px; background: var(--paper); overflow-wrap: anywhere; }
.datenschutz .legal-card { background: #fff; }
.legal h1 { text-align: center; color: var(--red); font: 500 60px/79px Raleway,sans-serif; letter-spacing: 2px; }
.legal h2 { color: var(--heading); font: 400 40px/50px Helvetica,Arial,sans-serif; letter-spacing: 0; text-align: center; text-transform: uppercase; }
.impressum h2 { font-size: 30px; line-height: 40px; text-align: left; }
.datenschutz .legal-card h3, .datenschutz .legal-card h4 { text-align: left; }
.datenschutz .legal-card h3 { color: #383636; font-size: 30px; line-height: 44px; }
.impressum .legal-card h3 { color: #525252; font-size: 28px; line-height: 38px; }
.legal-card > div { font: 300 16px/normal Lato, sans-serif; letter-spacing: normal; }
.legal-card p { font-size: var(--body-size); line-height: var(--body-line); letter-spacing: 1px; }
.legal-card ul { margin: 0 0 9px 25px; padding: 0; font: 300 20px/30px Lato, sans-serif; }
.legal-card a { color: #0067ba; text-decoration: underline; }
.legal-card a:hover, .legal-card a:focus-visible { color: #004c87; }

.site-footer { position: relative; background: var(--footer); padding: 125px 0 82px; color: white; }
.footer-main, .footer-bottom { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 25px; }
.footer-main > p { font: 300 18px/34px Lato, sans-serif; letter-spacing: 0; }
.footer-main a { text-decoration: none; }
.footer-main a:hover { text-decoration: underline; }
.footer-brand { display: flex; justify-content: center; }
.footer-brand img { width: 160px; height: 107px; object-fit: contain; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; padding: 5px 0 0 20px; }
.footer-nav a { padding: 8px 0; color: #f5f5f5; font: 300 18px/18px Lato,sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.footer-nav .icon { font-size: 16px; }
.footer-contact {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 140px; height: 140px;
  border-radius: 50%; background: var(--background); pointer-events: none;
}
.footer-contact .button { width: 100px; height: 100px; padding: 0; border-radius: 50%; font-size: 40px; pointer-events: auto; }
.footer-bottom { margin-top: 61px; align-items: start; }
.footer-bottom p { grid-column: 2 / -1; color: rgb(255 255 255 / 40%); text-align: right; font: 300 16px/34px Helvetica,Arial,sans-serif; letter-spacing: 0; }
.social { display: flex; justify-content: center; gap: 10px; }
.social a { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid #999; border-radius: 8px; text-decoration: none; font-size: 21px; transition: background-color .25s; }
.social a:hover { background: var(--red); }
.to-top { position: fixed; top: auto; bottom: 65px; right: 25px; transform: none; width: 58px; height: 58px; font-size: 16px; }

.contact-dialog { width: min(800px, 100%); max-width: none; max-height: calc(100dvh - 50px); margin: 50px auto 0; overflow: auto; background: var(--paper); }
.contact-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.contact-dialog[open] { animation: contact-in 1s both; }
@keyframes contact-in { from { opacity: 0; transform: scale(2); filter: blur(90px); } to { opacity: 1; transform: none; filter: none; } }
.contact-panel { padding: 75px 40px 65px; color: #999; font: 400 18px/36px Lato,sans-serif; letter-spacing: 0; }
.contact-panel h2 { margin: 0 0 36px; color: var(--red); font: 300 30px/40px Helvetica,Arial,sans-serif; text-align: center; text-transform: uppercase; letter-spacing: .5px; }
.contact-panel .close { color: #202124; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 31px 16px; }
.fields label { display: block; color: var(--red); }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields textarea { display: block; width: 100%; padding: 15px; border: 1px solid #f2f2f2; border-radius: 0; background: #fff; color: #424242; font: 400 18px/28px Lato,sans-serif; }
.fields input { height: 60px; }
.fields textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; align-items: center; gap: 20px; margin: 45px 0 42px; cursor: pointer; }
.consent input { appearance: none; flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin: 0; border-radius: 4px; background: #e5e8e8; }
.consent input:checked { background: var(--red); color: #fff; }
.consent input:checked::before { font-family: Solid Icons; content: "\f00c"; font-size: 15px; }
.contact-panel a { color: var(--red); text-decoration: none; }
.contact-panel a:hover { text-decoration: underline; }
.send { display: flex; width: fit-content; min-height: 76px; padding: 20px 60px; margin: 30px auto 0; font-size: 14px; text-transform: none; }
.send:disabled { cursor: wait; opacity: .65; }
.form-status { margin-top: 15px; color: #a2000b; }
.contact-success { text-align: center; padding: 30px 0; color: #373737; }

@media (max-width: 1440px) {
  .hero { padding-block: 180px; }
}

@media (max-width: 1280px) {
  .hero { padding-block: 170px; }
  .intro { margin-top: -45px; }
}

@media (max-width: 1024px) {
  .hero { padding-block: 120px; }
  .home .hero h1, .hero [data-hero-size]::before { font-size: 50px; }
  .topbar { min-height: 92px; grid-template-columns: 50px minmax(0,1fr) 50px; padding-inline: 15px; }
  .desktop-nav { display: none; }
  .top-contact { grid-area: 1 / 1; justify-self: start; width: 50px; min-width: 0; gap: 0; padding: 0; align-self: start; margin-top: 15px; }
  .top-contact > span:last-child { display: none; }
  .phone { grid-area: 1 / 2; justify-self: end; width: min(210px,100%); padding-inline: 5px; }
  .menu-trigger { display: grid; place-items: center; justify-self: end; border: 0; width: 35px; height: 50px; background: transparent; padding: 0; color: #222; }
  .menu-trigger span { width: 20px; height: 2px; margin-left: auto; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .menu-dialog[open] { display: block; position: fixed; inset: 0 0 0 auto; margin: 0; max-height: none; max-width: min(360px,100vw - 30px); width: 360px; height: 100%; background: var(--background); }
  .menu-dialog::backdrop { background: rgb(0 0 0 / 10%); }
  .menu-dialog[open] { animation: reveal-menu .35s ease-out; }
  .menu-dialog nav { padding: 74px 30px; }
  .menu-dialog a { text-align: left; font-size: 18px; }
  .menu-dialog .close { top: 15px; right: 13px; color: #161b23; transform: scale(.68); }
  @keyframes reveal-menu { from { transform: translateX(100%); } to { transform: none; } }
  .pill { min-width: min(100%, 275px); }
  .cta-home .pill { min-width: min(100%, 275px); }
  .gallery { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .team { --visible: 2.5; }
}

@media (max-width: 768px) {
  :root { --body-size: 16px; --body-line: 26px; }
  .topbar { grid-template-columns: 50px 50px minmax(0, 1fr); column-gap: 8px; }
  .topbar .phone, .topbar .top-contact {
    justify-self: start; align-self: center; width: 50px; min-height: 50px; margin: 0; padding: 0;
  }
  .topbar .phone { grid-area: 1 / 1; }
  .topbar .phone > span:last-child { display: none; }
  .topbar .top-contact { grid-area: 1 / 2; }
  .topbar .menu-trigger { grid-area: 1 / 3; }
  .hero h1 { font-size: 36px; line-height: 46px; }
  .home .hero h1, .hero [data-hero-size]::before { line-height: 70px; }
  .intro, .services .intro { padding-bottom: 105px; }
  .home .intro { padding-bottom: 86px; }
  .services .intro { padding-bottom: 56px; }
  .card { padding: 50px 25px; }
  .services .card { padding-inline: 15px; }
  .card h2, .team-section > h2, .gallery-section > h2, .projects-section > h2 { font-size: 28px; line-height: 38px; }
  .company .card h2 { font-size: 26px; }
  .services .card h2 { font-size: 36px; line-height: 46px; }
  .home-subtitle h3 { line-height: 32px; }
  .rich h3 { font-size: 28px; line-height: 38px; }
  .rich h4, .partner-heading { font-size: 20px; line-height: 30px; }
  .qualities { gap: 8px; }
  .qualities li { min-height: 52px; gap: 15px; }
  .carousel { --visible: 1; }
  .partners img { height: 80px; }
  .two-parts, .cta-inner { grid-template-columns: 1fr; }
  .cta { padding-block: 130px 120px; }
  .cta-home { padding-block: 75px 65px; }
  .cta-home h3 { font-size: 24px; line-height: 34px; }
  .cta-company .cta-question { font-size: 24px; line-height: 34px; }
  .cta-company h3 { font-size: 24px; line-height: 44px; }
  .cta-services h3 { font-size: 26px; line-height: 46px; }
  .cta-services { padding-bottom: 118px; }
  .cta-inner { gap: 40px; }
  .cta-home .cta-inner { gap: 40px; }
  .pill, .cta-home .pill { width: min(296px,100%); }
  .cta-home .pill { min-height: 84px; }
  .directions { margin-block: 50px; padding-block: 50px 75px; text-align: center; }
  .directions .two-parts { gap: 50px; }
  .directions-symbol { text-align: center; }
  .directions h3 { font-size: 28px; line-height: 32px; }
  .team-section { padding: 75px 0 130px; }
  .team { width: min(360px, 100% - 2 * var(--gutter)); margin-inline: auto; --visible: 1; }
  .team img { height: 330px; }
  .team .slide-control { width: 44px; height: 44px; }
  .team .slide-control.previous { left: 12px; }
  .team .slide-control.next { right: 12px; }
  .jobs { margin-top: 125px; text-align: center; gap: 75px; }
  .jobs-symbol .icon { width: 134px; height: 134px; font-size: 48px; }
  .jobs h3 { font-size: 22px; line-height: 32px; }
  .jobs h4 { font-size: 20px; line-height: 40px; }
  .flip-grid { grid-template-columns: 1fr; gap: 50px; }
  .flip, .flip-management .flip { width: min(100% - 30px, 310px); height: 500px; justify-self: center; }
  .flip-management { margin-top: 75px; }
  .archive .jobs { margin-top: 125px; }
  .tab-list button { font-size: 12px; overflow-wrap: anywhere; padding-inline: 4px; }
  .service-row, .service-lists { grid-template-columns: 1fr; gap: 25px; }
  .service-row + .service-description { padding-top: 25px; }
  .service-lists { padding-top: 50px; }
  .ticks { gap: 19px; }
  .ticks li { font-size: 15px; line-height: 26px; min-height: 36px; }
  .gallery-section { padding: 50px var(--gutter) 75px; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-image { height: 120px; }
  .projects-section { padding-block: 75px 126px; }
  .gallery-dialog .slide-control { opacity: 0; }
  .legal main { padding-block: 105px; }
  .legal-card { padding: 75px 25px; }
  .legal h1 { font-size: 36px; line-height: 46px; }
  .legal h2 { font-size: 28px; line-height: 38px; }
  .impressum h2 { font-size: 24px; line-height: 36px; }
  .impressum .legal-card h3 { font-size: 22px; line-height: 32px; }
  .site-footer { padding-block: 125px 55px; text-align: center; }
  .footer-main, .footer-bottom { grid-template-columns: 1fr; gap: 50px; }
  .footer-nav { align-items: center; padding: 0; margin-top: -25px; }
  .footer-bottom { margin-top: 60px; gap: 50px; }
  .footer-bottom p { grid-column: 1; text-align: center; }
  .to-top { bottom: 65px; }
  .home .to-top { display: none; }
  .contact-panel { padding-inline: 40px; }
  .fields { grid-template-columns: 1fr; }
  .send { min-height: 58px; }
}

@media (max-width: 420px) {
  .hero { padding-block: 150px; }
  .home .hero h1, .hero [data-hero-size]::before { font-size: 40px; line-height: 50px; }
}

@media (max-width: 360px) {
  .home .hero h1, .hero [data-hero-size]::before { font-size: clamp(32px, 10.9vw, 40px); line-height: 1.25; overflow-wrap: anywhere; }
  .company .card h2 { font-size: clamp(19px, 6.5vw, 26px); overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .project.is-open .project-caption { transition-delay: 0s; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
