/*
 * Webstudio refinement layer v0.2
 * Deliberately loaded after main.css. No remote assets or fonts.
 * Keeps original site sections, anchor IDs and OnePress-style dots intact.
 */
:root {
  --ws-ease: cubic-bezier(.22,1,.36,1);
  --ws-ease-standard: cubic-bezier(.2,.7,.2,1);
  --ws-radius: 3px;
  --ws-shadow: 0 16px 46px rgba(15,38,42,.07);
}

/* Overall rhythm and type */
html { scroll-padding-top: 84px; }
body { line-height: 1.58; }
.container { width: min(calc(100% - 80px), 1180px); }
.section { padding-block: clamp(68px, 6.4vw, 92px); }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 5.5vw, 5.65rem); line-height: 1.055; letter-spacing: -.047em; }
h2 { font-size: clamp(2.35rem, 3.55vw, 3.8rem); line-height: 1.11; letter-spacing: -.042em; }
h3 { letter-spacing: -.03em; }
p { text-wrap: pretty; }
.lead { font-size: 1.07rem; line-height: 1.75; }
.eyebrow { margin-bottom: 18px; font-size: .72rem; letter-spacing: .16em; }
.button { min-height: 52px; padding: 13px 21px; gap: 20px; border-radius: var(--ws-radius); transition: background-color .28s var(--ws-ease-standard), border-color .28s var(--ws-ease-standard), color .28s var(--ws-ease-standard), transform .32s var(--ws-ease), box-shadow .32s var(--ws-ease); }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(9,47,50,.13); }
.button:active { transform: translateY(0); }
.text-link { gap: 32px; transition: gap .3s var(--ws-ease), color .2s ease; }
.text-link:hover { gap: 41px; }
a { -webkit-tap-highlight-color: transparent; }

/* Header */
:root { --header-h: 76px; }
.site-header { transition: box-shadow .35s var(--ws-ease-standard), background-color .35s ease; }
.nav-shell { gap: 24px; }
.brand-mark { width: 43px; height: 43px; font-size: 24px; }
.brand-name strong { font-size: 1.1rem; }
.brand-name small { font-size: .6rem; letter-spacing: .14em; }
.primary-nav,.nav-list { gap: clamp(16px, 2.05vw, 28px); }
.nav-list a { position: relative; transition: color .2s ease; }
.nav-list > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ws-ease); pointer-events: none;
}
.nav-list > li:hover > a::after,
.nav-list > li:focus-within > a::after { transform: scaleX(1); }
.nav-contact { padding: 13px 18px; transition: background-color .25s ease, transform .25s var(--ws-ease); }
.nav-contact:hover { transform: translateY(-1px); }
.site-header.scrolled { box-shadow: 0 6px 22px rgba(15,36,40,.09); }

/* Hero: tighter layout, more purposeful dark space, unobtrusive depth */
.hero { min-height: min(710px, calc(100svh - var(--header-h))); }
.hero-content { min-height: 635px; padding-top: 52px; padding-bottom: 93px; }
.hero-copy { max-width: 760px; position: relative; z-index: 1; }
.hero h1 { max-width: 770px; margin-bottom: 24px; }
.hero-description { max-width: 570px; font-size: 1.095rem; line-height: 1.72; margin-bottom: 32px; }
.hero-actions { gap: 12px; }
.hero-bottom { bottom: 23px; }
.hero--no-image .hero-background::before {
  content: ""; position: absolute; z-index: 0; top: 4%; right: -10%; width: min(57vw, 760px);
  aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(177,223,215,.095);
  box-shadow: 0 0 0 70px rgba(178,229,218,.027), 0 0 0 155px rgba(178,229,218,.016);
  pointer-events: none;
}
.hero--no-image .hero-background::after {
  z-index: -1;
  background: radial-gradient(ellipse at 78% 28%, rgba(68,142,139,.2), transparent 44%), linear-gradient(120deg,#09252b 1%,#153b40 54%,#102e34 100%);
}
.hero-tint { background: linear-gradient(90deg,rgba(9,30,36,.89) 0%,rgba(14,39,44,.69) 48%,rgba(18,47,52,.33) 100%); }
.hero--no-image .hero-tint { background: linear-gradient(90deg,rgba(9,29,35,.12),rgba(8,35,39,.04)); }
.hero-side { opacity: .78; font-size: .62rem; letter-spacing: .2em; }
.hero-bottom a { transition: color .22s ease; }
.hero-bottom a:hover { color: #fff; }
.scroll-arrow { transition: transform .3s var(--ws-ease), border-color .2s ease; }
.hero-bottom a:hover .scroll-arrow { transform: translateY(4px); border-color: #fff; }
.hero-slider-controls button { transition: background .25s ease, border-color .25s ease; }
.hero-slider-controls button:hover { background: rgba(255,255,255,.16); border-color: #fff; }

/* Strengths: three tighter, balanced columns */
.strengths-section { padding-block: 61px 66px; }
.strengths-head { padding-bottom: 22px; }
.strengths-grid { gap: clamp(24px,3vw,42px); margin-top: 34px; }
.strength h3 { font-size: 1.48rem; margin-bottom: 8px; }
.strength p { font-size: .94rem; line-height: 1.69; }
.strength-icon { margin: 10px 0; font-size: 1.85rem; }
.strength { padding-right: 13px; }

/* About: shorter image and factual rhythm */
.about-grid { grid-template-columns: 1fr 1fr; gap: clamp(44px,6vw,85px); }
.about-visual { min-height: 480px; }
.about-image { height: 480px; }
.about-card { right: -16px; bottom: -14px; padding: 22px 28px; min-width: 162px; }
.about-card strong { font-size: 3rem; }
.about-copy h2 { max-width: 560px; }
.about-copy .lead { margin-bottom: 22px; }
.about-facts { margin: 28px 0 34px; gap: 42px; }
.about-facts strong { font-size: 3.15rem; }
.text-rule { margin: 25px 0; }

/* Service cards: remove wasted vertical gaps, add quiet hover feedback */
.section-heading { margin-bottom: 35px; gap: 45px; }
.section-heading > p { font-size: .96rem; line-height: 1.7; max-width: 350px; }
.services-grid { border-color: #dce4df; }
.service-card {
  padding: 29px 29px 32px; min-height: 252px;
  transition: background-color .3s ease, box-shadow .32s var(--ws-ease), transform .36s var(--ws-ease);
  position: relative;
}
.service-top { margin-bottom: 28px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { line-height: 1.65; }
.service-arrow { transition: background .28s ease, color .28s ease, transform .32s var(--ws-ease); }
.service-card:hover { background: #f1f7f5; box-shadow: var(--ws-shadow); z-index: 1; transform: translateY(-3px); }
.service-card:hover .service-arrow { transform: translate(2px,-2px); background: var(--teal-dark); color: #fff; }
.service-image { margin: -8px 0 19px; }

/* Projects: less padding and soft image motion */
.projects-grid { gap: 18px; }
.project-card { overflow: hidden; transition: transform .35s var(--ws-ease), box-shadow .35s var(--ws-ease); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--ws-shadow); }
.project-card img { transition: transform .65s var(--ws-ease); }
.project-meta { padding: 20px 22px 23px; }
.project-meta h3 { font-size: 1.13rem; }
.project-empty { min-height: 246px; padding: 37px 48px; gap: 47px; }
.project-empty-mark { font-size: 8rem; }
.project-empty h3 { font-size: clamp(1.55rem,2.45vw,2.25rem); }

/* Team and testimonials */
.team-grid { gap: 20px; }
.team-photo { height: 290px; }
.team-card { transition: transform .35s var(--ws-ease); }
.team-card:hover { transform: translateY(-3px); }
.team-card h3 { margin: 15px 0 3px; }
.team-card > p { line-height: 1.65; }
.testimonial-grid { gap: 18px; }
.testimonial-card { padding: 30px; }
.testimonial-card > div { font-size: 4.3rem; }

/* CTA/contact/footer */
.cta-section { padding-block: 73px; }
.cta-inner h2 { max-width: 680px; }
.cta-inner p:not(.eyebrow) { line-height: 1.65; }
.contact-grid { gap: clamp(40px,7vw,92px); }
.contact-copy > .lead { margin-bottom: 35px; }
.contact-details { gap: 23px; }
.contact-details > div { padding-top: 16px; }
.contact-form-card { padding: clamp(28px,3.2vw,43px); box-shadow: 0 14px 38px rgba(20,50,49,.055); }
.contact-form-card h3 { margin-bottom: 23px; }
.ws-form { gap: 17px; }
.ws-form input:not([type="checkbox"]),.ws-form textarea {
  background: #fafbf9; border-radius: var(--ws-radius);
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.ws-form input:focus,.ws-form textarea:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(36,122,131,.095); }
.site-footer { padding-block: 42px; }
.footer-about p { margin-bottom: 18px; }
.footer-links { gap: 20px; }

/* Internal pages, including Impressum/Datenschutz */
.inner-page-section { padding-top: 74px; padding-bottom: 80px; min-height: 58svh; }
.inner-page-section h1 { font-size: clamp(2.5rem,4.1vw,4.15rem); line-height: 1.09; }
.page-content { line-height: 1.75; }
.page-content h2 { font-size: clamp(1.55rem,2.45vw,2.1rem); margin: 38px 0 12px; }
.page-content h3 { margin-top: 26px; }
.page-content p { margin-bottom: 1em; }
.page-content ul,.page-content ol { padding-left: 1.35em; }
.page-content a { text-underline-offset: 3px; }
.page-content .ws-legal-test-warning { margin-bottom: 28px; }

/* The section dots stay completely transparent. */
.ws-section-dot-label { transition-duration: .2s; }
.ws-section-dot-circle { transition: opacity .2s ease, transform .32s var(--ws-ease), box-shadow .32s ease; }

/* Reveals are opt-in only after JS has successfully attached its observer. */
@media (prefers-reduced-motion: no-preference) {
  .ws-reveal.ws-waiting {
    opacity: 0;
    transform: translate3d(0,19px,0);
  }
  .ws-reveal.ws-enter {
    opacity: 1;
    transform: translate3d(0,0,0);
    transition: opacity .65s var(--ws-ease-standard), transform .7s var(--ws-ease);
    transition-delay: var(--ws-reveal-delay,0ms);
  }
}

/* Tablets */
@media (max-width: 1120px) {
  .container { width: min(calc(100% - 52px),1180px); }
  .primary-nav,.nav-list { gap: 14px; }
  .nav-contact { padding-inline: 14px; }
  .about-grid { gap: 42px; }
}

/* Mobile navigation and section layout */
@media (max-width: 920px) {
  :root { --header-h: 72px; }
  html { scroll-padding-top: 78px; }
  .primary-nav.is-open { animation: ws-menu-in .3s var(--ws-ease) both; }
  .nav-list > li > a::after { display: none; }
  .hero { min-height: 615px; }
  .hero-content { min-height: 610px; }
  .about-grid { grid-template-columns: 1fr; gap: 45px; }
  .about-visual { min-height: 420px; max-width: 680px; }
  .about-image { height: 430px; }
  .section-heading { gap: 15px; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 232px; }
  .team-photo { height: 280px; }
}

/* Smaller phones */
@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .section { padding-block: 60px; }
  .site-header { height: var(--header-h); }
  .hero { min-height: 620px; }
  .hero-content { min-height: 625px; padding-top: 35px; padding-bottom: 102px; }
  .hero h1 { font-size: clamp(2.85rem,11.5vw,4.35rem); line-height: 1.075; }
  .hero-description { font-size: .99rem; line-height: 1.66; margin-bottom: 25px; }
  .hero-bottom { bottom: 20px; }
  .hero--no-image .hero-background::before { width: 96vw; top: 15%; right: -43%; }
  .strengths-section { padding-block: 48px 53px; }
  .strengths-grid { gap: 26px; }
  .about-visual { min-height: 330px; }
  .about-image { height: 340px; }
  .about-card { padding: 15px 22px; }
  .about-card strong { font-size: 2.65rem; }
  .about-facts { margin: 25px 0 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 26px; }
  .service-top { margin-bottom: 25px; }
  .projects-grid,.team-grid { grid-template-columns: 1fr; }
  .project-empty { padding: 29px; min-height: 0; }
  .team-photo { height: 340px; }
  .cta-section { padding-block: 54px; }
  .contact-form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer { padding-block: 36px; }
  .inner-page-section { padding-block: 55px 65px; }
}

/* Do not animate elements if the visitor requests reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .ws-reveal, .ws-reveal.ws-waiting, .ws-reveal.ws-enter { opacity: 1 !important; transform: none !important; transition: none !important; }
  .primary-nav.is-open { animation: none; }
}
@keyframes ws-menu-in { from { opacity: .7; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
