/* ==========================================================
   LZMB – visual theme (loaded after general.css and slider.css)
   Only changes the look; the page structure stays the same.
   ========================================================== */

/* ---------- Font: Berlin Type (State of Berlin, free licence) ---------- */
@font-face {
  font-family: "Berlin Type";
  src: url("../fonts/BerlinTypeWeb-Regular.woff2") format("woff2"),
       url("../fonts/BerlinTypeWeb-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Berlin Type";
  src: url("../fonts/BerlinTypeWeb-Bold.woff2") format("woff2"),
       url("../fonts/BerlinTypeWeb-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Colours ---------- */
:root {
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --bg-outer: #f0f0ee;
  --black: #000000;
  --red: #DD0000;
  --yellow: #FFCE00;
  --gold: #E3A21A;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Berlin Type", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg-outer);
  color: var(--ink);
  line-height: 1.55;
}

/* Page card */
#seite {
  position: relative;
  max-width: 920px;
  padding: 0.5rem clamp(1.25rem, 5vw, 3.5rem) 2rem;
  background: #ffffff;
  box-sizing: border-box;
}

/* ---------- Header: the four bears ---------- */
#header {
  justify-content: center;
  margin-top: clamp(2rem, 6vw, 3.5rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}
#header a { display: block; line-height: 0; }
#header img,
#header img.header-bears {
  width: auto;
  height: clamp(86px, 14.9vw, 138px);
}

/* ---------- Content ---------- */
#content {
  text-align: center;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
}

h1 {
  font-family: "Berlin Type", sans-serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}

#content > p { color: var(--ink); }

/* The longer text block */
small, small.auftrag, small.info {
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
  line-height: 1.7;
  color: #333;
}
small.auftrag2 {
  font-size: 0.7rem;
  color: var(--muted);
  vertical-align: super;
}

/* "Selected partners and collaborators…" */
#content p { margin: 0; }
#partner_slider_container + p,
#content small.auftrag > p:first-of-type { color: var(--muted); }

/* ---------- Links ---------- */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
a:hover, a:focus-visible {
  color: var(--red);
  text-decoration-color: var(--red);
}
a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
#header a, #partnerslider a { text-decoration: none; }
a small.auftrag { color: var(--red); }   /* the small → arrow inside links */

/* ---------- Partner logos ---------- */
#partner_slider_container {
  margin: 1.4rem 0 1.6rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
#partner_slider #partnerslider .item img {
  filter: grayscale(1);
  opacity: .72;
  transition: filter .25s, opacity .25s;
}
#partner_slider #partnerslider .item a:hover img,
#partner_slider #partnerslider .item a:focus-visible img {
  filter: none;
  opacity: 1;
}

/* soft white fades at both ends instead of the old PNG bars */
.bgpslnav { top: 0; bottom: 0; height: auto; }
.bgpslnavleft  { background: linear-gradient(to right, #fff 35%, rgba(255,255,255,0)); width: 120px; }
.bgpslnavright { background: linear-gradient(to left,  #fff 35%, rgba(255,255,255,0)); width: 120px; }
#partner_slider #partnerslider .item { margin: 0 16px; }
@media (min-width: 701px) { #partner_slider #partnerslider .item img { width: 100%; max-width: 140px; height: 74px; } }

/* round arrow buttons */
.pslprev, .pslnext { background: none; top: 50%; transform: translateY(-50%); }
.pslnav a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--ink);
  position: relative;
}
.pslprev { left: 4px; }
.pslnext { right: 4px; }
.pslnav a::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px;
  border-top: 2px solid var(--ink); border-right: 2px solid var(--ink);
  text-indent: 0;
}
.pslprev a::after { transform: translate(-35%, -50%) rotate(-135deg); }
.pslnext a::after { transform: translate(-65%, -50%) rotate(45deg); }
.pslnav a:hover { background: var(--ink); }
.pslnav a:hover::after { border-color: #ffffff; }

/* ---------- Footer ---------- */
#footer {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 0;
  position: relative;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 2;
  color: var(--muted);
}
#footer::before {          /* short black-red-gold line */
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 72px; height: 3px; transform: translateX(-50%);
  background: linear-gradient(to right, var(--black) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--gold) 75% 100%);
}
#footer a { text-decoration-thickness: 1.5px; }
#footer .sep { color: #c4c4c4; margin: 0 .35em; letter-spacing: -.1em; }
#footer small.auftrag2 { vertical-align: baseline; font-size: .75rem; }

/* ---------- Impressum ---------- */
.left {
  max-width: 62ch;
  margin: 0 auto 40px;
  text-align: left;
}
.left h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin-top: .5rem; }
.left h4 { font-size: 1rem; margin: .4rem 0 .2rem; }
.left small { font-size: .9rem; line-height: 1.65; color: #333; }

#content .impressum p { margin: 0 0 1.1em; line-height: 1.6; }
.impressum .imp-name { font-size: 1.1rem; line-height: 1.35; }
#content .impressum .imp-block { margin-top: 1.8em; }
#content .impressum h3 { margin: 2.4rem 0 .8rem; }
#content .impressum .back { margin-top: 2.5rem; }
#content .mail-note { color: #9a9a9a; font-size: .85rem; margin-top: 1.8em; }
.contact-form { max-width: 34rem; }
.contact-form label { font-weight: 700; font-size: .95rem; }
.contact-form .req { color: var(--red); }
.contact-form input, .contact-form textarea {
  width: 100%; box-sizing: border-box; margin-top: .3rem;
  font: inherit; padding: .55rem .65rem; border: 1px solid #bdbdbd; border-radius: 3px; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.contact-form button {
  font: inherit; font-weight: 700; padding: .55rem 1.3rem; cursor: pointer;
  background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 3px;
}
.contact-form button:hover { background: var(--ink); color: #fff; }
.cf-error { color: var(--red); font-weight: 700; }
.cf-note { font-size: .85rem; color: var(--muted); }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  #content { text-align: center; }
  #seite { padding-bottom: 1.5rem; }
}

/* ---------- Desktop card ---------- */
@media (min-width: 1024px) {
  #seite {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.05);
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
