/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
 */

.laufinfo-entry {
  border-bottom: 1px solid #000;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 12px;
}

.laufinfo-stats-table {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #000;
}

.laufinfo-stat-cell {
  flex: 1;
  min-width: 60px;
  padding: 4px 8px;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.laufinfo-stat-label {
  font-size: 11px;
  margin-bottom: 2px;
}

.laufinfo-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}

.laufinfo-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.laufinfo-notizen {
  margin-top: 8px;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 3px;
}
.page-agility .aktivitaeten-liste,
.page-wanderungen .wanderungen-liste {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media screen and (min-width: 480px) {
  .page-agility .aktivitaeten-liste,
  .page-wanderungen .wanderungen-liste {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media screen and (min-width: 992px) {
  .page-agility .aktivitaeten-liste,
  .page-wanderungen .wanderungen-liste {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}
@media screen and (min-width: 1280px) {
  .page-agility .aktivitaeten-liste,
  .page-wanderungen .wanderungen-liste {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
}
.page-agility .aktivitaeten-liste-item,
.page-wanderungen .wanderungen-liste-item {
  flex-direction: column;
}
.aktivitaeten-liste-item,
.wanderungen-liste-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: var(--dark-green);
  border-radius: 8px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}

.aktivitaeten-liste-item:hover,
.wanderungen-liste-item:hover {
  background: #f9f9f9;
}

.aktivitaeten-liste-thumb,
.wanderungen-liste-thumb {
  max-width: 100%;
  width: fit-content;
  height: 150px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.page-agility .aktivitaeten-liste-thumb,
.page-wanderungen .wanderungen-liste-thumb {
  aspect-ratio: 16/9;
}

.aktivitaeten-liste-placeholder,
.wanderungen-liste-placeholder {
  width: fit-content;
  height: 150px;
  aspect-ratio: 1/1;
  background: #f0f0f0;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 40px;
}
.page-agility .aktivitaeten-liste-placeholder,
.page-wanderungen .wanderungen-liste-placeholder {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

.aktivitaeten-liste-content,
.wanderungen-liste-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aktivitaeten-liste-title,
.wanderungen-liste-title {
  font-size: 18px;
  font-weight: 600;
}

.aktivitaeten-liste-date,
.wanderungen-liste-date {
  font-size: 14px;
  color: #fff;
}

.aktiv-gallery,
.wanderung-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.aktiv-gallery-item,
.wanderung-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  position: relative;
}

.aktiv-gallery-item img,
.wanderung-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.aktiv-gallery-item:hover img,
.wanderung-gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 1199px) {
  .aktiv-gallery,
  .wanderung-gallery {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 991px) {
  .aktiv-gallery,
  .wanderung-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .aktiv-gallery,
  .wanderung-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .aktiv-gallery,
  .wanderung-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
.laufinfo-team-table-wrap {
  overflow-x: auto;
  margin: 10px 0;
}

.laufinfo-team-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.laufinfo-team-table th,
.laufinfo-team-table td {
  border: 1px solid currentColor;
  padding: 6px 8px;
}

.laufinfo-team-table th:first-child,
.laufinfo-team-table td:first-child,
.laufinfo-team-table th:nth-child(2),
.laufinfo-team-table td:nth-child(2) {
  text-align: left;
}


.ergebnisliste .ergebnis-filter { margin-bottom: 20px; }
.ergebnisliste .ergebnis-filter-group { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ergebnis-btn { padding: 6px 14px; border: 1px solid #ddd; border-radius: 20px; background: #fff; cursor: pointer; font-size: 14px; transition: all .2s; }
.ergebnis-btn.active { background: #79b45d; border-color: #79b45d; color: #fff; }
.ergebnis-btn:hover:not(.active) { background: #f0f0f0; }
.ergebnisliste .ergebnis-alt { display: none; }
.ergebnisliste.alt-offen .ergebnis-alt { display: inline-block; }
.ergebnis-mehr { letter-spacing: 1px; }
.ergebnisliste .ergebnis-eintrag { margin-bottom: 12px; padding: 16px; background: var(--dark-green); color: #fff; border-radius: 8px; }
.ergebnisliste .ergebnis-eintrag a { color: #fff; }
.ergebnisliste .ergebnis-eintrag h3 { margin: 0 0 2px; font-size: 18px; }
.ergebnisliste .ergebnis-datum,
.ergebnisliste .ergebnis-hunde { font-size: 14px; opacity: 0.85; }
.ergebnisliste .ergebnis-laeufe { list-style: none; margin: 10px 0 0; padding: 0; }
.ergebnisliste .ergebnis-laeufe li { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 15px; }
.ergebnisliste .ergebnis-platz { white-space: nowrap; font-weight: 600; }
.ergebnisliste .ergebnis-tages { font-weight: 600; }
.ergebnisliste h2 { margin: 24px 0 12px; }

.laufinfo-tages-wrap { max-width: 360px; }

.home-bilder {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.home-bilder .home-bild {
  flex: 1 1 200px;
  max-width: 33%;
  min-width: 200px;
}

.home-bilder img {
  max-width: 100%;
  height: auto;
}

.header-banner img {
  max-width: 100%;
  height: auto;
}

/* Responsive-Korrekturen */
.aktivitaeten-liste-item,
.wanderungen-liste-item {
  min-width: 0;
  box-sizing: border-box;
}

.page-agility .aktivitaeten-liste-item,
.page-wanderungen .wanderungen-liste-item {
  align-items: stretch;
}

.page-agility h1 {
  margin-bottom: 14px;
}

@media screen and (max-width: 600px) {
  .aktivitaeten-liste-item,
  .wanderungen-liste-item {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Nunito lokal gehostet (kein Abruf bei Google) */
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/nunito-XRXX3I6Li01BKofIMNaORs71cA.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/nunito-XRXX3I6Li01BKofIMNaHRs71cA.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/nunito-XRXX3I6Li01BKofIMNaMRs71cA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/nunito-XRXX3I6Li01BKofIMNaNRs71cA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/nunito-XRXX3I6Li01BKofIMNaDRs4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/nunito-XRXV3I6Li01BKofIOOaBXso.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/nunito-XRXV3I6Li01BKofIMeaBXso.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/nunito-XRXV3I6Li01BKofIOuaBXso.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/nunito-XRXV3I6Li01BKofIO-aBXso.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/nunito-XRXV3I6Li01BKofINeaB.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.aktiv-teaser-video {
  margin-bottom: 16px;
}

.aktiv-teaser-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.aktivitaeten-liste-beschreibung {
  font-size: 14px;
  line-height: 1.4;
}

.aktivitaeten-liste-beschreibung p {
  margin: 0 0 6px;
}

.laufinfo-notizen table,
.laufinfo-notiz-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}

.laufinfo-notizen th,
.laufinfo-notizen td {
  border: 1px solid currentColor;
  padding: 4px 8px;
  text-align: left;
}

.laufinfo-notizen a {
  color: inherit;
  text-decoration: underline;
}

.aktiv-platzierungen { margin-top: 16px; }
.aktiv-platzierungen .aktiv-platz-hund { margin-top: 8px; font-weight: 600; }
.aktiv-platzierungen .aktiv-platz-zeile { line-height: 1.5; }

.laufinfo-notizen img {
  max-width: 100%;
  height: auto;
}

.laufinfo-notizen p { margin: 0 0 8px; }
.laufinfo-notizen p:last-child { margin-bottom: 0; }
.laufinfo-notizen ul, .laufinfo-notizen ol { margin: 0 0 8px 1.5em; }

.laufinfo-wertung-title { margin: 12px 0 6px; font-size: 1.1em; }
.laufinfo-wertung .laufinfo-stats-table { margin-bottom: 6px; }
.laufinfo-pdf { margin-top: 12px; }

/* Parcour-Vorschau rechts neben Lauf/Richter/Hund */
.laufinfo-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.laufinfo-head-text { flex: 1 1 auto; min-width: 0; }
.laufinfo-parcour-thumb { flex: 0 0 auto; display: block; cursor: zoom-in; }
.laufinfo-parcour-thumb img { display: block; width: auto; height: auto; max-width: 180px; max-height: 130px; object-fit: contain; border: 1px solid #ddd; border-radius: 4px; background: #fff; }
@media (max-width: 480px) { .laufinfo-parcour-thumb img { max-width: 110px; max-height: 90px; } }
