/* German locale styling based on the established responsive system. */
html[lang="de"] header nav { gap: 14px; }
html[lang="de"] header .brand { min-width: 290px; }
html[lang="de"] .navlinks { gap: 13px; align-items: center; }
html[lang="de"] .navlinks > a { white-space: nowrap; }
html[lang="de"] .language-switcher {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
  padding-left: 9px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
html[lang="de"] .language-switcher a { padding: 4px 5px; border-radius: 4px; }
html[lang="de"] .language-switcher a[aria-current="true"] { color: var(--accent); }
@media (max-width: 900px) {
  html[lang="de"] header .brand { min-width: 0; }
  html[lang="de"] .navlinks { align-items: stretch; gap: 0; }
  html[lang="de"] .navlinks > a { white-space: normal; }
  html[lang="de"] .language-switcher {
    justify-content: flex-start;
    gap: 8px;
    margin: 7px 9px 3px;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  html[lang="de"] .language-switcher a { min-height: 44px; padding: 9px 12px; }
}
/* The original blog hero embeds Croatian lettering in its image. */
html[lang="de"] .blog-hero-visual { position: relative; }
html[lang="de"] .blog-hero-image { height: 375px; object-fit: cover; object-position: center 52%; }
html[lang="de"] .blog-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 26, 36, .80), rgba(13, 26, 36, .42) 60%, transparent);
  pointer-events: none;
}
html[lang="de"] .blog-hero-copy {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 5%, 56px);
  top: 50%;
  transform: translateY(-50%);
  max-width: min(590px, 82%);
  color: #fff;
}
html[lang="de"] .blog-hero-copy h1 { font-size: clamp(29px, 3.5vw, 42px); line-height: 1.13; }
html[lang="de"] .blog-hero-copy p { color: #fff; }
/* Fit the seven German category names into the existing desktop category bar. */
@media (min-width: 1081px) {
  html[lang="de"] .blog-topic-track {
    grid-template-columns: .68fr 1fr 1.06fr .99fr 1.02fr 1fr 1.14fr !important;
  }
  html[lang="de"] .blog-topic-button,
  html[lang="de"] .blog-topic-button[data-blog-filter] {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 5px !important;
    padding: 7px 22px 7px 6px !important;
    min-height: 70px !important;
  }
  html[lang="de"] .blog-topic-thumb { width: 28px !important; height: 28px !important; }
  html[lang="de"] .blog-topic-label,
  html[lang="de"] .blog-topic-button[data-blog-filter] .blog-topic-label {
    font-size: 10px !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }
}
html[lang="de"] .blog-topic-button { min-height: 70px !important; }
html[lang="de"] .blog-topic-label,
html[lang="de"] .blog-topic-label--two-lines > span {
  line-height: 1.14 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
}
@media (max-width: 1080px) {
  html[lang="de"] .blog-topic-button[data-blog-filter="prociscavanje-bioplina"] { grid-column: span 2; }
}
@media (max-width: 760px) {
  html[lang="de"] .blog-topic-button { min-height: 74px !important; }
}
@media (max-width: 480px) {
  html[lang="de"] .blog-topic-button {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 5px !important;
    padding: 8px 18px 8px 6px !important;
  }
  html[lang="de"] .blog-topic-thumb { width: 24px !important; height: 24px !important; }
}
/* The German cookie-table headings are wider at tablet width. Present rows
   as labelled cards, following the site's existing mobile policy style. */
@media (min-width: 761px) and (max-width: 900px) {
  html[lang="de"] .privacy-policy table,
  html[lang="de"] .privacy-policy thead,
  html[lang="de"] .privacy-policy tbody,
  html[lang="de"] .privacy-policy tr,
  html[lang="de"] .privacy-policy th,
  html[lang="de"] .privacy-policy td { display: block; }
  html[lang="de"] .privacy-policy thead { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); }
  html[lang="de"] .privacy-policy tr { margin-bottom: 12px; border: 1px solid #d8d8d8; }
  html[lang="de"] .privacy-policy td { border: 0; border-bottom: 1px solid #e6e6e6; }
  html[lang="de"] .privacy-policy td:last-child { border-bottom: 0; }
  html[lang="de"] .privacy-policy td::before { display: block; margin-bottom: 3px; color: #666; font-size: 12px; font-weight: 800; text-transform: uppercase; content: attr(data-label); }
}
@media (max-width: 700px) {
  html[lang="de"] .blog-hero-image { height: 310px; }
  html[lang="de"] .blog-hero-copy { max-width: 86%; }
  html[lang="de"] .blog-hero-copy h1 { font-size: clamp(25px, 7vw, 33px); }
  html[lang="de"] .blog-hero-copy p { font-size: 14px; }
  html[lang="de"] .article-hero-image { float: none; width: 100%; margin: 0 0 20px; }
}
