/*
Theme Name: Blumen am Eck
Theme URI: https://blumenameck.de
Author: Blumen am Eck
Author URI: https://blumenameck.de
Description: Maßgeschneidertes WordPress-Theme für Blumen am Eck – elegante Floristik aus Berlin mit WooCommerce-Support.
Version: 1.0.1
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: blumen-am-eck
Tags: custom-logo, custom-menu, featured-images, theme-options, woocommerce
*/


*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --green-deep:#1a2e1a;--green-dark:#2d4a2d;--green-mid:#4a7c59;
  --green-soft:#6b9e7a;--green-light:#a8c5b0;--green-pale:#dae8dc;
  --cream:#f5f0e8;--cream-light:#faf8f4;
  --gold:#b8965a;--gold-light:#d4b87c;
  --text:#2a2a2a;--text-light:#6b6b6b;--white:#fff;
  --font-display:'Cormorant Garamond',Georgia,serif;
  --font-body:'Jost',sans-serif;
}
html{scroll-behavior:smooth}
body{font-family:var(--font-body);color:var(--text);background:var(--cream-light);overflow-x:hidden;line-height:1.6}
.container{max-width:1200px;margin:0 auto;padding:0 2rem}

/* ===== NAV ===== */
.site-header{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(245,240,232,0.92);backdrop-filter:blur(20px);border-bottom:1px solid rgba(74,124,89,0.1);transition:all .4s}
.site-header.scrolled{background:rgba(245,240,232,0.98);box-shadow:0 2px 40px rgba(26,46,26,0.08)}
.nav-inner{max-width:1200px;margin:0 auto;padding:0 2rem;display:flex;align-items:center;justify-content:space-between;height:80px}
.nav-logo img{height:28px;width:auto;display:block}
.main-navigation ul{display:flex;gap:2.5rem;list-style:none;align-items:center}
.main-navigation ul a{text-decoration:none;color:var(--text-light);font-size:.82rem;font-weight:400;letter-spacing:.08em;text-transform:uppercase;position:relative;transition:color .3s}
.main-navigation ul a::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:1px;background:var(--gold);transition:width .3s}
.main-navigation ul a:hover{color:var(--green-dark)}
.main-navigation ul a:hover::after{width:100%}
.menu-item-cta a{background:var(--green-dark);color:var(--cream)!important;padding:.6rem 1.5rem;border-radius:2px;letter-spacing:.1em!important;font-size:.78rem!important;transition:all .3s!important}
.menu-item-cta a::after{display:none!important}
.menu-item-cta a:hover{background:var(--green-mid)!important;color:var(--white)!important}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:.5rem}
.nav-toggle span{display:block;width:24px;height:1.5px;background:var(--green-dark);margin:6px 0;transition:all .3s}

/* ===== HERO – Clean centered layout ===== */
.hero{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:var(--green-deep);position:relative;overflow:hidden;text-align:center;
}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.12;filter:saturate(0.5) brightness(0.8)}
.hero::before{
  content:'';position:absolute;inset:0;z-index:1;
  background:radial-gradient(ellipse at 50% 50%,rgba(26,46,26,0.3) 0%,rgba(26,46,26,0.8) 70%);
}
.hero-content{position:relative;z-index:2;max-width:800px;padding:0 2rem}
.hero-logo{margin-bottom:3rem;opacity:0;animation:fadeUp .8s ease .2s forwards}
.hero-logo img{height:50px;width:auto;margin:0 auto;filter:brightness(0) invert(0.88)}
.hero-divider{width:60px;height:1px;background:var(--gold);margin:0 auto 2.5rem;opacity:0;animation:fadeUp .8s ease .35s forwards}
.hero-title{
  font-family:var(--font-display);font-size:clamp(2.8rem,5.5vw,4.8rem);
  font-weight:300;line-height:1.15;color:var(--cream);margin-bottom:1.5rem;
  opacity:0;animation:fadeUp .8s ease .45s forwards;
}
.hero-title em{font-style:italic;color:var(--green-light);font-weight:300}
.hero-subtitle{
  font-size:1.05rem;color:var(--green-light);font-weight:300;
  line-height:1.8;max-width:500px;margin:0 auto;
  opacity:0;animation:fadeUp .8s ease .6s forwards;
}
.hero-buttons{
  display:flex;gap:1rem;margin-top:2.5rem;justify-content:center;
  opacity:0;animation:fadeUp .8s ease .75s forwards;
}
.btn{
  display:inline-block;padding:1rem 2.5rem;font-family:var(--font-body);
  font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;
  text-decoration:none;border:none;cursor:pointer;transition:all .4s;
}
.btn-primary{background:var(--gold);color:var(--green-deep);border:1px solid var(--gold)}
.btn-primary:hover{background:var(--gold-light)}
.btn-outline{background:transparent;color:var(--cream);border:1px solid rgba(168,197,176,0.3)}
.btn-outline:hover{border-color:var(--green-light);background:rgba(168,197,176,0.1)}
.hero-scroll{
  position:absolute;bottom:2.5rem;left:50%;transform:translateX(-50%);z-index:2;
  color:var(--green-light);font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;
  opacity:0;animation:fadeUp .8s ease 1s forwards;
}
.hero-scroll::after{
  content:'';display:block;width:1px;height:40px;background:var(--green-light);
  margin:0.8rem auto 0;opacity:.4;animation:scrollPulse 2s ease infinite;
}

/* ===== SECTIONS ===== */
section{padding:6rem 0}
.section-tag{font-size:.7rem;letter-spacing:.25em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem}
.section-title{font-family:var(--font-display);font-size:clamp(2rem,3.5vw,2.8rem);font-weight:300;color:var(--green-deep);line-height:1.2;margin-bottom:1rem}
.section-subtitle{font-size:.95rem;color:var(--text-light);font-weight:300;max-width:480px;line-height:1.8}

/* ===== HIGHLIGHTS ===== */
.highlights{background:var(--cream);border-top:1px solid rgba(74,124,89,0.08);border-bottom:1px solid rgba(74,124,89,0.08);padding:5rem 0}
.highlights-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:3rem}
.highlight-item{text-align:center}
.highlight-icon{
  width:52px;height:52px;margin:0 auto 1.2rem;
  border:1px solid var(--green-light);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--green-mid);
}
.highlight-icon svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.highlight-title{font-family:var(--font-display);font-size:1.15rem;color:var(--green-deep);margin-bottom:.5rem}
.highlight-text{font-size:.83rem;color:var(--text-light);line-height:1.7}

/* ===== SHOP ===== */
.shop{background:var(--cream-light)}
.shop-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:3rem}
.shop-categories{display:flex;gap:.8rem}
.shop-cat{background:none;border:1px solid var(--green-light);padding:.45rem 1.1rem;font-family:var(--font-body);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-light);cursor:pointer;transition:all .3s}
.shop-cat.active,.shop-cat:hover{background:var(--green-dark);color:var(--cream);border-color:var(--green-dark)}
.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.product-card{background:var(--white);border:1px solid rgba(74,124,89,0.06);transition:all .4s;cursor:pointer;overflow:hidden}
.product-card:hover{box-shadow:0 16px 48px rgba(26,46,26,0.08);transform:translateY(-3px)}
.product-img{width:100%;aspect-ratio:3/4;object-fit:cover}
.product-info{padding:1.1rem 1.3rem}
.product-name{font-family:var(--font-display);font-size:1.1rem;color:var(--green-deep);margin-bottom:.25rem}
.product-desc{font-size:.78rem;color:var(--text-light);margin-bottom:.7rem}
.product-footer{display:flex;justify-content:space-between;align-items:center}
.product-price{font-family:var(--font-display);font-size:1.15rem;color:var(--green-dark)}
.product-add{width:34px;height:34px;border:1px solid var(--green-light);background:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s;color:var(--green-mid);font-size:1.1rem}
.product-add:hover{background:var(--green-dark);color:var(--white);border-color:var(--green-dark)}
.shop-footer{text-align:center;margin-top:2.5rem}
.img-placeholder{background:linear-gradient(135deg,var(--green-dark),var(--green-mid));display:flex;align-items:center;justify-content:center;color:rgba(168,197,176,0.5);font-family:var(--font-display);font-size:1rem;font-style:italic;text-align:center;padding:1rem}

/* ===== GALLERY ===== */
.gallery{background:var(--green-deep);color:var(--cream);padding:6rem 0}
.gallery .section-tag{color:var(--gold-light)}
.gallery .section-title{color:var(--cream)}
.gallery .section-subtitle{color:var(--green-light)}
.gallery-header{text-align:center;margin-bottom:3rem}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.gallery-item{overflow:hidden;position:relative;cursor:pointer;aspect-ratio:4/3}
.gallery-item:first-child{grid-row:span 2;aspect-ratio:auto}
.gallery-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(26,46,26,0.7) 0%,transparent 50%);
  opacity:0;transition:opacity .4s;display:flex;align-items:flex-end;padding:1.2rem;
}
.gallery-item:hover .gallery-overlay{opacity:1}
.gallery-overlay span{font-family:var(--font-display);font-size:1rem;color:var(--cream)}

/* ===== ABOUT ===== */
.about{background:var(--cream);padding:7rem 0}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center}
.about-img{width:100%;aspect-ratio:4/5;object-fit:cover}
.about-text .section-title{margin-bottom:1.5rem}
.about-text p{color:var(--text-light);line-height:1.9;margin-bottom:1rem;font-weight:300}
.about-sig{margin-top:2rem;font-family:var(--font-display);font-style:italic;font-size:1.2rem;color:var(--green-dark)}

/* ===== BLOG ===== */
.blog{background:var(--cream-light)}
.blog-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:3rem}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.blog-card{background:var(--white);border:1px solid rgba(74,124,89,0.06);overflow:hidden;transition:all .4s;cursor:pointer}
.blog-card:hover{box-shadow:0 12px 40px rgba(26,46,26,0.07);transform:translateY(-2px)}
.blog-img{width:100%;aspect-ratio:16/10;object-fit:cover}
.blog-content{padding:1.3rem 1.4rem}
.blog-date{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);margin-bottom:.6rem}
.blog-title{font-family:var(--font-display);font-size:1.2rem;color:var(--green-deep);line-height:1.3;margin-bottom:.5rem}
.blog-excerpt{font-size:.82rem;color:var(--text-light);line-height:1.7}
.blog-link{display:inline-block;margin-top:.8rem;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--green-mid);text-decoration:none;transition:color .3s}
.blog-link:hover{color:var(--green-dark)}

/* ===== CONTACT ===== */
.contact{background:var(--cream);padding:6rem 0}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem}
.contact-item{margin-bottom:1.8rem;padding-bottom:1.8rem;border-bottom:1px solid rgba(74,124,89,0.08)}
.contact-item:last-child{border-bottom:none}
.contact-label{font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:.4rem}
.contact-value{font-family:var(--font-display);font-size:1.2rem;color:var(--green-deep);line-height:1.5}
.contact-value small{display:block;font-family:var(--font-body);font-size:.83rem;color:var(--text-light);margin-top:.25rem}
.map-placeholder{width:100%;height:100%;min-height:380px;background:var(--green-dark);display:flex;align-items:center;justify-content:center;color:var(--green-light);font-family:var(--font-display);font-size:1.1rem;font-style:italic;position:relative;overflow:hidden}
.map-placeholder::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(74,124,89,0.08) 1px,transparent 1px),linear-gradient(rgba(74,124,89,0.08) 1px,transparent 1px);background-size:40px 40px}

/* ===== FOOTER ===== */
footer{background:var(--green-deep);color:var(--green-light);padding:4rem 0 2rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:3rem;margin-bottom:3rem}
.footer-brand-logo{height:32px;width:auto;filter:brightness(0) invert(0.82);margin-bottom:1rem}
.footer-desc{font-size:.83rem;color:var(--green-light);line-height:1.8;max-width:280px}
.footer-title{font-family:var(--font-display);font-size:1.05rem;color:var(--cream);margin-bottom:1rem}
.footer-links{list-style:none}
.footer-links li{margin-bottom:.5rem}
.footer-links a{text-decoration:none;color:var(--green-light);font-size:.83rem;transition:color .3s}
.footer-links a:hover{color:var(--gold-light)}
.footer-bottom{border-top:1px solid rgba(168,197,176,0.12);padding-top:1.5rem;display:flex;justify-content:space-between;align-items:center;font-size:.72rem;color:rgba(168,197,176,0.5)}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes scrollPulse{0%,100%{opacity:.4;transform:scaleY(1)}50%{opacity:.8;transform:scaleY(1.1)}}
.reveal{opacity:0;transform:translateY(30px);transition:all .7s cubic-bezier(0.16,1,0.3,1)}
.reveal.visible{opacity:1;transform:translateY(0)}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px){
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .gallery-item:first-child{grid-row:span 1}
  .about-grid{grid-template-columns:1fr;gap:2.5rem}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .main-navigation ul{display:none;position:absolute;top:80px;left:0;right:0;background:var(--cream);flex-direction:column;padding:2rem;gap:1.5rem;border-bottom:1px solid rgba(74,124,89,0.1)}
  .main-navigation ul.active{display:flex}
  .nav-toggle{display:block}
  .highlights-grid{grid-template-columns:repeat(2,1fr);gap:2rem}
  .products-grid{grid-template-columns:1fr;max-width:360px}
  .blog-grid{grid-template-columns:1fr;max-width:440px}
  .contact-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr 1fr}
  .shop-header,.blog-header{flex-direction:column;align-items:flex-start;gap:1.2rem}
  .hero-buttons{flex-direction:column;align-items:center}
  section{padding:4rem 0}
  .footer-grid{grid-template-columns:1fr}
}

/* ============================================
   WORDPRESS-SPECIFIC OVERRIDES
   ============================================ */

/* Force logo size – prevents oversized logos */
.site-logo img {
  height: 28px !important;
  width: auto !important;
  max-width: 200px !important;
  display: block;
}

/* WordPress custom logo override */
.custom-logo-link img,
.custom-logo {
  height: 28px !important;
  width: auto !important;
}

/* Hero logo – larger, inverted */
.hero-logo img {
  height: 50px !important;
  width: auto !important;
  max-width: 300px !important;
  margin: 0 auto;
  filter: brightness(0) invert(0.88);
}

/* Footer logo */
.footer-logo {
  height: 32px !important;
  width: auto !important;
  filter: brightness(0) invert(0.82);
  margin-bottom: 1rem;
}

/* Ensure full-width sections break out of WP content area */
.hero,
.highlights,
.shop-section,
.gallery-section,
.about-section,
.blog-section,
.contact-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* But keep container inside */
.hero .container,
.hero-content,
.highlights .container,
.shop-section .container,
.gallery-section .container,
.about-section .container,
.blog-section .container,
.contact-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* WooCommerce product grid */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: var(--white);
  border: 1px solid rgba(74, 124, 89, 0.06);
  transition: all 0.4s ease;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 16px 48px rgba(26, 46, 26, 0.08);
  transform: translateY(-3px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display) !important;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--green-deep);
}

.woocommerce ul.products li.product .price {
  font-family: var(--font-display) !important;
  font-size: 1.15rem;
  color: var(--green-dark);
}

.woocommerce ul.products li.product .button {
  background: var(--green-dark) !important;
  color: var(--cream) !important;
  border-radius: 0 !important;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--green-mid) !important;
}

/* WordPress admin bar offset */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* WordPress block alignment */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px;
  margin: -1px; overflow: hidden;
  padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}

.entry-content > * {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignfull {
  max-width: 100%;
}

.entry-content > .alignwide {
  max-width: 1200px;
}

/* WordPress navigation pagination */
.main-navigation ul {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.main-navigation ul a,
.main-navigation ul span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--green-light);
  color: var(--green-dark);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.main-navigation ul .current,
.main-navigation ul a:hover {
  background: var(--green-dark);
  color: var(--cream);
  border-color: var(--green-dark);
}

/* Selection & Scrollbar */
::selection { background: var(--green-light); color: var(--green-deep); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-mid); }

/* Responsive WooCommerce */
@media (max-width: 1024px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .woocommerce ul.products { grid-template-columns: 1fr !important; max-width: 360px; }
}

/* === Nav Fix: ensure proper horizontal layout === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 124, 89, 0.1);
  transition: all 0.4s ease;
}

.site-header.scrolled {
  background: rgba(245, 240, 232, 0.98);
  box-shadow: 0 2px 40px rgba(26, 46, 26, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.main-navigation ul,
.main-navigation > ul,
#primary-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-navigation ul li {
  list-style: none;
}

.main-navigation ul a,
.main-navigation a {
  text-decoration: none;
  color: #6B6B6B;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.main-navigation ul a::after,
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: #B8965A;
  transition: width 0.3s ease;
}

.main-navigation ul a:hover { color: #2D4A2D; }
.main-navigation ul a:hover::after { width: 100%; }

.main-navigation .menu-item-cta a {
  background: #2D4A2D;
  color: #F5F0E8 !important;
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}
.main-navigation .menu-item-cta a::after { display: none; }
.main-navigation .menu-item-cta a:hover {
  background: #4A7C59;
  color: #FFFFFF !important;
}

/* Pad body for fixed header */
body { padding-top: 80px; }
body.admin-bar { padding-top: 80px; }

/* Hero should overlap the padding */
.hero { margin-top: -80px; }

/* Mobile nav */
@media (max-width: 768px) {
  .main-navigation ul,
  #primary-menu {
    display: none;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: #F5F0E8;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(74, 124, 89, 0.1);
  }
  .main-navigation ul.active,
  #primary-menu.active {
    display: flex;
  }
  .menu-toggle { display: block; }
}
