/*
Theme Name: Evil Duck
Theme URI: https://www.evilduck.de
Author: Evil Duck
Author URI: https://www.evilduck.de
Description: Custom WordPress Theme für Evil Duck – dunkles Design mit cremefarbenen Akzenten. Beinhaltet Custom Post Type für Einzelarbeiten mit Anfrage-Funktion.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evilduck
Tags: dark, custom-logo, custom-menu, featured-images, portfolio
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --ed-bg-primary: #1a1a1a;
    --ed-bg-secondary: #222222;
    --ed-bg-tertiary: #2a2a2a;
    --ed-bg-card: #2e2e2e;
    --ed-cream: #f5e6c8;
    --ed-cream-light: #faf3e6;
    --ed-cream-muted: rgba(245, 230, 200, 0.6);
    --ed-accent: #c9a95f;
    --ed-accent-hover: #ddbf78;
    --ed-text: #e8e0d4;
    --ed-text-muted: #a89e90;
    --ed-border: rgba(245, 230, 200, 0.12);
    --ed-border-hover: rgba(245, 230, 200, 0.25);
    --ed-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --ed-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.6);
    --ed-radius: 4px;
    --ed-radius-lg: 8px;
    --ed-transition: 0.3s ease;
    --ed-font-body: 'Crimson Text', 'Georgia', serif;
    --ed-font-heading: 'Cinzel', 'Palatino', serif;
    --ed-font-ui: 'Raleway', 'Helvetica Neue', sans-serif;
    --ed-max-width: 1200px;
    --ed-gap: 2rem;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ed-font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ed-text);
    background-color: var(--ed-bg-primary);
}

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

a:hover,
a:focus {
    color: var(--ed-accent-hover);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ed-font-heading);
    color: var(--ed-cream);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.03em;
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }

p {
    margin-bottom: 1.2rem;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.ed-section {
    padding: 4rem 0;
}

.ed-section--alt {
    background-color: var(--ed-bg-secondary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.ed-header {
    background-color: var(--ed-bg-secondary);
    border-bottom: 1px solid var(--ed-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ed-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--ed-gap);
    max-width: var(--ed-max-width);
    margin: 0 auto;
}

.ed-header__logo img {
    height: 60px;
    width: auto;
}

.ed-header__logo:hover {
    opacity: 0.85;
}

/* Desktop Navigation */
.ed-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.ed-nav__list {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
}

.ed-nav__item a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-family: var(--ed-font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ed-text-muted);
    border-bottom: 2px solid transparent;
    transition: all var(--ed-transition);
}

.ed-nav__item a:hover,
.ed-nav__item.current-menu-item a,
.ed-nav__item.current_page_item a {
    color: var(--ed-cream);
    border-bottom-color: var(--ed-accent);
}

/* Hamburger / Mobile Toggle */
.ed-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.ed-nav-toggle__bar {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--ed-cream);
    margin: 5px 0;
    transition: all var(--ed-transition);
    border-radius: 2px;
}

/* ==========================================================================
   Hero / Willkommen (Startseite)
   ========================================================================== */

.ed-hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(201, 169, 95, 0.08) 0%, transparent 60%),
        var(--ed-bg-primary);
}

.ed-hero__title {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.ed-hero__subtitle {
    font-family: var(--ed-font-body);
    font-size: 1.15rem;
    color: var(--ed-text-muted);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.ed-hero__cta {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    font-family: var(--ed-font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-bg-primary);
    background-color: var(--ed-accent);
    border: none;
    border-radius: var(--ed-radius);
    cursor: pointer;
    transition: all var(--ed-transition);
}

.ed-hero__cta:hover {
    background-color: var(--ed-accent-hover);
    color: var(--ed-bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201, 169, 95, 0.3);
}

/* ==========================================================================
   Einzelarbeiten Grid (Archive)
   ========================================================================== */

.ed-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--ed-gap);
}

.ed-portfolio-card {
    background-color: var(--ed-bg-card);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-lg);
    overflow: hidden;
    transition: all var(--ed-transition);
}

.ed-portfolio-card:hover {
    border-color: var(--ed-border-hover);
    box-shadow: var(--ed-shadow-hover);
    transform: translateY(-4px);
}

.ed-portfolio-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--ed-bg-tertiary);
}

.ed-portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ed-portfolio-card:hover .ed-portfolio-card__image img {
    transform: scale(1.05);
}

.ed-portfolio-card__body {
    padding: 1.4rem 1.6rem;
}

.ed-portfolio-card__title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.ed-portfolio-card__title a {
    color: var(--ed-cream);
}

.ed-portfolio-card__title a:hover {
    color: var(--ed-accent-hover);
}

.ed-portfolio-card__excerpt {
    font-size: 0.95rem;
    color: var(--ed-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ed-portfolio-card__category {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    font-family: var(--ed-font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ed-accent);
    border: 1px solid var(--ed-accent);
    border-radius: 2px;
    transition: all var(--ed-transition);
}

.ed-portfolio-card__category:hover {
    background-color: var(--ed-accent);
    color: var(--ed-bg-primary);
}

/* Category Filter Bar */
.ed-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ed-border);
}

.ed-filter-bar a {
    padding: 0.4rem 1rem;
    font-family: var(--ed-font-ui);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ed-text-muted);
    border: 1px solid var(--ed-border);
    border-radius: 2px;
    transition: all var(--ed-transition);
}

.ed-filter-bar a:hover,
.ed-filter-bar a.active {
    color: var(--ed-cream);
    border-color: var(--ed-accent);
    background-color: rgba(201, 169, 95, 0.1);
}

/* ==========================================================================
   Single Einzelarbeit
   ========================================================================== */

.ed-single-werk {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.ed-single-werk__gallery {
    display: grid;
    gap: 0.8rem;
}

.ed-single-werk__gallery img {
    width: 100%;
    border-radius: var(--ed-radius);
    border: 1px solid var(--ed-border);
}

.ed-single-werk__info {
    position: sticky;
    top: 100px;
}

.ed-single-werk__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.ed-single-werk__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ed-single-werk__description {
    margin-bottom: 2rem;
    color: var(--ed-text);
    line-height: 1.8;
}

/* Anfrage Button */
.ed-btn-anfrage {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-family: var(--ed-font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ed-bg-primary);
    background-color: var(--ed-accent);
    border: none;
    border-radius: var(--ed-radius);
    cursor: pointer;
    transition: all var(--ed-transition);
    text-decoration: none;
}

.ed-btn-anfrage:hover {
    background-color: var(--ed-accent-hover);
    color: var(--ed-bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201, 169, 95, 0.3);
}

.ed-btn-anfrage svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   Blog
   ========================================================================== */

.ed-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--ed-gap);
}

.ed-blog-card {
    background-color: var(--ed-bg-card);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-lg);
    overflow: hidden;
    transition: all var(--ed-transition);
}

.ed-blog-card:hover {
    border-color: var(--ed-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--ed-shadow);
}

.ed-blog-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--ed-bg-tertiary);
}

.ed-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ed-blog-card__body {
    padding: 1.4rem 1.6rem;
}

.ed-blog-card__date {
    display: block;
    font-family: var(--ed-font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ed-accent);
    margin-bottom: 0.5rem;
}

.ed-blog-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.ed-blog-card__title a {
    color: var(--ed-cream);
}

.ed-blog-card__title a:hover {
    color: var(--ed-accent-hover);
}

.ed-blog-card__excerpt {
    font-size: 0.95rem;
    color: var(--ed-text-muted);
    line-height: 1.6;
}

/* Single Blog Post */
.ed-post-content {
    max-width: 760px;
    margin: 0 auto;
}

.ed-post-content h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.ed-post-meta {
    text-align: center;
    font-family: var(--ed-font-ui);
    font-size: 0.8rem;
    color: var(--ed-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--ed-border);
}

.ed-post-content img {
    border-radius: var(--ed-radius);
    margin: 1.5rem 0;
}

.ed-post-content blockquote {
    border-left: 3px solid var(--ed-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--ed-cream-muted);
    background-color: var(--ed-bg-secondary);
    border-radius: 0 var(--ed-radius) var(--ed-radius) 0;
}

/* ==========================================================================
   Instagram Section
   ========================================================================== */

.ed-instagram {
    text-align: center;
}

.ed-instagram__title {
    margin-bottom: 0.4rem;
}

.ed-instagram__subtitle {
    color: var(--ed-text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.ed-instagram__placeholder {
    padding: 3rem;
    border: 2px dashed var(--ed-border);
    border-radius: var(--ed-radius-lg);
    color: var(--ed-text-muted);
    font-family: var(--ed-font-ui);
    font-size: 0.85rem;
}

/* ==========================================================================
   Page Content
   ========================================================================== */

.ed-page-header {
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--ed-border);
    margin-bottom: 3rem;
}

.ed-page-content {
    max-width: 760px;
    margin: 0 auto;
}

/* Contact Form (CF7 Styling) */
.ed-page-content .wpcf7 input[type="text"],
.ed-page-content .wpcf7 input[type="email"],
.ed-page-content .wpcf7 textarea,
.ed-page-content .wpcf7 select {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--ed-font-body);
    font-size: 1rem;
    color: var(--ed-text);
    background-color: var(--ed-bg-tertiary);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    transition: border-color var(--ed-transition);
    margin-bottom: 1rem;
}

.ed-page-content .wpcf7 input:focus,
.ed-page-content .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--ed-accent);
}

.ed-page-content .wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    font-family: var(--ed-font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-bg-primary);
    background-color: var(--ed-accent);
    border: none;
    border-radius: var(--ed-radius);
    cursor: pointer;
    transition: all var(--ed-transition);
}

.ed-page-content .wpcf7 input[type="submit"]:hover {
    background-color: var(--ed-accent-hover);
}

.ed-page-content .wpcf7 label {
    display: block;
    font-family: var(--ed-font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ed-cream-muted);
    margin-bottom: 0.3rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ed-footer {
    background-color: var(--ed-bg-secondary);
    border-top: 1px solid var(--ed-border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.ed-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.ed-footer__brand p {
    color: var(--ed-text-muted);
    font-size: 0.9rem;
    max-width: 360px;
}

.ed-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.ed-footer__links a {
    font-family: var(--ed-font-ui);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ed-text-muted);
}

.ed-footer__links a:hover {
    color: var(--ed-cream);
}

.ed-footer__copy {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--ed-border);
    font-family: var(--ed-font-ui);
    font-size: 0.75rem;
    color: var(--ed-text-muted);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.ed-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.ed-pagination a,
.ed-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: var(--ed-font-ui);
    font-size: 0.85rem;
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    color: var(--ed-text-muted);
    transition: all var(--ed-transition);
}

.ed-pagination a:hover {
    border-color: var(--ed-accent);
    color: var(--ed-cream);
}

.ed-pagination .current {
    background-color: var(--ed-accent);
    border-color: var(--ed-accent);
    color: var(--ed-bg-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .ed-single-werk {
        grid-template-columns: 1fr;
    }

    .ed-single-werk__info {
        position: static;
    }

    .ed-footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ed-footer__links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --ed-gap: 1.2rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

    .ed-hero__title {
        font-size: 2rem;
    }

    /* Mobile Nav */
    .ed-nav-toggle {
        display: block;
    }

    .ed-nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background-color: var(--ed-bg-secondary);
        border-left: 1px solid var(--ed-border);
        padding: 5rem 2rem 2rem;
        transition: right var(--ed-transition);
        z-index: 105;
    }

    .ed-nav__list.is-open {
        right: 0;
    }

    .ed-nav__item a {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--ed-border);
    }

    .ed-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 104;
    }

    .ed-nav-overlay.is-visible {
        display: block;
    }

    .ed-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .ed-blog-grid {
        grid-template-columns: 1fr;
    }
}
