/*
 Theme Name: Kadence Child
 Template: kadence
 Version: 3.38 – Clean Layout (Optimized)
*/

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&display=swap');


/* ======================================================
   0) ROOT & GLOBAL BASE
====================================================== */

:root {
    --mint-bg: #F2FBFE;
    --mint-accent: #53D6D6;
    --mint-accent-light: #C8FAFF;
    --mint-accent-dark: #137E99;
    --mint-dark: #003A4F;

    --white: #ffffff;
    --gray-border: #dfe7e5;

    --text-main: #0D2330;
    --text-secondary: #444;

    --font-main: 'Source Sans 3', sans-serif;

    --space-s: 10px;
    --space-m: 20px;
    --space-l: 40px;

    --card-radius: 12px;
    --card-padding: 24px;

    --shadow-soft: 0 3px 10px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.08);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--mint-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* Kadence entfernt Hintergrundcontainer */
#inner-wrap, .wrap, .content-area, .content-container, .site-container,
#main, .site-main, .content-wrap, .entry, .entry-content-wrap, .entry-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}


/* ======================================================
   1) HEADINGS (Zentriert + Kapsel)
====================================================== */

h1, h2, h3, h4 {
    text-align: center !important;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: var(--space-m);
}

h1, h2 {
    display: inline-block;
    background: var(--mint-bg);
    padding: 8px 14px;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}

h1 { font-size: 2.3rem; margin-top: var(--space-s) !important; }
h2 { font-size: 1.8rem; margin-top: var(--space-s) !important; }
h3 { font-size: 1.3rem; margin-top: var(--space-m) !important; }


/* Gutenberg Variationen fixen */
body .entry-content h2,
body h2.wp-block-heading,
body .wp-block-group h2,
body .wp-block h2 {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}


/* Intro Text */
.intro-text {
    max-width: 760px;
    margin: 0 auto var(--space-m);
    color: var(--text-secondary);
    text-align: center;
}


/* ======================================================
   2) SECTION SPACING 
====================================================== */

section {
    padding: var(--space-m) var(--space-m); 
    max-width: 1100px;
    margin: 0 auto;
    background: var(--mint-bg);
}

/* Keine doppelten Abstände */
section + section {
    margin-top: 0 !important;
}


/* ======================================================
   3) HERO SECTION
====================================================== */

.hero-section {
    background: var(--white) !important;
    border: 1px solid var(--gray-border);
    border-radius: var(--card-radius);
    padding: 40px 24px;
    text-align: center;
}


/* ======================================================
   4) GRIDS (Services, Projekte, Referenzen)
====================================================== */

.service-grid,
.project-grid,
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-m);
}

.service-box,
.project-item,
.reference-card {
    background: var(--white);
    padding: var(--card-padding);
    border-radius: var(--card-radius);
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

.service-box:hover,
.project-item:hover,
.reference-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}


/* ======================================================
   5) CARD WIDTHS
====================================================== */

.card-half,
.card-60percent,
.list-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: var(--shadow-soft);
    margin: 0 auto var(--space-m);
}

.card-half      { max-width: 520px; width: 60%; }
.card-60percent { max-width: 700px; width: 65%; }

@media (max-width: 768px) {
    .card-half, .card-60percent { width: 100%; max-width: 100%; }
}


/* ======================================================
   6) CONTACT CARD (dezente CTA)
====================================================== */

.contact-card {
    max-width: 700px;
    margin: 40px auto;
    padding: 28px 24px;
    background: #f5fbfa;
    border: 1px solid #d4e8e5;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.25s ease;
}

.contact-card:hover {
    box-shadow: var(--shadow-hover);
}

.contact-text {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-main);
    text-decoration: none !important;
}

.contact-button {
    font-size: 1.2rem;
    background: #e8f5f3;
    padding: 10px 18px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 12px;
    color: var(--text-main) !important;
    transition: background 0.2s ease;
}

.contact-button:hover {
    background: #dff1ed;
}


/* ======================================================
   7) ABOUT PAGE
====================================================== */

.about-intro {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.about-text p { margin-bottom: 16px; }

.about-badge {
    display: inline-block;
    padding: 14px 22px;
    border: 2px solid var(--mint-accent);
    border-radius: 12px;
    color: var(--mint-accent);
    font-weight: 600;
    margin-top: 12px;
}

.about-photo img {
    width: 240px;
    border-radius: var(--card-radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .about-intro { flex-direction: column-reverse; text-align: center; }
    .about-photo img { width: 200px; }
}


/* ======================================================
   8) CONTACT GRID (Kontakt-Seite)
====================================================== */

.contact-grid {
    display: flex;
    gap: 22px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-box {
    width: 260px;
    background: var(--white);
    padding: 26px 22px;
    border-radius: 12px;
    border: 1px solid var(--gray-border);
    text-align: center;
    box-shadow: var(--shadow-soft);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 48px;
    margin: 0 auto 12px;
}

.contact-box p {
    color: var(--text-secondary);
    margin: 0;
}


/* ======================================================
   9) FOOTER + SPACING FIX
====================================================== */

.site-footer {
    text-align: center;
    padding: 25px 0 !important;
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 40px !important;
}

.footer-info  { line-height: 1.4; }
.footer-tagline { margin-top: 10px; font-weight: 600; }


/* Entfernt ALLE WP/Kadence-Überabstände */
.entry, .entry-content, .content-area, .content-wrap,
.site-main, #inner-wrap, .site-container,
.wp-block-group, .wp-block-columns, .wp-block {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Gutenberg "Block Gap" kill */
:root {
    --wp--style--block-gap: 0 !important;
}


.page-header {
    text-align: center !important;
}

/* ======================================================
   MOBILE – Cards immer volle Breite
====================================================== */
@media (max-width: 768px) {

    /* Hauptkarten */
    .card-half,
    .card-60percent,
    .list-card,
    .service-box,
    .project-item,
    .reference-card,
    .contact-card,
    .contact-box,
    .hero-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Intro-Bereiche */
    section {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    h2, h3 {
        word-break: normal;
        overflow-wrap: normal;
        hyphens: manual;
    }
    
}

/* === CONTACT CARD CLICK FIX ======================= */
.contact-card {
    position: relative;
}

.contact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* Klick macht ganze Card zum Link */
.contact-card a {
    position: absolute;
    inset: 0;
    z-index: 10;
}
/* === ACTIVE MENU ITEM — VISIBILITÄT ======================= */

.header-menu-container .current-menu-item > a,
.header-menu-container .current_page_item > a,
.header-menu-container .current-menu-ancestor > a {
    background: rgba(0, 175, 175, 0.12);
    color: var(--mint-dark) !important;
    border-radius: 8px;
    padding: 6px 10px;
}
.lang-switcher {
  text-align: center;
  margin: 10px 0;
  font-size: 16px;
}

.lang-switcher a {
  padding: 0 6px;
  text-decoration: none; /* Grundregel: Kein Unterstrich */
}

.lang-switcher a:hover {
  text-decoration: underline; /* Desktop Hover */
}

/* Mobile — KEINE Unterstreichung */
@media (max-width: 768px) {
  .lang-switcher {
    font-size: 18px;
  }
  .lang-switcher a {
    padding: 0 10px;
    text-decoration: none !important;  /* Unterstrich auf Mobile komplett verhindern */
  }
  .lang-switcher a:hover {
    text-decoration: none !important;
  }
}

/* ============== CONTACT BOXES (Kontaktseite) ============== */

.contact-boxes {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0 40px;
}

.contact-item {
    text-align: center;
    width: 260px;
    background: #ffffff;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #dfe7e5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform .2s, box-shadow .2s;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.contact-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-item img {
    display: block;
    margin: 0 auto 10px auto;
    height: 48px;
}

/* Überschriften der Boxen */
.contact-item h3 {
    margin: 10px 0 5px;
}

/* Text inside the box */
.contact-item p {
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-item {
        width: 100%;
        max-width: 360px;
    }
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 20px auto;
    max-width: 900px;
}

.logo-row img {
    width: 120px;
    height: auto;
}

.logo-row .logo-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .logo-row {
        flex-direction: column;
        text-align: center;
    }
}
:root {
  --text-main: #0D2330;
  --text-secondary: #444;
}
