/* FILE: assets/css/styles.css */

:root {
  --green-bg: #dbe7c8;
  --green-main: #7ea73f;
  --green-main-dark: #5f822d;
  --green-accent: #95bd53;
  --green-deep: #2f4e1f;
  --text-main: #1f311c;
  --text-soft: #40543d;
  --white: #ffffff;
  --shadow-lg: 0 18px 40px rgba(44, 73, 26, 0.18);
  --shadow-md: 0 10px 24px rgba(44, 73, 26, 0.14);
  --shadow-sm: 0 6px 16px rgba(44, 73, 26, 0.12);
  --max-width: 1380px;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --site-header-height-mobile: 60px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-main);
  background: var(--green-bg);
  line-height: 1.68;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section[id] {
  scroll-margin-top: 92px;
}

.section-boundary {
  display: block;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--green-main-dark);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(39, 61, 24, 0.18);
}

.site-header-inner {
  position: relative;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0.96;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.95rem;
  cursor: pointer;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.95rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(95, 130, 45, 0.98), rgba(74, 106, 34, 0.98));
  box-shadow: 0 12px 24px rgba(39, 61, 24, 0.2);
}

.site-nav.open {
  display: flex;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-active {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.22);
}

.page-shell {
  width: 100%;
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  color: var(--white);
  display: flex;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 43, 18, 0.18) 0%, rgba(27, 43, 18, 0.12) 30%, rgba(27, 43, 18, 0.56) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max-width));
  height: 100%;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
}

.hero-panel {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(420px, 560px) minmax(320px, 560px);
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.hero-panel-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-large {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(44, 73, 26, 0.18));
}

.hero-panel-copy {
  min-width: 0;
  max-width: 34rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  line-height: 1.04;
  color: var(--text-main);
  text-align: center;
}

.hero-service-line {
  margin: 0.7rem auto 0;
  max-width: 30rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.hero-text {
  margin: 1rem 0 0;
  max-width: 56ch;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.section {
  width: 100%;
  padding: 4.8rem 0;
}

.section-inner,
.legal-section {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.section-inner {
  padding: 0;
  background: transparent;
  color: var(--text-main);
  box-shadow: none;
  border-radius: 0;
}

.section-intro {
  max-width: 1100px;
  margin: 2.15rem auto 2.15rem;
  text-align: center;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  color: var(--green-deep);
}

.section-lead {
  margin: 0.9rem auto 0;
  max-width: 78ch;
  color: var(--text-soft);
  font-size: 1.08rem;
  text-align: center;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.about-copy p {
  margin: 0;
  font-size: 1.04rem;
  color: var(--text-soft);
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 1.4rem auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.about-tags li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green-accent), var(--green-main));
  color: var(--text-main);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.about-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.fact-item {
  padding: 1.25rem 1.1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(149, 189, 83, 0.96), rgba(126, 167, 63, 0.96));
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.fact-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
}

.fact-item p {
  margin: 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.overview-item {
  padding: 1.2rem 1.15rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(149, 189, 83, 0.96), rgba(126, 167, 63, 0.96));
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.overview-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.overview-item p {
  margin: 0;
}

.service-list {
  display: grid;
  gap: 4rem;
}

.service-detail {
  width: 100%;
}

.service-detail + .service-detail {
  padding-top: 2.6rem;
  border-top: 1px solid rgba(47, 78, 31, 0.16);
}

.service-head {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.service-head h3 {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  line-height: 1.15;
  color: var(--green-deep);
}

.service-intro {
  margin: 0.85rem auto 0;
  max-width: 58ch;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.service-text {
  max-width: 1100px;
  margin: 1.35rem auto 0;
  text-align: center;
}

.service-text p {
  margin: 0 auto;
  max-width: 78ch;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.service-text p + p {
  margin-top: 0.95rem;
}

.service-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.45rem auto 0;
  padding: 0;
  list-style: none;
}

.service-points li {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green-accent), var(--green-main));
  color: var(--text-main);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.service-gallery {
  margin-top: 1.9rem;
  display: grid;
  gap: 1.25rem;
}

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

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

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

.service-gallery figure {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.5);
  aspect-ratio: 1 / 1;
}

.service-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.7rem;
  align-items: center;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: var(--shadow-lg);
}

.contact-panel {
  padding: 1.2rem 1.4rem;
  border-radius: 0;
  background: transparent;
  color: var(--text-main);
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.contact-panel h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: var(--text-main);
}

.contact-name {
  margin-top: 0;
  font-size: 1.18rem;
  font-weight: 700;
}

.contact-panel p {
  margin: 0.35rem 0;
  color: var(--text-main);
}

.contact-panel a {
  color: var(--text-main);
  text-decoration: underline;
}

.contact-copy {
  border-left: 0;
  text-align: center;
}

.contact-copy h3 {
  margin: 0 0 0.8rem;
  font-size: 1.45rem;
  color: var(--green-deep);
  text-align: center;
}

.contact-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.area-list {
  width: min(100%, 760px);
  margin: 1.2rem auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  justify-content: center;
  justify-items: stretch;
  align-items: start;
  gap: 0.45rem 2rem;
  text-align: center;
}

.area-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
  color: var(--text-main);
  text-align: center;
}

.area-list li::before {
  content: "•";
  position: static;
  flex: 0 0 auto;
  line-height: 1;
}

.site-footer {
  padding: 2rem 1rem 2.2rem;
  background: var(--green-main-dark);
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  width: min(100%, var(--max-width));
  margin: 0 auto 0.8rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: underline;
}

.footer-meta {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.94rem;
}

.legal-main {
  padding: 3rem 0;
  background: var(--green-bg);
}

.legal-section {
  max-width: 900px;
}

.legal-card {
  padding: 1.3rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
}

.legal-card + .legal-card {
  margin-top: 1rem;
}

.legal-card h2 {
  margin-top: 0;
  color: var(--green-deep);
}

.legal-card p,
.legal-card li {
  color: var(--text-soft);
}

.legal-backlink {
  margin: 1.25rem 0 0;
}

.legal-backlink a {
  font-weight: 700;
  text-decoration: underline;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-left: auto;
  }

  .site-nav a {
    min-height: auto;
    padding: 0.2rem 0;
    background: transparent;
    border-radius: 0;
    position: relative;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.32rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    background: transparent;
  }

  .site-nav a:hover::after,
  .site-nav a.is-active::after {
    transform: scaleX(1);
  }
}

@media (min-width: 981px) {
  .service-gallery-kronen {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ks-before-1 {
    order: 1;
  }

  .ks-before-2 {
    order: 2;
  }

  .ks-before-3 {
    order: 3;
  }

  .ks-after-1 {
    order: 4;
  }

  .ks-after-2 {
    order: 5;
  }

  .ks-after-3 {
    order: 6;
  }
}

@media (max-width: 1180px) {
  .facts-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    align-items: center;
    padding: 2rem 1.7rem;
    gap: 1.5rem;
  }

  .hero-panel-media,
  .hero-panel-copy {
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero h1,
  .hero-service-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-logo-large {
    max-width: 360px;
  }

  .about-copy,
  .about-copy p {
    text-align: center;
  }

  .about-media {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 980px) {
  .service-gallery-3,
  .service-gallery-kronen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .hero-inner {
    width: min(100% - 1.2rem, var(--max-width));
    padding: 1.4rem 0 1rem;
    justify-content: center;
  }

  .hero-panel {
    padding: 1.6rem 1.15rem;
    gap: 1.2rem;
    border-radius: var(--radius-lg);
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-service-line {
    max-width: 30rem;
  }

  .section {
    padding: 3.7rem 0;
  }

  .section-inner,
  .legal-section {
    width: min(100% - 1.2rem, var(--max-width));
  }

  .service-text {
    margin-top: 1.15rem;
  }

  .contact-layout {
    padding: 1.2rem 1rem;
    gap: 1.2rem;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    width: calc(100% - 1.2rem);
    gap: 0.7rem;
    padding: 0.6rem 0;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
  }

  .hero {
    height: calc(100dvh - var(--site-header-height-mobile));
    min-height: calc(100dvh - var(--site-header-height-mobile));
  }

  .hero-media img {
    height: calc(100dvh - var(--site-header-height-mobile));
    min-height: calc(100dvh - var(--site-header-height-mobile));
  }

  .hero-inner {
    height: 100%;
    min-height: 100%;
    width: min(100% - 0.35rem, var(--max-width));
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0 0.9rem;
  }

  .hero-panel {
    display: flex;
    flex-direction: column;
    width: min(100%, 92vw);
    max-width: 92vw;
    padding: 1rem 0.7rem 0.95rem;
    gap: 0.7rem;
    justify-items: unset;
    align-items: center;
    border-radius: 22px;
  }

  .hero-panel-media,
  .hero-panel-copy {
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-panel-copy {
    max-width: 100%;
  }

  .hero-logo-large {
    width: min(100%, 255px);
    max-width: 255px;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.2rem, 8vw, 2.1rem);
    line-height: 1.06;
  }

  .hero-service-line {
    margin-top: 0.45rem;
    max-width: 19rem;
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .facts-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .area-list {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .area-list li {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .service-gallery-2,
  .service-gallery-3,
  .service-gallery-kronen {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  .about-copy,
  .about-copy p {
    text-align: center;
  }

  .service-points {
    flex-direction: column;
    align-items: stretch;
  }

  .service-points li {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .legal-main {
    padding: 2rem 0;
  }

  #kontakt .section-inner {
    width: min(100% - 0.8rem, var(--max-width));
  }

  .contact-layout {
    padding: 1rem 0.75rem;
    gap: 1rem;
  }

  .contact-panel {
    padding: 0.85rem 0.35rem;
  }

  .contact-copy {
    padding: 0 0.35rem;
    text-align: center;
  }
}