/*
Theme Name: Nektarexpress
Theme URI: https://nektarexpress.de/
Description: Kegelbahn-Design für den Kegelklub Nektarexpress. Child-Theme von Twenty Twenty-Five.
Author: Nektarexpress
Template: twentytwentyfive
Version: 1.0.2
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nektarexpress
*/

:root {
	--ne-accent: #c8102e;
	--ne-accent2: #1f6f43;
	--ne-wide: var(--wp--style--global--wide-size, 1200px);
}

/* Kopfbereich */
.ne-header { border-bottom: 4px solid var(--wp--preset--color--accent-1); position: sticky; top: 0; z-index: 50; }
.admin-bar .ne-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ne-header { top: 46px; } }
.ne-header .wp-block-site-title a { text-decoration: none; }
.ne-header .ne-tagline { margin: 0; opacity: .7; letter-spacing: .04em; }
.ne-header .ne-logo { margin: 0; }
.ne-header .ne-logo img { display: block; }
.ne-header .wp-block-navigation a { text-decoration: none; }
.ne-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-1); }
.ne-header .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }

/* Hero auf der Startseite */
.ne-hero .wp-block-cover__inner-container { text-align: center; }
.ne-hero h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.ne-hero .ne-hero-sub { text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* Alte Hero-Kachel aus dem Seiteninhalt ausblenden (der Hero kommt aus dem Template) */
.home .wp-block-post-content > .wp-block-cover:first-child { display: none; }

/* Breite Bereiche: Kacheln, Galerien, Könige */
.wp-block-post-content > .wp-block-gallery,
.wp-block-post-content > .tour-kacheln,
.wp-block-post-content > .ne-koenige,
.wp-block-post-content > .ne-kk,
.wp-block-post-content > .ne-nav,
.wp-block-post-content > .wp-block-latest-posts { max-width: var(--ne-wide) !important; }

.tour-kacheln.wp-block-gallery .wp-block-image,
.wp-block-gallery .wp-block-image { border-radius: 10px; overflow: hidden; }
@media (min-width: 1000px) {
	.ne-grid { grid-template-columns: repeat(4, 1fr) !important; }
	.tour-kacheln.wp-block-gallery.columns-3 .wp-block-image { width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * .75) !important; }
}

/* Neueste Könige auf der Startseite als Karten */
.wp-block-latest-posts.is-grid li { background: var(--wp--preset--color--accent-5); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); padding-bottom: 14px; }
.wp-block-latest-posts.is-grid li > *:not(.wp-block-latest-posts__featured-image) { padding: 0 16px; }
.wp-block-latest-posts__featured-image { margin: 0 0 12px !important; }
.wp-block-latest-posts__featured-image,
.wp-block-latest-posts__featured-image a { display: block; }
.wp-block-latest-posts__featured-image img { display: block; width: 100% !important; max-width: none !important; height: auto !important; aspect-ratio: 1; object-fit: cover; object-position: center 20%; }
.wp-block-latest-posts__post-title { font-weight: 800; text-decoration: none; }

/* Fußbereich */
.ne-footer { border-top: 4px solid var(--wp--preset--color--accent-1); }
.ne-footer a { text-decoration: none; }
.ne-footer a:hover { color: var(--wp--preset--color--accent-1); }
.ne-footer h2 { text-transform: uppercase; letter-spacing: .06em; }

/* Schrift des Könige-Plugins an das Theme anpassen */
body :is(.ne-koenige, .ne-kk, .ne-nav, .ne-lb) :is(p, span, b, em, h1, h2, a, figcaption, div, nav) { font-family: var(--wp--preset--font-family--manrope), sans-serif !important; }
body .ne-kk-name, body .ne-card-name, body .ne-year, body .ne-stat b { font-weight: 800 !important; letter-spacing: -0.01em; }
body .ne-card, body .ne-stat, body .ne-board { background: var(--wp--preset--color--accent-5); }

/* Könige-Übersicht: Titel bündig mit dem breiten Kartenraster */
.ne-koenig-list .wp-block-post-title { max-width: var(--ne-wide) !important; }
