/* ============================================
   Tischlerei Spieker - Modern Website Styles
   ============================================ */

:root {
  --primary: #B85C00;
  --primary-light: #D4731A;
  --primary-dark: #8A4400;
  --dark: #2B2118;
  --dark-light: #3D3024;
  --cream: #FAF6F0;
  --cream-dark: #F0E8DC;
  --gray: #6B6357;
  --gray-light: #A8A09A;
  --white: #FFFFFF;
  --green: #5C7548;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(43, 33, 24, 0.95);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(43, 33, 24, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.logo-text span {
  color: var(--primary-light);
}

.logo-tag {
  font-size: 0.7rem;
  color: var(--gray-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

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

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none;
}

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

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 72px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(43, 33, 24, 0.8) 0%, rgba(43, 33, 24, 0.5) 50%, rgba(138, 68, 0, 0.4) 100%);
}

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

.hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 span {
  color: var(--primary-light);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-since {
  display: inline-block;
  color: var(--primary-light);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 20px;
  border: 1px solid var(--primary-light);
  border-radius: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 92, 0, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-dark:hover {
  background: var(--dark-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--white);
}

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

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-image .experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.experience-badge .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 16px;
}

.about-features {
  list-style: none;
  margin-top: 24px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--dark);
}

.about-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: var(--cream-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

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

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

.service-card .tag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ============================================
   BESTATTUNGEN SECTION
   ============================================ */
.bestattungen {
  background: var(--dark);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.bestattungen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
}

.bestattungen-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bestattungen .container {
  position: relative;
  z-index: 1;
}

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

.bestattungen .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.bestattungen .eyebrow {
  color: var(--primary-light);
}

.bestattungen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.bestattungen-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.bestattungen-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.bestattungen-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 20px;
}

.bestattungen-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.bestattungen-list {
  list-style: none;
  margin: 24px 0;
}

.bestattungen-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.bestattungen-list li::before {
  content: '✦';
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.bestattungen-cta {
  margin-top: 32px;
}

/* ============================================
   STATS / TRUST BAR
   ============================================ */
.stats {
  background: var(--primary);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
}

.stat-item .stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 32px;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.contact-detail-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact-detail-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
}

.contact-detail-value a {
  color: var(--primary);
}

/* Contact form */
.contact-form {
  background: var(--cream);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 12px;
  text-align: center;
}

/* ============================================
   MAP
   ============================================ */
.map-section {
  padding: 0;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--primary-light);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

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

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

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

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
}

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

.footer-bottom .footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  margin-top: 72px;
  padding: 60px 0;
  background: var(--white);
  min-height: calc(100vh - 72px);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 32px;
  color: var(--primary);
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--dark);
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--gray);
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--gray);
}

.legal-content ul li {
  margin-bottom: 6px;
}

.legal-content strong {
  color: var(--dark);
}

.legal-content a {
  color: var(--primary);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--dark);
  color: var(--white);
  padding: 20px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.9rem;
  max-width: 600px;
}

.cookie-banner p a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

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

.cookie-btn-accept:hover {
  background: var(--primary-dark);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
  border-color: var(--white);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  animation: fadeInUp 0.6s ease 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .about-grid,
  .bestattungen-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image img {
    height: 360px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

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

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--dark);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .nav.open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 90vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding: 60px 0;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

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

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form {
    padding: 24px;
  }
}
