:root {
  --bg: #f4ecdf;
  --paper: #fffdf8;
  --ink: #211814;
  --muted: #6f6259;
  --accent: #8b3528;
  --accent-dark: #5d2119;
  --line: #e5d6c4;
  --shadow: 0 14px 35px rgba(46, 28, 16, 0.13);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(139, 53, 40, .08), transparent 30rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 42%, #efe3d3 100%);
  line-height: 1.68;
}
a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }

/* Header + navigation overlay */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: #fff;
}
.topbar {
  background: linear-gradient(180deg, rgba(0,0,0,.76), rgba(0,0,0,.42));
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .55rem 1rem .6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-center;
  flex: 1;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  padding: .38rem .66rem;
  border-radius: 999px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.20);
  font-size: .9rem;
  line-height: 1.2;
  text-shadow: 0 1px 5px rgba(0,0,0,.85);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}

/* Page-wide hero, close to the old Jimdo visual but with better contrast */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(285px, 29vw, 395px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #1f1a17;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/image-045.jpg");
  background-size: cover;
  background-position: center 50%;
  filter: grayscale(100%) brightness(.76) contrast(1.16);
  transform: scale(1.01);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,.54) 100%),
    linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.08), rgba(0,0,0,.40));
  z-index: -1;
}
.hero-inner {
  max-width: var(--max);
  width: 100%;
  padding: clamp(5.7rem, 10vw, 7.2rem) 1rem clamp(2rem, 4vw, 3rem);
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0,0,0,.9);
}
.hero-logo {
  width: clamp(74px, 8vw, 105px);
  height: clamp(74px, 8vw, 105px);
  object-fit: contain;
  background: rgba(255,255,255,.92);
  border-radius: 3px;
  padding: 4px;
  box-shadow: 0 4px 22px rgba(0,0,0,.45);
  margin-bottom: .8rem;
}
.hero h1 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4.2rem);
  line-height: 1.04;
  margin: 0;
  letter-spacing: .01em;
}
.hero p {
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  margin: .55rem auto 0;
  max-width: 50rem;
  color: rgba(255,255,255,.94);
}

.site-header .brand {
  display: none;
}

.hero-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: white;
  text-decoration: none;
}

.hero-brand img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: white;
  padding: 4px;
  border-radius: 6px;
}

.hero-brand h1 {
  margin: 0;
  color: white;
}

.hero-brand:hover h1 {
  text-decoration: underline;
}

.page {
  max-width: var(--max);
  margin: -1.9rem auto 2.5rem;
  padding: 0 1rem;
  display: grid;
  gap: 1.4rem;
  position: relative;
  z-index: 2;
}
.page.has-sidebar { grid-template-columns: minmax(0, 2.35fr) minmax(260px, .85fr); }
.content,
.sidebar {
  background: rgba(255,253,248,.97);
  border: 1px solid rgba(229,214,196,.95);
  border-radius: 18px;
  padding: clamp(1.15rem, 2.7vw, 2.1rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
.sidebar { font-size: .95rem; align-self: start; }
.sidebar h3 { font-size: 1.12rem; }
.sidebar img { border-radius: 10px; box-shadow: 0 5px 16px rgba(0,0,0,.10); }

/* Partner carousel */
.partner-window {
  height: 190px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: .5rem;
}
.partner-window::before,
.partner-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  pointer-events: none;
  z-index: 2;
}
.partner-window::before { top: 0; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.partner-window::after { bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff); }
.partner-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  animation: partner-scroll 28s linear infinite;
}
.partner-window:hover .partner-track { animation-play-state: paused; }
.partner-track a { display: block; width: 88%; text-align: center; }
.partner-track img { max-width: 100%; max-height: 86px; object-fit: contain; background: #fff; }
@keyframes partner-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

h1, h2, h3 { line-height: 1.22; margin: 1.35em 0 .55em; color: #2a1d18; }
h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.05rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.17rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.35rem; }
li { margin: .45rem 0; }
strong { color: #1f1713; }
img { max-width: 100%; height: auto; border-radius: 12px; }
figure { margin: 1.1rem 0; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.55rem 0; }
.table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.table th, .table td { border: 1px solid var(--line); padding: .55rem; vertical-align: top; }
.content figure img, .content > img { box-shadow: 0 8px 24px rgba(33, 22, 14, .10); }
.site-footer { text-align: center; padding: 2rem 1rem; color: #fff; background: #2f221e; margin-top: 2rem; }
.site-footer p { margin: .25rem 0; }
.site-footer a { color: #fff; }

@media (max-width: 960px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .main-nav { justify-content: flex-start; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .15rem; }
  .main-nav a { white-space: nowrap; }
  .mini-brand small { white-space: normal; }
  .hero-inner { padding-top: 8.5rem; }
}
@media (max-width: 850px) {
  .site-header { position: relative; background: #2c211d; }
  .topbar { background: linear-gradient(135deg, #2c211d, #6d291f 65%, #8b3528); }
  .hero { min-height: 235px; }
  .hero-inner { padding: 2.1rem 1rem 2.4rem; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .page, .page.has-sidebar { grid-template-columns: 1fr; margin-top: -1rem; }
}
