/*
Theme Name: Anne Jahn Photography
Theme URI: https://annejahn-fotografie.de
Author: Anne Jahn
Author URI: https://annejahn-fotografie.de
Description: Ein modernes Fotografie-Portfolio Theme
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: annejahn
*/

/* ===========================
   CSS VARIABLES
=========================== */
:root {
    --lila: #F1E5F4;
    --blau: #004AAD;
    --blau-dark: #003380;
    --blau-light: rgba(0, 74, 173, 0.08);
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--lila);
    color: var(--blau);
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ===========================
   HEADER — Logo links, Nav rechtsbündig
=========================== */
header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 50px 22px;
    background-color: var(--lila);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 74, 173, 0.08);
}

.logo { flex-shrink: 0; }

.logo h1 {
    font-family: 'Shrikhand', cursive;
    font-size: 2.2rem;
    color: var(--blau);
    margin-bottom: 2px;
    line-height: 1.1;
}

.logo h1 a { color: var(--blau); }

.logo p {
    font-family: 'Shrikhand', cursive;
    font-size: 1rem;
    font-style: italic;
    color: var(--blau);
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 300;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blau);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Navigation — rechtsbündig */
nav ul {
    display: flex;
    list-style: none;
    gap: 36px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

nav a {
    color: var(--blau);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 3px;
    transition: opacity 0.25s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 0;
    left: 0;
    background: var(--blau);
    transition: width 0.3s ease;
}

nav a:hover::after { width: 100%; }
nav a:hover { opacity: 0.65; }

/* ===========================
   HERO SECTION
   Drei Bilder nebeneinander, off-grid versetzt
   Kein Overlay, kein Zoom, keine Abrundung
=========================== */
.hero-section {
    padding: 0 50px 70px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Link-Container */
.hero-link {
    display: block;
    position: relative;
    overflow: hidden;
}

/* Off-Grid Versatz: Bild 2 weiter unten */
.hero-link:nth-child(1) { margin-top: 0; }
.hero-link:nth-child(2) { margin-top: 100px; }
.hero-link:nth-child(3) { margin-top: 28px; }

/* Bilder: eckig, kein Hover-Effekt */
.hero-link img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.hero-link:nth-child(1) img { height: 520px; }
.hero-link:nth-child(2) img { height: 380px; }
.hero-link:nth-child(3) img { height: 460px; }

/* ===========================
   ABOUT SECTIONS
=========================== */
.about-section {
    padding: 90px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-section.reverse { direction: rtl; }
.about-section.reverse > * { direction: ltr; }

/* Eckig, kein Hover-Zoom */
.about-photo img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 30px;
}

.about-content h2 {
    font-family: 'Shrikhand', cursive;
    font-size: 2rem;
    margin-bottom: 24px;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    padding: 13px 36px;
    background-color: var(--blau);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.93rem;
    letter-spacing: 0.04em;
    transition: background-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 3px 14px rgba(0,74,173,0.2);
}

.cta-button:hover {
    background-color: var(--blau-dark);
    color: white;
    box-shadow: 0 5px 20px rgba(0,74,173,0.3);
}

/* ===========================
   FAQ SECTION
=========================== */
.faq-section {
    padding: 90px 50px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-section > h2 {
    font-family: 'Shrikhand', cursive;
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 50px;
    font-style: italic;
}

.faq-item {
    background: rgba(255,255,255,0.55);
    margin-bottom: 14px;
    border: 1px solid rgba(0,74,173,0.1);
}

.faq-question {
    padding: 20px 26px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s;
    user-select: none;
}

.faq-question:hover { background-color: rgba(0,74,173,0.04); }

.faq-toggle-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-left: 14px;
    position: relative;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: '';
    position: absolute;
    background: var(--blau);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-toggle-icon::before {
    width: 14px; height: 2px;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
}

.faq-toggle-icon::after {
    width: 2px; height: 14px;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
}

.faq-item.active .faq-toggle-icon::after {
    transform: translate(-50%,-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 26px;
}

.faq-answer.open {
    max-height: 600px;
    padding: 0 26px 22px;
}

.faq-answer p { line-height: 1.8; font-size: 1rem; }

/* ===========================
   CONTACT SECTION
=========================== */
.contact-section {
    padding: 90px 50px;
    max-width: 840px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 48px;
}

.contact-intro h2 {
    font-family: 'Shrikhand', cursive;
    font-size: 2.6rem;
    font-style: italic;
    margin-bottom: 16px;
}

.contact-intro .tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.55;
    font-weight: 600;
    margin-bottom: 14px;
}

.contact-intro p {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto;
}

.success-message {
    background: rgba(0,74,173,0.07);
    padding: 18px;
    margin-bottom: 28px;
    text-align: center;
    border: 1px solid rgba(0,74,173,0.15);
}

.contact-form {
    background: rgba(255,255,255,0.5);
    padding: 48px;
    border: 1px solid rgba(0,74,173,0.08);
}

.form-group { margin-bottom: 26px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(0,74,173,0.2);
    border-radius: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 0.97rem;
    background: rgba(255,255,255,0.85);
    color: var(--blau);
    transition: border-color 0.25s, box-shadow 0.25s;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blau);
    box-shadow: 0 0 0 3px rgba(0,74,173,0.09);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(0,74,173,0.3); }

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.form-group.field-error input,
.form-group.field-error textarea { border-color: #c0392b; }

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--blau);
    color: white;
    border: none;
    border-radius: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.submit-btn:hover { background-color: var(--blau-dark); }

/* ===========================
   GALLERY PAGES (taxonomy.php)
   Masonry, eckig, kein Hover
=========================== */
.gallery-section {
    padding: 70px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-section > h1 {
    font-family: 'Shrikhand', cursive;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    font-style: italic;
}

.gallery-grid {
    columns: 3;
    column-gap: 16px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   PAGE CONTENT
=========================== */
.page-content {
    padding: 80px 50px;
    max-width: 900px;
    margin: 0 auto;
}

.page-content h1 {
    font-family: 'Shrikhand', cursive;
    font-size: 2.8rem;
    margin-bottom: 36px;
    font-style: italic;
    text-align: center;
}

.page-content article { line-height: 1.9; font-size: 1.05rem; }

/* ===========================
   FOOTER — Referenz withwildhearts
=========================== */
footer {
    background-color: #f5f0e8;
    color: var(--blau);
    margin-top: 80px;
    padding: 55px 50px 28px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0,74,173,0.14);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-nav a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 1; }

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.footer-copy {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.footer-legal a,
.footer-social a {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-legal a:hover,
.footer-social a:hover { opacity: 1; }

.footer-statement {
    font-family: 'Shrikhand', cursive;
    font-style: italic;
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: right;
}

.footer-spam-note {
    font-size: 0.75rem;
    line-height: 1.6;
    opacity: 0.55;
    margin-top: 22px;
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   FADE-IN ANIMATION
=========================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
    .hero-section  { padding: 0 30px 50px; gap: 16px; }
    .about-section { gap: 50px; padding: 70px 30px; }
}

@media (max-width: 768px) {
    header {
        padding: 18px 20px 14px;
        flex-wrap: wrap;
        position: relative;
    }

    .logo h1 { font-size: 1.8rem; }
    .logo p  { font-size: 0.85rem; }
    .menu-toggle { display: block; }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    nav.open { max-height: 400px; padding-top: 14px; }

    nav ul {
        flex-direction: column;
        gap: 14px;
        justify-content: flex-start;
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 16px 16px 40px;
        gap: 10px;
    }

    .hero-link:nth-child(1),
    .hero-link:nth-child(2),
    .hero-link:nth-child(3) { margin-top: 0; }

    .hero-link:nth-child(1) img,
    .hero-link:nth-child(2) img,
    .hero-link:nth-child(3) img { height: 240px; }

    .about-section,
    .about-section.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 28px;
        padding: 50px 20px;
    }

    .about-photo img { height: 300px; }

    .faq-section,
    .contact-section,
    .gallery-section { padding: 50px 20px; }

    .contact-form { padding: 28px 20px; }

    .gallery-grid { columns: 2; column-gap: 10px; }
    .gallery-item { margin-bottom: 10px; }

    .footer-bottom { grid-template-columns: 1fr 1fr; }
    .footer-statement { text-align: left; grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .gallery-grid { columns: 1; }
    footer { padding: 36px 20px 20px; }
}
