/*
Theme Name: Royal Pacifica Retirement - Golden Years
Author: Royal Media Group
Description: Ein exklusives Portal für Ruhestandsplanung, Lifestyle и spannende Freizeitaktivitäten.
Version: 4.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary: #2c3e50; /* Midnight Blue */
    --secondary: #d4af37; /* Royal Gold */
    --accent: #7f8c8d; /* Professional Grey */
    --bg-main: #ffffff;
    --bg-soft: #f9f9f9;
    --white: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #576574;
    --border: rgba(44, 62, 80, 0.1);
    
    --container-width: 1140px;
    --content-width: 850px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --section-pad: clamp(5rem, 15vw, 12rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Lato', sans-serif;
    line-height: 1.8;
}

h1, h2, h3, h4, .logo, .btn-royal {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); color: var(--primary); margin-bottom: 2rem; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 3.5rem; text-align: center; }
h3 { font-size: 1.8rem; margin-bottom: 1.2rem; }

.italic { font-style: italic; font-family: 'Playfair Display', serif; color: var(--secondary); }

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

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

/* Axis 1: N-D Centered Header */
.site-header {
    background: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}
.logo {
    display: inline-flex !important;
    align-items: center;
    font-size: clamp(1.5rem, 5vw, 2.8rem) !important;
    font-weight: 900;
    color: var(--primary) !important;
    white-space: nowrap;
    text-decoration: none;
    min-width: 200px;
}
.logo span { color: var(--secondary) !important; margin-left: 5px; }

.main-nav ul { display: flex; list-style: none; gap: 4rem; justify-content: center; }
.main-nav a { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); }
.main-nav a:hover { color: var(--secondary); }

.nav-toggle { display: none; }

/* Axis 2: H-D Breakout / Asymmetric */
.hero-royal {
    position: relative;
    padding: 8rem 0;
    background: var(--bg-soft);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}
.hero-breakout-img {
    position: relative;
    z-index: 2;
}
.hero-breakout-img img {
    width: 120%;
    margin-left: -20%; /* Breaks out to the left */
    box-shadow: 40px 40px 0px var(--secondary);
}

.hero-content { position: relative; z-index: 3; }

.btn-royal {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 2rem;
    border: 1px solid var(--primary);
}
.btn-royal:hover { background: transparent; color: var(--primary); }

/* Axis 3: F-A Horizontal Strips */
.strip-section { padding: var(--section-pad) 0; }
.strip-section:nth-child(even) { background: var(--bg-soft); }
.strip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.strip-section:nth-child(even) .strip-grid { direction: rtl; }
.strip-section:nth-child(even) .strip-grid > * { direction: ltr; }

/* Axis 5: U-A Expert Quote */
.quote-section { 
    padding: var(--section-pad) 0; 
    text-align: center;
    background: var(--primary);
    color: var(--white);
}
.quote-wrap { max-width: 800px; margin: 0 auto; }
.quote-text { font-size: clamp(1.8rem, 4vw, 3rem); font-family: 'Playfair Display'; font-style: italic; line-height: 1.4; margin-bottom: 3rem; position: relative; }
.quote-text::before { content: '“'; position: absolute; top: -50px; left: 50%; transform: translateX(-50%); font-size: 8rem; color: var(--secondary); opacity: 0.3; }
.quote-author { font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em; color: var(--secondary); }

/* Axis 4: C-C Overlay Cards & 21: 3x3 Grid */
.posts-section { padding: var(--section-pad) 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

.post-card-royal { 
    position: relative;
    height: 450px;
    overflow: hidden;
    background: var(--primary);
}
.post-card-royal .thumb { height: 100%; }
.post-card-royal .thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.post-card-royal:hover .thumb img { transform: scale(1.1); opacity: 0.6; }

/* Rule 13: Readability Overlays */
.post-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.9) 10%, transparent 70%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    color: #ffffff;
}
.post-card-overlay .meta { color: var(--secondary); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 1rem; }
.post-card-overlay h3 { font-size: 1.6rem; margin-bottom: 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* Rule 8: Golden Standard Pagination */
.pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 6rem; }
.pagination .page-numbers { 
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border-bottom: 2px solid var(--border); font-weight: 700; transition: 0.3s;
}
.pagination .page-numbers.current { border-color: var(--secondary); color: var(--secondary); }
.pagination .page-numbers:hover:not(.current) { background: var(--bg-soft); border-color: var(--primary); }

/* Axis 6: FT-C Three-column Footer */
.site-footer { padding: 10rem 0 5rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6rem; }
.footer-logo { font-size: 2.2rem; font-weight: 900; margin-bottom: 2rem; }
.footer-logo span { color: var(--secondary); }
.footer-desc { color: var(--text-muted); font-size: 0.95rem; }

.footer-nav h4, .footer-contact h4 { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; margin-bottom: 2.5rem; color: var(--secondary); }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1.2rem; }
.footer-nav a { font-weight: 700; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--secondary); }

.footer-bottom { margin-top: 8rem; padding-top: 3rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 0.8rem; text-transform: uppercase; opacity: 0.5; }

/* Axis 7: V-C Thin Lines (Applied via border-bottom properties above) */

@media (max-width: 1024px) {
    .hero-grid, .strip-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-breakout-img img { width: 100%; margin-left: 0; }
    .posts-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .nav-toggle { 
        display: block; position: fixed; top: 2rem; right: 2rem; z-index: 10001;
        background: var(--primary); color: var(--white); padding: 1rem; border: none;
    }
    .main-nav { 
        position: fixed; inset: 0; background: var(--white); z-index: 10000;
        display: flex; align-items: center; justify-content: center;
        transform: translateY(-100%); transition: 0.5s ease; visibility: hidden;
    }
    body.menu-open .main-nav { transform: translateY(0); visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 3rem; }
    .main-nav a { font-size: 1.5rem; }
    
    .posts-grid { grid-template-columns: 1fr; }
    .hero-royal { padding-top: 12rem; }
}
