/*
Theme Name: Elmer Astra Child
Theme URI: https://officeelmer.wien/
Description: Astra Child Theme fuer die One-Scroll Website der Mst. Paul Elmer GmbH.
Author: D.B. Webdesign
Template: astra
Version: 1.0.8
Text Domain: elmer-astra-child
*/

:root {
  --elmer-blue: #07284b;
  --elmer-blue-soft: #0b3f73;
  --elmer-sky: #0f8bd8;
  --elmer-ice: #eef6fb;
  --elmer-ink: #06182b;
  --elmer-muted: #5f7183;
  --elmer-line: #d9e5ef;
  --elmer-white: #ffffff;
  --elmer-shadow: 0 18px 45px rgba(6, 24, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.elmer-home-template,
body.elmer-legal-template {
  margin: 0;
  color: var(--elmer-ink);
  background: #ffffff;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.elmer-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.elmer-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.elmer-topbar {
  background: var(--elmer-blue);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
}

.elmer-topbar__inner,
.elmer-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.elmer-topbar__inner {
  min-height: 38px;
}

.elmer-topbar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.elmer-topbar a,
.elmer-footer a {
  color: inherit;
  text-decoration: none;
}

.elmer-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 229, 239, 0.85);
  backdrop-filter: blur(12px);
}

.elmer-header__inner {
  min-height: 96px;
  padding: 12px 0;
}

.elmer-logo img {
  display: block;
  width: 148px;
  max-width: 46vw;
  height: auto;
}

.elmer-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 700;
}

.elmer-nav a {
  color: var(--elmer-ink);
  text-decoration: none;
}

.elmer-nav a:hover,
.elmer-nav a:focus-visible {
  color: var(--elmer-sky);
}

.elmer-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--elmer-line);
  border-radius: 10px;
  background: #fff;
  color: var(--elmer-blue);
  cursor: pointer;
}

.elmer-menu-toggle span,
.elmer-menu-toggle::before,
.elmer-menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
}

.elmer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--elmer-sky);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 139, 216, 0.28);
}

.elmer-button:hover,
.elmer-button:focus-visible {
  background: var(--elmer-blue-soft);
  color: #ffffff;
}

.elmer-button--dark {
  background: var(--elmer-blue);
  box-shadow: 0 12px 28px rgba(7, 40, 75, 0.24);
}

.elmer-nav .elmer-button {
  color: #ffffff;
}

.elmer-hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: stretch;
  background-image:
    linear-gradient(rgba(3, 20, 37, 0.58), rgba(3, 20, 37, 0.58)),
    url("assets/images/hintergrund-home.jpg");
  background-position: center;
  background-size: cover;
}

.elmer-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 610px) minmax(240px, 1fr);
  gap: 42px;
  align-items: center;
  padding: 86px 0 92px;
}

.elmer-hero__inner > * {
  min-width: 0;
}

.elmer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--elmer-sky);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.elmer-hero .elmer-eyebrow {
  color: #8fd5ff;
}

.elmer-eyebrow::before {
  width: 34px;
  height: 3px;
  content: "";
  background: currentColor;
}

.elmer-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.elmer-hero h1 span {
  display: block;
  color: #ffffff;
}

.elmer-hero p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.7;
}

.elmer-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.elmer-master {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--elmer-ice);
  border-bottom: 1px solid var(--elmer-line);
}

.elmer-master__inner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.elmer-master__content {
  position: relative;
  z-index: 1;
  width: min(58%, 620px);
  padding: 52px 0 58px;
}

.elmer-master__content h2 {
  margin: 0;
  color: var(--elmer-blue);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.elmer-master__content > p:last-child {
  max-width: 570px;
  margin: 18px 0 0;
  color: var(--elmer-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.elmer-master__seal {
  position: absolute;
  right: -10px;
  bottom: -145px;
  width: clamp(340px, 31vw, 430px);
  pointer-events: none;
}

.elmer-master__seal img {
  display: block;
  width: 100%;
  height: auto;
}

.elmer-section {
  padding: 84px 0;
}

.elmer-section--light {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.elmer-section--blue {
  background: var(--elmer-blue);
  color: #ffffff;
}

.elmer-section__head {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.elmer-section__head h2,
.elmer-split h2,
.elmer-contact h2 {
  margin: 0;
  color: var(--elmer-blue);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.elmer-section--blue .elmer-section__head h2,
.elmer-section--blue .elmer-eyebrow {
  color: #ffffff;
}

.elmer-section__head p,
.elmer-split p,
.elmer-contact p {
  color: var(--elmer-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.elmer-section--blue .elmer-section__head p {
  color: rgba(255, 255, 255, 0.75);
}

.elmer-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.elmer-card {
  min-height: 190px;
  padding: 30px;
  border: 1px solid var(--elmer-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(6, 24, 43, 0.06);
}

.elmer-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--elmer-sky);
  color: #ffffff;
  font-weight: 900;
}

.elmer-card h3,
.elmer-service h3 {
  margin: 0 0 10px;
  color: var(--elmer-blue);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.2;
}

.elmer-card p,
.elmer-service p {
  margin: 0;
  color: var(--elmer-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.elmer-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 58px;
  align-items: center;
}

.elmer-photo-placeholder {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--elmer-blue);
  background-position: center;
  background-size: cover;
  box-shadow: var(--elmer-shadow);
}

.elmer-photo-placeholder--about {
  background-image: url("assets/images/ueber-uns.jpg");
  background-position: center 42%;
}

.elmer-photo-placeholder--contact {
  background-image: url("assets/images/kontakt-projekt.jpg");
  background-position: center 46%;
}

.elmer-check-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.elmer-check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #263b4f;
  font-weight: 700;
}

.elmer-check-list li::before {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--elmer-sky);
  color: #ffffff;
  content: "\2713";
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.elmer-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.elmer-service {
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}

.elmer-service__image {
  min-height: 168px;
  background-color: var(--elmer-blue-soft);
  background-position: center;
  background-size: cover;
}

.elmer-service__image--gutters {
  background-image: url("assets/images/leistung-dachrinnen.jpg");
  background-position: center 30%;
}

.elmer-service__image--sheet-roofs {
  background-image: url("assets/images/leistung-blechdaecher.jpg");
}

.elmer-service__image--flashings {
  background-image: url("assets/images/leistung-einfassungen.jpg");
  background-position: center 48%;
}

.elmer-service__image--repairs {
  background-image: url("assets/images/leistung-reparaturen.jpg");
  background-position: center 44%;
}

.elmer-service__body {
  padding: 22px;
}

.elmer-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 56px;
  align-items: end;
}

.elmer-contact__panel {
  padding: 34px;
  border-radius: 8px;
  background: var(--elmer-blue);
  color: #ffffff;
  box-shadow: var(--elmer-shadow);
}

.elmer-contact__panel h3 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: 1.45rem;
}

.elmer-contact-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.elmer-contact-list a,
.elmer-contact-list span {
  color: #ffffff;
  text-decoration: none;
}

.elmer-contact-list small {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
  text-transform: uppercase;
}

.elmer-contact__map {
  min-height: 230px;
  margin-top: 26px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 14px);
}

.elmer-footer {
  padding: 42px 0 26px;
  background: #041d36;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.elmer-footer__inner {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.elmer-footer__logo img {
  display: block;
  width: 156px;
  height: auto;
  filter: brightness(0) invert(1);
}

.elmer-footer__content {
  display: grid;
  justify-items: end;
  gap: 14px;
  text-align: right;
}

.elmer-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
  font-weight: 700;
}

.elmer-footer__links a:hover,
.elmer-footer__links a:focus-visible,
.elmer-footer__credit a:hover,
.elmer-footer__credit a:focus-visible {
  color: #ffffff;
}

.elmer-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  color: rgba(255, 255, 255, 0.62);
}

.elmer-footer__credit a {
  color: #ffffff;
  font-weight: 700;
}

.elmer-legal-hero {
  padding: 72px 0;
  background: var(--elmer-blue);
  color: #ffffff;
}

.elmer-legal-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.elmer-legal-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
  color: var(--elmer-ink);
  font-size: 1rem;
  line-height: 1.75;
}

.elmer-legal-content > *:first-child {
  margin-top: 0;
}

.elmer-legal-content h2,
.elmer-legal-content h3,
.elmer-legal-content h4 {
  margin: 2em 0 0.65em;
  color: var(--elmer-blue);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.elmer-legal-content h2 {
  font-size: 1.8rem;
}

.elmer-legal-content h3 {
  font-size: 1.35rem;
}

.elmer-legal-content p,
.elmer-legal-content ul,
.elmer-legal-content ol {
  margin: 0 0 1.35em;
}

.elmer-legal-content a {
  color: var(--elmer-sky);
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .elmer-feature-grid,
  .elmer-service-grid,
  .elmer-contact,
  .elmer-split,
  .elmer-hero__inner {
    grid-template-columns: 1fr;
  }

  .elmer-hero {
    min-height: 0;
    background-image:
      linear-gradient(rgba(3, 20, 37, 0.62), rgba(3, 20, 37, 0.62)),
      url("assets/images/hintergrund-home.jpg");
  }

  .elmer-hero__inner {
    padding: 64px 0 72px;
  }

  .elmer-master__content {
    width: 56%;
  }

  .elmer-master__seal {
    right: -80px;
    bottom: -135px;
    width: 390px;
  }

  .elmer-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .elmer-wrap {
    width: min(calc(100% - 28px), 1180px);
  }

  .elmer-topbar__inner {
    min-height: 42px;
    padding: 11px 0;
  }

  .elmer-topbar__inner > span {
    display: none;
  }

  .elmer-topbar__contact {
    display: grid;
    width: 100%;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8rem;
  }

  .elmer-header__inner {
    min-height: 82px;
    padding: 10px 0;
  }

  .elmer-logo img {
    width: 112px;
  }

  .elmer-menu-toggle {
    position: relative;
    display: block;
    flex: 0 0 44px;
    padding: 0;
  }

  .elmer-menu-toggle span,
  .elmer-menu-toggle::before,
  .elmer-menu-toggle::after {
    position: absolute;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
  }

  .elmer-menu-toggle::before {
    top: 14px;
  }

  .elmer-menu-toggle span {
    top: 21px;
  }

  .elmer-menu-toggle::after {
    top: 28px;
  }

  .elmer-nav {
    position: absolute;
    top: 100%;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--elmer-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--elmer-shadow);
  }

  .elmer-nav.is-open {
    display: flex;
  }

  .elmer-nav a {
    padding: 13px 12px;
  }

  .elmer-nav .elmer-button {
    margin-top: 8px;
  }

  .elmer-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .elmer-eyebrow::before {
    display: none;
  }

  .elmer-card {
    text-align: center;
  }

  .elmer-master,
  .elmer-master__inner {
    min-height: 430px;
  }

  .elmer-master__inner {
    align-items: flex-start;
  }

  .elmer-master__content {
    width: 100%;
    padding: 46px 0 190px;
  }

  .elmer-master__content h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
  }

  .elmer-master__content > p:last-child {
    font-size: 0.98rem;
  }

  .elmer-master__seal {
    right: -46px;
    bottom: -105px;
    width: 275px;
  }

  .elmer-section {
    padding: 64px 0;
  }

  .elmer-legal-hero {
    padding: 54px 0;
  }

  .elmer-legal-content {
    width: min(calc(100% - 28px), 900px);
    padding: 54px 0 72px;
  }

  .elmer-service-grid {
    grid-template-columns: 1fr;
  }

  .elmer-photo-placeholder {
    min-height: 290px;
  }

  .elmer-contact__panel {
    padding: 26px;
  }

  .elmer-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .elmer-footer__content {
    justify-items: start;
    text-align: left;
  }

  .elmer-footer__links,
  .elmer-footer__meta {
    justify-content: flex-start;
  }

  .elmer-footer__meta {
    display: grid;
    justify-items: start;
    padding-right: 42px;
  }

  .elmer-footer__credit {
    min-width: 0;
    line-height: 1.6;
  }

  #ast-scroll-top {
    display: none !important;
  }
}
