﻿
/*Base styles for the SG Eisacktal frontend shortcodes*/

.headline_box {
  margin-bottom: 10px;
}

.info_box {
  margin-bottom: 15px;
  line-height: 1.5;
}

.h1_green {
  font-family: "CompressedBold", Sans-serif;
  font-size: 3.6em;
  color: #1A468E;
  font-weight: 300;
  margin: 0 0 10px;
}

.h2_green {
  font-family: "CompressedBold", Sans-serif;
  font-size: 2.5em;
  color: #1A468E;
  font-weight: 300;
  margin: 0 0 10px;
  padding-top: 20px;
}


@media only screen and (max-width: 1550px) {
.h1_green {
  font-size: 3.4em;
}

.h2_green {
  font-size: 2.3em;
}
}

@media only screen and (max-width: 1025px) {
.h1_green {
  font-size: 3.2em;
}

.h2_green {
  font-size: 2em;
}
}

@media only screen and (max-width: 767px) {
.h1_green {
  font-size: 2.9em;
}

.h2_green {
  font-size: 1.9em;
}
}

/* tables */

table th,
table td {
    border-left: none !important;
    border-right: none !important;
}


table {
  border-collapse: collapse;
  width: 100%!important;
  max-width: none!important;
  margin-bottom: 20px;
  font-size: 0.9em!important;
  /* lets a table wider than its column (fixed th widths) scroll instead of
     breaking the surrounding theme layout, without needing a wrapper element */
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

}

/* Tabelle */
/* Desktop */
table{
    width:100%!important;
    max-width:100%!important;
    display:table!important;
    table-layout:fixed!important;
}


/* Unter 1300px horizontal scrollen */
@media (max-width: 1300px) {

    table {
        display: block !important;
        width: max-content !important;
        min-width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table th,
    table td {
        white-space: nowrap;
    }

}
/* Spalten */
table {
    width: 100%;
    table-layout: auto;
}

table th,
table td {
    white-space: nowrap;
}

table td a {
    white-space: normal;
}

th {
  text-align: left;
  font-weight: 600;
  color: #333;
  padding: 6px 8px;
  border-bottom: 2px solid #2b9f4c;

}

.line {
  border-bottom: 1px solid #ddd;
}

.line td {
  padding: 6px 8px;
}

/* Kopfzeile */
/* Kopfzeile */
table tr th{
    background:#1A468E!important;
    color:#fff!important;
}


table tr:nth-child(odd) td{
    background:#F4FAFD!important;
}

table tr:nth-child(even) td{
    background:#fff!important;
}

table tr:hover td{
    background:#EFF8FD!important;
}

.line:hover {
  background-color: #f7f7f7;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
}

.justify {
  text-align: justify;
}

.symbol {
  color: #2b9f4c;
  text-align: center;
  font-weight: 600;
}

.symbol img {
  max-width: 30px;
  height: auto;
  vertical-align: middle;
}


/* links inside shortcode output */

.headline_box a,
.info_box a,
table a {
  color: #2b9f4c;
  text-decoration: none;
}

.headline_box a:hover,
.info_box a:hover,
table a:hover {
  text-decoration: underline;
}

/* marathon-pace SVG chart (athlete-detail-adult) - has no viewBox, so this
   only stops it overflowing the content column, it does not rescale the
   chart itself */
svg {
  max-width: 100%;
}

/* [athlete-photo] / [race-photo] header carousel - stacked slides, cross-faded
   by JS (SG_Eisacktal_Helpers::photo_carousel_script()) toggling .is-active */


/* =========================================================
   ATHLETE / RACE PHOTO CAROUSEL
   komplette Fläche des Elementor-Containers
   ========================================================= */


/* Athlete / Race Photo Carousel */

/* Shortcode füllt den Elementor-Container */
.elementor-element:has(> .elementor-widget-shortcode .sge-photo-carousel) {
    position: relative;
}

.elementor-widget-shortcode:has(.sge-photo-carousel) {
    position: absolute;
    inset: 0;
}

.elementor-widget-shortcode:has(.sge-photo-carousel) > .elementor-widget-container,
.elementor-widget-shortcode:has(.sge-photo-carousel) .elementor-shortcode {
    height: 100%;
}


/* Carousel */


.sge-photo-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.sge-photo-carousel-slide.is-active {
    opacity: 1;
}

.sge-photo-carousel-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;

}


/* Navigation */

.sge-photo-carousel-nav {
    position: absolute !important;
    right: 30px !important;
    bottom: 25px !important;
    z-index: 999 !important;
    display: flex !important;
    gap: 18px;
}

.sge-photo-carousel-nav button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    cursor: pointer;
}



.sge-photo-carousel-nav svg {
    display: block !important;
    width: 35px !important;
    height: 35px !important;
    fill: #fff !important;
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sge-photo-carousel-prev svg {
    transform: rotate(90deg);
}

.sge-photo-carousel-next svg {
    transform: rotate(-90deg);
}

.sge-photo-carousel-nav button:hover {
    opacity: .65;
}


@media only screen and (max-width: 1025px) {
.sge-photo-carousel-nav svg {
    width: 28px !important;
    height: 28px !important;
}
}




/* Jahresleiste */
.headline_box > div{
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;

    padding:8px 4px 10px;


    scrollbar-width:thin;
    scrollbar-color:#B9C7D6 transparent;

    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
    
    width:90%;
    margin-left:0;
    margin-right:auto;

}



/* Scrollbar Chrome / Safari */
.headline_box > div::-webkit-scrollbar{
    height:5px;
}

.headline_box > div::-webkit-scrollbar-track{
    background:transparent;
}

.headline_box > div::-webkit-scrollbar-thumb{
    background:#B9C7D6;
    border-radius:10px;
}

/* Jahreszahlen */
.year,
.year_not,
.year_sel{
    flex:0 0 auto;
    display:inline-block;
    position:relative;

    min-width:auto;
    padding:2px 12px 2px 8px;

    line-height:1.2!important;
}

/* normale Jahre */
.year{
    color:#1A468E!important;
    font-size:.9em!important;
    transition:color .2s ease;
}

.year:hover{
    color:#316E2E!important;
}

/* aktives Jahr */
.year_sel{
    color:#316E2E;
    font-weight:700;
    font-size:1.1em!important;
}

/* nicht verfügbare Jahre */
.year_not{
    color:#aaa;
    font-size:.9em!important;
}

/* feine Trennlinie */
.year::after,
.year_not::after,
.year_sel::after{
    content:"";
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    width:1px;
    height:55%;
    background:#D5DDE5;
}

/* letzte Linie weg */
.year:last-child::after,
.year_not:last-child::after,
.year_sel:last-child::after{
    display:none;
}


/* Responsive Tabellen aus dem Rennbericht */
@media (max-width: 1300px) {

    table:not(:has(tr.line)) {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table:not(:has(tr.line)) > tbody {
        display: table;
        width: 100%;
        min-width: max-content;
    }

    table:not(:has(tr.line)) td {
        white-space: nowrap !important;
    }

}

/* Außenrahmen der Rennbericht-Tabellen entfernen */
table:not(:has(tr.line)) {
    border: none !important;
}

table:not(:has(tr.line)) td {
    border-left: none !important;
    border-right: none !important;
}

table:not(:has(tr.line)) tr:first-child td {
    border-top: none !important;
}

table:not(:has(tr.line)) tr:last-child td {
    border-bottom: none !important;
}

/* Einheitliche Zeilenhöhe der Rennbericht-Tabellen */
table:not(:has(tr.line)) td {
    padding: 6px 8px !important;
}


