/*
Theme Name: Mewissen
Theme URI: https://mewissen.de/
Description: Child-Theme von Twenty Twenty-Five im Erscheinungsbild der Mewissen Consulting GmbH & Co. KG – Brandmelde- und Sicherheitstechnik.
Author: Mewissen Consulting GmbH & Co. KG
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mewissen
*/

/* ---------- Grundlagen ---------- */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
img { max-width: 100%; height: auto; }

/* ---------- Kopfzeile ---------- */
.mw-header { background: #EC7404; padding-top: 10px; padding-bottom: 10px; position: relative; z-index: 50; }
.mw-header-inner { gap: 16px 24px; align-items: center; }
.mw-logo { display: flex; align-items: center; text-decoration: none !important; flex: 0 1 auto; min-width: 0; }
.mw-logo svg { display: block; max-width: 100%; height: auto; }
.mw-header-right { gap: 8px 22px; align-items: center; }
.mw-nav { font-weight: 600; font-size: 15px; gap: 4px 22px; }
.mw-nav a, .mw-nav .wp-block-navigation-item__content { color: #1A1A1A !important; text-decoration: none !important; }
.mw-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { min-height: 44px; display: inline-flex; align-items: center; }
.mw-nav a:hover { text-decoration: underline !important; text-underline-offset: 5px; text-decoration-thickness: 2px !important; }
.mw-nav .current-menu-item > a, .mw-nav [aria-current="page"] { text-decoration: underline !important; text-underline-offset: 5px; text-decoration-thickness: 2px !important; }
/* Untermenüs */
.mw-nav .wp-block-navigation__submenu-container { background: #FFFFFF !important; border: 1px solid #E4E2DE !important; border-radius: 6px; box-shadow: 0 12px 28px rgba(0,0,0,.12); padding: 8px 0 !important; min-width: 250px !important; }
.mw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 18px !important; font-weight: 500; }
.mw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #F4F3F1; text-decoration: none !important; color: #B84A00 !important; }
/* Mobil-Menü */
.mw-nav .wp-block-navigation__responsive-container-open { color: #1A1A1A; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.mw-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.mw-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px !important; }
.mw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; align-items: flex-start; font-size: 19px; }
.mw-nav .is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0 !important; box-shadow: none; padding: 4px 0 8px 14px !important; }
.mw-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 6px 0 !important; font-size: 17px; }
.mw-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: transparent; }
.mw-nav .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; }
/* Telefon-Knopf */
.mw-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: #FFFFFF; color: #1A1A1A !important; border-radius: 4px; font-weight: 700; font-size: 15px; text-decoration: none !important; white-space: nowrap; }
.mw-call:hover { background: #1A1A1A; color: #FFFFFF !important; }
@media (max-width: 1080px) { .mw-call-label { display: none; } .mw-call { padding: 0; width: 44px; justify-content: center; } }
@media (max-width: 600px) { .mw-logo svg { width: 230px; } .mw-header-right { gap: 4px; } }

/* ---------- Seitenkopf + Inhalt (Unterseiten) ---------- */
.mw-page-hero { background: #F4F3F1; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid #E4E2DE; }
.mw-page-hero h1 { margin: 0; max-width: 900px; }
.mw-content { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 104px); }
.mw-content > h2 { margin-top: 2.4em; }
.mw-content > h3 { margin-top: 2em; }
.mw-content > h2:first-child, .mw-content > h3:first-child { margin-top: 0; }
.mw-content ul, .mw-content ol { padding-left: 1.3em; }
.mw-content li { margin-bottom: .35em; }
.mw-content li::marker { color: #B84A00; }
.mw-content table { width: 100%; border-collapse: collapse; }
.mw-content th, .mw-content td { border-bottom: 1px solid #E4E2DE; padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.mw-content img { border-radius: 6px; }
.mw-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 45%; }
.mw-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 45%; }
.mw-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.mw-content::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) { .mw-content .alignleft, .mw-content .alignright { float: none; margin: 1em 0; max-width: 100%; } }
.mw-content .wp-caption, .mw-content figure figcaption { font-size: 14px; color: #444444; }
.mw-content hr { border: 0; border-top: 1px solid #E4E2DE; margin: 2.5em 0; }
.mw-content .wp-block-button__link, .mw-content .mw-btn { text-decoration: none; }

/* Info-Kästen & Karten für Unterseiten */
.mw-box { background: #F4F3F1; border-radius: 6px; padding: clamp(20px, 3vw, 32px); }
.mw-box-dark { background: #1A1A1A; color: #FFFFFF; border-radius: 6px; padding: clamp(20px, 3vw, 32px); }
.mw-box-dark a { color: #F58A2A; }
.mw-box-dark h2, .mw-box-dark h3 { color: #FFFFFF; }
.mw-check { list-style: none; padding-left: 0 !important; }
.mw-check li { position: relative; padding-left: 30px; }
.mw-check li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 3px solid #B84A00; border-bottom: 3px solid #B84A00; transform: rotate(-45deg); }
.mw-grid-2, .mw-grid-3 { display: grid; gap: 20px; }
.mw-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mw-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .mw-grid-2, .mw-grid-3 { grid-template-columns: 1fr; } }
.mw-card { background: #FFFFFF; border: 1px solid #E4E2DE; border-top: 4px solid #EC7404; border-radius: 6px; padding: 24px; }
.mw-card h3 { margin-top: 0; }
.mw-partner { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.mw-partner li { background: #F4F3F1; border-radius: 4px; padding: 6px 12px; font-size: 15px; margin: 0; }
.mw-section-figure { margin: 1.5em 0; }
.mw-section-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #F4F3F1; }
.mw-section-figure figcaption { margin-top: 6px; }
.mw-credit { font-size: 13px; color: #444444; }
.mw-credit a { color: #444444; }
.mw-cta { margin-top: clamp(40px, 6vw, 72px); background: #1A1A1A; color: #FFFFFF; border-radius: 6px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.mw-cta h2 { color: #FFFFFF; margin: 0 0 6px; font-size: clamp(24px, 3vw, 30px); }
.mw-cta p { margin: 0; color: #D9D9D6; }
.mw-cta .mw-btn { background: #EC7404; color: #1A1A1A; }

/* Knöpfe */
.mw-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 4px; font-weight: 700; text-decoration: none !important; background: #EC7404; color: #1A1A1A !important; }
.mw-btn:hover { background: #F58A2A; }
.mw-btn-dark { background: #1A1A1A; color: #FFFFFF !important; }
.mw-btn-dark:hover { background: #333333; }
.mw-btn-line { background: transparent; border: 2px solid #1A1A1A; color: #1A1A1A !important; }
.mw-btn-line:hover { background: #1A1A1A; color: #FFFFFF !important; }
.mw-btn-white { background: transparent; border: 2px solid #FFFFFF; color: #FFFFFF !important; }
.mw-btn-white:hover { background: #FFFFFF; color: #1A1A1A !important; }

/* ---------- Startseite (Inhalt mit Klasse .mw-home) ---------- */
.mw-home { --o:#EC7404; --ink:#1A1A1A; --accent:#B84A00; --sand:#F4F3F1; --line:#E4E2DE; --muted:#444444; }
.mw-home a { text-decoration: none; }
.mw-home .wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mw-home .eyebrow { display: block; margin: 0 0 12px; font-family: inherit; font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); line-height: 1.4; }
.mw-home .j { font-family: Jost, Futura, "Century Gothic", system-ui, sans-serif; }
.mw-home h1, .mw-home h2, .mw-home h3 { margin-top: 0; }
.mw-home .card { display: flex; flex-direction: column; gap: 10px; padding: 32px; background: #FFFFFF; border-radius: 6px; color: var(--ink); border-top: 4px solid var(--o); transition: transform .15s, box-shadow .15s; }
.mw-home a.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); color: var(--ink); }
.mw-home .g2, .mw-home .g3, .mw-home .g4 { display: grid; }
.mw-home .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mw-home .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mw-home .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .mw-home .g4, .mw-home .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mw-home h1 .big { font-size: 42px !important; } }
@media (max-width: 600px) { .mw-home .g4, .mw-home .g3, .mw-home .g2 { grid-template-columns: 1fr; } .mw-home h1 .big { font-size: 34px !important; } .mw-home h2 { font-size: 30px !important; } .mw-home .sec { padding-top: 64px !important; padding-bottom: 64px !important; } }
.mw-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.mw-logos li { margin: 0; }
.mw-logos a { display: flex; align-items: center; justify-content: center; height: 96px; padding: 16px 20px; background: #FFFFFF; border: 1px solid #E4E2DE; border-radius: 6px; }
.mw-logos a:hover { border-color: #1A1A1A; }
.mw-logos img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; border-radius: 0; filter: grayscale(1); opacity: .85; transition: filter .15s, opacity .15s; }
.mw-logos a:hover img { filter: none; opacity: 1; }
@media (max-width: 760px) { .mw-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Fußzeile ---------- */
.mw-footer { background: #EC7404; color: #1A1A1A; font-size: 15px; padding-top: 56px; padding-bottom: 28px; }
.mw-footer a { color: #1A1A1A; text-decoration: none; }
.mw-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mw-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; }
.mw-footer-grid p { margin: 12px 0 0; }
.mw-footer-head { font-weight: 700; margin: 0 0 10px !important; }
.mw-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mw-footer ul li { margin: 0; }
.mw-footer ul a { display: inline-block; padding: 2px 0; }
.mw-footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 18px; border-top: 1px solid rgba(26,26,26,.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.mw-footer-legal { display: flex; gap: 18px; }
@media (max-width: 900px) { .mw-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mw-footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
