/* ==========================================================================
   Florian Wild – Lebensmitteltechnologie Beratung
   Design tokens taken from the Figma variant "Farben überarbeitet"
   ========================================================================== */

/* Schrift lokal eingebunden (DSGVO) – Plus Jakarta Sans, SIL Open Font License */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-ext-400-normal.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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-400-normal.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; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-ext-500-normal.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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-500-normal.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; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-ext-600-normal.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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-600-normal.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; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-ext-700-normal.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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-700-normal.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; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-ext-800-normal.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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-800-normal.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: #3f7d25;          /* CMYK 70 / 5 / 100 / 37 */
  --green-dark: #2f5f1b;
  --accent: #529834;          /* Abstufung des Logo-Grüns: Buttons & Kontaktblock */
  --accent-dark: #3f7d25;
  --card: #f1f4ee;
  --ink: #1c1311;
  --text: #1f1d1d;
  --muted: #5f625f;
  --section: #f8f8f8;
  --footer: #1f2721;
  --footer-text: #d9dcd6;
  --white: #ffffff;
  --dot: #cfd3cc;

  --container: 70rem;
  --gutter: 5rem;
  --radius-lg: 3.75rem;
  --radius-md: 1.25rem;
  --pill: 62.4375rem;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }
@media (min-width: 1281px) {
  html { font-size: min(1.25vw, 32px); }
}
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--green); }
a:hover { color: var(--green-dark); }

h1, h2, h3 { margin: 0; color: #000; line-height: 1.15; }

p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 0.0625rem; height: 0.0625rem;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--green); color: var(--white);
  padding: 0.625rem 1rem; border-radius: 0.5rem; z-index: 100;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

:focus-visible { outline: 0.1875rem solid var(--green); outline-offset: 0.1875rem; }

/* Dot grid decoration ------------------------------------------------------ */
.dots {
  position: absolute;
  width: 41.4375rem; height: 28.25rem;
  background-image: radial-gradient(var(--dot) 0.0813rem, transparent 0.1rem);
  background-size: 1.375rem 1.375rem;
  pointer-events: none;
  z-index: 0;
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 10.5rem; height: 3rem; padding: 0 1.75rem;
  border-radius: 1.5rem;
  font: 500 1rem/1 var(--font);
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }
.btn--outline { border: 0.0938rem solid var(--green); color: var(--text); background: transparent; }
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--light { background: var(--white); color: var(--accent); }
.btn--light:hover { background: var(--card); color: var(--green-dark); }

/* Header / navigation ------------------------------------------------------ */
.site-header { position: relative; z-index: 20; background: rgba(255, 255, 255, .6); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 6.0625rem;
}

.nav__logo { display: block; margin-left: -2.3125rem; }
.nav__logo img { width: 20rem; height: auto; }

.nav__right { display: flex; align-items: center; gap: 2rem; }

.nav__menu {
  display: flex; gap: 1.5625rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__menu a {
  font-weight: 700; font-size: 1.0625rem;
  color: #242424; text-decoration: none;
}
.nav__menu a:hover { color: var(--green); }

.nav__toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 0; background: transparent; cursor: pointer;
  padding: 0.625rem; border-radius: 0.625rem;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block; width: 1.5rem; height: 0.125rem; background: #242424;
  position: relative; transition: transform .2s;
}
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -0.4375rem; }
.nav__toggle span::after { top: 0.4375rem; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(0.4375rem) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-0.4375rem) rotate(-45deg); }

/* Language switch */
.lang { position: relative; }
.lang__button {
  display: inline-flex; align-items: center; gap: 0.375rem;
  height: 2.25rem; padding: 0 0.625rem 0 0.75rem;
  border: 0.0938rem solid #242424; border-radius: var(--pill);
  background: transparent; color: #242424;
  font: 800 0.9375rem/1 var(--font); cursor: pointer;
}
.lang__button svg { flex: none; }
.lang__button[aria-expanded="true"] .lang__chevron { transform: rotate(180deg); }
.lang__chevron { transition: transform .2s; }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 0.5rem);
  min-width: 8.75rem; margin: 0; padding: 0.375rem;
  list-style: none; background: var(--white);
  border-radius: 0.875rem; box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,.12);
  display: none;
}
.lang__list.is-open { display: block; }
.lang__list a {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.625rem 0.75rem; border-radius: 0.625rem;
  color: #242424; text-decoration: none; font-weight: 600; font-size: 0.9375rem;
}
.lang__list a:hover { background: var(--card); }
.lang__list a[aria-current="true"] { color: var(--green); }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  background: #ecebe7 url("../img/hero-bg.webp") center / cover no-repeat;
  margin-bottom: 0;
}
.hero .dots { left: -5.875rem; top: 20.6875rem; }

.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 32.5rem) 1fr;
  align-items: start;
  min-height: 53.5625rem;
}

.hero__text { padding-top: 23.0625rem; padding-bottom: 6rem; }
.hero__text h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.01em; }
.hero__text p { max-width: 28.75rem; margin-top: 1.5rem; }
.hero__text .btn { margin-top: 2rem; }

.hero__image {
  position: absolute;
  right: 0;
  top: 3.3125rem;
  width: 41.125rem;
  z-index: 2;
}
.hero__image img { width: 100%; }

/* About -------------------------------------------------------------------- */
.about {
  position: relative;
  padding: 4.5625rem 0 4.6875rem;
  background: linear-gradient(var(--white) 0 37.5rem, var(--white));
}

.about__photo { position: relative; }
.about__leaf {
  position: absolute; left: calc(-1 * var(--gutter) + 1.5rem); top: 3.875rem;
  width: 12.125rem; opacity: .63; z-index: 2;
  pointer-events: none;
}

.about__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 40.125rem) minmax(0, 28.0625rem);
  justify-content: space-between;
  gap: 1.8125rem;
  align-items: start;
}

.about__photo .about__portrait {
  width: 100%;
  aspect-ratio: 642 / 427;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__person { margin-top: 2.3125rem; max-width: 37.5rem; }
.about__person h2 { font-size: 2rem; font-weight: 700; }
.about__person p { margin-top: 1rem; }
.about__person .btn { margin-top: 2rem; min-width: 9.375rem; }

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 3.75rem 2.5rem;
}
.card h2 {
  font-size: 2.5rem; font-weight: 700; color: var(--ink);
  line-height: 1.15;
}
.card > p { margin-top: 1.5rem; }
.card h3 { margin-top: 2.5rem; font-size: 1.125rem; font-weight: 700; }

.specs { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1.125rem; }
.specs li { display: flex; align-items: center; gap: 1.375rem; }
.specs__icon {
  flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--white);
  border: 0.0938rem solid #cfe0c6;
  display: grid; place-items: center;
}
.specs__icon img { width: 1.875rem; height: 1.875rem; object-fit: contain; }

/* Projects ----------------------------------------------------------------- */
.projects {
  position: relative;
  background: var(--section);
  padding: 4.5rem 0 4.5625rem;
}
.projects__inner { position: relative; }


.gallery {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 53.75rem) minmax(0, 15.125rem);
  gap: 1.125rem;
}

.gallery__main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 860 / 531;
  background: #dfe3dc;
}
.gallery__main img.gallery__image {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .25s;
}
.gallery__badge {
  position: absolute; left: 2rem; top: 2rem;
  width: 14.3125rem; height: auto;
}

.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(217, 217, 217, .7);
  display: grid; place-items: center;
  transition: background-color .2s;
}
.gallery__arrow:hover { background: rgba(255, 255, 255, .9); }
.gallery__arrow--prev { left: 1.5rem; }
.gallery__arrow--next { right: 1.5rem; }

.gallery__thumbs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1.125rem;
}
.gallery__thumbs li { min-height: 0; }
.gallery__thumbs { contain: size; } /* thumbs follow the main image height */
.gallery__thumbs button {
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0.1875rem solid transparent; border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; background: none;
  opacity: .8; transition: opacity .2s, border-color .2s;
}
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--green); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.project { position: relative; z-index: 1; margin-top: 2.5rem; max-width: 47.9375rem; }
.project__label { display: block; line-height: 1.3; font-size: 0.875rem; font-weight: 700; color: #686868; }
.project h2 { margin-top: 0.5rem; font-size: 2rem; font-weight: 400; }
.project p { margin-top: 1rem; max-width: 38.75rem; }
.project .btn { margin-top: 2rem; }

/* CTA + footer ------------------------------------------------------------- */
.site-footer { background: var(--footer); color: var(--footer-text); }

.cta-wrap { position: relative; height: 0; }
.cta {
  position: absolute; right: var(--gutter); top: -7.5rem;
  width: 28.75rem;
  background: var(--accent); color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.cta h2 { color: var(--white); font-size: 2rem; font-weight: 700; }
.cta p { margin-top: 1rem; font-size: 0.9375rem; max-width: 21.25rem; }
.cta .btn { margin-top: 2rem; }

.footer__top { padding-top: 14.375rem; }
.footer__line { border: 0; border-top: 0.0625rem solid rgba(255,255,255,.85); margin: 0; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.5rem 4rem;
  padding: 3rem 0 4.5rem;
  font-size: 0.8125rem; line-height: 1.55;
}
.footer__logo { margin-left: -2.3125rem; }
.footer__logo img { width: 20rem; height: auto; }
.footer__address strong,
.footer__contact strong { color: var(--white); font-weight: 700; }
.footer__contact a,
.footer__legal a { color: var(--footer-text); }
.footer__contact a:hover,
.footer__legal a:hover { color: var(--white); }
.footer__legal { margin-left: auto; display: flex; gap: 1.5rem; }

/* Legal pages -------------------------------------------------------------- */
.legal { padding: 4rem 0 7.5rem; }
.legal h1 { font-size: 2.75rem; }
.legal h2 { font-size: 1.375rem; margin-top: 2.5rem; }
.legal p, .legal ul { margin-top: 0.75rem; max-width: 47.5rem; }
.legal .placeholder { background: #fff6d6; padding: 0.125rem 0.375rem; border-radius: 0.25rem; }
.legal-footer .footer__bottom { padding-top: 3rem; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1240px) {
  :root { --gutter: 3rem; }
  .hero__image { width: 54%; top: 5.625rem; }
  .nav__logo, .footer__logo { margin-left: -1.5rem; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding-top: 8.75rem; padding-bottom: 2rem; }
  .hero__image {
    position: relative; top: 0; width: min(35rem, 100%);
    margin: 0 calc(-1 * var(--gutter)) -5rem auto;
  }
  .about { padding-top: 7.5rem; }
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__leaf { left: calc(-1 * var(--gutter) + 1rem); top: 2.5rem; width: 8.75rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); contain: none; }
  .gallery__thumbs button { aspect-ratio: 242 / 165; }
  .projects { padding-bottom: 4.5rem; }
  .cta-wrap { height: auto; }
  .cta { position: relative; right: auto; top: 0; width: auto; margin: 0 0 0; }
  .site-footer .cta-wrap { padding-top: 3.5rem; }
  .footer__top { padding-top: 3.5rem; }
}

@media (max-width: 760px) {
  :root { --gutter: 1.25rem; --radius-lg: 1.75rem; }
  body { font-size: 0.9375rem; }
  .nav { height: 4.75rem; }
  .nav__logo { margin-left: -0.75rem; }
  .nav__logo img { width: 13.75rem; }
  .nav__toggle { display: inline-grid; place-items: center; }
  .nav__menu {
    display: none;
    position: absolute; left: var(--gutter); right: var(--gutter); top: 4.75rem;
    flex-direction: column; gap: 0;
    background: var(--white); border-radius: 1rem;
    box-shadow: 0 0.75rem 1.875rem rgba(0,0,0,.12);
    padding: 0.5rem;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { display: block; padding: 0.875rem 0.75rem; border-radius: 0.625rem; }
  .nav__menu a:hover { background: var(--card); }
  .nav__right { gap: 0.5rem; }
  .hero__text { padding-top: 4.5rem; }
  .hero__text h1 { font-size: 2.5rem; }
  .hero .dots { display: none; }
  .about .dots, .projects .dots { display: none; }
  .about__leaf { left: calc(-1 * var(--gutter) + 0.5rem); width: 6.25rem; }
  .about__person h2, .project h2, .cta h2 { font-size: 1.625rem; }
  .card { padding: 2.5rem 1.5rem; }
  .card h2 { font-size: 2rem; }
  .gallery__badge { width: 9.375rem; left: 1rem; top: 1rem; }
  .gallery__arrow { width: 2.75rem; height: 2.75rem; }
  .gallery__arrow--prev { left: 0.75rem; }
  .gallery__arrow--next { right: 0.75rem; }
  .gallery__thumbs { gap: 0.625rem; }
  .gallery__thumbs button { border-radius: 0.75rem; }
  .cta { padding: 2rem 1.5rem; }
  .footer__logo { margin-left: -0.75rem; }
  .footer__logo img { width: 15.25rem; }
  .footer__legal { margin-left: 0; }
  .btn { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Content always above the decorative dot grids */
.hero__text, .about__grid > div, .card { position: relative; z-index: 1; }


/* Dot grids: L-shaped accent at the card's bottom-right corner,
   and a free-standing patch below the project thumbnails (as in Figma) */
.card-wrap { position: relative; }
.card-wrap .card { position: relative; z-index: 1; }
.dots--corner {
  width: 20.625rem; height: 20.3125rem;
  right: calc(-1 * var(--gutter)); bottom: -4.6875rem;
  left: auto; top: auto;
}
@media (max-width: 1024px) {
  .dots--corner { display: none; }
}
