:root {
  --pd-ink: #17212b;
  --pd-muted: #68717c;
  --pd-surface: #ffffff;
  --pd-soft: #f4f7f5;
  --pd-accent: #2e6f45;
  --pd-accent-dark: #1e5031;
  --pd-border: #dfe6e1;
  --pd-radius: 16px;
  --pd-shadow: 0 12px 34px rgba(23, 33, 43, .09);
}

html { scroll-behavior: smooth; }

body {
  background: var(--pd-surface);
  color: var(--pd-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pd-accent-dark); text-underline-offset: .18em; }
a:hover, a:focus-visible { color: var(--pd-accent); }

img, video, iframe { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5 {
  color: var(--pd-ink);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.18;
}

h1 { font-size: clamp(2.1rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.25rem; }

#top-outer {
  background: var(--pd-soft);
  border: 0;
  color: var(--pd-muted);
  font-size: .82rem;
}

#header-outer {
  display: block;
  height: auto;
  min-width: 0;
  padding: .65rem 0;
  background: #fff;
  border: 0;
  box-shadow: none;
  position: static;
}

#banner-outer:first-of-type {
  position: relative;
}

#banner-outer,
#banner-float,
#banner2-float,
#banner-inner {
  float: none;
  margin: 0;
  max-width: none;
  min-width: 0;
  padding: 0;
  width: 100%;
}

#banner-outer:first-of-type img {
  display: block;
  object-fit: cover;
  width: 100%;
}

#header-inner,
#top-inner, #banner-inner, #advert-inner, #upper-inner,
#body-inner, #bottom-inner, #footer-inner, #copyright-inner {
  width: min(100% - 2rem, 1180px);
  max-width: 1180px;
  padding-left: 0;
  padding-right: 0;
}

#header-inner {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 0;
  width: min(100% - 2rem, 1080px);
}

#logo { float: none; margin: 0 auto; max-width: 100%; padding: 0; width: 100%; }
#logo .logo { display: block; height: auto; margin: 0 auto; max-height: 112px; max-width: 100%; object-fit: contain; width: auto; }
#logo .site-brand { color: var(--pd-ink); display: block; line-height: 1; text-decoration: none; }
#logo .brand-kicker { color: var(--pd-accent); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
#logo .brand-name { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 850; letter-spacing: -.04em; margin-top: .22rem; }

#navigation { display: none !important; }
#toolbar { background: transparent; }
#toolbar :is(.menu, .mod-menu) { align-items: center; display: flex; gap: clamp(1rem, 2vw, 2rem); }
#toolbar :is(.menu, .mod-menu) li { float: none; line-height: 1.3; list-style: none; margin: 0; }
#toolbar :is(.menu, .mod-menu) a,
#toolbar :is(.menu, .mod-menu) .nav-header,
#toolbar :is(.menu, .mod-menu) .separator {
  border: 0;
  color: var(--pd-ink);
  font-size: .94rem;
  font-weight: 650;
  padding: .6rem 0;
  position: relative;
}
#toolbar :is(.menu, .mod-menu) > li.active > a::after,
#toolbar :is(.menu, .mod-menu) > li > a:hover::after {
  background: var(--pd-accent);
  border-radius: 2px;
  bottom: .15rem;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}
#toolbar :is(.menu, .mod-menu) ul {
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  box-shadow: var(--pd-shadow);
  padding: .6rem;
}

@media (min-width: 768px) {
  #toolbar .mod-menu li { position: relative; }
  #toolbar .mod-menu ul { left: -999em; position: absolute; top: 100%; width: 220px; }
  #toolbar .mod-menu li:hover > ul,
  #toolbar .mod-menu li:focus-within > ul { left: 0; }
  #toolbar .mod-menu ul ul { left: -999em; top: 0; }
  #toolbar .mod-menu ul li:hover > ul,
  #toolbar .mod-menu ul li:focus-within > ul { left: 100%; }
}

@media (max-width: 767px) {
  #header-outer {
    padding: .4rem 0;
  }

  #banner-outer:first-of-type img {
    min-height: 68vh;
  }
}

#banner-outer, #banner-float, #banner2-float { border: 0; }
#banner2-float, #wide2-float { float: none; }
#banner2-float img,
#banner2-float picture,
#banner2-float .nivoSlider,
#banner2-float .slideshowck,
#banner2-float .camera_wrap {
  display: block;
  width: 100%;
}
#banner2-float img {
  max-height: min(72vh, 720px);
  object-fit: cover;
}

/* DJ-ImageSlider: keep the hero truly edge-to-edge and remove its legacy hover bar. */
#banner-outer .djslider-loader {
  max-width: none !important;
  width: 100% !important;
}
#banner-outer .slide-desc,
#banner-outer .slide-desc-bg,
#banner-outer .slide-desc-text {
  display: none !important;
}

#spacer { height: clamp(2rem, 5vw, 4.5rem); }
#body-outer { overflow: hidden; }
#mainbody { min-width: 0; }

#mainbody > .item-page,
#mainbody > .blog,
#mainbody > .contact,
#mainbody > .com-content-article,
#mainbody > .com-content-category-blog {
  margin-inline: auto;
  max-width: 860px;
}

.page-header, .item-page .page-header, .contact h1 { margin-bottom: 1.5rem; }
.page-header h1, .item-page .page-header h2, .contact h1,
h3.title { border-color: var(--pd-border); padding-bottom: .65rem; }

.moduletable {
  overflow-wrap: anywhere;
}

.advert .moduletable, .upper .moduletable, .user .moduletable,
.inside .moduletable, .bottom .moduletable {
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  box-shadow: var(--pd-shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.video-container, .ratio {
  background: #0d1117;
  border-radius: 12px;
  box-shadow: var(--pd-shadow);
  overflow: hidden;
}

input, select, textarea {
  background: #fff;
  border: 1px solid #bdc8c0;
  border-radius: 8px;
  color: var(--pd-ink);
  max-width: 100%;
  padding: .72rem .85rem;
}

button, .button, .btn, input[type="submit"] {
  background: var(--pd-accent);
  border: 1px solid var(--pd-accent);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: .7rem 1.2rem;
}
button:hover, .button:hover, .btn:hover, input[type="submit"]:hover {
  background: var(--pd-accent-dark);
  border-color: var(--pd-accent-dark);
}

#footer-outer { background: var(--pd-soft); margin-top: clamp(3rem, 8vw, 7rem); }
#footer-float { border: 0; padding: clamp(2rem, 5vw, 4rem) 0; }
#copyright-outer {
  background: #17251d;
  color: rgba(255, 255, 255, .78);
  height: auto;
  min-width: 0;
  padding: 1.1rem 0;
}
#copyright-inner,
#copyright-inner.show,
#copyright-inner.auto {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: .45rem;
  justify-content: center;
  min-height: 48px;
  text-align: center;
  white-space: nowrap;
}
#copyright-inner #copyright,
#copyright-inner #designer {
  float: none;
  margin: 0;
  text-align: center;
}
#copyright-inner #copyright::after { content: " ·"; }
#copyright, #designer, #designer a { color: inherit; font-size: .82rem; }
.show #copyright, .show #designer, .auto #copyright { margin-top: 0; }

@media (max-width: 767px) {
  #header-inner { align-items: center; min-height: 0; width: min(100% - 1rem, 1080px); }
  #logo .logo { height: auto; max-height: 78px; max-width: 100%; }
  .navbar-toggle { display: block; margin: 0; }
  .navbar-collapse { display: none; left: 1rem; position: absolute; right: 1rem; top: calc(100% + .75rem); }
  .navbar-collapse.in { display: block; }
  #toolbar {
    background: #fff;
    border: 1px solid var(--pd-border);
    border-radius: 12px;
    box-shadow: var(--pd-shadow);
    padding: .75rem;
  }
  #toolbar :is(.menu, .mod-menu) { align-items: stretch; display: flex; flex-direction: column; gap: .1rem; }
  #toolbar :is(.menu, .mod-menu) a, #toolbar :is(.menu, .mod-menu) .nav-header, #toolbar :is(.menu, .mod-menu) .separator { padding: .7rem .8rem; }
  #toolbar :is(.menu, .mod-menu) ul { box-shadow: none; margin: .2rem 0 .4rem 1rem; position: static; width: auto; }
  #banner2-float img { min-height: 260px; }
  .advert, .upper, .user, .inside, .bottom, .footer { float: none !important; margin: 0 0 1rem !important; width: 100% !important; }
  #copyright, #designer { float: none; margin: .25rem 0; text-align: center; }
}

@media (max-width: 480px) {
  #copyright-inner {
    gap: .2rem;
    padding-inline: .35rem;
  }
  #copyright,
  #designer,
  #designer a { font-size: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Full-width slider and the calm, vertically stacked structure of the old site. */
body #banner-outer,
body #banner-float,
body #banner2-float,
body #banner-inner {
  margin: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
#banner-outer :is(.djslider-loader, .djslider, .slider-container) {
  max-width: none !important;
  width: 100% !important;
}
#banner-outer .djslider-loader {
  height: clamp(420px, 42vw, 720px) !important;
  overflow: hidden;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}
#banner-outer :is(.djslider, .slider-container, .slider-container > ul, .slider-container > ul > li) {
  height: 100% !important;
}
#banner-outer .djslider img {
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  width: 100% !important;
}

/* DJ-ImageSlider's hover controls create a grey bar over the picture. */
#banner-outer :is(.navigation-container, .navigation-container-custom, .slide-desc, .slide-desc-in) {
  display: none !important;
}

.lj-card-grid {
  display: block;
  margin: 0;
}
.lj-card,
.lj-highlight {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--pd-border);
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: clamp(2.25rem, 5vw, 4.25rem) 0;
}
.lj-card-grid > :first-child,
.item-page > .lj-highlight:first-child,
.com-content-article__body > .lj-highlight:first-child { border-top: 0; }
.lj-card h2,
.lj-card h3,
.lj-highlight h2 { margin-top: 0; }

.item-page hr,
.com-content-article__body hr {
  border: 0;
  border-top: 1px solid var(--pd-border);
  margin: clamp(2.25rem, 5vw, 4.25rem) 0;
}

@media (max-width: 767px) {
  #banner-outer .djslider-loader {
    height: clamp(280px, 62vw, 460px) !important;
  }
}
.table-responsive { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; }
.table th,
.table td { border-bottom: 1px solid var(--pd-border); padding: .8rem; text-align: left; vertical-align: top; }
.table-striped tbody tr:nth-child(odd) { background: rgba(66, 122, 83, .055); }
.article-info,
dl.article-info,
.com-content-article__info,
.icons { display: none !important; }
.lj-legal-links { margin-top: 2rem; text-align: center; }
.lj-video-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 1.5rem 0;
}
.lj-video-card {
  background: #101611;
  border-radius: 16px;
  box-shadow: var(--pd-shadow);
  overflow: hidden;
  position: relative;
}
.lj-video-card a { color: #fff; display: block; text-decoration: none; }
.lj-video-card img { aspect-ratio: 16 / 9; display: block; object-fit: cover; transition: transform .25s ease; width: 100%; }
.lj-video-card h2 { color: #fff; font-size: 1rem; margin: 0; padding: 1rem; }
.lj-video-card:hover img { transform: scale(1.025); }
.lj-play {
  align-items: center;
  background: rgba(25, 104, 58, .92);
  border-radius: 999px;
  display: flex;
  font-size: 1.25rem;
  height: 3.25rem;
  justify-content: center;
  left: 50%;
  padding-left: .15rem;
  position: absolute;
  top: calc(50% - 2rem);
  transform: translate(-50%, -50%);
  width: 3.25rem;
}

/* Rebuilt home page: familiar horizontal sections with modern responsive spacing. */
.lj-home-section {
  border-top: 1px solid var(--pd-border);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  text-align: center;
}
.lj-home-section:first-child { border-top: 0; padding-top: 0; }
.lj-home-section > :last-child { margin-bottom: 0; }
.lj-section-title { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.lj-news-item { margin-inline: auto; max-width: 760px; }
.lj-news-item + .lj-news-item { border-top: 1px solid var(--pd-border); margin-top: 3rem; padding-top: 3rem; }
.lj-news-item h3 { margin-top: 0; }
.lj-news-image {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 33, 43, .11);
  display: block;
  margin: 1.5rem auto 0;
  max-height: 720px;
  object-fit: contain;
  width: auto;
}
.lj-button-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.lj-button-row .btn { text-decoration: none; }
.lj-gallery-years,
.lj-info-grid,
.lj-board-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.lj-gallery-year,
.lj-info-card,
.lj-board-card {
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23, 33, 43, .07);
  overflow: hidden;
}
.lj-gallery-year { color: inherit; display: block; text-decoration: none; }
.lj-gallery-year img { aspect-ratio: 16 / 10; display: block; object-fit: cover; width: 100%; }
.lj-gallery-year strong { display: block; font-size: 1.15rem; padding: 1rem; }
.lj-info-card { padding: clamp(1.25rem, 3vw, 2rem); }
.lj-info-card img { display: block; margin: 0 auto 1rem; max-height: 220px; object-fit: contain; }
.lj-parallax {
  align-items: center;
  background: linear-gradient(rgba(18, 31, 23, .32), rgba(18, 31, 23, .42)), url('/images/stories/Hintergrund/Hintergrund.jpg') center / cover no-repeat;
  display: flex;
  min-height: clamp(280px, 46vw, 620px);
  justify-content: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}
.lj-parallax h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.75rem); margin: 0; padding: 2rem; text-align: center; text-shadow: 0 3px 15px rgba(0, 0, 0, .65); }
.lj-board-card { padding-bottom: 1rem; }
.lj-board-card img { aspect-ratio: 211 / 307; display: block; object-fit: cover; width: 100%; }
.lj-board-card h3 { font-size: 1rem; margin: 1rem .75rem .15rem; }
.lj-board-card p { color: var(--pd-muted); font-size: .9rem; margin: 0 .75rem; }
.lj-video-feature iframe,
.video-container iframe { aspect-ratio: 16 / 9; border: 0; display: block; height: auto; width: 100%; }
.lj-video-list { display: grid; gap: 2rem; }
.lj-video-entry { border-top: 1px solid var(--pd-border); padding-top: 2rem; text-align: center; }
.lj-video-entry:first-child { border-top: 0; padding-top: 0; }
.lj-video-entry h2 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

@media (max-width: 560px) {
  .lj-gallery-years, .lj-info-grid { grid-template-columns: 1fr; }
  .lj-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Landjugend hero slider */
#lj-hero-slider img:first-child { animation: ljHeroFirst 12s infinite !important; }
#lj-hero-slider img:last-child { animation: ljHeroSecond 12s infinite !important; }
@keyframes ljHeroFirst { 0%,45%,100% { opacity:1; } 50%,95% { opacity:0; } }
@keyframes ljHeroSecond { 0%,45%,100% { opacity:0; } 50%,95% { opacity:1; } }


/* Mobile article spacing */
@media (max-width: 767px) {
  .com-content-article.item-page {
    padding-inline: 20px;
  }
}
