
@font-face {
  font-family: "CalibriLocal";
  src: url("../fonts/Calibri.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --green: #398c50;
  --green-dark: #2f7442;
  --gray: #777d78;
  --gray-dark: #4f5551;
  --line: #dfe2df;
  --text: #333735;
  --muted: #707672;
  --white: #fff;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "CalibriLocal", Calibri, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid #1f5e32; outline-offset: 3px; }

.site-header { background: #fff; }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 18px;
}
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 170px;
}
.brand img {
  width: min(280px, 70vw);
}
.header-rule {
  height: 6px;
  background: var(--gray);
  margin: 0;
}

.nav-wrap {
  background: var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-label {
  display: none;
  color: white;
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
}
.nav-label::after {
  content: "☰";
  font-size: 1.45rem;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.nav-list a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 15px 18px;
  transition: background .15s ease;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(255,255,255,.12);
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ddd;
}
.hero img {
  width: 100%;
  height: clamp(220px, 30vw, 390px);
  object-fit: cover;
}
.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(119,125,120,.94);
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.page-title {
  background: var(--gray);
  color: #fff;
  text-align: center;
  padding: 28px 20px;
}
.page-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
}

main { min-height: 50vh; }
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 68px 24px 76px;
}
.content.narrow { max-width: 760px; }
.content h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1.25;
}
.content h3 {
  margin: 38px 0 10px;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.3;
}
.content p { margin: 0 0 1.35em; }
.lead {
  font-size: 1.08em;
  color: var(--muted);
}
.section-block + .section-block { margin-top: 54px; }
.accent {
  width: 96px;
  height: 4px;
  background: var(--green);
  margin: 0 0 22px;
}
.contact-box {
  margin-top: 64px;
  padding: 42px 32px;
  background: #f4f5f4;
  border-top: 4px solid var(--green);
}
.contact-box h2 { margin-bottom: 22px; }
.contact-box address {
  font-style: normal;
  line-height: 1.75;
}
.contact-box .company {
  font-weight: 800;
  text-transform: uppercase;
}
.contact-box strong { color: var(--text); }
.contact-box a { text-decoration: none; }
.hours { margin-top: 26px; }

.photo-frame {
  margin: 34px auto 0;
  padding: 10px;
  background: #777d78;
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
}
.photo-frame img { width: 100%; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}
.gallery a {
  display: block;
  overflow: hidden;
  background: #eee;
}
.gallery img {
  width: 100%;
  aspect-ratio: 400 / 284;
  object-fit: cover;
  transition: transform .2s ease;
}
.gallery a:hover img { transform: scale(1.025); }

.job-card {
  border: 1px solid #d7dbd8;
  padding: 28px;
  margin-top: 34px;
}
.job-card h3 { margin: 0 0 8px; }
.job-card p:last-child { margin-bottom: 0; }

.site-footer {
  background: #3f4441;
  color: #fff;
  margin-top: 30px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 24px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
}
.site-footer a { color: #fff; }
.footer-company { font-weight: 800; text-transform: uppercase; }
.footer-meta { margin-top: 18px; }
.footer-legal {
  align-self: end;
  text-align: right;
  white-space: nowrap;
}
.footer-legal a { text-decoration: none; margin-left: 18px; }
.footer-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 24px;
  color: rgba(255,255,255,.72);
  font-size: .85em;
}

@media (max-width: 820px) {
  body { font-size: 17px; }
  .header-inner { padding: 20px 18px 14px; }
  .brand { min-height: 125px; }
  .brand img { width: 220px; }
  .nav { padding: 0 18px; }
  .nav-label { display: flex; }
  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 10px;
  }
  .nav-list a { padding: 11px 0; }
  .nav-toggle:checked ~ .nav-list { display: flex; }
  .hero img { height: 260px; }
  .hero-caption { font-size: 2rem; }
  .content { padding: 48px 20px 58px; }
  .gallery { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { text-align: left; }
  .footer-legal a { margin: 0 18px 0 0; }
}
@media (max-width: 480px) {
  .hero img { height: 210px; }
  .hero-caption { font-size: 1.65rem; }
  .page-title { padding: 22px 16px; }
  .contact-box { padding: 30px 22px; }
}

/* Startseite */
.home-main { background: #f1f3f2; }
.home-video {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 16px 70px;
  background: #fff;
}
.video-frame {
  padding: 10px;
  background: #777d78;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}
.home-highlights {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  background: #fff;
}
.highlight {
  padding: 58px 48px 60px;
  min-height: 300px;
}
.highlight-green {
  background: #009b3a;
  color: #fff;
}
.highlight h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.2;
}
.highlight-green h2 { color: #fff; }
.highlight p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.65;
}
.home-feature {
  padding: 96px 16px;
}
.home-feature-light { background: #f1f3f2; }
.home-feature-white { background: #fff; }
.home-feature-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr);
  gap: 72px;
  align-items: start;
}
.home-feature-reverse { grid-template-columns: minmax(380px, .95fr) minmax(0, 1fr); }
.home-feature-text {
  padding-top: 0;
  color: #4b5660;
}
.feature-rule {
  width: 112px;
  height: 3px;
  background: #fff;
  margin: 0 0 44px;
}
.home-feature-white .feature-rule { background: var(--gray); }
.home-feature h2 {
  margin: 0 0 16px;
  color: #28343c;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.15;
}
.home-feature p {
  margin: 0 0 24px;
  font-size: 1.12rem;
  line-height: 1.9;
}
.home-feature .photo-frame {
  margin: 0;
  padding: 10px;
  align-self: start;
}
.home-feature-media img {
  width: 100%;
  height: auto;
}
.home-contact-content {
  max-width: 1240px;
  padding-top: 30px;
  padding-bottom: 70px;
}

@media (max-width: 900px) {
  .home-highlights,
  .home-feature-inner,
  .home-feature-reverse { grid-template-columns: 1fr; }
  .highlight { min-height: 0; padding: 42px 34px; }
  .home-feature { padding: 68px 20px; }
  .home-feature-reverse .home-feature-media { order: 1; }
  .home-feature-reverse .home-feature-text { order: 2; }
  .home-feature-inner { gap: 42px; }
}

@media (max-width: 480px) {
  .home-video { padding: 20px 10px 42px; }
  .video-frame { padding: 7px; }
  .highlight { padding: 34px 24px; }
  .home-feature { padding: 52px 16px; }
  .home-feature p { font-size: 1.02rem; line-height: 1.7; }
}


/* Unterseiten: einheitlicher Bildbereich unter der Navigation */
.subpage-hero { margin: 0; }
.subpage-hero img {
  width: 100%;
  height: clamp(220px, 30vw, 390px);
  object-fit: cover;
}
.subpage-title {
  background: var(--gray);
  color: #fff;
  text-align: center;
  padding: 22px 20px;
}
.subpage-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
}
.vermessung-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 64px;
  align-items: start;
}
.vermessung-layout .photo-frame { margin: 0; }
.legal-content { max-width: 1000px; }
.legal-content h2 { margin-top: 2.2em; }
.legal-content h3 { margin-top: 1.8em; }
.legal-content ul { padding-left: 1.4em; }
.footer-inner { grid-template-columns: minmax(0,1fr) minmax(280px,420px); }
.footer-right { display:flex; flex-direction:column; align-items:flex-end; min-height:240px; }
.footer-brand {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 240px;
}
.footer-brand img {
  width: min(290px, 100%);
  height: auto;
  opacity: .95;
}
.footer-brand-fallback {
  text-align: center;
  padding-top: 10px;
}
.footer-brand-fallback .xmark {
  display:block;
  font-size: 7rem;
  line-height: .75;
  color: #8a908b;
  font-weight: 700;
}
.footer-brand-fallback span {
  display:block;
  color:#54b86a;
  font-size:1.8rem;
  letter-spacing:.03em;
}
@media (max-width: 900px) {
  .vermessung-layout { grid-template-columns: 1fr; gap: 38px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-right { align-items:flex-start; min-height:0; }
  .footer-brand { justify-content: flex-start; min-height: 0; }
}
