/*
 Theme Name:   Looksmaxxer Child
 Description:  Qoves-Style Minimalist Theme for Looksmaxxer
 Template:     astra
 Version:      1.1.0
*/

/* ==========================================================================
   1. BASE & VARIABLES (Klinisch, harter Kontrast)
   ========================================================================== */
:root {
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-text-light: #777777;
    --color-border: #000000; /* Härtere Ränder für den Qoves-Look */
    --color-accent: #000000;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --container-width: 1200px;
    --transition-speed: 0.2s;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* 
   STRUKTUR-FIX: Das hier "zerstört" das fehlerhafte Layout des Parent-Themes 
   und zwingt Header, Main und Footer untereinander.
*/
body, html {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    font-family: var(--font-primary) !important;
    background-color: var(--color-bg) !important;
    color: var(--color-text) !important;
    -webkit-font-smoothing: antialiased;
}

.site-header, 
.site-main, 
.site-footer {
    width: 100% !important;
    display: block !important;
    flex: none;
}

.site-main {
    flex-grow: 1 !important; /* Nimmt den restlichen Platz ein */
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity var(--transition-speed) ease;
}

a:hover {
    opacity: 0.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}


/* ==========================================================================
   LAYOUT-RESET: Überschreibt die versteckten Container des Parent-Themes
   ========================================================================== */
#page, 
.site, 
.hfeed,
.site-content, 
#content, 
#primary {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Zwingt den Footer, sich unten über die volle Breite zu legen und alte "Sidebar"-Regeln zu ignorieren */
.site-footer {
    clear: both !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
    float: none !important;
    grid-column: 1 / -1 !important; /* Falls das Parent-Theme CSS Grid nutzt */
}

/* Zwingt den Main-Bereich, ebenfalls die volle Breite zu nehmen */
.site-main {
    width: 100% !important;
    display: block !important;
    float: none !important;
}



/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    letter-spacing: -0.03em; /* Strengerer, dichterer Look */
    text-transform: uppercase; /* Qoves arbeitet viel mit Versalien */
}

/* ==========================================================================
   3. BUTTONS (Scharf & Minimalistisch)
   ========================================================================== */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-radius: 0; /* Keine abgerundeten Ecken! */
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-bg);
    color: var(--color-accent);
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.site-header {
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background-color: var(--color-bg);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu li a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 140px 0 100px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
    text-transform: none;
}

/* ==========================================================================
   6. POST GRID (Wissenschaftlicher Look)
   ========================================================================== */
.latest-posts-section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.section-header {
    margin-bottom: 64px;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0; /* Keine Lücke, wir nutzen Border-Collapse Logik */
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
}

.post-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg);
    transition: background-color var(--transition-speed) ease;
}

.post-card:hover {
    background-color: #f9f9f9;
}

.post-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    margin-bottom: 12px;
    display: block;
    font-weight: 700;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.post-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
    flex-grow: 1;
}

.read-more {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--color-accent);
}

.read-more:hover {
    opacity: 0.5;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 80px 0 40px;
    background-color: var(--color-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-logo {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    font-weight: 800;
}

.footer-description {
    color: var(--color-text-light);
    max-width: 400px;
    font-size: 0.9rem;
}

.footer-links h3 {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.site-info {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   8. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-description { margin: 0 auto; }
}

/* ==========================================================================
   ULTIMATIVER LAYOUT- UND FOOTER-RESET
   ========================================================================== */

/* 1. Bricht Grid/Flexbox auf den höchsten Ebenen auf */
body, 
html, 
.wp-site-blocks, 
#page, 
#content, 
.site {
    display: block !important; 
    height: auto !important;
    position: relative !important;
    width: 100% !important;
}

/* 2. Zwingt den Hauptbereich, den Platz einzunehmen */
.site-main {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    float: none !important;
    min-height: 60vh !important; 
}

/* 3. Reißt den Footer aus allen Verankerungen und zwingt ihn nach unten */
.site-footer {
    /* Bricht absolute Positionierungen (z.B. rechts oben) auf */
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    
    /* Bricht Grid- und Flex-Zuweisungen auf */
    display: block !important;
    grid-area: auto !important;
    grid-column: 1 / -1 !important;
    order: 999 !important; /* Zwingt es bei hartnäckigen Flexboxen ans Ende */
    
    /* Zwingt das Element in eine neue, eigene Zeile */
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    float: none !important;
    
    /* Stellt sicher, dass er sichtbar über anderen Rest-Elementen liegt */
    z-index: 9999 !important;
}


/* ==========================================================================
   SINGLE POST (Lese-Erlebnis im wissenschaftlichen Stil)
   ========================================================================== */

/* Begrenzt die Textbreite für optimale Lesegeschwindigkeit */
.reading-container {
    max-width: 740px; 
    margin: 0 auto;
}

.single-article {
    padding: 80px 0 120px;
    background-color: var(--color-bg);
}

/* Header des Beitrags */
.entry-header {
    text-align: center;
    margin-bottom: 56px;
}

.entry-title {
    font-size: 3rem;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.entry-meta {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.entry-meta span:not(:last-child)::after {
    content: " • ";
    margin: 0 12px;
    color: var(--color-border);
}

/* Beitragsbild */
.entry-thumbnail {
    margin-bottom: 64px;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border: 1px solid var(--color-border); /* Gibt dem Bild einen klinischen Rahmen */
}

/* Der Text selbst */
.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #222222;
}

.entry-content h2 {
    font-size: 1.75rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}

.entry-content h3 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.75rem;
}

/* Wissenschaftliche Zitate oder Hervorhebungen */
.entry-content blockquote {
    border-left: 2px solid var(--color-accent);
    margin: 2.5rem 0;
    padding: 1.5rem 2.5rem;
    font-size: 1.35rem;
    line-height: 1.6;
    font-style: normal;
    font-weight: 300;
    color: var(--color-accent);
    background-color: #f9f9f9;
}

/* Bilder im Text */
.entry-content img {
    margin: 2rem 0;
    border: 1px solid #e5e5e5;
}

/* Mobile Anpassungen für den Artikel */
@media (max-width: 768px) {
    .entry-title { font-size: 2.25rem; }
    .entry-content { font-size: 1.05rem; }
    .single-article { padding: 40px 0 80px; }
}

/* ==========================================================================
   7. PAGINIERUNG (Archiv & Blog)
   ========================================================================== */
.pagination-container {
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 60px;
}

.pagination-container .nav-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

/* Die einzelnen Zahlen-Boxen */
.pagination-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    background-color: transparent;
    border: 1px solid transparent;
    transition: all var(--transition-speed) ease;
}

/* Hover-Effekt: Zeigt einen feinen klinischen Rahmen */
.pagination-container .page-numbers:hover:not(.current) {
    border-color: var(--color-border);
}

/* Aktive Seite: Harter, schwarzer Kasten */
.pagination-container .page-numbers.current {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

/* Zurück / Weiter Buttons */
.pagination-container .prev,
.pagination-container .next {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    padding: 0 20px;
}




/* ==========================
   LOOKSMAXX TREE DESIGN
========================== */


.looksmaxx-tree-section {
    padding: 80px 0;
}


.tree-header {
    text-align:center;
    margin-bottom:50px;
}


.tree-header h2 {
    font-size:42px;
    margin-bottom:20px;
}


#current-path {

    display:inline-block;
    padding:12px 25px;
    border:1px solid #111;
    font-size:14px;
    letter-spacing:.15em;
    text-transform:uppercase;

}



/* ==========================
   TREE STRUCTURE
========================== */


#looksmaxx-tree {

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:25px;

}



.tree-node {

    position:relative;
    cursor:pointer;

}



.node-title {


    background:#fff;
    border:2px solid #111;

    padding:18px 35px;

    min-width:220px;

    text-align:center;

    font-weight:700;

    transition:.25s ease;

}



.node-title:hover {

    background:#111;
    color:#fff;

}



.main-node > .node-title {

    background:#111;
    color:white;

    font-size:20px;

}



.children {


    display:none;

    margin-top:25px;

    padding-left:40px;

    position:relative;

}



.tree-node.open > .children {

    display:flex;

    flex-direction:column;

    gap:20px;

}



/* Linien */

.children:before {

    content:"";

    position:absolute;

    left:15px;

    top:0;

    width:2px;

    height:100%;

    background:#111;

}



.child-node,
.leaf-node {

    position:relative;

}



.child-node:before,
.leaf-node:before {


    content:"";

    position:absolute;

    left:-25px;

    top:50%;

    width:25px;

    height:2px;

    background:#111;


}



/* aktive Auswahl */


.tree-node.active > .node-title {


    background:#111;

    color:#fff;

    transform:scale(1.05);

}



/* ==========================
   RESULT BOX
========================== */


#analysis-result {

    margin-top:80px;

    border-top:1px solid #ddd;

    padding-top:50px;

}



#analysis-result h2 {

    font-size:32px;

}



#recommendation {


    margin-top:25px;

    padding:30px;

    border:1px solid #ddd;

    line-height:1.7;

}



/* Artikel */

.article-card {


    border:1px solid #ddd;

    padding:25px;

    margin-top:20px;

}



.article-card h3 {

    margin-top:0;

}



.article-card a {

    color:#111;

    text-decoration:underline;

}



/* ==========================
 MOBILE
========================== */


@media(max-width:768px){


.tree-header h2 {

    font-size:30px;

}


.node-title {

    min-width:160px;

    padding:15px;

}


.children {

    padding-left:20px;

}


.child-node:before,
.leaf-node:before {

    left:-15px;

    width:15px;

}


}
