/*
Theme Name:   Event Child
Template:     event
Description:  Child-Theme für Event (Pyramid Cup)
Version:      1.0.0
Text Domain:  event-child
License:      GNU General Public License version 3.0
License URI:  http://www.gnu.org/licenses/gpl-3.0.html
*/

/* Eigene Styles ab hier */

/* Rechtliches Menü im Footer-Copyright */
.copyright .legal-menu {
	display: inline;
	margin: 0;
	padding: 0;
	list-style: none;
}
.copyright .legal-menu li {
	display: inline;
}
.copyright .legal-menu li + li::before {
	content: " | ";
}

/* Sprachflaggen (Polylang-Widget) vertikal mittig in der Top-Leiste.
 * Das <img> ist inline mit vertical-align: top – deshalb muss auch das <a>
 * selbst flex sein, sonst ist es zeilenhoch und die Flagge klebt oben. */
.top-header .container {
	display: flex;
	align-items: center;
}
.top-header .container::before,
.top-header .container::after {
	display: none; /* clearfix wird mit flex nicht gebraucht */
}
.top-header .widget_contact {
	float: none;
	padding: 0;
}
.top-header .widget_contact ul {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}
.top-header .widget_contact ul li {
	float: none;
	padding: 0;
}
.top-header .widget_contact ul li a {
	display: flex;
	align-items: center;
}
.top-header .widget_contact ul li img {
	display: block;
}
.top-header .header-social-block {
	float: none;
	margin-left: auto;
}
.top-header .social-links ul li a {
	margin: 5px 0 5px 5px; /* Eltern: nur oben 5px – Icons säßen sonst nicht mittig */
}

/* ----- Überschriften: klare Hierarchie H1 > H2 > … -----
 * Eltern: .page-title (H1 auf Seiten) nur 24px, Inhalts-H2 aber 26px. */
h1,
.entry-content h1,
h1.page-title,
h1.entry-title {
	font-size: 34px;
	line-height: 1.2;
}
h2,
.entry-content h2,
h2.entry-title {
	font-size: 28px;
	line-height: 1.25;
}
h3,
.entry-content h3 { font-size: 23px; line-height: 1.3; }
h4,
.entry-content h4 { font-size: 20px; line-height: 1.35; }
h5,
.entry-content h5 { font-size: 18px; line-height: 1.4; }
h6,
.entry-content h6 { font-size: 16px; line-height: 1.4; }

/* Seitentitel nimmt die volle Breite, damit lange Titel nicht umbrechen */
.page-title {
	float: none;
	max-width: none;
}

@media only screen and (max-width: 767px) {
	h1,
	.entry-content h1,
	h1.page-title,
	h1.entry-title { font-size: 28px; }
	h2,
	.entry-content h2,
	h2.entry-title { font-size: 24px; }
	h3,
	.entry-content h3 { font-size: 21px; }
	h4,
	.entry-content h4 { font-size: 19px; }
}

/* ----- Links im Inhalt: schwarz, unterstrichen ----- */
.entry-content a:not(.wp-block-button__link):not(.wp-element-button),
.comment-content a {
	color: #000;
	text-decoration: none;
	text-underline-offset: 2px;
}
.entry-content a:not(.wp-block-button__link):not(.wp-element-button):hover,
.entry-content a:not(.wp-block-button__link):not(.wp-element-button):focus,
.comment-content a:hover,
.comment-content a:focus {
	color: #000;
	text-decoration-thickness: 2px;
}

/* E-Mail-Links mit Briefsymbol davor (Font Awesome 6 vom Elterntheme) */
.entry-content a[href^="mailto:"]::before {
	content: "\f0e0";
	display: inline-block;
	margin-right: 0.3em;
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 0.9em;
	text-decoration: none;
}

.sponsoren p{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 32px 24px;
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0;
}

/* gleich großes Feld pro Logo */
.sponsoren p > a,
.sponsoren p > img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
}

/* das Bild wird ins Feld eingepasst, nie verzerrt */
.sponsoren p img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .2s ease, opacity .2s ease;
}

.sponsoren p a:hover img {
  transform: scale(1.06);
}

/* kleinere Felder am Handy */
@media (max-width: 600px) {
  .sponsoren p {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 24px 16px;
  }
  .sponsoren p > a,
  .sponsoren p > img {
    height: 70px;
  }
}
.sponsoren br{
	display: none;
}

.entry-content a:has(strong),
.entry-content a strong,
.entry-content strong a {
    --btn-rot: #c8102e;        /* Highlight-Rot – hier dein exakter Wert */
    --btn-rot-dark: #9e0c24;   /* etwas dunkler für Hover/Rand */

    display: inline-block;
    padding: 0.6em 1.4em;
    background: var(--btn-rot);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(200, 16, 46, 0.25);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

/* Hover / Fokus */
.entry-content a:has(strong):hover,
.entry-content strong a:hover,
.entry-content a:has(strong):focus-visible,
.entry-content strong a:focus-visible {
    background: var(--btn-rot-dark);
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.35);
    transform: translateY(-1px);
    color: #fff !important;
}

/* Gedrückt */
.entry-content a:has(strong):active,
.entry-content strong a:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(200, 16, 46, 0.3);
}

/* Verhindert doppeltes Bold-Styling, wenn <strong> im Link steckt */
.entry-content a:has(strong) strong,
.entry-content strong a {
    font-weight: 700;
}