/* ==========================================================================
   Garten- und Landschaftsbau Frank von der Heyde
   Stylesheet: keine externen Abhängigkeiten, Schrift lokal eingebunden
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #005d21;          /* Logo-Grün */
  --green-dark: #0a3f1b;
  --green-tint: #e4ede3;
  --leaf: #a9d06e;           /* nur auf dunklem Grund */
  --ink: #1a1a18;            /* Logo-Schwarz */
  --text: #2c2e29;
  --muted: #5b5f56;
  --stone: #eef0ea;          /* Pflastergrau, hell */
  --line: #d6dacf;
  --field: #b9beb3;
  --white: #fff;
  --error: #b42318;
  --ok: #1d6b35;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --narrow: 88%;             /* font-stretch der Überschriften */

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --header-h: 84px;
  --radius: 2px;
}

/* --- Basis ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  font-stretch: var(--narrow);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 4.4vw, 3.375rem); }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--green); color: var(--white); padding: .75rem 1rem; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .75rem 1.4rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  color: var(--white); background: var(--green);
  border: 2px solid var(--green); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); text-decoration: none; }
.btn .icon { width: 1.1rem; height: 1.1rem; }
.btn--small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .9375rem; }
.btn--light { background: var(--white); border-color: var(--white); color: var(--green); }
.btn--light:hover { background: var(--green-tint); border-color: var(--green-tint); color: var(--green-dark); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--outline { background: transparent; color: var(--green); }
.btn--outline:hover { background: var(--green-tint); color: var(--green-dark); border-color: var(--green-dark); }
.btn--danger { background: var(--white); color: var(--error); border-color: #e3b4ae; }
.btn--danger:hover { background: #fbeceb; color: var(--error); border-color: var(--error); }
.btn:focus-visible { outline-offset: 3px; }
.hero .btn:focus-visible, .jobs-band .btn:focus-visible { outline-color: var(--leaf); }

/* --- Kopfbereich ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 60px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.6rem; }
.site-nav ul a {
  display: block; padding: .5rem 0;
  color: var(--ink); font-weight: 500; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: .4rem .8rem;
  font: inherit; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1px solid var(--field); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1080px) {
  .site-nav ul { gap: 1.1rem; }
  .site-nav__call span { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .brand img { height: 46px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--white); border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  .site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-nav__call { margin-top: 1rem; }
  .site-nav__call span { display: inline; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .site-nav { width: 100%; }
}
@media (max-width: 420px) { .brand img { height: 40px; } .nav-toggle__label { display: none; } }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; background: var(--green-dark); }
.hero__media img {
  width: 100%; height: clamp(460px, 76vh, 720px);
  object-fit: cover; object-position: 55% 60%;
}
.hero__wrap { position: absolute; inset: 0; display: flex; align-items: flex-end; pointer-events: none; }
.hero__panel {
  pointer-events: auto;
  max-width: 36rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--green); color: var(--white);
}
.hero__panel h1 { color: var(--white); margin-bottom: .45em; hyphens: manual; }
.hero__panel p { font-size: 1.125rem; line-height: 1.55; color: #e7efe5; max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

@media (max-width: 760px) {
  .hero__media img { height: 44vh; min-height: 260px; }
  .hero__wrap { position: static; padding: 0; }
  .hero__panel { max-width: none; width: 100%; }
  .hero__panel p { font-size: 1.0625rem; }
}

/* --- Faktenleiste --------------------------------------------------------- */
.facts { background: var(--stone); border-bottom: 1px solid var(--line); }
.facts__list {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.1rem 2rem;
  padding-block: 1.6rem;
}
.facts__list li { display: flex; align-items: center; gap: .75rem; line-height: 1.3; color: var(--ink); font-weight: 600; white-space: nowrap; }
.facts__list strong { color: var(--ink); font-weight: 650; }
.facts__icon { width: 2rem; height: 2rem; color: var(--green); }
@media (max-width: 1060px) { .facts__list { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; column-gap: 3rem; } }
@media (max-width: 560px) { .facts__list { grid-template-columns: 1fr; gap: .9rem; } }

/* --- Abschnitte ----------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section__head {
  display: grid; grid-template-columns: 5fr 7fr; gap: 1rem 4rem; align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section__head h2 { margin: 0; }
.section__head p { margin: 0; color: var(--muted); max-width: 34em; justify-self: end; text-align: right; }
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; } .section__head p { justify-self: start; text-align: left; } }

/* --- Leistungen ----------------------------------------------------------- */
.services {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
  padding: 2rem 2rem 2.25rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.service__icon { width: 3rem; height: 3rem; color: var(--green); margin-bottom: 1.25rem; }
.service h3 { margin-bottom: .5rem; }
.service p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; border-left: 0; }
  .service { border-right: 0; padding: 1.75rem 0; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1.25rem; }
  .service__icon { grid-row: span 2; margin: 0; }
}

/* --- Über uns ------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__media { position: relative; padding: 0 0 22% 1.25rem; max-width: 36rem; }
.about__main { position: relative; width: 82%; margin: 0; }
.about__main::before {
  content: ""; position: absolute; z-index: 0;
  inset: -1.25rem 1.25rem 1.25rem -1.25rem;
  border: 2px solid var(--green); opacity: .35;
}
.about__main img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 30%; }
.about__small {
  position: absolute; z-index: 2; right: 0; bottom: 0; width: 42%; margin: 0;
  border: 6px solid var(--stone); box-shadow: 0 14px 30px -18px rgba(10, 63, 27, .55);
}
.about__small img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 62%; }
.about__badge {
  position: absolute; z-index: 3; left: 0; bottom: 9%;
  display: flex; align-items: center; gap: .85rem; margin: 0;
  padding: .9rem 1.15rem; background: var(--green); color: #e7efe5;
  font-size: .875rem; line-height: 1.3; box-shadow: 0 14px 30px -18px rgba(10, 63, 27, .7);
}
.about__badge-num { font-size: 2rem; font-weight: 700; font-stretch: var(--narrow); color: var(--white); line-height: 1; }
.about__text { max-width: 34rem; }
.about__text .lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink); font-weight: 500; }
.about__sign { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }
.about__sign strong { color: var(--ink); }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { width: 100%; margin-inline: auto; padding-left: 1.25rem; }
}
@media (max-width: 480px) {
  .about__badge { font-size: .8125rem; padding: .7rem .9rem; bottom: 6%; }
  .about__badge-num { font-size: 1.6rem; }
}

/* --- Referenzen ----------------------------------------------------------- */
.gallery {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 230px);
  grid-auto-flow: dense;
  gap: clamp(.5rem, 1.2vw, .875rem);
}
.gallery__cell { min-width: 0; }
.gallery__cell--big  { grid-column: span 2; grid-row: span 2; }
.gallery__cell--tall { grid-row: span 2; }
.gallery__cell--wide { grid-column: span 2; }
.gallery__item {
  position: relative; display: block; height: 100%;
  overflow: hidden; background: var(--stone);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s;
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 63, 27, .55));
  opacity: 0; transition: opacity .35s;
}
.gallery__img--sandkasten-sonnensegel { object-position: 50% 22%; }
.gallery__img--steingarten-quellstein { object-position: 50% 60%; }
.gallery__zoom {
  position: absolute; z-index: 1; right: .85rem; bottom: .85rem;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  background: var(--white); color: var(--green);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.gallery__zoom svg { width: 1.1rem; height: 1.1rem; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__item:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .gallery__item img, .gallery__zoom, .gallery__item::after { transition: none; }
  .gallery__item:hover img { transform: none; }
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 38vw, 240px); }
  .gallery__cell--tall { grid-row: auto; }
  .gallery__cell--wide { grid-column: auto; }
  .gallery__cell--big { grid-column: span 2; grid-row: span 1; }
  .gallery__zoom { display: none; }
}

/* --- Karriere-Band -------------------------------------------------------- */
.jobs-band { background: var(--green); color: #e7efe5; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.jobs-band__inner { display: flex; align-items: center; gap: 2rem; }
.jobs-band__icon { width: 3.5rem; height: 3.5rem; color: var(--leaf); flex: none; }
.jobs-band__text { flex: 1; }
.jobs-band h2 { color: var(--white); font-size: clamp(1.625rem, 2.6vw, 2rem); margin-bottom: .3em; }
.jobs-band p { margin: 0; max-width: 42em; }
@media (max-width: 760px) { .jobs-band__inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; } }

/* --- Kontakt -------------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact__info > p { color: var(--muted); max-width: 30em; }
.contact__list { list-style: none; margin-top: 2rem; display: grid; gap: 1.4rem; }
.contact__list li { display: flex; gap: 1rem; line-height: 1.5; }
.contact__list .icon { width: 1.5rem; height: 1.5rem; color: var(--green); margin-top: .1rem; }
.contact__list a { font-weight: 600; }
.contact__info { display: flex; flex-direction: column; }
@media (min-width: 861px) { .contact__info .contact__list { grid-template-columns: 1.15fr 1fr; gap: 1.4rem 1.5rem; } .contact__list li:first-child { grid-row: span 2; } .contact__list li:last-child { grid-column: 1 / -1; } }
.contact__photo { flex: 1 1 auto; position: relative; min-height: 200px; margin: 2.25rem 0 0; }
.contact__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 860px) {
  .contact__photo { flex: none; min-height: 0; }
  .contact__photo img { position: static; height: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* --- Formulare ------------------------------------------------------------ */
.form { display: grid; gap: 1.25rem; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form__row--2 { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: .35rem; font-weight: 600; color: var(--ink); font-size: .9375rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.req { color: var(--green); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"],
.field input[type="date"], .field select, .field textarea {
  display: block; width: 100%;
  min-height: 3rem; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--field); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005d21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.1rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.field--error input, .field--error textarea, .field--error select { border-color: var(--error); }
.field__error { margin: .35rem 0 0; font-size: .9rem; color: var(--error); }
.field__hint { margin: .35rem 0 0; font-size: .875rem; color: var(--muted); }
.field--check { display: grid; grid-template-columns: 1.5rem 1fr; gap: .25rem .75rem; align-items: start; }
.field--check input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--green); }
.field--check label { font-weight: 400; font-size: .9375rem; line-height: 1.5; color: var(--text); margin: 0; }
.field--check .field__error { grid-column: 2; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: .25rem; }
.form__note { margin: 0; font-size: .875rem; color: var(--muted); }

.notice {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.15rem; margin-bottom: 1.5rem;
  border-left: 4px solid; background: var(--stone); line-height: 1.5;
}
.notice .icon { width: 1.4rem; height: 1.4rem; margin-top: .05rem; }
.notice--ok { border-color: var(--ok); background: #e7f1e8; color: #133f21; }
.notice--ok .icon { color: var(--ok); }
.notice--error { border-color: var(--error); background: #fbeceb; color: #6d1810; }
.notice--info { border-color: var(--green); }

/* --- Fußbereich ----------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: max(1.5rem, calc(7rem - var(--section))); /* Platz für die Baumkrone */
  background: var(--stone);
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  text-align: center;
}
/* Baum sitzt mittig auf der Oberkante, die Linie wird von einem Bogen ausgespart */
.site-footer__crown {
  position: absolute; left: 50%; top: 0; z-index: 1;
  width: 7rem;
  transform: translate(-50%, calc(-100% + 2px));   /* Stamm steht auf der Kante */
  pointer-events: none;
}
.site-footer__crown img { display: block; width: 100%; height: auto; }
.site-footer__crown::after {                     /* weicher Schatten am Stammfuß */
  content: ""; position: absolute; left: 50%; bottom: -3px;
  width: 70%; height: 7px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(30, 45, 25, .22) 0%, rgba(30, 45, 25, 0) 70%);
}
@media (max-width: 600px) { .site-footer__crown { width: 5.5rem; } }
.site-footer__main { padding-block: 2rem 1.75rem; display: grid; justify-items: center; gap: 1rem; }
.site-footer__name {
  margin: 0; color: var(--ink);
  font-weight: 700; font-stretch: var(--narrow); font-size: 1.1875rem; line-height: 1.25; text-wrap: balance;
}
.site-footer__contact { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; }
.site-footer__contact li { display: inline-flex; align-items: center; gap: .45rem; }
.site-footer__contact .icon { width: 1.05rem; height: 1.05rem; color: var(--green); }
.site-footer__contact a { color: var(--ink); font-weight: 500; text-decoration: none; }
.site-footer__contact a:hover { color: var(--green); text-decoration: underline; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; }
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--green); }
.site-footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 2rem;
  padding-block: 1rem 1.25rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .8125rem;
}
.site-footer__bar p { margin: 0; }
.site-footer__bar a { color: var(--muted); }
.site-footer__bar a:hover { color: var(--green); }
@media (max-width: 760px) { .site-footer { margin-top: 3.5rem; } }
@media (max-width: 600px) {
  .site-footer__contact { gap: .6rem 1.25rem; }
  .site-footer__bar { justify-content: center; text-align: center; }
}

/* --- Lightbox ------------------------------------------------------------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(8, 26, 13, .94); color: var(--white);
}
.lightbox::backdrop { background: rgba(8, 26, 13, .6); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 4rem 4.5rem 2rem; }
.lightbox__img { max-width: min(1400px, calc(100vw - 9rem)); max-height: calc(100vh - 9rem); width: auto; height: auto; }
.lightbox__cap { font-size: .9375rem; color: #d7e2d4; text-align: center; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 3rem; height: 3rem; padding: 0;
  color: var(--white); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255,255,255,.18); }
.lightbox__btn:focus-visible { outline-color: var(--leaf); }
.lightbox__btn .icon { width: 1.5rem; height: 1.5rem; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__figure { padding: 4rem .75rem 5rem; }
  .lightbox__img { max-width: calc(100vw - 1.5rem); max-height: calc(100vh - 11rem); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__prev { left: calc(50% - 3.5rem); }
  .lightbox__next { right: calc(50% - 3.5rem); }
}

/* --- Unterseiten ---------------------------------------------------------- */
.page-head { background: var(--stone); border-bottom: 1px solid var(--line); padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-head h1 { margin: 0 0 .35em; }
.page-head--title {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background-color: var(--green);
  background-image: linear-gradient(rgba(0, 93, 33, .86), rgba(0, 93, 33, .86)), url("../img/work/aussenanlage-park-1800.webp");
  background-size: cover; background-position: center 55%;
  border-bottom: 0;
}
.page-head--title + .section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.page-head--title + .wrap .prose { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.page-head--title h1 { margin: 0; color: var(--white); font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.page-head p { margin: 0; max-width: 40em; color: var(--muted); font-size: 1.125rem; }
.prose { max-width: 46rem; padding-block: clamp(2.75rem, 6vw, 4.5rem) var(--section); }
.prose h2 { font-size: 1.5rem; margin-top: 2.25em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin-top: 1.75em; font-stretch: 100%; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose a { overflow-wrap: anywhere; }

/* --- Karriere ------------------------------------------------------------- */
.career-intro { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.career-intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .career-intro { grid-template-columns: 1fr; } }
.perks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 2rem; margin-top: 1.75rem; }
.perks li { display: flex; gap: .6rem; line-height: 1.45; }
.perks .icon { color: var(--green); margin-top: .1rem; }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }

.jobs { list-style: none; display: grid; gap: 1rem; }
.job { border: 1px solid var(--line); background: var(--white); }
.job[open] { border-color: var(--field); }
.job > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: .6rem 1.5rem; align-items: center;
  padding: 1.5rem 1.75rem;
}
.job > summary::-webkit-details-marker { display: none; }
.job > summary:hover .job__title { color: var(--green); }
.job__title { margin: 0; font-size: 1.375rem; }
.job__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; list-style: none; color: var(--muted); font-size: .9375rem; }
.job__meta > span { display: inline-flex; align-items: center; gap: .4rem; }
.job__meta .icon { width: 1.05rem; height: 1.05rem; color: var(--green); }
.job__toggle {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--green); font-size: .9375rem; white-space: nowrap;
}
.job__toggle .icon { transition: transform .2s ease; }
.job[open] .job__toggle .icon { transform: rotate(45deg); }
.job__toggle .when-open { display: none; }
.job[open] .job__toggle .when-open { display: inline; }
.job[open] .job__toggle .when-closed { display: none; }
@media (prefers-reduced-motion: reduce) { .job__toggle .icon { transition: none; } }
.job__body { padding: 0 1.75rem 1.9rem; border-top: 1px solid var(--line); }
.job__intro { max-width: 46rem; margin-top: 1.5rem; }
.job__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.job__cols h4 { font-size: 1.0625rem; font-stretch: 100%; margin-bottom: .6rem; }
.job__cols ul { list-style: none; display: grid; gap: .45rem; font-size: 1rem; }
.job__cols li { position: relative; padding-left: 1.1rem; }
.job__cols li::before { content: ""; position: absolute; left: 0; top: .6em; width: .45rem; height: .45rem; background: var(--green); }
.job__apply { margin-top: 2rem; padding: 1.25rem 1.4rem; background: var(--stone); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.job__apply p { margin: 0; flex: 1 1 22rem; }
@media (max-width: 860px) { .job__cols { grid-template-columns: 1fr; gap: 1.25rem; } }
@media (max-width: 560px) {
  .job > summary { grid-template-columns: 1fr; padding: 1.25rem; }
  .job__toggle { grid-column: 1; grid-row: auto; }
  .job__body { padding: 0 1.25rem 1.5rem; }
}
.empty { padding: 2rem; border: 1px dashed var(--field); background: var(--white); }
.empty h3 { margin-bottom: .35rem; }
.empty p { margin: 0; color: var(--muted); }
.initiative { margin-top: 3.5rem; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; align-items: start; max-width: 46rem; }
.initiative .service__icon { margin: 0; }
.initiative h2 { font-size: 1.5rem; margin-bottom: .35em; }

/* --- Verwaltung ----------------------------------------------------------- */
.admin { background: var(--stone); min-height: 100vh; }
.admin-bar { background: var(--green-dark); color: #dfe9dc; }
.admin-bar__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 3.75rem; flex-wrap: wrap; }
.admin-bar__title { margin: 0; font-size: 1.0625rem; font-stretch: 100%; color: var(--white); }
.admin-bar nav { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.admin-bar a { color: #dfe9dc; text-decoration: none; }
.admin-bar a:hover, .admin-bar a[aria-current="page"] { color: var(--white); text-decoration: underline; }
.admin-bar button { font: inherit; color: #dfe9dc; background: none; border: 1px solid rgba(255,255,255,.35); padding: .35rem .8rem; border-radius: var(--radius); cursor: pointer; }
.admin-bar button:hover { color: var(--white); border-color: var(--white); }
.admin-main { padding-block: 2.5rem 4rem; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.admin-head h1 { font-size: 2rem; margin: 0; }
.panel { background: var(--white); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); }
.panel + .panel { margin-top: 1.5rem; }
.panel h2 { font-size: 1.25rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9687rem; }
.table th, .table td { text-align: left; padding: .8rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .875rem; color: var(--muted); font-weight: 600; }
.table td.actions { white-space: nowrap; text-align: right; }
.table td.actions form { display: inline; }
.table .btn { min-height: 2.25rem; padding: .3rem .7rem; font-size: .875rem; }
.status { display: inline-block; padding: .15rem .55rem; font-size: .8125rem; font-weight: 600; border-radius: var(--radius); }
.status--on { background: #e2efe3; color: #13502a; }
.status--off { background: #ececea; color: #55584f; }
.status--exp { background: #fdf0db; color: #7a4a06; }
.icon-btn { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; background: var(--white); border: 1px solid var(--field); border-radius: var(--radius); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn .icon { width: 1rem; height: 1rem; }
.icon-btn--up .icon { transform: rotate(90deg); }
.icon-btn--down .icon { transform: rotate(-90deg); }
.admin-form { display: grid; gap: 1.25rem; }
.admin-form .form__row--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .admin-form .form__row--3 { grid-template-columns: 1fr; } }
.admin-form textarea { min-height: 7.5rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding-top: .5rem; }
.log { font-size: .875rem; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: var(--stone); }
.login__box { width: 100%; max-width: 25rem; background: var(--white); border: 1px solid var(--line); padding: 2.25rem 2rem 2rem; }
.login__box img { width: 220px; margin: 0 auto 1.75rem; }
.login__box h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.login__box .form { gap: 1rem; }
.login__box .btn { width: 100%; }
.login__back { margin: 1.5rem 0 0; font-size: .9rem; text-align: center; }

/* --- 404 ------------------------------------------------------------------ */
.notfound { padding-block: var(--section); max-width: 40rem; }
.notfound .service__icon { width: 4rem; height: 4rem; }

/* --- Druck ---------------------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .hero__actions, .jobs-band, .contact__form, .lightbox, .site-footer__bar { display: none !important; }
  .section { padding-block: 1.5rem; }
  a { color: inherit; }
}

/* Karriere: kompakter Abstand zwischen Überschrift und Stellenliste */
.section__head--tight { margin-bottom: 1.75rem; }

/* Footer: Links ohne Unterstreichung, nur NORDINITY unterstrichen */
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__bar a { text-decoration: underline; }

/* Footer: Links ohne Unterstreichung, nur beim Überfahren; Ausnahme NORDINITY */
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.job__apply a[href^="tel:"], .initiative a[href^="tel:"] { white-space: nowrap; }

/* --- Datenschutz-Einstellungen und Karte --------------------------------- */
.linklike { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.linklike:hover { color: var(--green); text-decoration: underline; }
.consent {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 60;
  width: min(26rem, calc(100vw - 2rem));
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--white); border: 1px solid var(--field); border-top: 4px solid var(--green);
  box-shadow: 0 6px 24px rgba(10, 40, 20, .14);
  font-size: .9375rem; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 .4rem; font-weight: 700; color: var(--ink); font-stretch: var(--narrow); font-size: 1.0625rem; }
.consent p { margin: 0 0 .9rem; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.consent__btn { width: 100%; }
@media (max-width: 480px) {
  .consent { left: .5rem; right: .5rem; bottom: .5rem; width: auto; }
  .consent__actions { grid-template-columns: 1fr; }
}
.consent__actions--single { grid-template-columns: 1fr; }
.leave { width: min(28rem, calc(100vw - 2rem)); padding: 1.5rem 1.5rem 1.25rem; border: 1px solid var(--field); border-top: 4px solid var(--green); background: var(--white); color: var(--text); font-size: .9375rem; line-height: 1.5; }
.leave::backdrop { background: rgba(8, 26, 13, .45); }
.leave__title { margin: 0 0 .5rem; font-weight: 700; font-stretch: var(--narrow); font-size: 1.1875rem; color: var(--ink); }
.leave p { margin: 0 0 1rem; }
.leave__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
@media (max-width: 480px) { .leave__actions { flex-direction: column-reverse; } .leave__actions .btn { width: 100%; } }

/* --- Schwebendes Stellen-Widget ------------------------------------------ */
.hiring { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.hiring__toggle {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem 1.2rem .55rem .55rem;
  background: var(--green); color: var(--white);
  border-radius: 999px; text-decoration: none; font-weight: 700; font-stretch: var(--narrow); font-size: 1.0625rem;
  box-shadow: 0 6px 20px rgba(10, 40, 20, .25);
}
.hiring__toggle:hover { background: var(--green-dark); color: var(--white); text-decoration: none; }
.hiring__toggle:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.hiring__toggle-icon { position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--white); color: var(--green); }
.hiring__toggle-icon .icon { width: 1.5rem; height: 1.5rem; }
.hiring__count {
  position: absolute; top: -.25rem; right: -.3rem;
  min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
  display: grid; place-items: center;
  background: var(--leaf); color: var(--green-dark); border: 2px solid var(--green);
  border-radius: 999px; font-size: .75rem; font-weight: 700; font-stretch: 100%; line-height: 1;
}
.hiring.is-open .hiring__toggle { background: var(--green-dark); }
.hiring__panel {
  width: min(22.5rem, calc(100vw - 2.5rem));
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green);
  box-shadow: 0 12px 36px rgba(10, 40, 20, .2);
}
.hiring__panel[hidden] { display: none; }
.hiring__head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1rem .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.hiring__head-icon { width: 2.25rem; height: 2.25rem; color: var(--green); flex: none; }
.hiring__title { margin: 0; font-weight: 700; font-stretch: var(--narrow); font-size: 1.1875rem; color: var(--ink); line-height: 1.2; }
.hiring__sub { margin: 0; font-size: .875rem; color: var(--muted); }
.hiring__close { margin-left: auto; align-self: flex-start; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: var(--radius); }
.hiring__close:hover { color: var(--ink); background: var(--stone); }
.hiring__close .icon { width: 1.1rem; height: 1.1rem; }
.hiring__list { list-style: none; max-height: min(24rem, 52vh); overflow-y: auto; }
.hiring__job { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.hiring__job:hover { background: var(--stone); color: var(--ink); text-decoration: none; }
.hiring__job:hover .hiring__job-title { color: var(--green); }
.hiring__job-icon { width: 1.4rem; height: 1.4rem; color: var(--green); flex: none; }
.hiring__job-text { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.hiring__job-title { font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.hiring__job-meta { font-size: .8125rem; color: var(--muted); }
.hiring__job-arrow { width: 1rem; height: 1rem; color: var(--muted); flex: none; }
.hiring__all { display: flex; margin: .9rem 1.1rem 1.1rem; }
@media (max-width: 600px) {
  .hiring { right: .75rem; bottom: .75rem; }
  .hiring__toggle { padding-right: .55rem; }
  .hiring__toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hiring__panel { width: calc(100vw - 1.5rem); }
  html.notice-visible .hiring { bottom: calc(.75rem + var(--notice-h, 0px)); }
}
@media print { .hiring { display: none !important; } }

/* Widget stoppt oberhalb des Fußbereichs (Wert setzt main.js) */
.hiring { transform: translateY(calc(-1 * var(--hiring-lift, 0px))); }

/* NORDINITY-Logo: sitzt auf der Grundlinie des Textes.
   Grundlinie liegt bei 76,5 % der Logohöhe, darunter 23,5 % Unterlänge (y). */
.site-footer__credit a, .credit-logo { text-decoration: none; }
.site-footer__credit img, .credit-logo img {
  display: inline;
  height: 1.2em; width: auto;
  vertical-align: -0.282em;
}
.site-footer__credit a:hover img, .credit-logo:hover img { opacity: .75; }

/* --- Fahrzeuge auf der Footer-Kante -------------------------------------- */
.footer-road {
  position: absolute; left: 0; right: 0; bottom: 100%; z-index: 2;
  height: 64px; overflow: hidden; pointer-events: none;
}
.road-vehicle { position: absolute; left: 0; bottom: -1px; will-change: transform; transform: translateX(-200px); }
.road-vehicle img { display: block; width: auto; }
.road-loader img { height: 42px; }
.road-truck img { height: 44px; }
.road-vehicle.is-driving img { animation: road-bob .32s ease-in-out infinite; }
.road-loader.is-scooping img { transform-origin: 25% 100%; animation: road-scoop 1.2s ease-in-out; }
@keyframes road-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.7px); } }
@keyframes road-scoop { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-2.5deg); } 65% { transform: rotate(-2.5deg) translateY(-1px); } }
.road-pile { position: absolute; bottom: -1px; display: block; transform-origin: 50% 100%; transition: transform .7s ease, opacity .7s ease; }
.road-pile svg { display: block; width: 100%; height: 100%; overflow: visible; }
.road-pile.is-gone { transform: scale(.4, 0); opacity: 0; }
@media (max-width: 600px) {
  .footer-road { height: 52px; }
  .road-loader img { height: 34px; }
  .road-truck img { height: 36px; }
}
@media print { .footer-road { display: none; } }
