/*
Theme Name: fehnleev-dev
Theme URI: https://fehnleev.de
Author: Fehnleev
Description: Ein maritimes, pastellfarbenes WordPress-Theme
Version: 3.1.10
License: GPL v2 or later
Text Domain: fehnleev
*/

/* ===== YITH SUBSCRIPTION STYLING ===== */
/* Abo-Badge für Abonnement-Produkte */
.yith-subscription-product {
  position: relative;
}

.yith-subscription-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1e5a7a 0%, #2d7a9e 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.yith-subscription-badge::before {
  content: '⚓ ';
  margin-right: 4px;
}

/* Abo-Preis Styling */
.yith-subscription-price {
  font-size: 1.1rem;
  color: #1e5a7a;
  font-weight: 600;
  display: block;
  margin: 8px 0;
}

.yith-subscription-price .price-suffix {
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
  display: block;
  margin-top: 4px;
}

/* Abo-Button Styling */
.yith-subscription-add-to-cart,
.add_to_cart_button.yith-subscription {
  background: linear-gradient(135deg, #1e5a7a 0%, #2d7a9e 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.yith-subscription-add-to-cart:hover,
.add_to_cart_button.yith-subscription:hover {
  background: linear-gradient(135deg, #2d7a9e 0%, #3d8ab0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 90, 122, 0.3);
}

/* Mobile Abo-Badge */
@media (max-width: 768px) {
  .yith-subscription-badge {
    font-size: 0.65rem;
    padding: 5px 10px;
    margin-bottom: 8px;
  }
  
  .yith-subscription-price {
    font-size: 1rem;
  }
  
  .yith-subscription-add-to-cart,
  .add_to_cart_button.yith-subscription {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Warenkorb-Optimierung für Abo-Produkte */
.cart-item.yith-subscription-item {
  border-left: 4px solid #1e5a7a;
  padding-left: 15px;
}

.cart-item.yith-subscription-item::before {
  content: '⚓ Dauerhafte Post';
  display: block;
  font-size: 0.85rem;
  color: #1e5a7a;
  font-weight: 600;
  margin-bottom: 8px;
}

:root {
  --color-primary: #6B8FA3;
  --color-accent: #3a5a6e;
  --color-light: #FAF7F2;
  --color-sand: #F5ECD7;
  --color-text: #3a5a6e;
  --color-price: #8B5A7A;
  --color-dark: #1e5a7a;
  --color-dark-hover: #2d7a9e;
  --color-muted: #6a8a9a;
  --color-border: rgba(58, 90, 110, 0.12);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Nunito', sans-serif;
  --radius-card: 12px;
  --radius-pill: 999px;
  --radius-input: 8px;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--color-light);
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
}

body {
  padding-top: 70px;
}

#hero-banner-slider {
  margin-top: 20px;
}

/* ===== HEADER ===== */
.admin-bar .site-header {
  top: 32px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(58, 90, 110, 0.95);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .site-header {
    padding: 8px 0;
    background: rgba(58, 90, 110, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
}

.site-header.scrolled {
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header.scrolled .main-navigation a {
  color: var(--color-text);
}

.site-header.scrolled .site-logo {
  filter: brightness(0);
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.main-navigation {
  flex-grow: 1;
  text-align: center;
  order: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.header-cart {
  flex-shrink: 0;
  order: 3;
  margin-left: 16px;
}

@media (max-width: 768px) {
  .site-header-inner {
    padding: 0 10px;
  }
}

/* ===== HEADER RIGHT (Mobile) ===== */
.header-right {
  display: none;
  align-items: center;
  gap: 15px;
}

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

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  gap: 5px;
}

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

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

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

/* ===== CART ICON ===== */
.header-cart {
  display: flex;
  align-items: center;
}

.cart-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.site-header.scrolled .cart-icon {
  color: var(--color-text);
  background: rgba(107, 143, 163, 0.1);
  border-color: rgba(107, 143, 163, 0.3);
}

.site-header.scrolled .cart-icon:hover {
  background: rgba(107, 143, 163, 0.2);
  border-color: rgba(107, 143, 163, 0.5);
}

.cart-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #FF6B6B;
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  position: absolute;
  top: -8px;
  right: -8px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
  order: 1;
}

.site-branding img {
  max-height: 50px;
  width: auto;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin: 0;
}

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

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

.main-navigation li {
  display: inline-block;
}

.main-navigation a {
  display: inline-block;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.main-navigation a:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.site-header.scrolled .main-navigation a {
  color: var(--color-text);
  background: rgba(107, 143, 163, 0.1);
  border-color: rgba(107, 143, 163, 0.3);
}

.site-header.scrolled .main-navigation a:hover {
  background: rgba(107, 143, 163, 0.2);
  border-color: rgba(107, 143, 163, 0.5);
}

.site-header.scrolled .site-title a {
  color: var(--color-accent);
}

.site-title a {
  color: white;
}

.nav-link-impressum {
  display: inline-block;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-left: 10px;
}

.nav-link-impressum:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.site-header.scrolled .nav-link-impressum {
  color: var(--color-text);
  background: rgba(107, 143, 163, 0.1);
  border-color: rgba(107, 143, 163, 0.3);
}

.site-header.scrolled .nav-link-impressum:hover {
  background: rgba(107, 143, 163, 0.2);
  border-color: rgba(107, 143, 163, 0.5);
}

/* ===== HERO BANNER SLIDER ===== */
.hero-banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fafafa;
}

.hero-banner {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: scroll;
  aspect-ratio: 1920 / 600;
  min-height: 300px;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

@media (max-width: 1024px) {
  .hero-banner {
    aspect-ratio: 1920 / 600;
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    aspect-ratio: 16 / 10;
    min-height: 180px;
  }
}

.hero-banner.active {
  display: flex;
  opacity: 1;
  position: relative;
  width: 100%;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .hero-content {
    max-width: 90%;
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    max-width: 95%;
    padding: 20px 15px;
  }
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);
  font-weight: 400;
  margin-bottom: 8px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(1rem, 4.5vw, 2.5rem);
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(0.9rem, 3.5vw, 1.8rem);
    margin-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(0.65rem, 2.8vw, 0.95rem);
    margin-bottom: 4px;
  }
}

.hero-description {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 2vw, 1rem);
  font-weight: 400;
  margin-bottom: 15px;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-description {
    font-size: clamp(0.6rem, 1.8vw, 0.85rem);
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .hero-description {
    font-size: clamp(0.55rem, 1.5vw, 0.7rem);
    margin-bottom: 8px;
  }
}

.hero-button {
  display: inline-block;
  padding: clamp(6px, 1.5vw, 12px) clamp(16px, 3vw, 30px);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  font-weight: 600;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: clamp(8px, 1.5vw, 15px);
  position: relative;
  z-index: 999 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .hero-button {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
}

/* ===== HERO BANNER NAVIGATION DOTS ===== */
.hero-banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 100;
}

.hero-banner-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-banner-dots .dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-banner-dots .dot.active {
  background: white;
  border-color: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ===== MAIN CONTENT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 28px;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .page-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
}

main {
  min-height: 0;
  padding: 40px 0;
}

@media (max-width: 640px) {
  body.home main {
    padding: 0;
  }
  body:not(.home) main {
    padding: 40px 0 48px;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  background: var(--color-accent);
  color: white;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  width: 100%;
  height: 150px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,20 Q100,0 200,20 T400,20 T600,20 T800,20 T1000,20 T1200,20 L1200,60 Q100,40 200,60 T400,60 T600,60 T800,60 T1000,60 T1200,60 L1200,120 L0,120 Z" fill="%23B8D4D9" opacity="0.8"/><path d="M0,50 Q100,30 200,50 T400,50 T600,50 T800,50 T1000,50 T1200,50 L1200,120 L0,120 Z" fill="%233A5A6E" opacity="0.5"/></svg>') no-repeat;
  background-size: cover;
  pointer-events: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 10;
}

.footer-widget h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-widget a:hover {
  opacity: 0.8;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 10;
}

/* ===== GESTRANDETE FLASCHENPOSTE - VOLLSTÄNDIG ===== */
.flaschenpost-gestrandete {
  position: relative;
  padding: 20px 0 !important;
  background-color: #F5ECD7 !important;
  overflow: hidden;
  margin: 0 !important;
}
@media (min-width: 640px) {
  .flaschenpost-gestrandete {
    padding: 64px 24px !important;
  }
}
@media (min-width: 1024px) {
  .flaschenpost-gestrandete {
    padding: 80px 24px !important;
  }
}
.flaschenpost-gestrandete::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(139, 115, 85, 0.4) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}
.flaschenpost-gestrandete-content {
  position: relative;
  z-index: 2;
}
.flaschenpost-section-container {
  max-width: 1280px;
  margin: 0 auto;
}
.flaschenpost-section-header {
  text-align: center;
  margin-bottom: 64px;
}

@media (max-width: 640px) {
  .flaschenpost-section-header {
    margin-bottom: 12px;
    padding: 0 16px;
  }
}
@media (min-width: 641px) and (max-width: 768px) {
  .flaschenpost-section-header {
    margin-bottom: 32px;
  }
}
.flaschenpost-section-subtitle {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  letter-spacing: 0.1em;
  color: #B8C4C2;
  margin-bottom: 12px;
  display: block;
}
.flaschenpost-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #3a5a6e;
  margin-bottom: 24px;
}
.flaschenpost-section-description {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(15px, 2.5vw, 20px);
  color: #5a7a8a;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}
.flaschenpost-past-items {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

@media (max-width: 640px) {
  .flaschenpost-past-items {
    gap: 12px;
  }
}
@media (min-width: 641px) and (max-width: 768px) {
  .flaschenpost-past-items {
    gap: 40px;
  }
}
.flaschenpost-past-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
}
@media (min-width: 640px) {
  .flaschenpost-past-item {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
  }
}
@media (min-width: 768px) {
  .flaschenpost-past-item {
    grid-template-columns: 2fr 3fr;
    gap: 32px;
  }
  .flaschenpost-past-item:nth-child(even) {
    direction: rtl;
  }
  .flaschenpost-past-item:nth-child(even) > * {
    direction: ltr;
  }
}
.flaschenpost-past-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background-color: #e8d4c4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

@media (max-width: 640px) {
  .flaschenpost-past-image {
    border-radius: 10px;
    max-height: 180px;
  }
}
@media (min-width: 641px) and (max-width: 767px) {
  .flaschenpost-past-image {
    max-height: 280px;
  }
}
.flaschenpost-past-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.7s;
}

@media (max-width: 640px) {
  .flaschenpost-past-image img {
    aspect-ratio: 4/3;
    position: static;
    height: auto;
  }
}
.flaschenpost-past-image:hover img {
  transform: scale(1.05);
}
.flaschenpost-past-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.9);
  color: #6B8FA3;
  backdrop-filter: blur(8px);
}
.flaschenpost-past-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 3.5vw, 40px);
  font-weight: 700;
  color: #3a5a6e;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .flaschenpost-past-text h3 {
    font-size: 17px;
    margin-bottom: 6px;
  }
}
.flaschenpost-past-month {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #B8C4C2;
  margin-bottom: 8px;
  display: block;
}

@media (max-width: 640px) {
  .flaschenpost-past-month {
    font-size: 14px;
    margin-bottom: 4px;
  }
}
.flaschenpost-past-description {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(14px, 2.2vw, 18px);
  color: #6a8a9a;
  line-height: 1.8;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .flaschenpost-past-description {
    display: none;
  }
  .flaschenpost-past-tags {
    display: none;
  }
}
.flaschenpost-past-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flaschenpost-tag {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: #5a7a8a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body {
    padding-top: 50px;
  }

  .site-header-inner {
    flex-wrap: wrap;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 4;
  }

  .main-navigation {
    order: 5;
    width: 100%;
    display: none;
    transition: all 0.4s ease;
    background: white;
    border-top: 1px solid #e0e0e0;
    margin-top: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 15px 0;
    margin: 0;
  }

  .main-navigation li {
    width: 100%;
    position: relative;
  }

  .main-navigation a {
    display: block;
    padding: 12px 20px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    color: var(--color-text);
  }

  .main-navigation a:hover {
    background: #f9f9f9;
  }

  .site-header.scrolled .main-navigation a {
    color: var(--color-text);
    background: transparent;
  }

  /* Submenu Styles */
  .main-navigation ul ul {
    display: none;
    flex-direction: column;
    background: #f5f5f5;
    padding: 0;
    margin: 0;
    position: static;
  }

  .main-navigation li.menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .main-navigation li.menu-item-has-children.active > a::after {
    transform: rotate(180deg);
  }

  .main-navigation li.menu-item-has-children.active > ul {
    display: flex;
  }

  .main-navigation ul ul a {
    padding: 10px 20px 10px 40px;
    border-bottom: 1px solid #efefef;
    font-size: 0.95rem;
  }

  .header-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
  }

  .footer-content {
    flex-direction: column;
  }

  .site-footer {
    padding: 30px 0 20px;
    margin-top: 30px;
  }
}


/* ===== BLOCK 2: AKTUELLE POST (flaschenpost-aktuelle) ===== */
.flaschenpost-aktuelle {
    padding: 64px 24px !important;
    background-color: #FAF7F2 !important;
    margin: 0 !important;
}
@media (min-width: 640px) {
    .flaschenpost-aktuelle {
        padding: 80px 24px !important;
    }
}
.flaschenpost-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}
@media (min-width: 768px) {
    .flaschenpost-cards-grid {
        gap: 40px;
    }
}
.flaschenpost-card {
    padding: 32px 40px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(180, 200, 195, 0.3);
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .flaschenpost-card {
        padding: 20px 24px;
    }
}
.flaschenpost-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px);
}
.flaschenpost-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}
.flaschenpost-card-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    color: #3a5a6e;
    margin-bottom: 12px;
}
.flaschenpost-card-text {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    color: #6a8a9a;
    line-height: 1.8;
}


/* ===== BLOCK 3: GESTRANDETE - GRADIENT HINTERGRUND (dunkel unten → hell oben) ===== */
.flaschenpost-gestrandete {
    background: linear-gradient(to top, #C8A882 0%, #D4B896 25%, #E8D4C4 55%, #F5ECD7 100%) !important;
}

/* ===== BLOCK 3: VORBESTELLEN BUTTON ===== */
.fp-vorbestellen-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background-color: #3a5a6e;
    color: #fff !important;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

@media (max-width: 640px) {
  .fp-vorbestellen-btn {
    margin-top: 8px;
    padding: 7px 16px;
    font-size: 13px;
  }
}
.fp-vorbestellen-btn:hover {
    background-color: #2a4a5e;
    transform: translateY(-2px);
    color: #fff !important;
}

/* ===== fp-block2 cards: mobile scroll-snap slider ===== */
@media (max-width: 640px) {
  .fp-block2 {
    padding: 24px 0 !important;
  }
  .fp-block2-header {
    padding: 0 16px !important;
    margin-bottom: 20px !important;
  }
  .fp-cards-row {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 12px !important;
    padding: 4px 16px 16px !important;
    align-items: stretch !important;
  }
  .fp-cards-row::-webkit-scrollbar {
    display: none !important;
  }
  .fp-card {
    flex: 0 0 78vw !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    padding: 20px 20px !important;
  }
}

/* ===== fp-block3 + fp-past-* mobile overrides (page inline CSS requires !important) ===== */
@media (max-width: 640px) {
  /* Section */
  .fp-block3 {
    padding: 20px 0 24px !important;
  }
  .fp-block3-header {
    margin-bottom: 16px !important;
    padding: 0 16px !important;
  }
  .fp-past-items {
    gap: 14px !important;
    padding: 0 16px !important;
  }

  /* Card: rounded card, no inner padding */
  .fp-past-item {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 200px auto !important;
    padding: 0 !important;
    gap: 0 !important;
    background: rgba(255,255,255,0.95) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid rgba(180,200,195,0.25) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07) !important;
    backdrop-filter: none !important;
    direction: ltr !important;
  }

  /* Image: override inline height: 380px */
  .fp-past-image {
    grid-row: 1 !important;
    height: 200px !important;
    max-height: 200px !important;
    border-radius: 0 !important;
    width: 100% !important;
  }
  .fp-past-image img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 0 !important;
  }
  /* Month text: hidden — badge (fp-past-badge) is the only tag shown */
  .fp-past-month {
    display: none !important;
  }

  /* Text area below image */
  .fp-past-text {
    grid-row: 2 !important;
    position: static !important;
    padding: 10px 14px 14px !important;
    background: none !important;
  }
  .fp-past-text h3 {
    display: block !important;
    font-size: 15px !important;
    margin-bottom: 4px !important;
    color: #3a5a6e !important;
    line-height: 1.3 !important;
  }
  .fp-past-text p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #6a8a9a !important;
    margin-bottom: 8px !important;
  }
  .fp-past-text .fp-tags {
    display: none !important;
  }
  .fp-past-text .fp-vorbestellen-btn {
    display: inline-block !important;
    font-size: 13px !important;
    padding: 6px 14px !important;
    margin-top: 0 !important;
  }
}

/* ===== BLOCK 3: PREVIEW KARTE (April 2026 Coming Soon) ===== */
.flaschenpost-past-image.fp-preview {
    background: linear-gradient(135deg, #D5E8E4 0%, #B8D4D0 50%, #9ABFBB 100%);
    border: 2px dashed rgba(58, 90, 110, 0.3);
}
.fp-coming-soon-text {
    font-family: 'Caveat', cursive;
    font-size: 32px;
    color: #3a5a6e;
    opacity: 0.6;
    text-align: center;
}

/* ===== BLOCK 3: BADGE VARIANTEN ===== */
.fp-badge-preview {
    background-color: rgba(213, 232, 228, 0.95) !important;
    color: #3a5a6e !important;
}
.fp-badge-aktuell {
    background-color: rgba(245, 236, 215, 0.95) !important;
    color: #8B6914 !important;
}

/* ===== BLOCK 2: KARTEN NEBENEINANDER (3 Spalten fix) ===== */
.flaschenpost-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px;
    margin-top: 40px;
}
@media (max-width: 900px) {
    .flaschenpost-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .flaschenpost-cards-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ===== MEIN KONTO STYLING ===== */
/* Kundenbereich Container */
.woocommerce-account {
  background: var(--color-light);
  padding: 40px 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #1e5a7a 0%, #2d7a9e 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: linear-gradient(135deg, #2d7a9e 0%, #3d8ab0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 90, 122, 0.3);
}

.woocommerce-account .woocommerce-MyAccount-navigation a.is-active {
  background: linear-gradient(135deg, #2d7a9e 0%, #3d8ab0 100%);
  border-color: #1e5a7a;
}

/* Mein Konto Inhalt */
.woocommerce-account .woocommerce-MyAccount-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.woocommerce-account .woocommerce-MyAccount-content h2 {
  color: #1e5a7a;
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.woocommerce-account .woocommerce-MyAccount-content table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-account .woocommerce-MyAccount-content table th {
  background: #f9f9f9;
  color: #1e5a7a;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e0e0e0;
}

.woocommerce-account .woocommerce-MyAccount-content table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.woocommerce-account .woocommerce-MyAccount-content table tr:hover {
  background: #fafafa;
}

/* Adressen-Bereich */
.woocommerce-account .woocommerce-Address {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #1e5a7a;
}

.woocommerce-account .woocommerce-Address h3 {
  color: #1e5a7a;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.woocommerce-account .woocommerce-Address .edit {
  margin-top: 15px;
}

.woocommerce-account .woocommerce-Address .edit a {
  display: inline-block;
  padding: 8px 16px;
  background: #1e5a7a;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-Address .edit a:hover {
  background: #2d7a9e;
  transform: translateY(-2px);
}

/* Mobile Optimierung fuer Mein Konto */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-direction: column;
  }
  
  .woocommerce-account .woocommerce-MyAccount-navigation a {
    width: 100%;
    text-align: center;
  }
  
  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 20px;
  }
  
  .woocommerce-account .woocommerce-MyAccount-content h2 {
    font-size: 1.2rem;
  }
}

/* Mobile menu click-fix fallback */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    position: relative !important;
    z-index: 1102 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  .header-cart {
    position: relative;
    z-index: 1101;
  }

  .main-navigation {
    z-index: 1100 !important;
  }
}

/*
 * Shop-Fehnleev Seite — konsolidiert (ehem. fix-003/004/005)
 */
.shop-fehnleev-page {
  max-width: 1280px !important;
}

.shop-fehnleev-page .entry-content {
  max-width: 1240px;
  margin: 0 auto;
  display: block !important;
}

/* Kategorie-Buttons */
.shop-fehnleev-page .entry-content > p > a,
.shop-fehnleev-page .category-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 30px 0 8px !important;
  padding: 9px 16px !important;
  border-radius: var(--radius-pill) !important;
  border: 1px solid rgba(58, 90, 110, 0.2) !important;
  background: linear-gradient(180deg, #eef6f8 0%, #e3f0f4 100%) !important;
  color: var(--color-accent) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(18, 43, 59, 0.08) !important;
}

.shop-fehnleev-page .category-button-wrapper {
  margin: 24px 0 8px !important;
}

/* Kategorie-Headings */
.shop-fehnleev-page .entry-content > h2 {
  margin: 8px 0 16px !important;
  color: var(--color-accent) !important;
  font-family: var(--font-serif) !important;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem) !important;
  line-height: 1.2 !important;
}

.shop-fehnleev-page .entry-content > p + ul.products,
.shop-fehnleev-page .entry-content > h2 + ul.products {
  margin-top: 0 !important;
}

/* Produkt-Grid */
.shop-fehnleev-page .entry-content ul.products,
.shop-fehnleev-page .woocommerce.columns-5 > ul.products.columns-5,
.shop-fehnleev-page ul.products.columns-5 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  margin: 0 0 34px !important;
  padding: 0 !important;
}

.shop-fehnleev-page .woocommerce.columns-5 {
  margin-bottom: 28px !important;
}

/* Produkt-Karten */
.shop-fehnleev-page .entry-content ul.products li.product,
.shop-fehnleev-page ul.products.columns-5 li.product {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: var(--radius-card) !important;
  border: 1px solid var(--color-border) !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(18, 43, 59, 0.07) !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.shop-fehnleev-page .entry-content ul.products li.product:hover,
.shop-fehnleev-page ul.products.columns-5 li.product:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 26px rgba(18, 43, 59, 0.12) !important;
}

/* Bilder: quadratisch */
.shop-fehnleev-page .entry-content ul.products li.product a img,
.shop-fehnleev-page ul.products.columns-5 li.product a img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  display: block !important;
}

/* Titel */
.shop-fehnleev-page .entry-content ul.products li.product .woocommerce-loop-product__title,
.shop-fehnleev-page .entry-content ul.products li.product h2,
.shop-fehnleev-page ul.products.columns-5 li.product h2.woocommerce-loop-product__title {
  margin: 0 !important;
  padding: 12px 12px 8px !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  color: var(--color-accent) !important;
  min-height: 3.1em !important;
}

/* Preis */
.shop-fehnleev-page .entry-content ul.products li.product .price,
.shop-fehnleev-page ul.products.columns-5 li.product .price {
  margin: 0 !important;
  padding: 0 12px !important;
  font-size: 0.98rem !important;
}

/* Button */
.shop-fehnleev-page .entry-content ul.products li.product .button,
.shop-fehnleev-page .entry-content ul.products li.product a.button,
.shop-fehnleev-page ul.products.columns-5 li.product .button,
.shop-fehnleev-page ul.products.columns-5 li.product a.button {
  display: block !important;
  width: calc(100% - 24px) !important;
  margin: 10px 12px 12px !important;
  padding: 10px 12px !important;
  border-radius: var(--radius-pill) !important;
  text-align: center !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .shop-fehnleev-page .entry-content ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .shop-fehnleev-page .entry-content > p > a,
  .shop-fehnleev-page .category-button {
    margin: 18px 0 7px !important;
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
  }

  .shop-fehnleev-page .entry-content > h2 {
    font-size: 1.16rem !important;
    margin: 6px 0 10px !important;
  }

  .shop-fehnleev-page .entry-content ul.products,
  .shop-fehnleev-page .woocommerce.columns-5 > ul.products.columns-5,
  .shop-fehnleev-page ul.products.columns-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 0 20px !important;
  }

  .shop-fehnleev-page .entry-content ul.products li.product,
  .shop-fehnleev-page ul.products.columns-5 li.product {
    border-radius: 11px !important;
  }

  .shop-fehnleev-page .entry-content ul.products li.product .woocommerce-loop-product__title,
  .shop-fehnleev-page .entry-content ul.products li.product h2,
  .shop-fehnleev-page ul.products.columns-5 li.product h2.woocommerce-loop-product__title {
    padding: 9px 9px 6px !important;
    font-size: 0.88rem !important;
    min-height: 3em !important;
  }

  .shop-fehnleev-page .entry-content ul.products li.product .price,
  .shop-fehnleev-page ul.products.columns-5 li.product .price {
    padding: 0 9px !important;
    font-size: 0.87rem !important;
  }

  .shop-fehnleev-page .entry-content ul.products li.product .button,
  .shop-fehnleev-page .entry-content ul.products li.product a.button,
  .shop-fehnleev-page ul.products.columns-5 li.product .button,
  .shop-fehnleev-page ul.products.columns-5 li.product a.button {
    width: calc(100% - 18px) !important;
    margin: 8px 9px 9px !important;
    padding: 9px 10px !important;
    font-size: 0.8rem !important;
  }
}
