/*
Theme Name: JENTECH Clean
Theme URI: https://jentech-records.de/
Author: JENTECH
Description: Schlankes, pluginfreies Theme für JENTECH Records.
Version: 1.0.12
Requires at least: 7.1
Requires PHP: 8.2
Text Domain: jentech-clean
*/

:root {
  --jt-blue: #008bd2;
  --jt-orange: #ff9700;
  --jt-text: #626262;
  --jt-dark: #171717;
  --jt-line: #e7e7e7;
  --jt-page: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fcfcfc;
  color: var(--jt-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
a { color: var(--jt-blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; }
audio { width: 100%; max-width: 620px; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-header {
  min-height: 90px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 10;
}
.header-inner {
  width: min(var(--jt-page), calc(100% - 40px));
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-logo { display: flex; align-items: center; margin-right: 10px; }
.site-logo img { width: 32px; height: 32px; object-fit: contain; }
.primary-nav { flex: 1; }
.primary-nav > ul {
  display: flex;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav > ul > li {
  position: relative;
  border-left: 1px solid var(--jt-line);
}
.primary-nav > ul > li:last-child { border-right: 1px solid var(--jt-line); }
.primary-nav > ul > li > a {
  min-height: 90px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: #555;
  font-size: 14px;
}
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 230px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--jt-line);
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a {
  display: block;
  padding: 8px 16px;
  color: #555;
  white-space: nowrap;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--jt-blue); }
.header-tools { display: flex; align-items: center; gap: 18px; }
.search-link { color: #777; font-size: 22px; line-height: 1; }
.language-switcher { position: relative; }
.language-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--jt-line);
  border-radius: 4px;
  color: #444;
  background: #fff;
  cursor: pointer;
  list-style: none;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 150px;
  padding: 6px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--jt-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}
.language-switcher li { padding: 0; }
.language-switcher a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 3px;
  color: #444;
}
.language-switcher a:hover,
.language-switcher a:focus,
.language-switcher a[aria-current="page"] { background: #f1f7fa; text-decoration: none; }
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary { cursor: pointer; color: #333; }
.mobile-menu ul { list-style: none; padding: 12px 0; margin: 0; }
.mobile-menu li { padding: 6px 0; }

.home-hero {
  min-height: 450px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background-color: #e7e4df;
  background-image:
    linear-gradient(90deg, rgba(238,235,230,.86), rgba(238,235,230,.42), rgba(238,235,230,.86)),
    url('/wp-content/uploads/1-10.%20Slider%20Salamanca_2021_15cmx150dpi-1920x750.jpg');
  background-position: center;
  background-size: cover;
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -18px 24px -24px #111;
}
.hero-cover {
  width: min(380px, 65vw);
  max-height: 360px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}

.site-main {
  width: min(var(--jt-page), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 28px;
}
.front-main { padding: 22px 0 18px; text-align: center; }
.front-main .jentech-item:has(> .legacy-divider) { display: none; }
.front-main .jentech-builder-section,
.front-main .jentech-row { margin-bottom: 0; }
.page-title, .legacy-heading h1, .legacy-heading h2 {
  margin: 0 0 30px;
  color: #202020;
  font-weight: 400;
  line-height: 1.2;
}
.page-title, .legacy-heading h1 { font-size: clamp(30px, 4vw, 46px); text-align: center; }
.legacy-heading h2 { font-size: 30px; }
.entry-content { min-height: 0; }

.jentech-builder-section { margin: 0 0 12px; }
.jentech-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 12px;
}
.jentech-item { min-width: 0; flex: 1 1 100%; }
.jentech-col-1-1 { flex-basis: 100%; }
.jentech-col-3-4 { flex-basis: calc(75% - 13px); }
.jentech-col-2-3 { flex-basis: calc(66.666% - 13px); }
.jentech-col-1-2 { flex-basis: calc(50% - 13px); }
.jentech-col-1-3 { flex-basis: calc(33.333% - 18px); }
.jentech-col-1-4 { flex-basis: calc(25% - 20px); }
.jentech-col-1-5 { flex-basis: calc(20% - 21px); }
.jentech-col-1-6 { flex-basis: calc(16.666% - 22px); }

.legacy-photo-box, .legacy-team, .legacy-list {
  height: 100%;
  text-align: center;
}
.legacy-photo-box img, .legacy-team > img {
  display: block;
  width: 100%;
  max-width: 300px;
  max-height: 360px;
  object-fit: contain;
  margin: 0 auto 14px;
}
.legacy-photo-box h3, .legacy-list h2, .legacy-list h3 {
  margin: 8px 0;
  color: #292929;
  font-weight: 400;
}
.legacy-photo-box .box-copy { color: #727272; }
.legacy-image { margin: 0; text-align: center; }
.legacy-image figcaption { margin-top: 8px; color: #777; }
.legacy-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  text-align: left;
}
.legacy-list > img { width: 90px; max-height: 120px; object-fit: contain; }
.legacy-list-content > :first-child { margin-top: 0; }
.legacy-info-box {
  min-height: 0;
  align-self: flex-start;
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,151,0,.88), rgba(0,139,210,.66));
  background-position: center;
  background-size: cover;
}
.legacy-info-box a { color: #fff; text-decoration: underline; }
.legacy-info-box h3 { color: #fff; font-size: 24px; font-weight: 400; }
.legacy-info-box p { margin: 10px 0; }
.legacy-info-box img {
  width: auto;
  max-height: 26px;
  margin-right: 8px;
  vertical-align: middle;
}
.legacy-visual.has-background {
  padding: 28px;
  min-height: 260px;
  background-position: center;
  background-size: cover;
}
.legacy-visual.has-background > * {
  max-width: 720px;
  padding: 20px;
  background: rgba(255,255,255,.9);
}
.legacy-contact {
  padding: 28px;
  min-height: 0;
  background-color: #292b33;
  background-position: center;
  background-size: cover;
  color: #fff;
}
.legacy-contact h3 { margin-top: 0; color: #fff; }
.legacy-contact a { color: #8dd7ff; }
.legacy-accordion details {
  margin: 0 0 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}
.legacy-accordion summary {
  position: relative;
  padding: 12px 16px 12px 52px;
  cursor: pointer;
  color: #333;
  font-weight: 600;
  list-style: none;
}
.legacy-accordion summary::-webkit-details-marker { display: none; }
.legacy-accordion summary::before {
  content: '+';
  position: absolute;
  left: 18px;
  top: 50%;
  color: #999;
  font-size: 18px;
  font-weight: 400;
  transform: translateY(-50%);
}
.legacy-accordion details[open] summary::before { content: '−'; }
.legacy-accordion details[open] summary { border-bottom: 1px solid #e4e4e4; }
.legacy-accordion-content { padding: 12px 18px 16px 52px; }
.legacy-accordion-content > :first-child { margin-top: 0; }
.legacy-accordion-content > :last-child { margin-bottom: 0; }
.legacy-divider { height: 1px; background: var(--jt-line); margin: 20px 0; }
.legacy-placeholder { min-height: 24px; }
.legacy-slider-placeholder {
  min-height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #e7e7e7;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -16px 22px -24px #111;
}
.legacy-slider-placeholder img {
  width: auto;
  max-width: min(76%, 360px);
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(0,0,0,.2));
}
.legacy-slider-salamanca { min-height: 110px; }
.legacy-slider-salamanca img { max-height: 96px; }
.audio-track {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(260px, 2fr);
  gap: 14px;
  align-items: center;
  margin: 10px 0;
}
.audio-track audio { height: 40px; }
.entry-content iframe { max-width: 100%; border: 0; }
.video-preview {
  position: relative;
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 7 / 4;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}
.video-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 60px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: #ff0033;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.video-preview:hover .video-play,
.video-preview:focus .video-play { background: #d9002b; }
.booklet-viewer {
  max-width: 1050px;
  margin: 0 auto 24px;
  padding: 14px;
  border: 1px solid var(--jt-line);
  background: #f3f3f3;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.booklet-frame {
  display: block;
  width: 100%;
  height: min(76vh, 780px);
  min-height: 620px;
  background: #dedede;
}
.booklet-mobile-cover { display: none; }
.booklet-mobile-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 540px;
  margin: 0 auto;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.booklet-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 4px 2px;
  color: var(--jt-text);
}
.booklet-button {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 3px;
  background: var(--jt-blue);
  color: #fff;
  font-weight: 600;
}
.booklet-button:hover, .booklet-button:focus { color: #fff; text-decoration: none; background: #0078b6; }

.site-footer { background: var(--jt-dark); color: #aaa; margin-top: 0; }
.footer-upper { min-height: 70px; border-bottom: 1px solid #2c2c2c; }
.footer-inner {
  width: min(var(--jt-page), calc(100% - 40px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}
.footer-inner a { color: var(--jt-blue); }
.social-links { white-space: nowrap; }
.social-links a {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  place-items: center;
  border-radius: 3px;
  background: var(--jt-blue);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.social-links a:hover, .social-links a:focus { color: #fff; text-decoration: none; }
.error-404 { text-align: center; padding: 80px 0; }
.error-404 h1 { color: #202020; font-size: 42px; }

@media (max-width: 900px) {
  .primary-nav, .header-tools { display: none; }
  .mobile-menu { display: block; }
  .mobile-language-switcher { margin-top: 10px; }
  .mobile-language-switcher ul { position: static; min-width: 0; box-shadow: none; }
  .header-inner { min-height: 82px; }
  .site-header { min-height: 82px; }
  .home-hero { min-height: 330px; }
  .jentech-col-1-4, .jentech-col-1-5, .jentech-col-1-6 { flex-basis: calc(50% - 13px); }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .header-inner, .site-main, .footer-inner { width: min(100% - 28px, var(--jt-page)); }
  .home-hero { min-height: 260px; }
  .site-main { padding-top: 32px; }
  .jentech-row { gap: 22px; }
  .jentech-item, .jentech-col-3-4, .jentech-col-2-3, .jentech-col-1-2,
  .jentech-col-1-3, .jentech-col-1-4, .jentech-col-1-5, .jentech-col-1-6 { flex-basis: 100%; }
  .legacy-list { grid-template-columns: 1fr; text-align: center; }
  .legacy-list > img { width: 120px; margin: 0 auto; }
  .legacy-slider-placeholder { min-height: 220px; }
  .legacy-slider-salamanca { min-height: 150px; }
  .audio-track { grid-template-columns: 1fr; }
  .booklet-viewer { padding: 8px; }
  .booklet-frame { display: none; }
  .booklet-mobile-cover { display: block; padding: 8px; }
  .booklet-actions { flex-direction: column; gap: 6px; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding: 22px 0; }
}

