/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/* =========================
   /marken/ (Seite ID 38)
   AlphaListing: A–Z-Leiste + Markenlisten
   ========================= */

/* A–Z-Leiste oben:
   Nur die erste UL im Inhaltsbereich, NICHT das Menü im Header */
body.page-id-38 .wp-block-post-content > ul:first-of-type,
body.page-id-38 .entry-content > ul:first-of-type,
body.page-id-38 main > ul:first-of-type {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  align-items: center;
  white-space: nowrap;
}

/* Einträge der A–Z-Leiste */
body.page-id-38 .wp-block-post-content > ul:first-of-type li,
body.page-id-38 .entry-content > ul:first-of-type li,
body.page-id-38 main > ul:first-of-type li {
  margin: 0;
  padding: 0;
}

/* Buchstaben der A–Z-Leiste (Links + evtl. inaktive Buchstaben) */
body.page-id-38 .wp-block-post-content > ul:first-of-type a,
body.page-id-38 .entry-content > ul:first-of-type a,
body.page-id-38 main > ul:first-of-type a,
body.page-id-38 .wp-block-post-content > ul:first-of-type li,
body.page-id-38 .entry-content > ul:first-of-type li,
body.page-id-38 main > ul:first-of-type li {
  display: inline;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;          /* nutzt die Standard-Schriftfarbe des Themes */
  font-weight: 500;
  text-decoration: none;
}

/* Hover-Effekt für A–Z-Leiste */
body.page-id-38 .wp-block-post-content > ul:first-of-type a:hover,
body.page-id-38 .entry-content > ul:first-of-type a:hover,
body.page-id-38 main > ul:first-of-type a:hover {
  text-decoration: underline;
}

/* Trenner zwischen den Buchstaben der A–Z-Leiste */
body.page-id-38 .wp-block-post-content > ul:first-of-type li + li::before,
body.page-id-38 .entry-content > ul:first-of-type li + li::before,
body.page-id-38 main > ul:first-of-type li + li::before {
  content: "·";
  margin: 0 0.25rem 0 0;
  color: #999;
}


/* Markenlisten unter den Buchstaben:
   UL direkt nach Überschrift (A, B, C, ...) = einspaltig, linksbündig */
body.page-id-38 .wp-block-post-content h2 + ul,
body.page-id-38 .entry-content h2 + ul,
body.page-id-38 main h2 + ul {
  display: block;
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
}

body.page-id-38 .wp-block-post-content h2 + ul li,
body.page-id-38 .entry-content h2 + ul li,
body.page-id-38 main h2 + ul li {
  display: block;
  margin: 0.25rem 0;
  padding: 0;
  text-align: left;
}


/* Mobile:
   A–Z-Leiste darf umbrechen, kein horizontaler Overflow */
@media (max-width: 768px) {
  body.page-id-38 .wp-block-post-content > ul:first-of-type,
  body.page-id-38 .entry-content > ul:first-of-type,
  body.page-id-38 main > ul:first-of-type {
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
    gap: 0.35rem;
  }
}

.mad-alpha-index {
  margin: 2rem 0;
}

.mad-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.mad-alpha-nav li {
  font-weight: 500;
}

.mad-alpha-nav li a {
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

.mad-alpha-nav li a:hover {
  text-decoration: underline;
}

.mad-alpha-nav li.disabled {
  opacity: 0.3;
}

.mad-alpha-group {
  margin-bottom: 2rem;
}

.mad-alpha-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.mad-alpha-list li {
  margin: 0.2rem 0;
}

.mad-alpha-backtop {
  margin-top: 0.5rem;
  font-size: 0.85em;
}
