/*
Theme Name: Blumen-Stuben
Theme URI: https://blumenstuben.de
Author: Blumen-Stuben
Description: Individuelles WordPress-Theme für Blumen-Stuben, Dorfstraße 4, Glinde.
Version: 1.0
Text Domain: blumenstuben
*/

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

:root {
  --gray-900: #1a1a1a;
  --gray-800: #2d2d2d;
  --gray-700: #404040;
  --gray-600: #5a5a5a;
  --gray-400: #9a9a9a;
  --gray-200: #e0e0e0;
  --gray-100: #f2f2f2;
  --gray-50:  #fafafa;
  --white:    #ffffff;
  --accent:   #8a7f6e;   /* warmes Taupe als floraler Akzent */
  --accent-light: #c9bfae;

  --font: 'Georgia', serif;
  --font-sans: system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
  hyphens: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===== Utilities ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-gray {
  background: var(--gray-100);
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.label.center { display: block; text-align: center; }

h2 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 20px;
}

h2.center { text-align: center; }

p { color: var(--gray-600); margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gray-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.04em;
}

.btn:hover {
  background: var(--gray-700);
  transform: translateY(-2px);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font);
  font-size: 1.5rem;
  color: var(--gray-900);
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
  letter-spacing: 0.04em;
}

.nav-links a:hover {
  color: var(--gray-900);
}

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
}

/* ===== Logo img ===== */
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

/* ===== Section images ===== */
.section-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.card-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Map ===== */
.map-container {
  margin-top: 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-800);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-content h1 {
  font-family: var(--font);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content .btn {
  background: var(--white);
  color: var(--gray-900);
}

.hero-content .btn:hover {
  background: var(--gray-100);
}

/* ===== Two-column layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.text-block { }

.image-block .image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.card h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9rem;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  transition: transform var(--transition);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover {
  transform: scale(1.02);
}

/* ===== Contact ===== */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-info {
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer p { color: rgba(255,255,255,0.5); margin: 0; font-size: 0.85rem; }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

/* ===== Button variants ===== */
.btn-outline {
  background: transparent;
  color: var(--gray-900);
  border: 2px solid var(--gray-900);
}
.btn-outline:hover {
  background: var(--gray-900);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--gray-900);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

/* ===== Section dark ===== */
.section-dark {
  background: var(--gray-900);
  padding: 96px 0;
}

.center { text-align: center; }

.center-btn {
  text-align: center;
  margin-top: 40px;
}

/* ===== Logo dark (Unterseiten) ===== */
.logo-dark {
  color: var(--gray-900) !important;
}

.nav-links-dark a {
  color: var(--gray-700) !important;
}

.nav-links-dark a:hover,
.nav-links-dark a.active {
  color: var(--gray-900) !important;
}

.nav-links-dark a.active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.menu-toggle-dark span {
  background: var(--gray-800) !important;
}

/* ===== Page Hero (Unterseiten) ===== */
.page-hero {
  background: var(--gray-100);
  padding: 140px 0 64px;
  border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gray-900);
  margin-top: 8px;
}

/* ===== Reverse two-col ===== */
.two-col.reverse {
  direction: rtl;
}
.two-col.reverse > * {
  direction: ltr;
}

/* ===== Team grid ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.team-avatar {
  font-size: 4rem;
  margin-bottom: 16px;
}

.team-card h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px !important;
}

/* ===== Gallery large ===== */
.gallery-large {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== Filter bar ===== */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}

.gallery-item.hidden {
  display: none;
}

/* ===== Map placeholder ===== */
.map-placeholder {
  margin-top: 32px;
  background: var(--gray-200);
  border-radius: 12px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.85rem;
}

.map-placeholder span {
  font-size: 2.5rem;
}

/* ===== Legal / Impressum ===== */
.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-content h2:first-child {
  margin-top: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .two-col.reverse {
    direction: ltr;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--gray-700) !important;
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}
