/*
Theme Name: Family Chronicles
Theme URI: https://example.com/family-chronicles
Author: Antigravity
Author URI: https://google.com
Description: A premium custom theme for the Fuhr family, focusing on photography, life interests, and blogging.
Version: 1.0.1
*/

/**
 * Dateiname: style.css
 * Version: 1.0.1
 * Erstellt: 2026-02-02
 * Letzte Änderung: 2026-02-11, 15:45 Uhr
 * Zweck: Globales Stylesheet für das Family Theme. Enthält Variablen, Typography, Layout und Komponenten.
 */

:root {
    /* Brand Colors */
    --color-petrol: #0A3D4C;
    --color-ochre: #DFA575;
    --color-sage: #487578;
    --color-mist: #B8CFD4;
    --color-cream: #F0EBE0;

    /* Typography */
    --font-heading: 'Cormorant SC', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* UI */
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-soft: 0 4px 20px rgba(10, 61, 76, 0.05);
    --shadow-hover: 0 10px 30px rgba(10, 61, 76, 0.1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-petrol);
    background-color: var(--color-cream);
    line-height: 1.6;
    font-size: 16px;
    padding-top: 100px;
    /* Compensation for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-ochre);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--color-petrol);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid var(--color-petrol);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-petrol);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-ochre);
    color: var(--color-petrol);
}

.btn-outline:hover {
    background-color: var(--color-ochre);
    color: white;
}

/* Header & Nav */
.site-header {
    background-color: var(--color-petrol);
    padding: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    position: fixed;
    top: 0;
    left: 0;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 100px;
    max-width: none !important;
    padding: 0 4rem;
    width: 100%;
    gap: 2rem;
}

.site-branding {
    grid-column: 1;
    display: flex;
    align-items: center;
}

.main-navigation {
    grid-column: 2;
    justify-self: end;
    display: flex;
    align-items: center;
}

.search-toggle {
    grid-column: 3;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover img {
    transform: scale(1.05);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    margin: 0;
}

.main-navigation a {
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--color-ochre);
    padding: 10px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-ochre);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Hero Adjustments */
.hero-section {
    color: var(--color-cream);
    /* Parallax Effect */
    background-attachment: fixed !important;
    background-position: center center !important;
    background-size: cover !important;
}

.hero-title {
    color: var(--color-cream) !important;
}


/* Footer */
.site-footer {
    background-color: var(--color-petrol);
    color: var(--color-cream);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    text-align: center;
}

.site-footer a {
    color: var(--color-ochre);
}

/* Utilities */
.u-text-center {
    text-align: center;
}

.u-mb-sm {
    margin-bottom: var(--spacing-sm);
}

.u-mb-md {
    margin-bottom: var(--spacing-md);
}

.u-mb-lg {
    margin-bottom: var(--spacing-lg);
}

.u-text-gold {
    color: var(--color-ochre);
}

/* Entry Content Typography & Spacing */
.entry-content h2 {
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--color-petrol);
    line-height: 1.3;
}

.entry-content h3 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-sage);
}

.entry-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-ochre);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-petrol);
}

/* Tag Links */
.entry-tags a {
    color: var(--color-sage);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.entry-tags a:hover {
    color: var(--color-ochre);
}

/* Search Toggle Button in Header */
.search-toggle {
    background: none;
    border: none;
    border-left: 2px solid var(--color-ochre);
    color: var(--color-ochre);
    cursor: pointer;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-toggle:hover {
    color: var(--color-cream);
}

.search-toggle svg {
    width: 22px;
    height: 22px;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--color-ochre);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    z-index: 1001;
}

.hamburger-box {
    width: 28px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 28px;
    height: 3px;
    background-color: var(--color-ochre);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1.5px;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Hamburger Animation when Active */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-inner {
    transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-inner::before {
    transform: rotate(-90deg) translateX(-8px);
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-inner::after {
    transform: rotate(-90deg) translate(-8px, 0);
}

/* ==========================================================================
   Comments & Comment Form
   ========================================================================== */

/* Comment Form Title */
#comments .comment-reply-title {
    font-family: var(--font-heading);
    color: var(--color-petrol);
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Comment Form Fields - Vertical Layout */
.comment-form p {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: var(--color-petrol);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-mist);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-ochre);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit Button */
.comment-form input[type="submit"] {
    background-color: var(--color-petrol);
    color: var(--color-cream);
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: var(--font-body);
}

.comment-form input[type="submit"]:hover {
    background-color: var(--color-ochre);
}

/* Checkbox */
.comment-form input[type="checkbox"] {
    margin-right: 0.5rem;
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.comment-form .comment-form-cookies-consent label {
    font-weight: 400;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 6rem;
    }

    .header-inner {
        padding: 0 2rem;
    }

    .main-navigation ul {
        gap: var(--spacing-md);
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .entry-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 4rem;
    }

    body {
        font-size: 15px;
        padding-top: 70px;
    }

    /* Show hamburger button on mobile */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Header Layout - Switch to Flexbox */
    .header-inner {
        height: 70px;
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .site-branding {
        order: 1;
    }

    .main-navigation {
        order: 4;
        /* Move to overlay */
    }

    .mobile-menu-toggle {
        order: 2;
    }

    .search-toggle {
        order: 3;
        margin-left: 0;
        border-left: none;
        padding-left: 0.5rem;
    }

    .site-logo img {
        height: 60px;
    }

    /* Mobile Navigation Overlay */
    .main-navigation {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-petrol);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        padding: 2rem 0;
    }

    .main-navigation.mobile-active {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: center;
        display: flex;
        padding: 0;
        margin: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(223, 165, 117, 0.2);
    }

    .main-navigation a {
        display: block;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        min-height: 44px;
        /* Touch target */
    }

    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Hero Section - Disable parallax on mobile */
    .hero-section {
        background-attachment: scroll !important;
        min-height: 70vh;
    }

    /* Blog Post Title in Hero */
    .entry-title {
        font-size: 2rem !important;
    }

    .entry-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .entry-content h3 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
    }

    .entry-content p {
        font-size: 1rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    /* Blog Post Title */
    .entry-title {
        font-size: 1.75rem !important;
    }

    /* Hero Section */
    .hero-section {
        min-height: 60vh;
    }

    .entry-content blockquote {
        font-size: 1.1rem;
        padding-left: 1rem;
        margin: 1.5rem 0;
    }

    .site-logo img {
        height: 50px;
    }

    .header-inner {
        height: 60px;
        padding: 0 0.75rem;
    }

    body {
        padding-top: 60px;
    }

    .main-navigation {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .container {
        padding: 0 1rem;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles for Keyboard Navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--color-ochre);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-petrol);
    color: var(--color-cream);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-petrol: #000000;
        --color-cream: #FFFFFF;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-section {
        background-attachment: scroll !important;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .site-footer,
    .main-navigation,
    .btn {
        display: none;
    }

    body {
        padding-top: 0;
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
}

.about-hero,
.about-cta {
    display: none;
}

/* ==========================================================================
   About Page Styles
   ========================================================================== */

/* Spacing Utilities */
.section-spacing {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: white;
}

.bg-dark {
    background-color: var(--color-petrol);
}

.text-white {
    color: var(--color-cream);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* Title Decoration */
.title-decoration {
    position: relative;
    display: inline-block;
}

.title-decoration::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-ochre);
    margin: 1rem auto 0;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.value-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    background-color: var(--color-cream);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-ochre);
}

.value-title {
    font-size: 1.5rem;
    color: var(--color-petrol);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.value-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-sage);
}

/* Bio Section */
.bio-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Alternating layout for potential future bio items */
.bio-item:nth-child(even) {
    flex-direction: row-reverse;
}

.bio-image-wrapper {
    flex: 0 0 40%;
    position: relative;
}

.bio-image-placeholder {
    width: 100%;
    padding-bottom: 125%;
    /* 4:5 Aspect Ratio */
    background-color: var(--color-mist);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.bio-image {
    position: absolute;
    /* To be used when real image is there */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.bio-content {
    flex: 1;
}

.bio-name {
    font-size: 2.5rem;
    color: var(--color-petrol);
    margin-bottom: 0.5rem;
}

.bio-role {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-ochre);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

/* CTA Section */
.about-cta .btn-outline:hover {
    background-color: var(--color-ochre);
    color: var(--color-petrol);
    border-color: var(--color-ochre);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-spacing {
        padding: var(--spacing-lg) 0;
    }

    .bio-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .bio-item:nth-child(even) {
        flex-direction: column;
    }

    .bio-image-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .bio-name {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Pagination Styles */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    line-height: 1;
}

/* Default Link (White circle with border) */
.pagination a.page-numbers {
    background-color: white;
    color: var(--color-petrol);
    border: 1px solid var(--color-mist);
}

.pagination a.page-numbers:hover {
    background-color: var(--color-mist);
    color: var(--color-petrol);
    border-color: var(--color-mist);
}

/* Current Page (Solid Circle) */
.pagination .page-numbers.current {
    background-color: var(--color-petrol);
    color: white;
    border: 1px solid var(--color-petrol);
    cursor: default;
}

/* Prev/Next textual links (Pill shape) */
.pagination .next,
.pagination .prev {
    width: auto;
    padding: 0 1.25rem;
    border-radius: 20px;
}