/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  PeakGuard Custom Theme
 Author:       Jannik Hüpgen
 Template:     generatepress
 Version:      0.2
*/

/* ========================================
   PeakGuard – Custom CSS für GeneratePress
   ======================================== */

/* --- Globale Basis --- */
body {
    color: #374151;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typografie --- */
h1, h2, h3, h4 {
    color: #1a202c;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    text-align: center;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.2rem;
    line-height: 1.4;
}

p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* --- Content-Bereich --- */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Links global --- */
a {
    color: #0891b2;
    transition: color 0.2s ease;
}

a:hover {
    color: #0e7490;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.main-navigation {
    font-weight: 500;
    font-size: 0.95rem;
}

.main-navigation a {
    color: #d1d5db;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #0891b2;
}

/* ========================================
   HERO SECTION
   ======================================== */
.wp-block-cover,
.wp-block-cover-image {
    min-height: 500px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-cover h1,
.wp-block-cover p {
    color: #ffffff;
}

/* Cyan-Akzent im Hero (für "Einsparhebel raus.") */
.wp-block-cover .has-cyan-300-color,
.wp-block-cover em,
.wp-block-cover strong.highlight {
    color: #22d3ee !important;
}

/* ========================================
   GUTENBERG COLUMNS – CARD-STIL
   ======================================== */
.wp-block-column {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem 1.8rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wp-block-column:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* --- Columns-Container: Abstände --- */
.wp-block-columns {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Schritt-Labels (SCHRITT 01 etc.) --- */
.wp-block-column h3:first-of-type,
.wp-block-column p:first-of-type strong {
    color: #0891b2;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Card-Überschriften --- */
.wp-block-column h3,
.wp-block-column h4 {
    color: #1a202c;
    font-size: 1.15rem;
    text-align: left;
    margin-top: 0.5rem;
}

/* --- Card-Text --- */
.wp-block-column p {
    font-size: 0.95rem;
    color: #6b7280;
}

/* ========================================
   "WAS SIE ERHALTEN" – ICON CARDS
   ======================================== */
.wp-block-column svg,
.wp-block-column img.icon,
.wp-block-column img[width="24"],
.wp-block-column img[width="32"],
.wp-block-column img[width="40"] {
    color: #0891b2;
    fill: #0891b2;
    margin-bottom: 0.5rem;
}

/* Emoji-Icons in Cards etwas größer */
.wp-block-column .emoji,
.wp-block-column p:first-child:has(img.wp-smiley) {
    font-size: 1.5rem;
}

/* ========================================
   PAKETE – SCAN/PLAN/MONITOR
   ======================================== */

/* "HIER STARTEN" Badge-Farbe */
.wp-block-column .badge,
.wp-block-column p:first-child strong {
    color: #0891b2;
}

/* Scan-Card hervorheben: 
   Nutze eine CSS-Klasse "scan-card" auf dem Block,
   oder verwende :first-child wenn die Scan-Card
   immer die erste Spalte ist */
.scan-card,
.pakete-section .wp-block-column:first-child {
    border: 2px solid #0891b2;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.12);
}

/* ========================================
   AUFZÄHLUNGEN: HÄKCHEN
   ======================================== */
.wp-block-column ul,
.entry-content ul {
    list-style: none;
    padding-left: 0;
}

.wp-block-column ul li,
.entry-content ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}

.wp-block-column ul li::before,
.entry-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0891b2;
    font-weight: 700;
    font-size: 1rem;
}

/* ========================================
   REPORT-PREVIEW BILDER
   ======================================== */
.wp-block-image img {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.25s ease;
}

.wp-block-image img:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Report-Labels (LASTPROFIL-ÜBERSICHT etc.) */
.wp-block-image + h4,
.wp-block-image + p strong,
figcaption {
    color: #0891b2;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.8rem;
}

/* ========================================
   BUTTONS (CTA)
   ======================================== */
.wp-block-button__link,
a.wp-block-button__link,
a.wp-block-button__link:visited {
    background-color: #0891b2;
    color: #fff;
    border-radius: 8px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-block-button__link:active,
a.wp-block-button__link:hover,
a.wp-block-button__link:focus,
a.wp-block-button__link:active {
    background-color: #0e7490;
    color: #fff;
}

/* --- "Was Sie erhalten" Cards mit Emoji-Icons --- */
.was-sie-erhalten .wp-block-column {
    text-align: center;
    padding: 2.2rem 1.5rem;
    border-top: 3px solid #0891b2;
    background: #ffffff;
}

.was-sie-erhalten .wp-block-column p:first-child {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* --- Abwechselnde Sektions-Hintergründe --- */
.section-gray {
    background-color: #f1f5f9;
    padding: 3rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
details,
.wp-block-details {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.4rem;
    margin-bottom: 0.5rem;
    background: #ffffff;
    transition: box-shadow 0.2s ease;
}

details:hover,
.wp-block-details:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

details summary,
.wp-block-details summary {
    font-weight: 600;
    color: #1a202c;
    cursor: pointer;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: "+";
    font-size: 1.3rem;
    color: #9ca3af;
    font-weight: 400;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

details[open] summary::after {
    content: "−";
    color: #0891b2;
}

details p {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: #6b7280;
}

/* ========================================
   CTA-BANNER (dark section unten)
   ======================================== */
.wp-block-cover.cta-banner,
.wp-block-group.has-background.dark-cta {
    background-color: #1a202c !important;
    border-radius: 0;
    padding: 3rem 2rem;
    text-align: center;
}

.wp-block-cover.cta-banner h2,
.wp-block-group.dark-cta h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.wp-block-cover.cta-banner p,
.wp-block-group.dark-cta p {
    color: #9ca3af;
}

/* ========================================
   SEKTIONS-ABSTÄNDE
   ======================================== */
.entry-content > * {
    margin-bottom: 2.5rem;
}

.entry-content > h2 {
    margin-bottom: 0.5rem;
}

/* Subtext unter h2 zentriert */
.entry-content > h2 + p {
    text-align: center;
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ========================================
   SEPARATOR
   ======================================== */
.wp-block-separator,
hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    max-width: 100px;
    margin: 2.5rem auto;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer,
footer.site-footer {
    background-color: #1a202c !important;
    color: #9ca3af;
    padding: 2.5rem 0 1.5rem;
}

.site-footer a,
footer.site-footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover,
footer.site-footer a:hover {
    color: #0891b2;
}

/* GeneratePress-Branding ausblenden */
.site-footer .site-info .copyright + * {
    display: none;
}

/* Footer-Text kleiner */
.site-footer .site-info {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
        gap: 1rem;
    }

    .wp-block-column {
        padding: 1.5rem 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .wp-block-button__link,
    a.wp-block-button__link {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .entry-content > * {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .wp-block-column {
        padding: 1.2rem 1rem;
    }

    h1 {
        font-size: 1.7rem;
    }
}