:root {
  --blue: #1637ff;
  --blue-dark: #1026ad;
  --blue-soft: rgba(22, 55, 255, 0.12);
  --text: #4b5874;
  --heading: #162033;
  --muted: #7a88a3;
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(24, 36, 62, 0.12);
  --shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 20px 46px rgba(17, 24, 39, 0.16);
  --radius: 22px;
  --header-pill: rgba(255, 255, 255, 0.74);
  --header-pill-border: rgba(255, 255, 255, 0.42);
  --header-pill-shadow: 0 14px 30px rgba(13, 18, 35, 0.16);
  --focus-ring: 0 0 0 4px rgba(22, 55, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)),
    var(--bg-image, url("https://zurkunstfabrik.com/wp-content/uploads/2026/01/festive-christmas-backdrop-2024-12-07-05-57-12-utc-scaled.jpg")) center top / cover fixed no-repeat;
}

body.site-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.11));
  pointer-events: none;
}

body.site-body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.container {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 18px;
  top: 18px;
  z-index: 1000;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.site-header {
  padding-top: 34px;
}

.header-inner {
  position: relative;
  min-height: 72px;
  padding-inline: 92px;
  text-align: center;
}

.site-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.6rem 1.4rem 0.45rem;
  max-width: min(100%, 760px);
  border: 1px solid var(--header-pill-border);
  border-radius: 999px;
  background: var(--header-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--header-pill-shadow);
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
  text-wrap: balance;
}

.header-actions,
.burger {
  position: absolute;
  top: 0;
  z-index: 20;
}

.header-actions {
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  left: 0;
  display: none;
}

.search-toggle,
.theme-toggle,
.burger {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(22, 55, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.search-toggle:hover,
.theme-toggle:hover,
.burger:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.search-toggle i,
.theme-toggle i {
  font-size: 20px;
}

.burger {
  padding: 0;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

body.nav-open .burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .burger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.theme-toggle.is-active {
  background: #0f1f63;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(18, 39, 149, 0.96);
  box-shadow: var(--shadow);
}

.main-nav a {
  position: relative;
  min-width: 118px;
  padding: 14px 18px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.page-wrap {
  padding: 52px 0 58px;
}

.page-title-card,
.content-card,
.widget {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.page-title-card:hover,
.content-card:hover,
.widget:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.page-title-card::after,
.content-card::after,
.widget::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 45%, rgba(22, 55, 255, 0.04));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.page-title-card:hover::after,
.content-card:hover::after,
.widget:hover::after {
  opacity: 1;
}

.page-title-card {
  margin-bottom: 30px;
  padding: 24px 26px 20px;
}

.page-title-card h2 {
  margin: 0;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--heading);
  text-wrap: balance;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(300px, 0.95fr);
  gap: 34px;
  align-items: start;
}

.content-card {
  padding: 26px;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body > :last-child {
  margin-bottom: 0;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body table {
  margin: 0 0 18px;
}

.article-body p,
.article-body li {
  font-size: 1.06rem;
  line-height: 1.9;
}

.article-body strong {
  color: var(--heading);
}

.article-body a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.article-body h3 {
  position: relative;
  margin: 34px 0 14px;
  padding-left: 18px;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.article-body h3::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(22, 55, 255, 0.08);
}

.article-body ul,
.article-body ol {
  padding-left: 1.3rem;
}

.article-body blockquote {
  padding: 16px 18px;
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
  background: rgba(22, 55, 255, 0.05);
  color: var(--heading);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}

.article-body th,
.article-body td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-body th {
  background: rgba(22, 55, 255, 0.06);
  color: var(--heading);
}

.article-image {
  margin: 24px 0 12px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.14);
}

.article-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.content-card:hover .article-image img {
  transform: scale(1.025);
  filter: saturate(1.03) contrast(1.02);
}

.sidebar {
  position: sticky;
  top: 24px;
}

.widget {
  padding: 20px 18px 18px;
  margin-bottom: 24px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 82px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.search-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(29, 41, 68, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: #263248;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.search-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 0 14px;
  border-right: 0;
  border-radius: 14px 0 0 14px;
}

.search-form button,
.submit-btn {
  border: 0;
  background: var(--blue);
  color: #fff;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.search-form button:hover,
.submit-btn:hover {
  background: var(--blue-dark);
}

.search-form button {
  min-width: 120px;
  padding: 0 20px;
  border-radius: 0 14px 14px 0;
  font-size: 1.16rem;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meta-list li + li {
  border-top: 1px solid var(--border);
}

.meta-list a {
  display: block;
  padding: 14px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 1.04rem;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.meta-list a:hover,
.meta-list a.active {
  color: var(--blue);
  padding-left: 6px;
}

.video-widget {
  padding: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-card {
  padding: 26px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 500;
}

.contact-form input {
  height: 58px;
  padding: 0 14px;
  border-radius: 14px;
}

.contact-form textarea {
  min-height: 220px;
  padding: 14px;
  border-radius: 14px;
  resize: vertical;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 1.18rem;
}

.site-footer {
  padding-bottom: 12px;
}

.footer-top {
  padding-bottom: 20px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.54);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  padding: 6px 0;
}

.footer-title {
  margin: 0;
}

.footer-title a {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 1rem 0.34rem;
  border-radius: 999px;
  background: var(--header-pill);
  border: 1px solid var(--header-pill-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--header-pill-shadow);
  color: #111827;
  text-decoration: none;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-title a:hover {
  transform: translateY(-1px);
}

.footer-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-top-link {
  border: 1px solid rgba(22, 55, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--heading);
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.14);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.footer-top-link:hover {
  transform: translateY(-1px);
  background: var(--blue);
  border-color: transparent;
  color: #fff;
}

.footer-top-link i {
  font-size: 0.96rem;
}

.footer-bottom {
  padding: 18px 0 18px;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  color: #344156;
  font-size: 0.98rem;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 999;
  pointer-events: none;
  background: transparent;
}

.reading-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #6b86ff);
  box-shadow: 0 0 14px rgba(22, 55, 255, 0.45);
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


body.site-body.theme-dark {
  --text: #e1e9fb;
  --heading: #ffffff;
  --muted: #b9c5df;
  --card: rgba(7, 13, 30, 0.88);
  --card-strong: rgba(8, 15, 34, 0.94);
  --border: rgba(190, 205, 255, 0.12);
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 24px 52px rgba(0, 0, 0, 0.42);
  --header-pill: rgba(6, 10, 24, 0.84);
  --header-pill-border: rgba(189, 205, 255, 0.12);
  --header-pill-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  background:
    linear-gradient(rgba(4, 8, 20, 0.76), rgba(5, 10, 24, 0.82)),
    var(--bg-image, url("https://zurkunstfabrik.com/wp-content/uploads/2026/01/festive-christmas-backdrop-2024-12-07-05-57-12-utc-scaled.jpg")) center top / cover fixed no-repeat;
}

body.theme-dark::before {
  background: linear-gradient(180deg, rgba(1, 4, 12, 0.08), rgba(1, 4, 12, 0.28));
}

body.theme-dark .site-title,
body.theme-dark .footer-title a {
  color: #f8fbff;
}

body.theme-dark .main-nav {
  background: rgba(10, 22, 82, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

body.theme-dark .main-nav a:hover,
body.theme-dark .main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
}

body.theme-dark .page-title-card,
body.theme-dark .content-card,
body.theme-dark .widget,
body.theme-dark .contact-card {
  background: linear-gradient(180deg, rgba(10, 16, 36, 0.9), rgba(8, 14, 31, 0.84));
  border-color: rgba(188, 203, 255, 0.12);
}

body.theme-dark .page-title-card::after,
body.theme-dark .content-card::after,
body.theme-dark .widget::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%, rgba(78, 112, 255, 0.14));
}

body.theme-dark .article-body a,
body.theme-dark .meta-list a:hover,
body.theme-dark .meta-list a.active {
  color: #90a9ff;
}

body.theme-dark .article-body blockquote {
  background: rgba(76, 107, 255, 0.12);
  color: #edf3ff;
}

body.theme-dark .article-body th {
  background: rgba(76, 107, 255, 0.12);
}

body.theme-dark .search-form input,
body.theme-dark .contact-form input,
body.theme-dark .contact-form textarea {
  background: rgba(13, 20, 44, 0.94);
  border-color: rgba(194, 207, 255, 0.12);
  color: #eef4ff;
}

body.theme-dark .search-form input::placeholder,
body.theme-dark .contact-form input::placeholder,
body.theme-dark .contact-form textarea::placeholder {
  color: #95a4c9;
}

body.theme-dark .search-form button,
body.theme-dark .submit-btn,
body.theme-dark .search-toggle,
body.theme-dark .theme-toggle,
body.theme-dark .burger {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

body.theme-dark .video-frame {
  background: #060914;
}

body.theme-dark .footer-divider {
  background: rgba(255, 255, 255, 0.18);
}

body.theme-dark .footer-bottom p {
  color: #d4def7;
}

body.theme-dark .footer-top-link {
  background: rgba(10, 16, 36, 0.9);
  border-color: rgba(190, 205, 255, 0.12);
  color: #f5f8ff;
}

body.theme-dark .footer-top-link:hover {
  background: var(--blue);
  color: #fff;
}


@media (max-width: 991px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-width: 520px;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-tools {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  body.site-body {
    background-attachment: scroll;
  }

  .site-header {
    padding-top: 26px;
  }

  .header-inner {
    padding-inline: 0;
    padding-top: 76px;
  }

  .burger {
    display: inline-flex;
  }

  .header-actions {
    gap: 10px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    width: min(340px, calc(100vw - 28px));
    max-width: 100%;
    margin-top: 0;
    padding: 8px;
    border-radius: 22px;
    flex-direction: column;
    z-index: 18;
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    min-width: 0;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1220px);
  }

  .search-toggle,
  .theme-toggle,
  .burger {
    width: 48px;
    height: 48px;
  }

  .site-title {
    max-width: 100%;
    padding: 0.56rem 1rem 0.38rem;
    font-size: clamp(2.35rem, 10vw, 3.6rem);
  }

  .header-actions {
    right: 0;
    gap: 8px;
  }

  .page-wrap {
    padding-top: 36px;
  }

  .page-title-card,
  .content-card,
  .widget,
  .contact-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-title-card {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .search-form {
    flex-direction: column;
    gap: 10px;
  }

  .search-form input {
    border-right: 1px solid rgba(29, 41, 68, 0.14);
    border-radius: 14px;
  }

  .search-form button,
  .submit-btn {
    width: 100%;
    border-radius: 14px;
  }

  .contact-form textarea {
    min-height: 180px;
  }

}
/* ===== HEADER / NAV FIX ===== */

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.site-title {
  margin: 0 auto;
}

.main-nav {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 22px auto 0;
}

@media (min-width: 821px) {
  .burger {
    display: none !important;
  }
}

@media (max-width: 820px) {
  .header-inner {
    padding-inline: 0;
    padding-top: 76px;
    gap: 16px;
  }

  .main-nav {
    display: none;
    position: static;
    transform: none;
    width: min(340px, calc(100vw - 28px));
    max-width: 100%;
    margin: 0;
    padding: 8px;
    border-radius: 22px;
    flex-direction: column;
    z-index: 18;
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    min-width: 0;
    text-align: center;
  }
}
