/*
 * Neudeckers Hühnereier – Stylesheet
 * Ersetzt Tailwind CSS 4 (Vue/Vite-Build). Werte 1:1 aus den vorherigen
 * Utility-Klassen übernommen, siehe _backup/2026-08-14-vue-umstellung/.
 */

@font-face {
  font-family: "Agdasima";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../../fonts/agdasima/latin/Agdasima-400.woff2") format("woff2");
}

@font-face {
  font-family: "Agdasima";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("../../fonts/agdasima/latin/Agdasima-700.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: block;
  src: url("../../fonts/open-sans/latin/OpenSans-VariableFont_wght.woff2")
    format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: block;
  src: url("../../fonts/open-sans/latin/OpenSans-VariableFont_wght-italic.woff2")
    format("woff2");
}

:root {
  --nh-teal: #14514a;
  --nh-gold: #f2b622;
  --nh-beige: #f4efe1;
  --nh-gray: #8e9e9c;

  --font-heading: "Agdasima", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

/* Reset ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-style: solid;
  border-width: 0;
  border-color: var(--nh-teal);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

/* Basis -------------------------------------------------------------------- */

body {
  background: var(--nh-beige);
  color: var(--nh-teal);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  padding-bottom: 30px;
}

h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  padding-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  padding-bottom: 15px;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  padding-bottom: 0.625rem;
}

a {
  color: var(--nh-teal);
  text-decoration: underline;
  transition: color 0.3s;
}

a:hover {
  color: var(--nh-gold);
  text-decoration: none;
}

::selection {
  background: var(--nh-gold);
  color: #fff;
}

p {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin-bottom: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container-Helfer ---------------------------------------------------------- */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap--wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding-top: 75px;
  padding-bottom: 75px;
}

/* Button ---------------------------------------------------------------- */

.btn {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 26px;
  background: var(--nh-beige);
  border-width: 5px;
  color: var(--nh-teal);
  padding: 10px 16px;
  text-decoration: none;
  display: inline-block;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--nh-gold);
  border-color: var(--nh-gold);
  color: var(--nh-teal);
  text-decoration: none;
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image {
  position: relative;
  top: -2rem;
  left: -2.5rem;
  z-index: 10;
}

.hero__image img {
  width: 600px;
  max-width: 100%;
}

.hero__logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero__logo-link {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

.hero__logo-link img {
  width: 500px;
}

@media (max-width: 767px) {
  .hero__logo-link img {
    width: 91.6667%;
  }
}

/* Kopf-Navigation ------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 1.25rem;
  z-index: 40;
}

.site-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--nh-beige);
  border-width: 4px;
  padding: 0.75rem 1.75rem;
}

.site-nav__link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--nh-teal);
  border-bottom-width: 4px;
  padding-bottom: 0;
  text-align: center;
  transition: border-color 0.3s;
}

.site-nav__link:hover {
  border-bottom-color: var(--nh-gold);
  color: var(--nh-teal);
}

@media (min-width: 768px) {
  .site-nav__link {
    font-size: 1.5rem;
  }
}

/* Angebot / Leistungen ----------------------------------------------------- */

.service h1 {
  color: var(--nh-teal);
}

.service__columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .service__columns {
    flex-direction: row;
  }
}

.service__list {
  flex: 1;
}

.service__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nh-teal);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

.js .service__list li {
  opacity: 0;
  transform: translateY(1rem);
  transition-delay: var(--stagger-delay, 0ms);
}

.service__list.is-visible li {
  opacity: 1;
  transform: translateY(0);
}

.service__list li:hover {
  transform: scale(1.1);
  transition-delay: 0ms;
}

.service__list img {
  width: 2.5rem;
  flex-shrink: 0;
}

/* Impressionen / Galerie ---------------------------------------------------- */

.gallery h1 {
  color: var(--nh-teal);
}

.gallery-masonry {
  display: block;
  overflow: auto;
  column-width: 150px;
  column-count: 4;
  column-gap: 10px;
}

@media (max-width: 991px) {
  .gallery-masonry {
    column-count: 4;
  }
}

@media (max-width: 767px) {
  .gallery-masonry {
    column-count: 3;
  }
}

@media (max-width: 479px) {
  .gallery-masonry {
    column-count: 2;
  }
}

.gallery-masonry__item {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-width: 4px;
  background: var(--nh-teal);
  transition: border-color 0.3s;
}

.gallery-masonry__item:hover {
  border-color: var(--nh-gold);
}

.gallery-masonry__item img {
  display: block;
  width: 100%;
  height: auto;
}

.js .gallery-masonry__item[data-gallery-extra] {
  display: none;
}

.gallery__more {
  display: none;
  margin-top: 2rem;
  text-align: center;
}

.js .gallery__more {
  display: block;
}

/* Lightbox ---------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__dialog {
  position: relative;
  max-width: 56rem;
  max-height: 100vh;
  width: 100%;
  padding: 0.5rem;
  background: var(--nh-teal);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: scale(0.95);
  opacity: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.lightbox.is-open .lightbox__dialog {
  transform: scale(1);
  opacity: 1;
}

.lightbox__dialog img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nh-teal);
  background: rgba(244, 239, 225, 0.8);
  backdrop-filter: blur(4px);
  border: none;
  padding: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__close svg {
  width: 1rem;
  height: 1rem;
}

/* Standort / Kontakt --------------------------------------------------------- */

.contact h1 {
  color: var(--nh-teal);
}

.contact__columns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact__columns {
    flex-direction: row;
  }
}

.contact__location {
  width: 100%;
}

@media (min-width: 768px) {
  .contact__location {
    width: 40%;
    padding-left: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
  }
}

.contact__address {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1.5rem;
}

.contact__address img {
  width: 5rem;
  flex-shrink: 0;
}

.contact__address p {
  margin: 0;
}

.contact__address p.name {
  font-weight: 700;
}

.contact__maps {
  margin: 1.5rem 0;
}

.contact__social {
  display: flex;
  gap: 1rem;
}

.contact__social a {
  color: var(--nh-teal);
  transition: color 0.3s;
}

.contact__social a:hover {
  color: var(--nh-gold);
}

.contact__info {
  width: 100%;
}

@media (min-width: 768px) {
  .contact__info {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .contact__info {
    margin-top: 2rem;
  }

  .contact__info h1 {
    margin-top: 1rem;
  }
}

.contact__mail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__mail a {
  color: var(--nh-teal);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: color 0.3s;
}

.contact__mail a:hover {
  color: var(--nh-gold);
}

/* Footer -------------------------------------------------------------------- */

.site-footer {
  padding: 1rem 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-footer__links a {
  color: var(--nh-teal);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--nh-gold);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.site-footer__meta p {
  margin: 0;
}

.site-footer__meta a {
  color: var(--nh-teal);
}

.site-footer__meta a:hover {
  color: var(--nh-gold);
}

/* Back-to-top ----------------------------------------------------------- */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 4rem;
  z-index: 50;
  padding: 0;
  border: none;
  background: none;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top img {
  width: 4rem;
  transition: transform 0.3s;
}

.back-to-top:hover img {
  transform: scale(1.1);
}

/* Rechtstexte (Impressum / Datenschutz) -------------------------------------- */

.legal {
  max-width: 1120px;
  margin: 0 auto;
  padding: 75px 20px;
}

.legal a {
  word-break: break-word;
}
