/* Human Zoo: Original-Look (Template 2014) als responsive Fassung.
   Farben, Schrift und Abmessungen stammen aus der alten template.css. */

@font-face {
  font-family: 'FutMCB';
  src: url('../fonts/futuramc.woff') format('woff'),
       url('../fonts/futuramc.ttf') format('truetype');
  font-display: swap;
}

:root {
  --hz-black: #000;
  --hz-white: #fff;
  --hz-link: #ffae00;
  --hz-nav: #d4ae7b;
  --hz-line: #9b8e8e;
  --hz-badge: #bdbdbd;
  --hz-gutter: clamp(16px, 3vw, 24px);
  --hz-img: url('../images/backgrounds/bg_moduletable.png');
}

*, *::before, *::after { box-sizing: border-box; }

/* Wie im Original: alle Standardabstaende sind 0, die Inhalte verlassen sich darauf. */
* { margin: 0; padding: 0; }

html { overflow-y: scroll; -webkit-text-size-adjust: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--hz-black) no-repeat top center;
  background-size: max(100%, 1920px) auto;
  color: var(--hz-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

a { color: var(--hz-link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--hz-link); outline-offset: 2px; }

hr { border: 0; border-bottom: 1px solid var(--hz-line); }

img { max-width: 100%; height: auto; }
iframe, video, audio, embed, object { max-width: 100%; }

h1, h2 { font-family: 'FutMCB', Arial, sans-serif; font-weight: normal; text-transform: uppercase; }
h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 34px); }
#content ul, #content ol, #left ul { margin-left: 25px; }

/* Datenschutz: Absaetze mit Zwischenzeile */
.datenschutz .com-content-article__body p, .datenschutz .com-content-article__body ul { margin-bottom: 1.3em; }
.datenschutz .com-content-article__body ul { list-style: disc; }
.datenschutz .com-content-article__body h3 { margin: 2em 0 .5em; }
.datenschutz .com-content-article__body h3:first-child { margin-top: 0; }

/* Zweisprachige Bloecke folgen der Sprache der Seite */
html[lang^="de"] .hz-lang-en, html[lang^="en"] .hz-lang-de { display: none; }
div.hz-lang-de p, div.hz-lang-en p { margin-bottom: 1.3em; }

/* Termine: Icons im Informationsblock */
.hz-ic-icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; fill: currentColor; }
#icagenda .ic-info-box .ic-label { white-space: nowrap; }

/* Sprachflaggen im Hauptmenue */
.hz-langswitch { display: flex; align-items: center; gap: 10px; }
.hz-lang-switch { display: block; opacity: .45; }
.hz-lang-switch:hover, .hz-lang-switch[aria-current] { opacity: 1; }
.hz-lang-switch img { display: block; border: 1px solid var(--hz-white); }
.hz-lang-title {
  margin-bottom: 8px;
  font-family: 'FutMCB', Arial, sans-serif;
  font-size: 26px;
  font-weight: normal;
  line-height: 1.1;
  text-transform: uppercase;
}
/* Band: Titel und Infoblatt lassen wie im Original das Gesicht im Hintergrund frei. */
@media (min-width: 900px) {
  .band .page-header { margin: max(310px, 16vw) 0 8px; text-align: right; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 8px 14px; background: var(--hz-white); color: var(--hz-black);
}
.skip-link:focus { top: 8px; }

.hz-container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--hz-gutter));
  margin-inline: auto;
  padding-inline: var(--hz-gutter);
}

/* Hintergrund je Seite */
body.home { background-image: url('../images/backgrounds/bg_frontpages.jpg'); }
/* Startseite: Motiv endet bei rund 2090 von 2718 px, der Fussblock beginnt darunter. */
@media (min-width: 900px) {
  body.home { min-height: max(2220px, 115.6vw); }
}
body.band { background-image: url('../images/backgrounds/bg_band.jpg'); }
body.contact { background-image: url('../images/backgrounds/bg_contact.jpg'); }
body.medien { background-image: url('../images/backgrounds/bg_media.jpg'); }
body.merch, body.products, body.products2 { background-image: url('../images/backgrounds/bg_store.jpg'); }
body.pics { background-image: url('../images/backgrounds/bg_pics.jpg'); }
body.news { background-image: url('../images/backgrounds/bg_news.jpg'); }
body.dates { background-image: url('../images/backgrounds/bg_dates.jpg'); }
body.partner { background-image: url('../images/backgrounds/bg_partner.jpg'); }
body.impressum { background-image: url('../images/backgrounds/bg_impressum.jpg'); }

/* Kopfbereich mit Banner je Seite */
#headerwrapper {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  background: url('../images/backgrounds/bg_header_frontpage.jpg') no-repeat bottom center;
}
.impressum #headerwrapper, .datenschutz #headerwrapper { background-image: url('../images/backgrounds/bg_header_impressum.jpg'); }
.news #headerwrapper { background-image: url('../images/backgrounds/bg_header_news.jpg'); }
.band #headerwrapper { background-image: url('../images/backgrounds/bg_header_band.jpg'); }
.medien #headerwrapper { background-image: url('../images/backgrounds/bg_header_medien.jpg'); }
.pics #headerwrapper { background-image: url('../images/backgrounds/bg_header_pics.jpg'); }
.contact #headerwrapper { background-image: url('../images/backgrounds/bg_header_contact.jpg'); }
.dates #headerwrapper { background-image: url('../images/backgrounds/bg_header_dates.jpg'); }
.merch #headerwrapper, .products #headerwrapper, .products2 #headerwrapper { background-image: url('../images/backgrounds/bg_header_store.jpg'); }
.partner #headerwrapper { background-image: url('../images/backgrounds/bg_header_partner.jpg'); }

#navwrapper { background: url('../images/backgrounds/bg_topnav.png') repeat-x top left; }

#navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

#mainnav ul, #socialnav ul, #footer ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: 'FutMCB', Arial, sans-serif;
}

#mainnav ul ul { display: none; }

#mainnav a {
  display: block;
  padding: 3px clamp(16px, 2.5vw, 30px) 3px 0;
  color: var(--hz-nav);
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 54px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

#mainnav li.active > a, #mainnav li.current > a { color: var(--hz-link); }

#socialnav ul { flex-direction: row-reverse; align-items: center; gap: 6px; }
#socialnav a { display: block; }
#socialnav img { display: block; width: 30px; height: 30px; object-fit: contain; }
#socialnav .image-title { display: none; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--hz-nav);
  transition: transform .2s;
}
.nav-toggle__bars { position: relative; margin: 11px 0; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -9px; }
.nav-toggle__bars::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Die Goldlinie des Logos schliesst buendig an die Linie im Banner an. */
#header { margin-top: auto; }
#header-logo { display: block; width: min(624px, 100%); }
#header-logo img { display: block; width: 100%; height: auto; }

/* Inhalt: links die Module, rechts der Beitrag (423 : 735 wie im Original) */
#cwrapper {
  display: grid;
  grid-template-columns: minmax(0, 423fr) minmax(0, 735fr);
  column-gap: 42px;
  flex: 1 0 auto;
  margin-top: 60px;
  align-items: start;
  align-content: start;
}

.no-left #content { grid-column: 1 / -1; }
#content { min-width: 0; outline: 0; overflow-wrap: anywhere; }
#left { min-width: 0; overflow-wrap: anywhere; }

#left .moduletable {
  margin: 0 0 50px;
  background: var(--hz-img);
}

#left .moduletable > h3, .hz-block > h3 {
  margin: 0 0 30px;
  padding: 0 0 0 22px;
  background: var(--hz-white);
  color: var(--hz-black);
  font-family: 'FutMCB', Arial, sans-serif;
  font-size: 30px;
  font-weight: normal;
  line-height: 65px;
  text-transform: uppercase;
}

#left .custom, #left .mod-articlesnews { margin: 0 0 20px; padding: 20px 20px 0; overflow: hidden; }

.newsflash-title a, #left .mod-articlesnews h4 a {
  display: block;
  margin: 0 0 20px;
  color: var(--hz-white);
  font-family: 'FutMCB', Arial, sans-serif;
  font-size: clamp(28px, 3vw, 35px);
  font-weight: normal;
  line-height: 1;
  text-transform: uppercase;
}

#left .readmore a {
  float: right;
  margin: 0 0 30px;
  padding: 5px 10px;
  background: var(--hz-black);
  border: 1px solid var(--hz-white);
  color: var(--hz-white);
  font-size: 20px;
  font-weight: bold;
}

.news-empty { margin-bottom: 20px; font-size: 16px; font-weight: bold; }

/* Hauptbeitrag der Startseite: zwei Bloecke im Stil der Module */
.hz-home { display: grid; grid-template-columns: minmax(0, 320fr) minmax(0, 400fr); gap: 20px; align-items: start; }
.hz-home .hz-videos { grid-column: 1; grid-row: 1; }
.hz-home .hz-shows { grid-column: 2; grid-row: 1; }
.hz-block { padding-bottom: 20px; background: rgba(0, 0, 0, .8); }
.hz-block > h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65px;
  margin-bottom: 20px;
  padding: 0 8px;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.1;
  text-align: center;
}
.hz-block > p, .hz-block > h4 { padding-inline: 16px; text-align: center; }
.hz-block > p img { display: block; margin-inline: auto; }
.hz-shows > p + p { margin-top: 20px; }
.hz-videos > h4 { margin: 8px 0 24px; font-size: 16px; }
.hz-videos > h4:last-child { margin-bottom: 0; }

/* Termin-Liste im Modul Dates */
.ic_eventlist { padding-bottom: 8px; }
.default_eventlist {
  min-height: 42px;
  margin: 0 20px 8px;
  padding-bottom: 8px;
  overflow: hidden;
  border-bottom: 1px solid var(--hz-line);
}
.default_eventlist .dateDiv {
  float: left;
  width: 36px;
  margin-right: 10px;
  padding: 3px;
  background: var(--hz-badge);
  border-radius: 5px;
  color: #111;
  text-align: center;
}
.default_eventlist .iCday { font-size: 16px; font-weight: bold; line-height: 18px; }
.default_eventlist .iCmonth { font-size: 12px; line-height: 12px; }
.default_eventlist .titleSpan { padding-top: 2px; font-size: 13px; font-weight: bold; line-height: 15px; }
.default_eventlist .titleSpan a { color: var(--hz-white); }
.default_eventlist .datetimeDiv { font-size: 11px; font-weight: bold; }

/* iCagenda-Ansichten */
.ic-header-title { margin-bottom: 8px; }
#icagenda .ic-list-event { margin-bottom: 15px; padding: 7px; background: rgba(0, 0, 0, .72); border-radius: 5px; }
.ic-event-title h2 { margin: 0; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.1; }
.ic-event-title h2 a { color: var(--hz-link); }
.ic-actionbar-readmore a { color: var(--hz-link); font-size: 12px; font-weight: bold; }
.ic-next a { color: var(--hz-link); }
#icagenda .ic-info-box a, #icagenda .ic-detail-desc a { color: var(--hz-black); font-weight: bold; text-decoration: underline; }

/* Blog-Ansichten (News, Partner, Startseite) */
.blog-items { display: grid; gap: 20px 4%; }
.blog-items.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-items.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-item, .items-leading > * { min-width: 0; }
.page-header h2 { margin: 25px 0 0; }
.partner .page-header h2 {
  width: 80%;
  margin: 0 auto 25px;
  border-bottom: 2px dotted #333;
  font-size: 20px;
  text-align: center;
}

.colcont { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 15px 0 40px; }
.colcont .col1, .colcont .col2, .colcont .col3 { width: auto; float: none; margin: 0; }
.colcont p { font-family: 'FutMCB', Arial, sans-serif; font-size: 20px; text-align: center; }
.colcont p a { color: var(--hz-white); }
.colcont p img { display: block; margin: 0 auto 8px; box-shadow: 5px 5px 5px #000; }
.medien #left .moduletable { background: none; }

/* Tabellen in den Beitraegen tragen feste Breiten aus dem Editor */
#content table { width: 100% !important; max-width: 100%; border-collapse: collapse; }
#content td, #content th { min-width: 0; }
#content td img { max-width: 100%; height: auto; }

/* Player */
#player { grid-column: 1 / -1; justify-self: end; width: 100%; max-width: 460px; margin-top: 40px; }
#player p { margin: 0 auto; }

#teaserbox { display: grid; grid-template-columns: 1fr 1fr; width: 100%; overflow: hidden; }
#teaserbox .cover { width: auto; float: none; padding: 10px 10px 0; }
#teaserbox .teaserplayer { width: auto; float: none; padding: 20px 20px 0 0; background: var(--hz-white) !important; color: #1a1a1a; }
#teaserbox .teaserplayer ol { margin: 0 0 0 45px; padding: 0; }
#teaserbox .teaserplayer ol li { clear: both; margin: 5px 0 !important; }
#teaserbox .teaserplayer ol audio { float: right; width: 150px; height: 20px; margin: 1px 0 0; }

/* Seitennavigation */
.pagination { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; padding: 0; list-style: none; }
.pagination a, .pagination span { display: inline-block; padding: 0 14px; line-height: 2em; border: 1px solid #ddd; }
.pagination .active a, .pagination .active span { background: var(--hz-white); color: var(--hz-black); }

/* Systemmeldungen */
joomla-alert, .alert { display: block; margin: 0 0 20px; padding: 12px 16px; background: var(--hz-white); color: var(--hz-black); }

/* Formulare */
input, select, textarea { max-width: 100%; font: inherit; }

/* Fehlerseite */
.error-page { max-width: 600px; margin: 15vh auto; padding-inline: var(--hz-gutter); text-align: center; }
.error-page h1 { margin-bottom: 16px; }

/* Fuss */
#footerwrapper { clear: both; margin-top: 40px; background: url('../images/backgrounds/bg_footer.png'); }
#footer ul { flex-wrap: wrap; justify-content: flex-end; gap: 0 30px; }
#footer a {
  display: block;
  padding: 3px 0;
  color: var(--hz-white);
  font-size: 30px;
  line-height: 54px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
#footer li.active > a, #footer li.current > a { color: var(--hz-link); }

#commercial { padding-block: 15px; font-weight: bold; text-align: center; }
#commercial p { margin: 0; }
#commercial img { vertical-align: middle; }

/* Bis 1080 px: Menue wird zum Hamburger */
@media (max-width: 1079.98px) {
  #navigation { flex-wrap: wrap; }
  .nav-toggle { display: block; order: 1; }
  #langnav { order: 2; }
  #socialnav { order: 3; }
  #mainnav { order: 4; display: none; width: 100%; padding-bottom: 10px; }
  #mainnav.is-open { display: block; }
  #mainnav ul { flex-direction: column; }
  #mainnav a { padding: 4px 0; font-size: 28px; line-height: 44px; border-top: 1px solid rgba(255, 255, 255, .15); }
  #navwrapper { background: var(--hz-black); }
}

/* Bis 900 px: eine Spalte */
@media (max-width: 899.98px) {
  body { font-size: 16px; line-height: 1.4; }
  #headerwrapper { min-height: 0; }
  #header { margin-top: 12px; }
  #cwrapper { grid-template-columns: minmax(0, 1fr); margin-top: 30px; }
  #left { max-width: 620px; width: 100%; margin-inline: auto; }
  #content { max-width: 760px; width: 100%; margin-inline: auto; }
  .medien #left { max-width: 760px; }
  .medien #left .custom { padding-inline: 0; }
  .dates #content, .news #content, .contact #content { order: -1; }
  #player { justify-self: center; }
  #content p.is-spacer { display: none; }

  /* Startseite: Module und Beitragsbloecke werden zu einer gemeinsamen Spalte. */
  .home #cwrapper { justify-items: center; }
  .home #left, .home #content, .home #content div:has(.hz-home), .hz-home { display: contents; }
  .hz-home .hz-videos, .hz-home .hz-shows { grid-column: auto; grid-row: auto; }
  .home .moduletable, .home .hz-block { width: 100%; max-width: 620px; }
  .home .hz-block { margin-bottom: 50px; }
  .home .hz-dates { order: 1; }
  .home .hz-shows { order: 2; }
  .home .hz-news { order: 3; }
  .home .flyer { order: 4; }
  .home .hz-videos { order: 5; }
}

/* Bis 640 px: Tabellen stapeln, Spalten aufloesen */
@media (max-width: 639.98px) {
  #content table, #content tbody, #content tr, #content td, #content th { display: block; width: 100% !important; height: auto !important; }
  #content colgroup { display: none; }
  #content td.is-empty { display: none; }
  #content td { padding-block: 6px; }
  .blog-items.columns-2, .blog-items.columns-3, .colcont, #teaserbox { grid-template-columns: minmax(0, 1fr); }
  /* Media: CDs laufen ueber alle Reihen hinweg zweispaltig, die letzte bleibt links */
  .hz-cds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin: 15px 0 40px; }
  .hz-cds .colcont { display: contents; }
  .hz-cds .colcont p { font-size: 17px; }
  .hz-cds .colcont p:last-child { display: none; }
  #teaserbox .teaserplayer { padding: 16px; }
  #teaserbox .teaserplayer ol { margin-left: 24px; }
  #teaserbox .teaserplayer ol audio { float: none; display: block; width: 100%; height: 32px; margin-top: 4px; }
  #left .moduletable, .home .hz-block { margin-bottom: 32px; }
  #left .moduletable > h3, .hz-block > h3 { margin-bottom: 16px; padding-left: 16px; font-size: 26px; line-height: 54px; }
  .hz-block > h3 { min-height: 54px; padding-right: 16px; }
  #left .custom, #left .mod-articlesnews { padding: 16px 16px 0; }
  .default_eventlist { margin-inline: 16px; }
  .default_eventlist .titleSpan { font-size: 15px; line-height: 18px; }
  .default_eventlist .datetimeDiv { font-size: 13px; }
  #footer ul { justify-content: center; }
  #footer a { font-size: 24px; line-height: 44px; }
  #commercial { font-size: 14px; }
}

/* Sehr schmale Handys: Kopfzeile bleibt einzeilig, Infozeilen stehen untereinander */
@media (max-width: 359.98px) {
  #navigation { gap: 8px; }
  .hz-langswitch { gap: 6px; }
  .hz-lang-switch img { width: 30px; height: 20px; }
  #icagenda .ic-info-box .ic-divRow, #icagenda .ic-info-box .ic-divCell { display: block; }
  #icagenda .ic-info-box .ic-divRow { margin-bottom: 8px; }
}

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