/*
Theme Name: Kaffee 66
Theme URI: https://kaffee66.de
Author: Kaffee 66
Description: Modernes WordPress Theme für Kaffee 66
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: kaffee66
*/

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

:root {
  --cream: #FCF8E7;
  --dark: #001D21;
  --dark-card: #0d2b30;
  --radius: 12px;
  --max-width: 680px;
  --font: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 80px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 2px 12px rgba(0,29,33,0.07);
}

/* Innerer Wrapper: Logo links, Hamburger rechts */
.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  gap: 0;
}

#site-header.hidden { transform: translateY(-100%); }

/* Logo-Container — rechts */
.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* WordPress custom_logo + Placeholder — Mobile: 50px, Desktop: 80px */
.header-logo img,
.header-logo .custom-logo,
.custom-logo-link img {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #c5c5c5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Hamburger — IMMER rechts */
.hamburger-btn {
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}


.hamburger-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== FLYOUT MENU ===== */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: var(--cream);
  z-index: 950;
  padding: 100px 32px 40px;
  transition: right 0.4s cubic-bezier(0.77,0,0.175,1);
  box-shadow: -4px 0 30px rgba(0,29,33,0.15);
}

#mobile-menu.open { right: 0; }
#mobile-menu nav ul { list-style: none; }
#mobile-menu nav ul li { border-bottom: 1px solid rgba(0,29,33,0.1); }

#mobile-menu nav ul li a {
  display: block;
  padding: 16px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

#mobile-menu nav ul li a:hover { opacity: 0.6; }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,29,33,0.4);
  z-index: 940;
}
.menu-overlay.visible { display: block; }

/* ===== MAIN ===== */
main { margin-top: 70px; }


/* Alle Sektionen zentriert und max-width */
.section-neues,
.section-kaffee-spezial,
.section-blog,
#site-footer {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ===== HERO — NEUES ===== */
.section-neues {
  background: var(--dark);
  color: var(--cream);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

/* Bildverhältnis 1080:500 korrekt ohne Verzerrung */
.hero-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 46.3%;
  overflow: hidden;
}

.hero-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-wrap .hero-image-placeholder {
  position: absolute;
  inset: 0;
  background: #1a3a3f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(252,248,231,0.4);
  font-size: 0.9rem;
}

.hero-content { padding: 24px 20px 28px; }

.hero-content h2 {
  font-size: clamp(1.2rem, 4.5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.btn-neues {
  display: inline-block;
  background: var(--cream);
  color: var(--dark);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-neues:hover { opacity: 0.85; transform: scale(1.02); }

/* ===== KAFFEE SPEZIAL SLIDER ===== */
.section-kaffee-spezial { padding: 32px 0 24px; background: var(--cream); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 20px 14px;
  color: var(--dark);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
}

.kaffee-slider-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 20px 16px;
  display: flex;
  gap: 18px;
  scroll-snap-type: x mandatory;
}

.kaffee-slider-wrap::-webkit-scrollbar { display: none; }

.kaffee-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 148px;
}

.kaffee-item .round-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--dark);
  object-fit: cover;
  display: block;
}

.kaffee-img-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--dark);
  background: #e8e0cc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,29,33,0.3);
  font-size: 0.72rem;
  text-align: center;
}

.kaffee-item h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  line-height: 1.3;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 4px 0 2px;
}

.slider-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dark);
  opacity: 0.2;
  transition: opacity 0.2s;
}

.slider-dots span.active { opacity: 1; }

/* ===== BLOG CARDS ===== */
.section-blog { padding: 8px 0 32px; background: var(--cream); }

.blog-card {
  margin: 0 16px 20px;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 2px 16px rgba(0,29,33,0.09);
  overflow: hidden;
  border: 1px solid rgba(0,29,33,0.06);
}

.blog-card-dark { background: var(--dark-card); color: var(--cream); }

/* Bildverhältnis 1060:500 */
.card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 47.2%;
  overflow: hidden;
}

.card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-placeholder {
  position: absolute;
  inset: 0;
  background: #1a3a3f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(252,248,231,0.3);
  font-size: 0.8rem;
}

.card-body { padding: 20px 20px 24px; }

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-body p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-mehr {
  display: inline-block;
  background: var(--dark);
  color: var(--cream);
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-mehr:hover { opacity: 0.8; transform: scale(1.02); }
.blog-card-dark .btn-mehr { background: var(--cream); color: var(--dark); }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--dark);
  color: var(--cream);
  padding: 32px 20px 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { font-size: 0.85rem; opacity: 0.7; transition: opacity 0.2s; }
.footer-links li a:hover { opacity: 1; }

.footer-logo { flex-shrink: 0; }
.footer-logo img { width: 70px; height: 70px; border-radius: 50%; object-fit: contain; }
.footer-logo .logo-placeholder { width: 70px; height: 70px; font-size: 9px; }

/* ===== STICKY BOTTOM NAV ===== */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--cream);
  border-top: 1px solid rgba(0,29,33,0.12);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,29,33,0.1);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s;
  padding: 4px 12px;
}

.bottom-nav-item:hover { opacity: 0.6; }

/* Alle Icons gleich groß, kein Hintergrund, kein Rund */
.bottom-nav-item svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  background: none;
  border-radius: 0;
}
