/*
 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;
}
/* CTA-Banner Ausnahme */
.wp-block-cover.cta-banner {
    min-height: 0 !important;
    padding: 4rem 2rem !important;
}

.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;
    }
}

@media (max-width: 768px) {
  /* Pakete-Grid */
  div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Report-Preview Karten: gleiche Höhe */
div[style*="grid-template-columns:1fr 1fr"] > div {
    display: flex;
    flex-direction: column;
}

div[style*="grid-template-columns:1fr 1fr"] > div > div:last-child {
    flex: 1;
    display: flex;
    align-items: center;
}

/* ========================================
   CONTACT FORM 7 – PeakGuard Styling
   ======================================== */

.wpcf7-form p {
    margin-bottom: 1.2rem;
}

.wpcf7-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1a202c;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.wpcf7-form input[type="submit"] {
    background-color: #0891b2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #0e7490;
}

/* Checkbox */
.wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #0891b2;
    flex-shrink: 0;
}

/* Fehlermeldungen */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}

.wpcf7-form.invalid .wpcf7-response-output {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.wpcf7-form.sent .wpcf7-response-output {
    border-color: #059669;
    color: #059669;
    background: #f0fdf4;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* Select Pfeil */
.wpcf7-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* HTML-Blöcke mit inline SVG-Listen: kein ::before */
.entry-content ul li:has(svg) {
    padding-left: 0;
}

.entry-content ul li:has(svg)::before {
    display: none;
}

/* Sektionsabstände reduzieren */
.entry-content > .wp-block-group,
.entry-content > .wp-block-html,
.entry-content > figure,
.entry-content > .wp-block-columns {
    margin-bottom: 1.5rem !important;
}

/* GeneratePress Sektions-Padding entfernen */
.site-main .entry-content {
    padding-top: 0 !important;
}

.wp-block-group {
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Leerabsätze die Gutenberg automatisch einfügt */
.entry-content p:empty,
.entry-content br {
    display: none !important;
}

.wp-block-group,
.wp-block-group__inner-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
}

/* ========== FOOTER: FARBE + LÜCKE FIX ========== */
.site-footer,
.footer-widgets,
.footer-widgets-container,
.site-info,
.inside-site-info {
    background-color: #0F1729 !important;
}

.site-content,
#primary,
.content-area,
.inside-article,
article,
.entry-content,
.site-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.site-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.entry-content > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#page {
    padding-bottom: 0 !important;
}
.wp-block-group.cta-banner {
    padding: 2.5rem 2rem !important;
}