/*
Theme Name: TSV Bärenstein Child
Description: Child-Theme für die Website des TSV Bärenstein e.V.
Author: TSV Bärenstein e.V.
Template: generatepress
Version: 1.0.0
Text Domain: tsv-baerenstein
*/
/* TSV Bärenstein – Seitenbreite auf großen Bildschirmen begrenzen */
body {
/* background-image: url("/wp-content/uploads/2026/11/bgtsv.webp");*/
  background-attachment: fixed;
  background-position: center 30px;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (min-width: 2560px) {
	body {
		max-width: 2560px;
		margin-inline: auto;
	}
}


/* TSV Slider – Höhe */
@media (min-width: 1025px) {
    .tsv-slider {
		margin-top: -11px;
    }
}
/* TSV Slider – Breite und Höhe begrenzen */
body {
    overflow-x: clip;
}

.tsv-slider {
	position: relative;
    width: 100%;
    max-width: 100%;
    height: 420px;
    overflow: hidden;
}

.tsv-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tsv-sportkarte {
    background: linear-gradient(145deg, #006522, #003d20);
    border-radius: 22px;
    padding: 25px 15px 30px;
    min-height: 220px;
    text-align: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 12px #0002;
}

.tsv-sportkarte::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: -10%;
    width: 125%;
    height: 35px;
    background: linear-gradient(
  175deg,
  #168a08 0%,
  #1b970b 35%,
  #32aa1b 55%,
  #209c10 70%,
  #168a08 100%
);
    transform: rotate(-7deg);
    border-radius: 50% 50% 0 0;
}

.tsv-sportkarte img {
    width: 165px;
    height: 145px;
    object-fit: contain;
    margin: 0 auto 4px;
}

.tsv-sportkarte h2,
.tsv-sportkarte h3,
.tsv-sportkarte h4,
.tsv-sportkarte p {
    color: white;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 1;
    margin: 0;
}
@media (min-width: 1200px) {
    .home .site.grid-container {
        max-width: 1240px;
    }
}
/*Beschriftung auf Slider*/
/* Slider-Beschriftung wie im Entwurf */
.tsv-slider .tsv-slider__inner h2 {
    position: relative;
    max-width: 750px;
    margin-bottom: 20px;
    padding-bottom: 24px;
    font-size: clamp(40px, 4vw, 64px);
    font-style: italic;
    font-weight: 800;
    line-height: 1.05;
    text-shadow: 0 2px 8px rgb(0 0 0 / 35%);
}

/* Grüner Schwung unter der Überschrift */
.tsv-slider .tsv-slider__inner h2::after {
    content: "";
    position: absolute;
    left: 5%;
    bottom: -15px;
    width: 70%;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14'%3E%3Cpath d='M5 10 Q125 -5 295 10 Q140 3 8 14 Q0 14 5 10Z' fill='%2359bf19'/%3E%3C/svg%3E")
        center / 100% 100% no-repeat;
}

.tsv-slider .tsv-slider__inner p {
    margin-bottom: 22px;
    font-size: clamp(18px, 1.7vw, 24px);
    line-height: 1.4;
}

.tsv-slider .tsv-slider__button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 10px 22px;
    border: 2px solid #59bf19;
    border-radius: 12px;
    background: rgb(0 83 47 / 90%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.tsv-slider .tsv-slider__button::after {
    content: "→";
    font-size: 24px;
    line-height: 1;
}

.tsv-slider .tsv-slider__button:hover,
.tsv-slider .tsv-slider__button:focus-visible {
    background: #168a08;
}

/* TSV Sportarten – kompaktere Kacheln */
@media (min-width: 1025px) {
  .tsv-sportkarte {
    min-height: 220px;
    height: auto;
    padding: 20px 10px 24px;
  }

  .tsv-sportkarte h3,
  .tsv-sportkarte h2,
  .tsv-sportkarte .gb-headline {
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
	transform: translateY(-10px);  
  }
}
/* TSV – Piktogramme Frauensport und Seniorensport anpassen */
@media (min-width: 1025px) {
  .tsv-sportkarte-frauen img,
  .tsv-sportkarte-senioren img {
    transform: scale(0.67);
  }
}
/* TSV Sportarten – dezenter Glanz und 3D-Effekt */
.tsv-sportkarte {
  background-color: #00552b;

  background-image:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 55%
    ),
    linear-gradient(
      155deg,
      #00652e 0%,
      #00552b 45%,
      #004322 100%
    );

box-shadow:
  inset 0 1px 1px rgba(255, 255, 255, 0.15),
  inset 0 -1px 2px rgba(0, 0, 0, 0.10),
  0 7px 14px rgba(0, 0, 0, 0.20),
  0 2px 4px rgba(0, 0, 0, 0.08);
}
/* TSV – Überschrift Sportarten */
.tsv-sportarten-titel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #063d28;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 12px;
}

.tsv-sportarten-titel::before,
.tsv-sportarten-titel::after {
    content: "";
    height: 2px;
    background: #168a08;
    flex: 1;
}

@media (max-width: 600px) {
    .tsv-sportarten-titel {
        gap: 12px;
    }

    .tsv-sportarten-titel::before,
    .tsv-sportarten-titel::after {
        flex: 0 1 25px;
    }
}
/* Gesamte Sportkachel anklickbar */
.tsv-sportkarte {
    position: relative;
}

.tsv-sportkarte .tsv-kachel-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
}

.tsv-sportkarte:has(.tsv-kachel-link) {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tsv-sportkarte:has(.tsv-kachel-link):hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.20);
}

.tsv-kachel-link:focus-visible {
    outline: 3px solid #168a08;
    outline-offset: 3px;
}
/* TSV Sportarten – vier responsive Spaltenvarianten */

/* Desktop: 5 Spalten */
@media (min-width: 1200px) {
    .tsv-sportarten-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* Tablet: 3 Spalten */
@media (min-width: 769px) and (max-width: 1199px) {
    .tsv-sportarten-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Große Smartphones: 2 Spalten */
@media (min-width: 480px) and (max-width: 768px) {
    .tsv-sportarten-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Kleine Smartphones: 1 Spalte */
@media (max-width: 479px) {
    .tsv-sportarten-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
/* Beitragsbild aus dem Post entfernen */
.single-post .page-header-image-single {
  display: none;
}
/* Beitragsbild aauf Startseiten */
/* Beitragskachel im GenerateBlocks-Looper */
.gb-looper-d741483d .gb-loop-item {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  border: 1px solid #d9e2dc;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  background: #fff;
}

/* Beitragsbild mit eigenem Rahmen und runden Ecken */
.gb-looper-d741483d .gb-loop-item > img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  border: 2px solid #1f7a3f;
  border-radius: 10px;
}

/* Webdesign-Link ohne Unterstreichung */
.site-footer .copyright-bar {
	color: #D7E3D7;
}
.site-footer .copyright-bar a {
	color: #D7E3D7;
	text-decoration: none;
}
.site-footer .copyright-bar a:hover,
.site-footer .copyright-bar a:focus-visible {
	text-decoration: none;
}
/* Footer widgets */
@media (min-width: 1024px) {
	.site-footer .footer-widgets .footer-widgets-container {
		box-sizing: border-box;
		width: 100%;
		max-width: 1240px;
		margin-inline: auto;
		padding-inline: 5px;
		padding-bottom: 0px;
		}

	.site-footer .inside-site-info {
		padding-top: 8px;
	}
	

	.site-footer .footer-widgets .inside-footer-widgets {
		display: grid;
		grid-template-columns:
			minmax(0, 1fr)
			minmax(0, 230px)
			minmax(0, 270px)
			max-content;
		align-items: start;
		gap: 25px;
		margin-inline: 0;
	}

	.site-footer .footer-widgets .inside-footer-widgets > div {
		box-sizing: border-box;
		width: auto;
		min-width: 0;
		margin-inline: 0;
		padding-inline: 0 !important;
	}

	.site-footer .footer-widgets .inside-footer-widgets > div > .widget {
		padding-inline: 0 !important;
	}

	/* Kontrollfarben */
	.site-footer .footer-widgets .footer-widget-1 {
		text-align: left;
	}

	.site-footer .footer-widgets .footer-widget-2 {
		text-align: center;
	}

	.site-footer .footer-widgets .footer-widget-3 {
		text-align: center;
	}

	.site-footer .footer-widgets .footer-widget-4 {	
		text-align: left;
	}

	/* Partner- und Förderlogos mittig und proportional anzeigen */
	.site-footer .footer-widgets :is(.footer-widget-2, .footer-widget-3) .wp-block-image {
		float: none;
		max-width: 100%;
		margin-inline: auto;
	}



	.site-footer .footer-widgets .footer-widget-2 .wp-block-image + .wp-block-image {
		margin-block-start: 12px;
	}

	.site-footer .footer-widgets .footer-widget-4 ul.menu {
		width: fit-content;
		margin-inline: 0;
		text-align: left;
	}
}
/* Menü im Footer-Widget */
.site-footer .footer-widgets .widget_nav_menu .widget-title {
	color: #f7f8f9;
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.65rem;
}

.site-footer .footer-widgets .widget_nav_menu .menu > li {
	margin: 0 0 0.3rem;
	padding: 0;
}

.site-footer .footer-widgets .widget_nav_menu .menu a {
	color: #f7f8f9;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 400;
}

.site-footer .footer-widgets .widget_nav_menu .menu a:hover,
.site-footer .footer-widgets .widget_nav_menu .menu a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Nach oben Button*/
#tsv-nach-oben {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 70%);
	border-radius: 10px;
	background: #00532f;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
	cursor: pointer;
}

#tsv-nach-oben[hidden] {
	display: none;
}

#tsv-nach-oben.tsv-nach-oben-vorschau {
	position: static;
}

#tsv-nach-oben:hover,
#tsv-nach-oben:focus-visible {
	background: #fff;
	color: #00532f;
}

#tsv-nach-oben:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -5px;
}
#tsv-nach-oben img {
	display: block;
	width: 42px;
	height: auto;
	object-fit: contain;
}

/*Button mehr über unseren verein*/
:is(a.tsv-verein-link, .tsv-verein-link a) {
    padding: 10px 22px;
    border: 2px solid #063d28;
    border-radius: 15px;
    background: transparent;
    color: #063d28;
    font-weight: 600;
    text-decoration: none;
}

:is(a.tsv-verein-link, .tsv-verein-link a):is(:hover, :focus-visible) {
    background: #063d28 !important;
    color: #fff !important;
}

/*Foobox in Beiträgen*/

.entry-content .tsv-galerie-rechts {
    float: right;
    width: 450px;
    max-width: 100%;
    margin: 1px 1px 1px 1px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .entry-content .tsv-galerie-rechts {
        float: none;
        margin: 0 auto 15px;
    }
}
/* Kategoriearchive */
.category #main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 70px;
}

.category #main > :not(article) {
    grid-column: 1 / -1;
}

/* Kategorieüberschrift ohne großen weißen Kasten */
.category #main > .page-header {
    background: transparent;
    padding: 10px 0;
    margin: 0;
}

.category .page-header .page-title {
    color: #063d28;
    font-size: 32px;
    font-weight: 700;
}

/* Beitragskarten */
.category #main > article {
    min-width: 0;
    margin: 0;
}

.category #main > article .inside-article {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    padding: 22px;
    background: #fff;
    border: 1px solid #d9e2dc;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgb(0 0 0 / 10%);
}

/* Bild zuerst, vollständig sichtbar */
.category article .post-image {
    order: -1;
    float: none;
    margin: 0 0 18px;
}

.category article .post-image img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
}

/* Titel */
.category article .entry-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.category article .entry-title a {
    color: #063d28;
    text-decoration: none;
}

.category article .entry-title a:hover {
    color: #168a08;
}

/* Datum und Textanreißer */
.category article .entry-header .entry-meta {
    margin-top: 8px;
    font-size: 13px;
    color: #626b65;
}

.category article .entry-summary {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.category article .entry-summary p:last-child {
    margin-bottom: 0;
}

/* Autor, Kategorien und Schlagwörter ausblenden */
.category article .byline,
.category article footer.entry-meta {
    display: none;
}

@media (max-width: 1024px) {
    .category #main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .category #main {
        grid-template-columns: minmax(0, 1fr);
    }
}

.category .tsv-weiterlesen {
    color: #063d28;
    font-weight: 700;
    text-decoration: none;
}

.category .tsv-weiterlesen:hover,
.category .tsv-weiterlesen:focus-visible {
    text-decoration: underline;
}
/* Unterer Abstand auf Beitragsseiten  */
.single-post #main {
    padding-bottom: 15px;
}

/* TSV – Akkordeon Anfang */
.entry-content .wp-block-accordion-heading {
    margin: 0;
    background: #063d28;
    color: #fff;
    font-size: 16px;
    border-radius: 7px;
    overflow: hidden;
}

/* Kopf bleibt auch beim Öffnen und Darüberfahren grün */
.entry-content .wp-block-accordion-heading__toggle,
.entry-content .wp-block-accordion-heading__toggle:is(:hover, :focus, :active) {
    padding: 12px 18px;
    background: #063d28;
    color: #fff;
    text-decoration: none;
    gap: 16px;
	border-radius: 7px;
    overflow: hidden;
}

.entry-content .wp-block-accordion-heading__toggle-title,
.entry-content .wp-block-accordion-heading__toggle-title * {
    text-decoration: none !important;
}

/* Tastaturbedienung */
.entry-content .wp-block-accordion-heading__toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* Vorhandenes Plus durch einen Pfeil ersetzen */
.entry-content .wp-block-accordion-heading__toggle-icon {
    font-size: 0;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.entry-content .wp-block-accordion-item.is-open
> .wp-block-accordion-heading
.wp-block-accordion-heading__toggle-icon {
    transform: none;
}

.entry-content .wp-block-accordion-heading__toggle-icon::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

/* Geöffnet: Pfeil nach oben */
.entry-content .wp-block-accordion-heading__toggle[aria-expanded="true"]
.wp-block-accordion-heading__toggle-icon::before {
    transform: translateY(2px) rotate(225deg);
}

/* Innenabstand des aufgeklappten Inhalts */
.entry-content .wp-block-accordion-panel {
    margin-top: 0;
    padding: 15px 18px;
}

.entry-content .wp-block-accordion-panel > :first-child {
    margin-top: 0;
}

.entry-content .wp-block-accordion-panel > :last-child {
    margin-bottom: 0;
}

/* Presse-Akkordeons – abgerundete Ecken */
.entry-content .presse-akkordeon {
    border-radius: 7px;
    overflow: hidden;
}
/* 1px Abstand zwischen den Akkordeons */
.entry-content .presse-akkordeon {
    margin-bottom: 1px;
}

/* Hellere Variante – auch bei Hover und geöffnet */
.entry-content .presse-akkordeon.hell
.wp-block-accordion-heading,
.entry-content .presse-akkordeon.hell
.wp-block-accordion-heading__toggle,
.entry-content .presse-akkordeon.hell
.wp-block-accordion-heading__toggle:is(:hover, :focus, :active) {
    background: #176448;
}

/* TSV – Akkordeon Ende */