/*
Theme Name: TSV Bettingen
Description: Kadence child theme with the TSV's individual 404 template. All other templates are inherited unchanged.
Template: kadence
Version: 1.0.0
Text Domain: tsv-bettingen
Requires PHP: 7.4
License: GPL-3.0-or-later
*/

/* TSV final QA: only affected rich-text icons and identified components. */
.wp-rich-text-font-awesome-icon > svg.svg-inline--fa{display:inline-block;width:auto!important;height:1em!important;max-width:100%;vertical-align:-.125em;overflow:visible}
.page-id-305 .wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:12px 22px;border-radius:6px;font-size:16px;font-weight:600;line-height:1.5;max-width:100%;box-sizing:border-box}
.page-id-305 .wp-block-button__link .wp-rich-text-font-awesome-icon{display:inline-flex;align-items:center;flex:none}
.page-id-396 .tsv-registration-hidden{display:none!important}
.single-post .comments-area,.single-post #comments{display:none!important}
.single-post .entry-author{display:none}
.single-post .post-thumbnail img{object-fit:contain!important;max-height:640px}
.single-post .entry-content img{height:auto}
.entry-content [id],.tsv-legal-page [id]{scroll-margin-top:100px}
@media(max-width:1024px){.entry-content [id],.tsv-legal-page [id]{scroll-margin-top:84px}}

.postid-1035 .article-post-thumbnail,.postid-1036 .article-post-thumbnail,.postid-1037 .article-post-thumbnail,.postid-439 .article-post-thumbnail,.postid-427 .article-post-thumbnail{display:none}

/* Sportübersicht: gleich breite Karten, zwei Spalten am Tablet, natürliche Texthöhen mobil. */
@media(min-width:768px) and (max-width:1100px){.page-id-68 .entry-content .kt-has-4-columns{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:767px){.page-id-68 .entry-content .kt-has-4-columns{grid-template-columns:minmax(0,1fr)!important}.page-id-68 .entry-content .kt-has-4-columns > .wp-block-kadence-column{width:100%;min-width:0}.page-id-68 .entry-content .kt-has-4-columns > .wp-block-kadence-column > .kt-inside-inner-col > .wp-block-kadence-column > .kt-inside-inner-col{min-height:0!important;height:auto!important}}

/* Final QA: existing Service actions use the established TSV button dimensions. */
.page-id-74 .entry-content .kb-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:50px;max-width:100%;padding:14px 22px;border-radius:6px;font-size:16px;font-weight:600;line-height:1.25}
/* Only the narrow Bettingen Open view: remove inherited oversized video padding. */
@media(max-width:767px){
.page-id-396 .tsv-e-story-lead figure.wp-block-video{padding:0!important;max-width:340px;margin:0 auto}
.page-id-396 .tsv-e-story-lead figure.wp-block-video video{display:block;width:100%;height:auto;object-fit:contain}
.page-id-396 .tsv-v-metrics p{font-size:clamp(12px,3.8vw,16px);word-break:normal;overflow-wrap:normal;hyphens:none}
}



/* Visual acceptance: existing portrait-video blocks, not other figures or media. */
@media(max-width:1024px){
body:is(.page-id-134,.page-id-592,.page-id-135,.page-id-136,.page-id-137,.page-id-138,.page-id-139,.page-id-140,.page-id-362,.page-id-364,.page-id-359,.page-id-396) .entry-content figure.wp-block-video{padding-inline:0!important;width:100%!important;max-width:100%!important;margin-inline:0!important;box-sizing:border-box}
body:is(.page-id-134,.page-id-592,.page-id-135,.page-id-136,.page-id-137,.page-id-138,.page-id-139,.page-id-140,.page-id-362,.page-id-364,.page-id-359,.page-id-396) .entry-content figure.wp-block-video video{display:block;width:100%!important;max-width:100%!important;height:auto!important;object-fit:contain}
}
/* Reuse the footer's existing brand-symbol masks for text-only social links. */
a:is([href*="instagram.com/"],[href*="whatsapp.com/"]):not(:has(svg)):not(:has(.tsv-fc-icon)){display:inline-flex;align-items:center;gap:.5rem;text-decoration:none}
a:is([href*="instagram.com/"],[href*="whatsapp.com/"]):not(:has(svg)):not(:has(.tsv-fc-icon))::before{content:"";display:inline-block;flex:0 0 20px;width:20px;height:20px;background-color:currentColor;mask-repeat:no-repeat;mask-position:center;mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain}
a[href*="instagram.com/"]:not(:has(svg)):not(:has(.tsv-fc-icon))::before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%225%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M17.5%206.5h.01%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%225%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M17.5%206.5h.01%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E")}
a[href*="whatsapp.com/"]:not(:has(svg)):not(:has(.tsv-fc-icon))::before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020l1.3-4a8.5%208.5%200%201%201%203%203L4%2020z%22%2F%3E%3Cpath%20d%3D%22M9%208.5c.5%203.2%202.3%205%205.7%205.8l1-1.4M9%208.5l1.4-.5%201%202-1.1.8M14.7%2014.3l.3-1.8-2-.8%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020l1.3-4a8.5%208.5%200%201%201%203%203L4%2020z%22%2F%3E%3Cpath%20d%3D%22M9%208.5c.5%203.2%202.3%205%205.7%205.8l1-1.4M9%208.5l1.4-.5%201%202-1.1.8M14.7%2014.3l.3-1.8-2-.8%22%2F%3E%3C%2Fsvg%3E")}
.tsv-mobile-social{display:flex;flex-wrap:wrap;gap:8px 20px}
.tsv-mobile-social a{color:#fff!important;min-height:44px;text-decoration:none!important}
.tsv-mobile-social a:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:4px}

/* Only the three identified long first-visit paragraphs. */
.tsv-reading-text{max-width:70ch;margin-inline:auto;text-align:left}
a:is([href*="instagram.com/"],[href*="whatsapp.com/"]) svg{width:20px;height:20px;flex:none;vertical-align:middle}

/* Visual acceptance: readable long German article titles on small screens. */
@media(max-width:767px){.single-post .entry-header .entry-title{font-size:clamp(23px,6.6vw,28px);line-height:1.2;hyphens:auto;overflow-wrap:break-word;word-break:normal}}

/* Preserve the existing mobile brand name in the tablet header as well. */
@media(min-width:720px) and (max-width:1024px){#mobile-header .site-title.vs-md-false{display:block!important}}
