/*
Theme Name: OnePager
Theme URI: https://example.com/onepager
Author: VL
Description: Modernes OnePager WordPress Theme mit Hero, Angebote, Über uns, Testimonials, CTA, Kontakt und Footer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onepager
*/

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

:root {
    --color-primary: #b0956e;
    --color-primary-dark: #967b58;
    --color-dark: #1a1a1a;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-section-alt: #c4a882;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --section-padding: 100px 0;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
    overflow-x: hidden;
}

/* Boxed Layout */
body.layout-boxed {
    background: #e8e8e8;
}

body.layout-boxed #main-content,
body.layout-boxed .site-header > .container,
body.layout-boxed .site-footer {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

body.layout-boxed .site-header {
    max-width: 100%;
}

body.layout-boxed #main-content {
    background: var(--color-white);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

body.layout-boxed .hero-section {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

body.layout-boxed .site-footer {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(176, 149, 110, 0.4);
}

.btn-dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn-dark:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    transition: var(--transition);
    flex-shrink: 0;
}

.site-logo a {
    color: inherit;
    text-decoration: none;
}

.site-header.scrolled .site-logo,
.site-header.scrolled .site-logo a {
    color: var(--color-dark);
}

.site-logo img,
.site-logo .custom-logo {
    max-height: 40px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.site-header.scrolled .site-logo img,
.site-header.scrolled .site-logo .custom-logo {
    filter: none;
}

.main-nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-white);
    position: relative;
}

.site-header.scrolled .main-nav a {
    color: var(--color-dark);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

.site-header.scrolled .menu-toggle span {
    background: var(--color-dark);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #888;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ========================================
   SECTION GENERAL
   ======================================== */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    max-width: 700px;
}

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

.text-center .section-text {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   PROBLEM & LÖSUNG
   ======================================== */
.problem-section {
    background: var(--color-white);
}

.problem-section .section-text {
    margin-top: 10px;
}

/* ========================================
   ANGEBOTE / SERVICES
   ======================================== */
.angebote-section {
    background: var(--color-light);
}

.angebote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.angebot-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.angebot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.angebot-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #ccc;
}

.angebot-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #ddd 25%, #ccc 50%, #ddd 75%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

.angebot-content {
    padding: 30px;
    text-align: center;
}

.angebot-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

/* ========================================
   ÜBER UNS
   ======================================== */
.ueber-section {
    background: var(--color-section-alt);
    color: var(--color-white);
}

.ueber-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.ueber-image {
    border-radius: 8px;
    overflow: hidden;
}

.ueber-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ueber-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.15) 75%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.5;
}

.ueber-text .section-title {
    color: var(--color-white);
}

.ueber-text .section-text {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.ueber-text .btn-dark {
    background: var(--color-dark);
}

/* ========================================
   TESTIMONIALS / SOCIAL PROOF
   ======================================== */
.testimonials-section {
    background: var(--color-light);
}

/* Google Gesamt-Bewertung */
.google-rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.google-logo svg {
    display: block;
}

.google-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.google-rating-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.google-rating-text strong {
    color: var(--color-text);
    font-size: 1.1rem;
}

/* Slider */
.testimonials-slider {
    position: relative;
    margin-top: 40px;
}

.testimonials-slider-wrap {
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.testimonials-track .testimonial-card {
    min-width: calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    flex-shrink: 0;
    box-sizing: border-box;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.slider-prev {
    left: 5px;
}

.slider-next {
    right: 5px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.testimonial-card {
    background: var(--color-light);
    padding: 35px;
    border-radius: 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

/* Sterne in der Karte */
.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
}

.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Author Layout */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #ccc;
    flex-shrink: 0;
}

.testimonial-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    flex-shrink: 0;
}

.testimonial-card cite {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.testimonial-card .cite-role {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.source-icon {
    vertical-align: middle;
    margin-right: 2px;
}

.testimonial-google {
    border-left: 3px solid #FBBC05;
}

.testimonial-facebook {
    border-left: 3px solid #1877F2;
}

.testimonial-proven {
    border-left: 3px solid #F59E0B;
}

/* ========================================
   CALL TO ACTION
   ======================================== */
.cta-section {
    background: var(--color-section-alt);
    color: var(--color-white);
    text-align: center;
}

.cta-section .section-title {
    color: var(--color-white);
}

.cta-section .section-text {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 35px;
}

/* ========================================
   KONTAKT
   ======================================== */
.kontakt-section {
    background: var(--color-white);
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.kontakt-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.kontakt-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.kontakt-info-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-primary);
}

.kontakt-form .form-group {
    margin-bottom: 20px;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--color-light);
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(176, 149, 110, 0.15);
}

.kontakt-form textarea {
    min-height: 150px;
    resize: vertical;
}

.kontakt-form .btn {
    width: 100%;
}

/* WhatsApp Button */
.kontakt-whatsapp {
    margin-top: 30px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #25D366;
    color: var(--color-white) !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Kontakt Messages */
.kontakt-msg {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.kontakt-msg-success {
    background: #d4edda;
    color: #155724;
}

.kontakt-msg-error {
    background: #f8d7da;
    color: #721c24;
}

/* Captcha */
.captcha-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.captcha-label {
    font-size: 0.95rem;
    color: var(--color-text);
    flex-basis: 100%;
    margin-bottom: -5px;
}

.captcha-group input[type="number"] {
    width: 120px;
    text-align: center;
    -moz-appearance: textfield;
}

.captcha-group input[type="number"]::-webkit-outer-spin-button,
.captcha-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ========================================
   INSTAGRAM FEED BANNER
   ======================================== */
.instagram-section {
    background: var(--color-light);
    padding-bottom: 80px;
}

.instagram-handle {
    margin-top: 8px;
    margin-bottom: 10px;
}

.instagram-handle a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.instagram-handle a:hover {
    color: var(--color-primary-dark);
}

.instagram-banner {
    margin-top: 40px;
    overflow: hidden;
    width: 100%;
}

.instagram-track {
    display: flex;
    gap: 4px;
    animation: instagram-scroll 30s linear infinite;
    width: max-content;
}

.instagram-track:hover {
    animation-play-state: paused;
}

.instagram-item {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    overflow: hidden;
    display: block;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-item:hover img {
    transform: scale(1.08);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.instagram-icon {
    width: 32px;
    height: 32px;
    color: var(--color-white);
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.instagram-item:hover .instagram-icon {
    opacity: 1;
    transform: scale(1);
}

.instagram-video-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--color-white);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.instagram-no-posts {
    font-style: italic;
}

@keyframes instagram-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   FLOATING BUTTONS
   ======================================== */
.floating-btn {
    position: fixed;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: var(--transition);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.floating-cookie {
    left: 24px;
    background: var(--color-dark);
    color: var(--color-white);
}

.floating-cookie:hover {
    background: var(--color-primary);
}

.floating-top {
    right: 24px;
    background: var(--color-primary);
    color: var(--color-white);
    opacity: 0;
    pointer-events: none;
}

.floating-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.floating-top:hover {
    background: var(--color-primary-dark);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-logo {
    text-align: center;
}

.footer-logo .site-logo {
    font-size: 1.3rem;
    color: var(--color-white);
    display: block;
    margin-bottom: 10px;
}

.footer-logo img,
.footer-logo .custom-logo {
    max-height: 35px;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ========================================
   ANIMATIONS (Scroll Reveal)
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
    :root {
        --section-padding: 70px 0;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .angebote-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ueber-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .kontakt-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        order: -1;
    }

    .instagram-item {
        width: 220px;
        height: 220px;
    }

    .testimonials-track .testimonial-card {
        min-width: calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        padding: 80px 40px;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 25px;
    }

    .main-nav a {
        color: var(--color-dark) !important;
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .angebote-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .instagram-item {
        width: 180px;
        height: 180px;
    }

    .testimonials-track .testimonial-card {
        min-width: 100%;
        max-width: 100%;
    }

    .slider-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }
}
