/*
Theme Name: Whiskywelt
Description: Child-Theme von Twenty Twenty-Five im bisherigen Whiskywelt-Design. Enthält nur Optik – keine Inhalte, Felder oder Funktionen.
Template: twentytwentyfive
Version: 1.2.2
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: whiskywelt
License: GNU General Public License v2 or later
*/

/* ---------- Grundlayout ---------- */
body { background: #f0f0f0; }
.ww-main { background: #f8f8f8; }
.ww-main .wp-block-post-content > .alignfull:first-child { margin-top: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- Header ---------- */
.ww-header { color: #c3996c; }
.ww-header .wp-block-site-logo img { max-width: 220px; height: auto; }
.ww-usps { gap: 1.75rem; }
.ww-usp { display: flex; align-items: center; gap: .6rem; font-size: .72rem; line-height: 1.35; color: #c3996c; }
.ww-usp img { width: 35px; height: auto; flex: none; }
.ww-usp strong { display: block; font-family: var(--wp--preset--font-family--roboto-slab); font-size: .8rem; color: #c3996c; }
@media (max-width: 991px) { .ww-usps { display: none !important; } }

/* ---------- Navigation ---------- */
.ww-navbar { background: #89643d; box-shadow: 0 2px 4px rgba(0,0,0,.15); z-index: 50; }
.ww-nav-main { font-family: var(--wp--preset--font-family--roboto-slab); font-size: 1rem; text-transform: uppercase; }
.ww-navbar .ww-nav-main .wp-block-navigation-item__content, .ww-navbar .ww-nav-main .wp-block-navigation-submenu__toggle { color: #eee2d7; text-shadow: 0 1px 0 rgba(0,0,0,.25); padding: 15px 12px; }
.ww-nav-main > .wp-block-navigation__container > .wp-block-navigation-item { border-right: 1px solid rgba(0,0,0,.12); }
.ww-nav-main > .wp-block-navigation__container > .wp-block-navigation-item:hover,
.ww-nav-main .current-menu-ancestor,
.ww-nav-main .current-menu-item { background: #c1986c; }
.ww-nav-main .wp-block-navigation__submenu-container {
	background: #513924 !important; border: 0 !important; min-width: 260px !important; text-transform: none; font-family: var(--wp--preset--font-family--roboto); font-size: .95rem;
}
.ww-navbar .ww-nav-main .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #fff; padding: 8px 16px; text-shadow: none; }
.ww-navbar .ww-nav-main .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation-item__content { color: #dca01b; }
.ww-nav-main .wp-block-navigation__submenu-icon { color: #eee2d7; }
.ww-nav-main .wp-block-navigation__responsive-container.is-menu-open { background: #513924; color: #fff; padding: 1.5rem; }
.ww-nav-main .wp-block-navigation__responsive-container-open, .ww-nav-main .wp-block-navigation__responsive-container-close { color: #eee2d7; }

/* ---------- Hero (Titelbild mit Überschrift) ---------- */
.ww-hero { min-height: max(300px, 32vw) !important; }
.ww-hero h1, .ww-hero h2 { color: #f3f3f3 !important; text-shadow: 0 1px 3px rgba(0,0,0,.6); margin: 0 0 .5rem; }
.ww-hero p { color: #f3f3f3; font-size: 1.125rem; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ww-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: rgba(0,0,0,.25); }

/* ---------- Inhalt ---------- */
.wp-block-post-content h1, .wp-block-post-content h2, .wp-block-post-content h3 { margin-top: 2.5rem; margin-bottom: 1.25rem; }
.wp-block-post-content > :first-child { margin-top: 0; }
.has-drop-cap:not(:focus)::first-letter { font-family: var(--wp--preset--font-family--roboto-slab); color: #101820; }
.wp-block-separator { border-top: 1px solid #ddd; opacity: 1; margin: 2.5rem auto; }

/* Alte Bildunterschriften ([caption]): WordPress setzt eine feste Breite (bis 1920px) – auf Spaltenbreite begrenzen */
.wp-block-post-content img { max-width: 100%; height: auto; }
.wp-caption { max-width: 100% !important; margin: 0 auto 1.25rem; }
.wp-caption img { display: block; margin: 0 auto; }
.wp-caption-text { font-size: .85rem; color: #777; text-align: center; margin: .4rem 0 0; }
.wp-block-column { min-width: 0; }

/* Dunkle Abschnitte der Startseite */
.ww-dark h1, .ww-dark h2, .ww-dark h3 { color: #f3f3f3; }
.ww-dark a:not(.wp-block-button__link) { color: #dc8a1b; }

/* FAQ-Akkordeon (wie bisher: braune Kopfzeile, weißer Inhalt) */
.wp-block-details { background: #fff; border: 2px solid #f0f0f0; border-radius: 3px; margin-top: 0 !important; margin-bottom: 5px !important; padding: 0; }
.wp-block-details summary { list-style: none; background: #89643d; color: #eee2d7; font-size: 1.125rem; padding: 10px 15px; border-radius: 3px 3px 0 0; cursor: pointer; position: relative; padding-right: 40px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; line-height: 1; }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details summary:hover { background: #c1986c; color: #fff; }
.wp-block-details > :not(summary) { padding: 15px 15px 5px; margin: 0; }
.wp-block-details p { margin: 0 0 10px; }
.wp-block-details p:empty { display: none; }

/* Hinweisboxen */
.ww-alert { padding: 1rem 1.25rem; border: 1px solid #d6e9c6; background: #dff0d8; color: #3c763d; border-radius: 4px; }
.ww-alert-info { border-color: #bce8f1; background: #d9edf7; color: #31708f; }
.ww-alert-warning { border-color: #faebcc; background: #fcf8e3; color: #8a6d3b; }

/* Beitrags-Teaser (vorher [blogposts]) */
.ww-teaser .wp-block-post { background: #fff; border: 1px solid #f0f0f0; }
.ww-teaser .wp-block-post-title { font-size: 1rem; padding: .75rem 1rem 1rem; margin: 0; text-align: left; }
.ww-teaser .wp-block-post-title a { color: #101820; text-decoration: none; }
.ww-teaser .wp-block-post-featured-image { margin: 0; }

/* Steckbrief auf Produktseiten */
.ww-steckbrief table { background: #fff; border-collapse: collapse; }
.ww-steckbrief td { border: 1px solid #eee; padding: .5rem .75rem; font-size: .9rem; }
.ww-steckbrief td:first-child { width: 35%; color: #89653f; font-weight: 700; }

/* Buttons wie bisher (orange, umrandet) */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1px solid #dc8a1b; color: #dc8a1b; background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #dc8a1b; color: #fff; }

/* ---------- Seitenleiste bei Beiträgen ---------- */
.ww-widget { background: #fff; border: 1px solid #eee; }
.ww-widget-title { background: #89643d; color: #fff !important; font-size: .95rem !important; padding: .5rem 1rem; margin: 0 !important; text-align: center; }
.ww-widget ul { list-style: none; margin: 0; padding: .5rem 0; }
.ww-widget li { padding: .3rem 1rem; border-bottom: 1px solid #f3f3f3; font-size: .95rem; }
.ww-widget li a { color: #101820; text-decoration: none; }
.ww-widget li a:hover { color: #dc8a1b; }

/* ---------- AAWP-Produktboxen an bisherige Kacheln angleichen ---------- */
.aawp .aawp-product { background: #fff; border: 1px solid #f0f0f0; box-shadow: none; }
.aawp .aawp-product__title { font-family: var(--wp--preset--font-family--roboto-slab); color: #101820; }
.aawp .aawp-product__price--current { color: #7ab317; font-weight: 600; }
.aawp .aawp-button, .aawp .aawp-button--buy { background: #dc8a1b !important; border-color: #dc8a1b !important; color: #fff !important; }

/* ---------- Breadcrumbs und Footer ---------- */
.ww-breadcrumbs { background: #89643d; color: #f8f8f8; font-size: .85rem; }
.ww-breadcrumbs a { color: #f8f8f8; text-decoration: none; }
.ww-footer { font-size: .875rem; color: #f3f3f3; }
.ww-footer a { color: #f3f3f3; text-decoration: none; }
.ww-footer a:hover { color: #dc8a1c; }
.ww-nav-footer .wp-block-navigation-item__content { color: #f3f3f3; }

.ww-hero:has(h1) p { font-style: italic; }
.ww-widget .wp-block-latest-posts li, .ww-widget .wp-block-categories li { margin: 0; padding: .45rem 1rem; line-height: 1.4; }

/* ---------- Ersatzanzeige Amazon (wenn AAWP keine Daten liefert) ---------- */
.ww-amz { display: grid; gap: 20px; margin: 1.5rem 0; }
.ww-amz-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ww-amz-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ww-amz-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ww-amz-card { background: #fff; border: 1px solid #f0f0f0; border-top: 3px solid #89643d; display: flex; flex-direction: column; }
.ww-amz-img { display: flex; align-items: center; justify-content: center; height: 220px; padding: 15px; }
.ww-amz-img img { max-height: 190px; width: auto; object-fit: contain; }
.ww-amz-body { padding: 15px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ww-amz-title { font-family: var(--wp--preset--font-family--roboto-slab); font-weight: 700; color: #101820 !important; font-size: 1.05rem; min-height: 2.6em; line-height: 1.3; flex: 1; text-decoration: none; }
.ww-amz-btn, .ww-amz-cta a { display: block; text-align: center; background: #dc8a1b !important; color: #fff !important; border-radius: 4px; padding: 8px 12px; font-size: .9rem; text-decoration: none !important; }
.ww-amz-btn:hover, .ww-amz-cta a:hover { background: #89643d !important; }
.ww-amz-cols-1 .ww-amz-card { max-width: 480px; }
.ww-amz-cols-1 .ww-amz-img { width: 240px; flex: none; }
.ww-amz-cta { display: block; text-align: center; }
.ww-amz-cta a { display: inline-block; padding: 12px 24px; }
.ww-affiliate-note { font-size: .75rem; color: #b8b0a8; margin-top: .5rem; }
@media (max-width: 781px) {
	.ww-amz-cols-3, .ww-amz-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ww-amz-cols-1 .ww-amz-card { flex-direction: column; }
	.ww-amz-cols-1 .ww-amz-img { width: 100%; }
}
@media (max-width: 480px) { .ww-amz-cols-2, .ww-amz-cols-3, .ww-amz-cols-4 { grid-template-columns: 1fr; } }
