/* ============================================================
   custom.css — jankurtz Press Theme
   CD: Yellow #F7E94B · Font: News Cycle · BG: White
   ============================================================ */

/* ── 1. CSS Custom Properties ────────────────────────────── */
:root {
  --jk-yellow:      #F7E94B;
  --jk-black:       #1A1A1A;
  --jk-grey-dark:   #333333;
  --jk-grey-mid:    #666666;
  --jk-grey-light:  #F2F2F2;
  --jk-white:       #FFFFFF;
  --jk-font:        'News Cycle', Arial, Helvetica, sans-serif;
  --jk-radius:      2px;
  --jk-transition:  0.2s ease;
  --jk-max-width:   1280px;
  --jk-gap:         2rem;
}

/* ── 2. Fonts (lokal, DSGVO-konform) ─────────────────────── */
@font-face {
  font-family: 'News Cycle';
  src: url('../fonts/NewsCycle-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'News Cycle';
  src: url('../fonts/NewsCycle-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── 3. Reset & Basis ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--jk-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--jk-grey-dark);
  background-color: var(--jk-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--jk-black);
  text-decoration: underline;
  text-decoration-color: var(--jk-yellow);
  text-underline-offset: 3px;
  transition: color var(--jk-transition), background-color var(--jk-transition);
}

a:hover, a:focus {
  color: var(--jk-black);
  background-color: var(--jk-yellow);
  text-decoration: none;
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--jk-yellow);
  outline-offset: 2px;
}

/* ── 4. Header ───────────────────────────────────────────── */

/* Quarks .navbar auf volle Breite zwingen */
.navbar {
  width: 100% !important;
  max-width: 100% !important;
  padding: 1.25rem 2rem !important;
  border-bottom: 1px solid var(--jk-grey-light);
  background: var(--jk-white);
}

/* Unser Flex-Container bricht aus dem Quark-Innen-Layout aus */
.jk-nav-break {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.jk-header__logo-link {
  display: block;
  text-decoration: none;
  background: none;
  flex-shrink: 0;
}

.jk-header__logo-link:hover,
.jk-header__logo-link:focus {
  background: none;
  opacity: 0.75;
}

.jk-header__logo {
  height: 36px;
  width: auto;
  display: block;
}

.jk-header__main-link {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--jk-grey-mid);
  padding: 0.3rem 0;
  border-bottom: 1.5px solid transparent;
  flex-shrink: 0;
  transition: color var(--jk-transition), border-color var(--jk-transition);
}

.jk-header__main-link:hover,
.jk-header__main-link:focus {
  color: var(--jk-black);
  background: none;
  border-bottom-color: var(--jk-yellow);
}

/* ── 5. Presse-Hauptseite ────────────────────────────────── */
.jk-presse-header-image {
  width: 100%; max-height: 480px; overflow: hidden; margin-bottom: 3rem;
}
.jk-presse-header-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block;
}
.jk-presse-intro { margin-bottom: 4rem; }
.jk-presse-title {
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 1.5rem; line-height: 1.1;
}
.jk-presse-intro-text { max-width: 68ch; font-size: 1.125rem; line-height: 1.7; }

/* ── 6. Press-Listing (Newsroom) ─────────────────────────── */
.jk-press-section { padding: 0 0 6rem; }
.jk-press-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }

.jk-press-item {
  display: grid; grid-template-columns: 320px 1fr;
  gap: var(--jk-gap); padding: 2.5rem 0;
  border-bottom: 1px solid var(--jk-grey-light); align-items: start;
}
.jk-press-item:first-child { border-top: 1px solid var(--jk-grey-light); }

.jk-press-item__image {
  aspect-ratio: 3 / 2; overflow: hidden;
  background-color: var(--jk-grey-light); border-radius: var(--jk-radius);
}
.jk-press-item__image img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.4s ease;
}
.jk-press-item__image a:hover img { transform: scale(1.03); }
.jk-press-item__image--fallback { opacity: 0.6; filter: grayscale(30%); }

.jk-press-item__body { padding-top: 0.25rem; }
.jk-press-item__meta { margin-bottom: 0.5rem; }
.jk-press-item__date {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--jk-grey-mid);
}

.jk-press-item__title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700; line-height: 1.25; margin: 0 0 0.75rem;
}
.jk-press-item__title a { text-decoration: none; color: var(--jk-black); }
.jk-press-item__title a:hover { background-color: var(--jk-yellow); }

.jk-press-item__teaser {
  font-size: 1rem; line-height: 1.6;
  color: var(--jk-grey-mid); margin-bottom: 1.25rem;
}

.jk-press-item__readmore {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.9375rem; font-weight: 700; text-decoration: none;
  color: var(--jk-black); padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--jk-black); border-radius: var(--jk-radius);
  transition: all var(--jk-transition);
}
.jk-press-item__readmore:hover, .jk-press-item__readmore:focus {
  background-color: var(--jk-yellow); border-color: var(--jk-yellow); color: var(--jk-black);
}
.jk-press-item__arrow { transition: transform var(--jk-transition); }
.jk-press-item__readmore:hover .jk-press-item__arrow { transform: translateX(4px); }
.jk-press-empty { padding: 3rem 0; color: var(--jk-grey-mid); font-style: italic; }

/* ── 7. Einzelmeldung ────────────────────────────────────── */
.jk-press-article { padding: 3rem 0 6rem; }
.jk-breadcrumb { margin-bottom: 1.5rem; font-size: 0.9rem; }
.jk-breadcrumb a { text-decoration: none; color: var(--jk-grey-mid); }
.jk-breadcrumb a:hover { color: var(--jk-black); background-color: var(--jk-yellow); }

.jk-press-article__meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.jk-press-article__meta time {
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--jk-grey-mid);
}
.jk-press-article__label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; background-color: var(--jk-yellow);
  color: var(--jk-black); padding: 0.2rem 0.6rem; border-radius: var(--jk-radius);
}
.jk-press-article__title {
  font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 2rem; max-width: 20ch;
}
.jk-press-article__hero { margin: 0 0 2.5rem; border-radius: var(--jk-radius); overflow: hidden; }
.jk-press-article__hero img { width: 100%; height: auto; display: block; }
.jk-press-article__content { max-width: 72ch; font-size: 1.0625rem; line-height: 1.75; }
.jk-press-article__content h2,
.jk-press-article__content h3 { margin-top: 2rem; font-weight: 700; }

.jk-press-media { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--jk-grey-light); }
.jk-press-media__title {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 1rem; color: var(--jk-grey-mid);
}
.jk-press-media__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.jk-press-media__item { border-radius: var(--jk-radius); overflow: hidden; background: var(--jk-grey-light); }
.jk-press-media__download { display: block; text-decoration: none; }
.jk-press-media__download img { width: 100%; height: 160px; object-fit: cover; display: block; }
.jk-press-media__filename { display: block; font-size: 0.75rem; padding: 0.5rem; color: var(--jk-grey-mid); word-break: break-all; }

/* ── 8. Boilerplate ──────────────────────────────────────── */
.jk-boilerplate { margin-top: 4rem; padding-top: 3rem; border-top: 2px solid var(--jk-black); }
.jk-boilerplate__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.jk-boilerplate__heading {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 1rem; color: var(--jk-grey-mid);
}
.jk-boilerplate__text p { font-size: 0.9375rem; line-height: 1.65; color: var(--jk-grey-dark); }
.jk-boilerplate__address { font-size: 0.9375rem; line-height: 1.8; font-style: normal; color: var(--jk-grey-dark); }
.jk-boilerplate__role { color: var(--jk-grey-mid); }
.jk-boilerplate__tel, .jk-boilerplate__email { font-weight: 700; }

/* ── 9. Cookie-Banner ────────────────────────────────────── */
#jk-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background-color: var(--jk-black); color: var(--jk-white);
  z-index: 9999; padding: 1rem;
}
.jk-cookie-banner__inner {
  max-width: var(--jk-max-width); margin: 0 auto;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.jk-cookie-banner__text { flex: 1; font-size: 0.875rem; line-height: 1.5; margin: 0; }
.jk-cookie-banner__text a { color: var(--jk-yellow); text-decoration: underline; }
.jk-cookie-banner__accept {
  flex-shrink: 0; background-color: var(--jk-yellow); color: var(--jk-black);
  border: none; padding: 0.6rem 1.5rem; font-family: var(--jk-font);
  font-weight: 700; font-size: 0.9375rem; cursor: pointer;
  border-radius: var(--jk-radius); transition: opacity var(--jk-transition);
}
.jk-cookie-banner__accept:hover { opacity: 0.85; }

/* ── 10. Footer ──────────────────────────────────────────── */
.jk-footer {
  padding: 2rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--jk-grey-light);
  background: var(--jk-white);
  text-align: center;
}

.jk-footer__legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.jk-footer__legal a {
  font-size: 0.8125rem;
  color: var(--jk-grey-mid);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--jk-transition);
}

.jk-footer__legal a:hover,
.jk-footer__legal a:focus {
  color: var(--jk-black);
  background: none;
  text-decoration: underline;
  text-decoration-color: var(--jk-yellow);
}

/* ── 11. Responsiv ───────────────────────────────────────── */
@media (max-width: 900px) {
  .jk-press-item { grid-template-columns: 1fr; }
  .jk-press-item__image { aspect-ratio: 16 / 9; }
  .jk-boilerplate__inner { grid-template-columns: 1fr; gap: 2rem; }
  .jk-presse-header-image { max-height: 280px; }
}

@media (max-width: 600px) {
  .jk-cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .jk-press-article__title { max-width: 100%; }
}

@media (max-width: 480px) {
  .jk-header { padding: 1rem; }
  .jk-header__logo { height: 28px; }
}