/*
Theme Name:  CCMatheisl
Theme URI:   https://www.matheisl.biz
Author:      Hans-Peter Matheisl
Author URI:  https://www.matheisl.biz
Description: CCMatheisl Child-Theme für GeneratePress. Gold #c9943a · Navy #1b2a4a · DM Sans + Playfair Display.
Version:     2.0.0
Template:    generatepress
Text Domain: ccmatheisl
*/


/* ═══════════════════════════════════════════════════════════════
   GP LAYOUT OVERRIDES — muss ganz oben stehen
   Deaktiviert GP-Container-Struktur, setzt CCM-Vollbreite
═══════════════════════════════════════════════════════════════ */

:root {
    --base:        #d1d5db;
    --base-2:      #e8e8e8;
    --base-3:      #ffffff;
    --accent:      #c9943a;
    --contrast:    #1e293b;
    --contrast-2:  #64748b;
    --contrast-3:  #94a3b8;
}

body { background-color: var(--bg) !important; }

/* GP-Wrapper komplett zurücksetzen — kein Box, kein Weiß, volle Breite */
#page.site,
#page,
.site {
    background: transparent !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* site-content: flex → block, damit Kindelemente Höhe haben */
#content.site-content,
.site-content,
#content {
    display: block !important;     /* GP setzt hier flex → children height:0 */
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* content-area, article, hentry */
.content-area,
.hentry,
article.page,
article.post {
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* entry-content: kein Padding/Margin, transparent */
.entry-content,
.post-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* grid-container: nur im Header/Nav verwenden, nicht als Seiten-Wrapper */
.grid-container.container:not(.inside-header):not(.ccm-nav-container) {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Sidebar & Widget-Bereiche ausblenden */
.widget-area,
.sidebar,
#right-sidebar,
#left-sidebar {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   CCMatheisl Design System
   Basis: GeneratePress (mobile-first, responsive Navigation)
   Gold: #c9943a  ·  Navy: #1b2a4a  ·  Dark: #0f1923
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ──────────────────────────────── */
:root {
    --gold:         #c9943a;
    --gold-hover:   #b8832e;
    --gold-light:   rgba(201,148,58,.10);
    --gold-border:  rgba(201,148,58,.28);
    --navy:         #1b2a4a;
    --navy-light:   #243660;
    --dark:         #0f1923;
    --text:         #1e293b;
    --muted:        #64748b;
    --bg:           #e8e8e8;
    --bg-card:      #ffffff;
    --border:       #d1d5db;
    --radius:       10px;
    --radius-sm:    6px;
    --shadow:       0 2px 16px rgba(0,0,0,.07);
    --shadow-md:    0 4px 24px rgba(0,0,0,.10);
    --font-body:    "DM Sans", sans-serif;
    --font-head:    "Playfair Display", serif;
    --max-width:    1200px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body) !important;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Headings ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER — GeneratePress Header überschreiben
═══════════════════════════════════════════════════════════════ */
.site-header {
    background: var(--dark) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,.45) !important;
    border-bottom: none !important;
}

/* Logo */
.site-title a,
.site-title a:visited,
.main-title a,
.main-title a:visited,
#masthead .site-title a,
#masthead .main-title a {
    font-family: var(--font-head) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}
.site-title a:hover,
.main-title a:hover,
#masthead .site-title a:hover,
#masthead .main-title a:hover {
    color: var(--gold) !important;
}

/* Tagline ausblenden */
.site-description { display: none; }

/* ── Desktop Navigation ──────────────────────────────────────── */
.main-navigation,
.main-nav {
    display: flex;
    justify-content: center;
}
.main-navigation ul li a,
.main-nav ul li a {
    color: rgba(255,255,255,.8) !important;
    font-size: .82rem !important;
    font-weight: 500 !important;
    font-family: var(--font-body) !important;
    padding: .45rem .85rem !important;
    transition: color .2s !important;
}
.main-navigation ul li a:hover,
.main-nav ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-nav ul li.current-menu-item > a {
    color: #fff !important;
    background: transparent !important;
}
.main-navigation ul li.current-menu-item > a {
    border-bottom: 2px solid var(--gold);
    padding-bottom: calc(.45rem - 2px) !important;
}

/* ── Dropdown ────────────────────────────────────────────────── */
.main-navigation ul ul,
.main-nav ul ul {
    background: var(--navy) !important;
    border-top: 2px solid var(--gold) !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.3) !important;
}
.main-navigation ul ul li a,
.main-nav ul ul li a {
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    color: rgba(255,255,255,.8) !important;
}
.main-navigation ul ul li a:hover,
.main-nav ul ul li a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.05) !important;
}

/* ── Mobile Menu Toggle ──────────────────────────────────────── */
button.menu-toggle,
.menu-toggle {
    background: none !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    padding: .4rem .9rem !important;
    font-family: var(--font-body) !important;
    font-size: .85rem !important;
}
button.menu-toggle:hover,
.menu-toggle:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: none !important;
}

/* Mobile Nav Open */
.main-navigation.toggled ul,
.main-nav.toggled ul {
    background: var(--dark);
    border-top: 2px solid var(--gold);
}
.main-navigation.toggled ul li a,
.main-nav.toggled ul li a {
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    padding: .75rem 1.5rem !important;
}

/* ── GeneratePress Header Layout ─────────────────────────────── */
/* Zentrierte Navigation zwischen Logo und Toggle */
#site-navigation,
.navigation-branding {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    justify-content: space-between;
}
.header-widget {
    margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT — GeneratePress Container überschreiben
═══════════════════════════════════════════════════════════════ */
.inside-header,
.inside-top-bar,
.site-main .inside-article,
.grid-container {
    max-width: var(--max-width) !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Page Content Area */
.content-area { width: 100%; }
.site-content { overflow-x: hidden; }
body, html { overflow-x: hidden; }

/* ── Sidebar ausblenden (für CCM-Templates) ──────────────────── */
.ccm-no-sidebar .sidebar { display: none; }
.ccm-no-sidebar .content-area { width: 100%; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER — GeneratePress Footer überschreiben
═══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--dark) !important;
    color: rgba(255,255,255,.5) !important;
    text-align: center !important;
    padding: 2.5rem 2rem !important;
    font-size: .82rem !important;
    border-top: none !important;
}
.site-footer a {
    color: var(--gold) !important;
}
.site-footer a:hover {
    color: #fff !important;
}
.footer-bar {
    background: var(--dark) !important;
    color: rgba(255,255,255,.35) !important;
    font-size: .78rem !important;
    text-align: center !important;
}
.footer-divider {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: .75rem auto 1rem;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   CCM DESIGN COMPONENTS
═══════════════════════════════════════════════════════════════ */

/* ── Buttons ─────────────────────────────────────────────────── */
.ccm-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
    line-height: 1.4;
}
.ccm-btn-gold { background: var(--gold); color: #fff !important; }
.ccm-btn-gold:hover { background: var(--gold-hover); color: #fff !important; }
.ccm-btn-outline { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85) !important; border: 1px solid rgba(255,255,255,.2); }
.ccm-btn-outline:hover { background: rgba(255,255,255,.15); color: #fff !important; }
.ccm-btn-outline-dark { background: transparent; color: var(--navy) !important; border: 1.5px solid var(--border); }
.ccm-btn-outline-dark:hover { border-color: var(--gold); color: var(--gold) !important; }
.ccm-btn-full { width: 100%; justify-content: center; }

/* ── Page Hero ───────────────────────────────────────────────── */
.ccm-page-hero {
    background: var(--navy);
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ccm-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,148,58,.12) 0%, transparent 60%);
    pointer-events: none;
}
.ccm-page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.ccm-hero-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.ccm-page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: .9rem;
    position: relative;
    z-index: 1;
}
.ccm-page-hero h1 em { color: var(--gold); font-style: italic; }
.ccm-hero-sub {
    color: rgba(255,255,255,.6);
    font-size: .95rem;
    max-width: 580px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}
.ccm-hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.ccm-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}
.ccm-hero-badge {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.75);
    border-radius: 20px;
    padding: .3rem .9rem;
    font-size: .78rem;
}

/* ── Sections ────────────────────────────────────────────────── */
.ccm-section { padding: 5rem 0; }
.ccm-section-sm { padding: 3rem 0; }
.ccm-section-dark { background: var(--navy); }
.ccm-section-darker { background: var(--dark); }
.ccm-section-white { background: var(--bg-card); }
.ccm-section-bg { background: var(--bg); }
.ccm-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}
.text-center { text-align: center; }

/* ── Section Headings ────────────────────────────────────────── */
.ccm-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
}
.ccm-section-heading {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 1rem;
}
.ccm-section-heading.light { color: #fff; }
.ccm-section-heading em { color: var(--gold); font-style: italic; }
.ccm-section-sub {
    color: var(--muted);
    font-size: .95rem;
    max-width: 580px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.ccm-section-sub.light { color: rgba(255,255,255,.6); }
.text-center .ccm-section-sub { margin-left: auto; margin-right: auto; }

/* ── Cards ───────────────────────────────────────────────────── */
.ccm-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.ccm-card-header {
    background: var(--navy);
    padding: 1.2rem 1.75rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.ccm-card-icon {
    width: 36px;
    height: 36px;
    background: var(--gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.ccm-card-header h2,
.ccm-card-header h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.ccm-card-header p { color: rgba(255,255,255,.5); font-size: .78rem; margin: .15rem 0 0; }
.ccm-card-body { padding: 1.75rem; }

/* ── Feature Grid ────────────────────────────────────────────── */
.ccm-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
}
.ccm-feature-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
    transition: transform .2s, box-shadow .2s;
}
.ccm-feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ccm-feature-icon { font-size: 1.75rem; margin-bottom: .75rem; display: block; }
.ccm-feature-item h4 { font-family: var(--font-head); font-size: 1rem; color: var(--navy); margin-bottom: .4rem; }
.ccm-feature-item p { font-size: .88rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* ── Stats Bar ───────────────────────────────────────────────── */
.ccm-stats-bar {
    background: var(--navy);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 4rem;
    padding: 2.5rem 2rem;
}
.ccm-stat-value {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    text-align: center;
}
.ccm-stat-label { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: .25rem; text-align: center; }

/* ── Steps ───────────────────────────────────────────────────── */
.ccm-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 1.5rem;
}
.ccm-step-item {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.ccm-step-num {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    opacity: .5;
    line-height: 1;
    margin-bottom: .5rem;
}
.ccm-step-item h4 { color: #fff; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.ccm-step-item p { color: rgba(255,255,255,.55); font-size: .85rem; line-height: 1.6; margin: 0; }

/* ── Pricing ─────────────────────────────────────────────────── */
.ccm-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 1.5rem;
}
.ccm-price-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.5rem;
    position: relative;
    border-top: 4px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.ccm-price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ccm-price-card.featured { border-top-color: var(--gold); }
.ccm-price-badge {
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: var(--gold);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    letter-spacing: .05em;
}
.ccm-price-icon { font-size: 1.75rem; margin-bottom: .75rem; display: block; }
.ccm-price-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.ccm-price-amount { font-size: 2.25rem; font-weight: 700; color: var(--navy); line-height: 1; margin: .5rem 0; }
.ccm-price-amount span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.ccm-price-desc { font-size: .82rem; color: var(--muted); margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.ccm-price-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ccm-price-features li { font-size: .84rem; padding: .3rem 0; color: var(--text); display: flex; align-items: flex-start; gap: .5rem; }
.ccm-price-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ── Info Box ────────────────────────────────────────────────── */
.ccm-info-box {
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: .88rem;
    line-height: 1.65;
}
.ccm-info-box strong { color: var(--navy); }

/* ── Inner Title ─────────────────────────────────────────────── */
.ccm-inner-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    padding-left: .8rem;
    border-left: 3px solid var(--gold);
    margin: 2rem 0 .6rem;
    line-height: 1.35;
}
.ccm-section-divider {
    border: none;
    border-top: 2px solid var(--border);
    margin: 2rem 0;
    position: relative;
}
.ccm-section-divider::before {
    content: '§';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 0 .5rem;
    color: var(--gold);
    font-weight: 700;
    font-size: .8rem;
}

/* ── Styled List ─────────────────────────────────────────────── */
.ccm-styled-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.ccm-styled-list li { padding: .35rem 0 .35rem 1.4rem; position: relative; font-size: .9rem; }
.ccm-styled-list li::before { content: '▸'; color: var(--gold); position: absolute; left: 0; font-size: .8rem; top: .45rem; }
.ccm-styled-list.light li { color: rgba(255,255,255,.8); }

/* ── Badge / Meta ────────────────────────────────────────────── */
.ccm-badge {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 700;
    padding: .15rem .45rem;
    letter-spacing: .04em;
}
.ccm-meta-tag {
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.ccm-meta-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Services Grid (Startseite) ──────────────────────────────── */
.ccm-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
}
.ccm-service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}
.ccm-service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); color: inherit; }
.ccm-sc-header { background: var(--navy); padding: 1.5rem; }
.ccm-sc-icon { font-size: 2rem; margin-bottom: .5rem; display: block; }
.ccm-sc-header h3 { font-family: var(--font-head); font-size: 1.1rem; color: #fff; margin: 0; }
.ccm-sc-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.ccm-sc-body p { font-size: .87rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 1rem; }
.ccm-sc-link { font-size: .82rem; font-weight: 600; color: var(--gold); }

/* ── About Grid ──────────────────────────────────────────────── */
.ccm-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.ccm-about-visual { background: var(--navy); border-radius: 12px; padding: 2.5rem; }
.ccm-about-visual h4 { font-size: .75rem; color: rgba(255,255,255,.5); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; font-weight: 400; }
.ccm-av-item { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.8); font-size: .88rem; }
.ccm-av-item:last-child { border-bottom: none; }
.ccm-av-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.ccm-av-arrow { margin-left: auto; color: var(--gold); font-size: .8rem; }

/* ── CTA Section ─────────────────────────────────────────────── */
.ccm-cta-section {
    background: var(--navy);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ccm-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,148,58,.08) 0%, transparent 70%);
}

/* ── Trust Bar ───────────────────────────────────────────────── */
.ccm-trust-bar { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.ccm-trust-items { max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; }
.ccm-trust-item { display: flex; align-items: center; gap: .6rem; padding: .9rem 2rem; border-right: 1px solid var(--border); font-size: .82rem; color: var(--muted); font-weight: 500; }
.ccm-trust-item:last-child { border-right: none; }
.ccm-trust-item .ti { color: var(--gold); }

/* ── Widget ──────────────────────────────────────────────────── */
.ccm-widget { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1.25rem; }
.ccm-widget-header { background: var(--navy); padding: .9rem 1.25rem; font-family: var(--font-head); font-size: .95rem; font-weight: 600; color: #fff; display: flex; align-items: center; gap: .5rem; }
.ccm-widget-header .wi { color: var(--gold); }
.ccm-widget-body { padding: 1rem 1.25rem; }
.ccm-contact-item { display: flex; align-items: flex-start; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.ccm-contact-item:last-child { border-bottom: none; }
.ccm-contact-icon { color: var(--gold); flex-shrink: 0; margin-top: .1rem; }
.ccm-contact-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-bottom: .1rem; }
.ccm-contact-value a { color: var(--navy); }
.ccm-contact-value a:hover { color: var(--gold); }

/* ── Forms ───────────────────────────────────────────────────── */
.ccm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ccm-form-full { grid-column: 1 / -1; }
.ccm-form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.ccm-form-label .req { color: var(--gold); }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--text);
    background: #fff;
    transition: border-color .2s;
    outline: none;
    box-sizing: border-box;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 120px; }

/* Defense: keine doppelten Header/Nav im Seiteninhalt */
.entry-content header:not(#masthead):not(.site-header),
.entry-content nav,
.entry-content footer,
.ccm-card-body > header,
.ccm-card-body > nav { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .ccm-about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .ccm-page-hero { padding: 3.5rem 1.25rem 3rem; }
    .ccm-section { padding: 3.5rem 0; }
    .ccm-container { padding: 0 1.25rem; }
    .ccm-hero-ctas { flex-direction: column; align-items: center; }
    .ccm-stats-bar { gap: 1.5rem 2rem; }
    .ccm-trust-item { padding: .75rem 1rem; border-right: none; width: 50%; justify-content: center; }
    .ccm-services-grid { grid-template-columns: 1fr; }
    .ccm-pricing-grid { grid-template-columns: 1fr; }
    .ccm-form-grid { grid-template-columns: 1fr; }
    .ccm-steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ccm-trust-item { width: 100%; }
    .ccm-hero-badges { gap: .4rem; }
    .ccm-hero-badge { font-size: .72rem; padding: .25rem .7rem; }
    .ccm-section-heading { font-size: 1.4rem; }
}


/* ═══════════════════════════════════════════════════════════════
   CCM NAVIGATION — Mega-Dropdown mit Gruppen
   Desktop: 2-Gruppen (Leistungen / Produkte) + Einzellinks
   Mobile:  Akkordeon mit sanfter Animation
═══════════════════════════════════════════════════════════════ */

/* ── Nav-Wrapper ─────────────────────────────────────────────── */
#ccm-site-nav {
    background: var(--dark);
    border-bottom: 1px solid rgba(201,148,58,.15);
    position: sticky;
    top: 0;
    z-index: 199;
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.ccm-nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    position: relative;
}

/* ── Menü-Liste (Top-Level) ──────────────────────────────────── */
.ccm-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* ── Top-Level Links ─────────────────────────────────────────── */
.ccm-nav-list > li > a {
    display: flex;
    align-items: center;
    gap: .3rem;
    color: rgba(255,255,255,.78) !important;
    font-size: .82rem !important;
    font-weight: 500;
    font-family: var(--font-body);
    padding: 0 .9rem;
    height: 48px;
    text-decoration: none;
    transition: color .2s, background .2s;
    white-space: nowrap;
    position: relative;
}
.ccm-nav-list > li > a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.06);
}
.ccm-nav-list > li.current-menu-item > a,
.ccm-nav-list > li.current-menu-ancestor > a {
    color: #fff !important;
}
.ccm-nav-list > li.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: .9rem;
    right: .9rem;
    height: 2px;
    background: var(--gold);
    border-radius: 2px 2px 0 0;
}

/* Dropdown-Pfeil bei Eltern-Items */
.ccm-nav-list > li.menu-item-has-children > a::before {
    content: '▾';
    font-size: .65rem;
    color: var(--gold);
    margin-left: .2rem;
    order: 99;
    transition: transform .2s;
}
.ccm-nav-list > li.menu-item-has-children:hover > a::before {
    transform: rotate(-180deg);
}

/* ── Dropdown Basis ──────────────────────────────────────────── */
.ccm-nav-list li {
    position: relative;
}
.ccm-nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #162035;
    border-top: 2px solid var(--gold);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
    z-index: 300;
    list-style: none;
    padding: .5rem 0;
    margin: 0;
    animation: ccmDropIn .18s ease;
}
@keyframes ccmDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ccm-nav-list li:hover > .sub-menu,
.ccm-nav-list li:focus-within > .sub-menu {
    display: block;
}

/* ── Dropdown Items ──────────────────────────────────────────── */
.ccm-nav-list .sub-menu li a {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: rgba(255,255,255,.75) !important;
    font-size: .83rem;
    padding: .6rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .15s, color .15s, padding-left .15s;
    line-height: 1.3;
}
.ccm-nav-list .sub-menu li a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.07);
    padding-left: 1.5rem;
}
.ccm-nav-list .sub-menu li:last-child a {
    border-bottom: none;
}
.ccm-nav-list .sub-menu li.current-menu-item > a {
    color: var(--gold) !important;
    border-left: 2px solid var(--gold);
    padding-left: calc(1.25rem - 2px);
}

/* ── Sub-Sub-Menu (3. Ebene) ─────────────────────────────────── */
.ccm-nav-list .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-top: 2px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    animation: ccmDropIn .15s ease;
}

/* ── MEGA-DROPDOWN für Gruppen-Items ─────────────────────────── */
/* ccm-mega: breites Panel, Kinder von Kindern als Gruppen     */
.ccm-nav-list > li.ccm-mega > .sub-menu {
    min-width: 420px;
    display: none;
    padding: .75rem 0;
}
.ccm-nav-list > li.ccm-mega:hover > .sub-menu,
.ccm-nav-list > li.ccm-mega:focus-within > .sub-menu {
    display: block;
}

/* Gruppen-Header (z.B. BildRegie, KontAWi) im Mega-Dropdown  */
.ccm-nav-list > li.ccm-mega > .sub-menu > li.menu-item-has-children > a {
    font-size: .7rem !important;
    font-weight: 700 !important;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--gold) !important;
    padding: .9rem 1.25rem .35rem !important;
    pointer-events: none;
    cursor: default;
    border-bottom: 1px solid rgba(201,148,58,.2) !important;
    margin-bottom: .2rem;
    display: block;
}
.ccm-nav-list > li.ccm-mega > .sub-menu > li.menu-item-has-children > a:hover {
    background: transparent !important;
    padding-left: 1.25rem !important;
}

/* Kinder der Gruppen-Header — direkt darunter ohne Flyout     */
.ccm-nav-list > li.ccm-mega > .sub-menu > li.menu-item-has-children > .sub-menu {
    display: block !important;   /* immer sichtbar, kein hover nötig */
    position: static !important;
    border-top: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 0 .5rem !important;
    margin: 0 !important;
    min-width: 0 !important;
    animation: none !important;
}
.ccm-nav-list > li.ccm-mega > .sub-menu > li.menu-item-has-children > .sub-menu li a {
    padding: .45rem 1.25rem .45rem 1.75rem !important;
    font-size: .82rem !important;
    color: rgba(255,255,255,.72) !important;
    border-bottom: 1px solid rgba(255,255,255,.04) !important;
    pointer-events: auto;
    cursor: pointer;
}
.ccm-nav-list > li.ccm-mega > .sub-menu > li.menu-item-has-children > .sub-menu li a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.06) !important;
    padding-left: 2rem !important;
}

/* Trennlinie zwischen Gruppen */
.ccm-nav-list > li.ccm-mega > .sub-menu > li + li.menu-item-has-children {
    border-top: 1px solid rgba(255,255,255,.07);
    margin-top: .25rem;
    padding-top: .25rem;
}

/* ── Separator Label (für Gruppen-Header) ────────────────────── */
.ccm-nav-list .sub-menu li.ccm-label > a,
.ccm-nav-list .sub-menu li.ccm-label > span {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold) !important;
    padding: .75rem 1.25rem .35rem;
    pointer-events: none;
    background: transparent;
    border-bottom: 1px solid rgba(201,148,58,.2);
}

/* ── Mobile Toggle ───────────────────────────────────────────── */
.ccm-menu-toggle {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
    padding: .4rem .85rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .85rem;
    cursor: pointer;
    transition: all .2s;
    gap: .4rem;
    align-items: center;
}
.ccm-menu-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* GP-eigene #site-navigation ausblenden */
#site-navigation.main-navigation { display: none !important; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    /* Toggle einblenden */
    .ccm-menu-toggle { display: flex; }

    /* Container links-ausrichten für Toggle */
    .ccm-nav-container { justify-content: flex-start; min-height: 48px; }

    /* Menü komplett ausblenden — Toggle öffnet es */
    .ccm-nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: .4rem 0 .75rem;
        border-top: 1px solid rgba(255,255,255,.08);
    }
    .ccm-nav-list.ccm-nav-open { display: flex; }

    /* Top-Level Links auf Mobile */
    .ccm-nav-list > li > a {
        height: auto !important;
        padding: .7rem 1.25rem !important;
        border-bottom: 1px solid rgba(255,255,255,.05) !important;
        font-size: .88rem !important;
        width: 100%;
        justify-content: space-between;
    }
    .ccm-nav-list > li > a::after { display: none; } /* Keine Underline auf Mobile */

    /* Dropdown-Pfeil auf Mobile — zeigt offen/zu */
    .ccm-nav-list > li.menu-item-has-children > a::before {
        content: '▾';
        font-size: .7rem;
        transform: none;
        transition: transform .25s;
    }
    .ccm-nav-list > li.menu-item-has-children.ccm-open > a::before {
        transform: rotate(-180deg);
    }

    /* Aktives Item */
    .ccm-nav-list > li.current-menu-item > a,
    .ccm-nav-list > li.current-menu-ancestor > a {
        border-left: 3px solid var(--gold) !important;
        padding-left: calc(1.25rem - 3px) !important;
    }

    /* Dropdown auf Mobile: per JS gesteuert, Akkordeon */
    .ccm-nav-list .sub-menu {
        display: none;
        position: static !important;
        border-top: none;
        border-left: 3px solid rgba(201,148,58,.4);
        border-radius: 0;
        box-shadow: none;
        background: rgba(255,255,255,.04);
        padding: .25rem 0;
        margin: 0;
        animation: none;
        min-width: 0;
        width: 100%;
    }
    .ccm-nav-list .sub-menu.ccm-open { display: block; }

    /* Sub-Items einrücken */
    .ccm-nav-list .sub-menu li a {
        padding: .55rem 1.25rem .55rem 1.75rem !important;
        font-size: .84rem !important;
        border-bottom: 1px solid rgba(255,255,255,.04) !important;
    }
    .ccm-nav-list .sub-menu li a:hover { padding-left: 2rem !important; }

    /* Sub-Sub-Menu noch weiter einrücken */
    .ccm-nav-list .sub-menu .sub-menu { display: none; }
    .ccm-nav-list .sub-menu .sub-menu.ccm-open { display: block; }
    .ccm-nav-list .sub-menu .sub-menu li a { padding-left: 2.5rem !important; }

    /* Mega-Dropdown auf Mobile: alles normal block */
    .ccm-nav-list > li.ccm-mega > .sub-menu {
        display: none;
    }
    .ccm-nav-list > li.ccm-mega > .sub-menu.ccm-open { display: block; }

    /* Gruppen-Header auf Mobile: wieder klickbar */
    .ccm-nav-list > li.ccm-mega > .sub-menu > li.menu-item-has-children > a {
        pointer-events: auto !important;
        cursor: pointer !important;
        padding: .65rem 1.25rem !important;
    }
    /* Kinder auf Mobile: standardmäßig versteckt, per Akkordeon öffnen */
    .ccm-nav-list > li.ccm-mega > .sub-menu > li.menu-item-has-children > .sub-menu {
        display: none !important;
    }
    .ccm-nav-list > li.ccm-mega > .sub-menu > li.menu-item-has-children > .sub-menu.ccm-open {
        display: block !important;
    }
    .ccm-nav-list > li.ccm-mega > .sub-menu > li + li.menu-item-has-children {
        border-top: 1px solid rgba(255,255,255,.06);
        margin-top: 0;
        padding-top: 0;
    }
}

/* GP-eigene #site-navigation ausblenden — CCM nutzt #ccm-site-nav stattdessen
   WICHTIG: Niemals .nav-below-header mit display:none — GP setzt das auch auf body!
   Selektor muss #site-navigation direkt ansprechen */
#site-navigation.main-navigation { display: none !important; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE GRID HELPERS
   Ersetzt alle Inline-Styles mit fixen px-Breiten
═══════════════════════════════════════════════════════════════ */

/* 2 gleiche Spalten → auf Mobile 1 Spalte */
.ccm-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Haupt + schmale Sidebar → auf Mobile gestapelt */
.ccm-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

/* Haupt + breite Sidebar (Anfrage/Demo) */
.ccm-sidebar-layout-wide {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .ccm-2col,
    .ccm-sidebar-layout,
    .ccm-sidebar-layout-wide {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Alle Inline-Grids auf Mobile erzwingen */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: 1fr 260px"],
    [style*="grid-template-columns:1fr 260px"],
    [style*="grid-template-columns: 1fr 280px"],
    [style*="grid-template-columns: 1fr 320px"],
    [style*="grid-template-columns: 1fr 340px"],
    [style*="grid-template-columns: 1fr 360px"],
    [style*="grid-template-columns:1fr 360px"],
    [style*="grid-template-columns:1fr 340px"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Sidebar auf Mobile nach unten */
    .ccm-sidebar-layout > aside,
    .ccm-sidebar-layout-wide > aside {
        order: 2;
    }

    /* Alle fixed-width Elemente in Grid-Containern */
    .ccm-container [style*="width:"] {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   IMPRESSUM — 2-Spalten-Layout Desktop (Main + Sidebar)
═══════════════════════════════════════════════════════════════ */
.ccm-impressum-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

/* Haupt-Cards untereinander */
.ccm-impressum-layout > main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0; /* verhindert Overflow */
}

/* Sidebar sticky */
.ccm-impressum-layout > aside {
    position: sticky;
    top: calc(48px + 1rem); /* Nav-Höhe + Abstand */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

@media (max-width: 768px) {
    .ccm-impressum-layout {
        grid-template-columns: 1fr !important;
    }
    .ccm-impressum-layout > aside {
        position: static;
    }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV — Toggle Button Fix
   Schließen-Button rechts oben korrekt positioniert
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Nav-Container: Padding für Toggle-Button reservieren */
    .ccm-nav-container {
        padding-right: 5rem !important; /* Platz für Toggle rechts */
        justify-content: flex-start;
        min-height: 48px;
    }

    /* Toggle fest rechts oben in der Nav */
    .ccm-menu-toggle {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: .35rem;
        padding: .4rem .75rem;
        font-size: .82rem;
        white-space: nowrap;
        z-index: 10;
    }

    /* Wenn Menü offen: Toggle bleibt sichtbar über dem Menü */
    #ccm-site-nav {
        position: sticky;
        top: 0;
        z-index: 199;
    }

    /* Menü-Liste unter dem Toggle, volle Breite */
    .ccm-nav-list {
        padding-top: .25rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE OVERFLOW FIX — verhindert horizontales Scrollen
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    /* Alle Grid-Kinder auf Mobile: volle Breite, kein Overflow */
    .ccm-impressum-layout > *,
    .ccm-2col > *,
    .ccm-sidebar-layout > *,
    .ccm-sidebar-layout-wide > * {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    /* Cards auf Mobile: Padding reduzieren */
    .ccm-card-body {
        padding: 1rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   3-SCHRITT-LEISTE (BildRegie Demo-Ablauf)
═══════════════════════════════════════════════════════════════ */
.ccm-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: nowrap;
}
.ccm-step-item-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    color: var(--navy);
    white-space: nowrap;
}
.ccm-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: #fff;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ccm-step-arrow {
    color: var(--gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.ccm-step-br { display: none; }

@media (max-width: 640px) {
    .ccm-steps-bar {
        flex-direction: column;
        align-items: center;
        gap: .6rem;
        padding: .5rem 0;
    }
    .ccm-step-item-bar {
        white-space: normal;
        font-size: .88rem;
        width: 100%;
        max-width: 260px;
        justify-content: flex-start;
    }
    .ccm-step-arrow {
        transform: rotate(90deg);
        font-size: 1rem;
    }
    .ccm-step-br { display: none; }
}
