/*
Theme Name: Landingpage by Dela
Theme URI: https://sebastiandela.de/theme
Author: Sebastian Dela
Author URI: https://sebastiandela.de
Description: Premium-Landingpage-Theme: Inhalte über den Customizer und Custom Post Types verwaltbar.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: DelaThema
*/

/* ========================================================
   1. RESET & BASIS
   ======================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
    --green:        #1f5f33;
    --green-light:  #2d8a3e;
    --green-dark:   #143f22;
    --dark:         #0d0d0d;
    --dark-soft:    #1a1a1a;
    --off-white:    #fafaf8;
    --gray-bg:      #f4f4f1;
    --gray-line:    #e6e6e2;
    --muted:        #6b6b6b;
    --footer:       #0d0d0d;

    --font-display: 'Oswald', 'Bebas Neue', 'Arial Narrow', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
    --radius: 4px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--dark);
    line-height: 1.65;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--green);
    text-decoration: none;
    transition: color .25s var(--ease);
}
a:hover { color: var(--green-dark); }

::selection { background: var(--green); color: #fff; }

/* ========================================================
   2. TYPOGRAFIE
   ======================================================== */
h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    margin: 0 0 0.4em;
    color: var(--dark);
}

h1, .h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 700; }
h2, .h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
}
.eyebrow::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--green);
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ========================================================
   3. LAYOUT
   ======================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

section { position: relative; }

/* ========================================================
   4. HEADER
   ======================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--gray-line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}
.site-logo img { max-height: 64px; width: auto; }
.site-logo a { display: inline-block; }
.site-title-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
    align-items: center;
}
.main-nav a {
    position: relative;
    color: var(--dark);
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.12em;
    padding: 4px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width .3s var(--ease);
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after { width: 100%; }
.main-nav a:hover { color: var(--green); }

/* Burger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--dark);
    margin: 6px 0;
    transition: .3s var(--ease);
    transform-origin: center;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========================================================
   5. HERO
   ======================================================== */
.hero-section {
    padding: 100px 0 120px;
    overflow: hidden;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(31,95,51,0.05) 0%, transparent 70%);
    z-index: -1;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    align-items: center;
}
.hero-title { margin-bottom: 18px; }
.hero-title .accent {
    color: var(--green);
    display: block;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    color: var(--muted);
    max-width: 50ch;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: grid;
    gap: 18px;
}
.hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    font-size: 1.02rem;
    color: var(--dark-soft);
}
.hero-features .num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--green);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    margin-top: 1px;
}
.hero-features .text { padding-top: 4px; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--green);
    color: #fff !important;
    padding: 18px 36px;
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: all .3s var(--ease);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(31,95,51,0.5);
}
.btn-primary .arrow { transition: transform .3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    padding: 18px 16px;
    border-bottom: 2px solid transparent;
    transition: border-color .3s var(--ease);
}
.btn-ghost:hover { border-bottom-color: var(--green); color: var(--green); }

/* Hero Image */
.hero-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 580px;
    margin-left: auto;
}
.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-bg);
    position: relative;
    z-index: 2;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-image-wrap::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--green);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.4;
}

/* ========================================================
   6. STATS-LEISTE
   ======================================================== */
.stats-bar {
    background: var(--dark);
    color: #fff;
    padding: 50px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}
.stat-item {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: var(--green-light);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}
.stat-label {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* ========================================================
   7. PRODUKTE
   ======================================================== */
.products-section {
    background: var(--off-white);
    padding: 120px 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 60px;
}
.section-header .text-block { max-width: 600px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.product-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .4s var(--ease);
    border: 1px solid var(--gray-line);
}
.product-card .product-link { display: block; color: inherit; }
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.18);
    border-color: transparent;
}
.product-image-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gray-bg);
}
.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.product-image-wrap .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    padding: 24px;
}
.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    color: var(--dark);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 2px;
    backdrop-filter: blur(8px);
}
.product-info {
    padding: 28px 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.product-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark);
    letter-spacing: 0.02em;
    line-height: 1.15;
}
.product-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    transition: all .3s var(--ease);
}
.product-card:hover .product-arrow {
    background: var(--green);
    color: #fff;
    transform: rotate(-45deg);
}

/* ========================================================
   8. PARTNER-SLIDER
   ======================================================== */
.partners-section {
    padding: 120px 0 80px;
    overflow: hidden;
}
.partner-slider {
    margin-top: 60px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.partner-track {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: scroll-left 45s linear infinite;
}
.partner-slider:hover .partner-track { animation-play-state: paused; }
.partner-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: all .3s var(--ease);
    padding: 24px;
}
.partner-logo:hover {
    border-color: var(--green);
    box-shadow: 0 16px 32px -12px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}
.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all .3s var(--ease);
}
.partner-logo:hover img { filter: grayscale(0%); opacity: 1; }
@keyframes scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ========================================================
   9. GOLFCLUB-LISTE
   ======================================================== */
.partners-list-section {
    padding: 60px 0 120px;
    background: var(--off-white);
}
.partners-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    columns: 3;
    column-gap: 48px;
}
.partners-list li {
    padding: 14px 0;
    break-inside: avoid;
    border-bottom: 1px solid var(--gray-line);
    transition: padding .3s var(--ease);
}
.partners-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.98rem;
    gap: 16px;
}
.partners-list a::after {
    content: '→';
    color: var(--green);
    opacity: 0;
    transform: translateX(-6px);
    transition: all .3s var(--ease);
}
.partners-list li:hover { padding-left: 12px; }
.partners-list li:hover a::after { opacity: 1; transform: translateX(0); }
.partners-list a:hover { color: var(--green); }

/* ========================================================
   10. FOOTER
   ======================================================== */
.footer-cta {
    background: var(--green);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.footer-cta h2 { color: #fff; max-width: 700px; margin: 0 auto 16px; }
.footer-cta p { color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto 36px; }
.footer-cta .btn-primary {
    background: #fff;
    color: var(--green) !important;
}
.footer-cta .btn-primary:hover {
    background: var(--dark);
    color: #fff !important;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
}

.site-footer {
    background: var(--footer);
    color: #d8d8d8;
    padding: 80px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}
.footer-tagline { color: rgba(255,255,255,0.6); max-width: 360px; font-size: 0.95rem; }

.footer-title {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    font-size: 0.9rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: 8px 0; }
.footer-list a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: all .25s var(--ease);
    position: relative;
}
.footer-list a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ========================================================
   11. SINGLE PRODUKT
   ======================================================== */
.product-page { padding: 80px 0 120px; }
.product-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.product-page-image {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-bg);
}
.product-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    color: var(--muted);
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    transition: gap .3s var(--ease);
}
.back-link:hover { color: var(--green); gap: 14px; }

/* ========================================================
   12. STANDARD-SEITE
   ======================================================== */
.standard-page { padding: 80px 0 120px; }
.standard-page article { max-width: 800px; margin: 0 auto; }

/* ========================================================
   13. SCROLL-ANIMATIONEN
   ======================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .partner-track { animation: none; }
}

/* ========================================================
   14. RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-image-wrap { max-width: 480px; margin: 0 auto; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-list { columns: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .product-page-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .hero-section { padding: 70px 0 80px; }
    .products-section, .partners-section, .partners-list-section { padding: 80px 0; }
    .products-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .partners-list { columns: 1; }
    .stats-grid { grid-template-columns: 1fr; gap: 30px; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 30px; }
    .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .section-header { flex-direction: column; align-items: flex-start; }

    .menu-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 85%;
        max-width: 360px;
        background: #fff;
        padding: 100px 32px 32px;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        box-shadow: -20px 0 60px rgba(0,0,0,0.15);
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 0; align-items: flex-start; }
    .main-nav li { width: 100%; padding: 18px 0; border-bottom: 1px solid var(--gray-line); }
    .main-nav a { font-size: 1.15rem; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .hero-features li { font-size: 0.96rem; }
    .partner-logo { width: 110px; height: 110px; padding: 18px; }
    .product-info { padding: 20px; }
    .product-title { font-size: 1.15rem; }
    .footer-cta { padding: 60px 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
