@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   Design System Tokens & Base Settings
   ========================================================================== */
:root {
  /* Color Palette */
  --charcoal-black: #0d0f11;
  --charcoal-deep: #16191d;
  --charcoal-medium: #1f2329;
  --charcoal-light: #2c323a;
  --charcoal-border: rgba(255, 255, 255, 0.08);
  
  --oak-warm: #a67c52;
  --oak-hover: #b88d61;
  --walnut-deep: #523b28;
  --wood-glow: #e2cca9;
  
  --offwhite-bright: #faf9f6;
  --offwhite-soft: #f4f1eb;
  --offwhite-muted: #c8c5be;
  
  /* Fonts */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Motion & Speed */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-tactile: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Shadows & Blurs */
  --blur-premium: blur(20px);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(166, 124, 82, 0.25);
  
  /* Sizing & Structure */
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--charcoal-black);
  color: var(--offwhite-bright);
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--charcoal-black);
}
::-webkit-scrollbar-thumb {
  background: var(--charcoal-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--oak-warm);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

/* ==========================================================================
   Header Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(13, 15, 17, 0.7);
  backdrop-filter: var(--blur-premium);
  -webkit-backdrop-filter: var(--blur-premium);
  border-bottom: 1px solid var(--charcoal-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 70px;
  background: rgba(13, 15, 17, 0.9);
  border-bottom: 1px solid rgba(166, 124, 82, 0.2);
}

.logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--offwhite-bright);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--oak-warm);
  font-weight: 300;
}

nav {
  display: flex;
  gap: 3rem;
}

nav a {
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--offwhite-muted);
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--oak-warm);
  transition: var(--transition-tactile);
}

nav a:hover, nav a.active {
  color: var(--offwhite-bright);
}

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

.nav-cta {
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--oak-warm);
  padding: 0.7rem 1.8rem;
  border-radius: 100px;
  color: var(--oak-warm);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-tactile);
}

.nav-cta:hover {
  background: var(--oak-warm);
  color: var(--charcoal-black);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 20px;
  z-index: 101;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--offwhite-bright);
  transition: var(--transition-tactile);
  position: absolute;
}

.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 9px; }
.mobile-nav-toggle span:nth-child(3) { top: 18px; }

.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 95vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  background-image: linear-gradient(to right, rgba(13, 15, 17, 0.95) 35%, rgba(13, 15, 17, 0.4) 70%), url('assets/hero_kitchen.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
  z-index: 2;
  position: relative;
  transform: translateY(20px);
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(166, 124, 82, 0.12);
  border: 1px solid rgba(166, 124, 82, 0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  color: var(--wood-glow);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-badge span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--oak-warm);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.15;
  color: var(--offwhite-bright);
  margin-bottom: 1.5rem;
}

.hero h1 span {
  font-style: italic;
  font-weight: 400;
  color: var(--wood-glow);
  display: block;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--offwhite-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--oak-warm);
  color: var(--charcoal-black);
  padding: 1.1rem 2.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-tactile);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  background: var(--oak-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(166, 124, 82, 0.4);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--offwhite-bright);
  border: 1px solid var(--charcoal-light);
  padding: 1.1rem 2.4rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-tactile);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--offwhite-muted);
  transform: translateY(-2px);
}

/* Interactive Hero Floating Card */
.hero-stats {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  background: rgba(22, 25, 29, 0.8);
  backdrop-filter: var(--blur-premium);
  -webkit-backdrop-filter: var(--blur-premium);
  border-top: 1px solid var(--charcoal-border);
  border-left: 1px solid var(--charcoal-border);
  padding: 2.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 2;
  border-top-left-radius: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--oak-warm);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--offwhite-muted);
}

/* ==========================================================================
   Portfolio Grid (Masonry / Flex Cards)
   ========================================================================== */
.section {
  padding: 10rem 4rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.section-title {
  max-width: 500px;
}

.section-tag {
  color: var(--oak-warm);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}

.section-title h2 {
  font-size: 3rem;
  line-height: 1.2;
}

.section-desc {
  max-width: 400px;
  color: var(--offwhite-muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--charcoal-deep);
  aspect-ratio: 4/5;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

/* Masonry adjustments */
.portfolio-item.col-5 {
  grid-column: span 5;
}

.portfolio-item.col-7 {
  grid-column: span 7;
  aspect-ratio: 7/5;
}

.portfolio-item.col-12 {
  grid-column: span 12;
  aspect-ratio: 16/7;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 15, 17, 0.9) 10%, rgba(13, 15, 17, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.portfolio-details {
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.portfolio-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--oak-warm);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-item h3 {
  font-size: 1.8rem;
  color: var(--offwhite-bright);
  margin-bottom: 0.8rem;
}

.portfolio-excerpt {
  font-size: 0.95rem;
  color: var(--offwhite-muted);
  font-weight: 300;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.portfolio-arrow {
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--offwhite-bright);
  background: rgba(13, 15, 17, 0.3);
  backdrop-filter: var(--blur-premium);
  transform: scale(0.9) rotate(-45deg);
  opacity: 0;
  transition: var(--transition-tactile);
}

/* Hover Effects */
.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(13, 15, 17, 0.95) 15%, rgba(13, 15, 17, 0.35) 60%, transparent 100%);
  opacity: 1;
}

.portfolio-item:hover .portfolio-details {
  transform: translateY(0);
}

.portfolio-item:hover .portfolio-excerpt {
  opacity: 1;
  height: auto;
  margin-top: 0.5rem;
}

.portfolio-item:hover .portfolio-arrow {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  border-color: var(--oak-warm);
  color: var(--oak-warm);
}

/* ==========================================================================
   Manufaktur / Quality Showcase (Craftsmanship section)
   ========================================================================== */
.manufaktur-sec {
  background: var(--charcoal-deep);
  border-top: 1px solid var(--charcoal-border);
  border-bottom: 1px solid var(--charcoal-border);
}

.manufaktur-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.manufaktur-images {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  height: 480px;
}

.m-img {
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  height: 100%;
}

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

.m-img-1 {
  grid-column: 1 / 9;
  grid-row: 1;
  height: 420px;
  z-index: 2;
}

.m-img-2 {
  grid-column: 6 / 13;
  grid-row: 1;
  height: 320px;
  align-self: flex-end;
  z-index: 1;
  border: 4px solid var(--charcoal-deep);
}

.manufaktur-text h2 {
  font-size: 2.8rem;
  line-height: 1.25;
  margin-bottom: 1.8rem;
}

.manufaktur-text p {
  color: var(--offwhite-muted);
  font-weight: 300;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.quality-pills {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.quality-pill {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.pill-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--oak-warm);
  margin-top: 0.2rem;
}

.pill-desc h4 {
  font-size: 1.15rem;
  color: var(--offwhite-bright);
  margin-bottom: 0.3rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.pill-desc p {
  font-size: 0.95rem;
  color: var(--offwhite-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Interactive Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(13, 15, 17, 0.97);
  backdrop-filter: var(--blur-premium);
  -webkit-backdrop-filter: var(--blur-premium);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  object-fit: contain;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-top: 1.5rem;
  color: var(--offwhite-bright);
}

.lightbox-desc {
  font-size: 1rem;
  color: var(--offwhite-muted);
  margin-top: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: var(--offwhite-bright);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-tactile);
}

.lightbox-close:hover {
  color: var(--oak-warm);
}

/* ==========================================================================
   AI Floating Chatbot (FORMA Projekt-Assistent)
   ========================================================================== */
.chat-widget {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Floating Trigger Button */
.chat-trigger {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--oak-warm);
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(166, 124, 82, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-black);
  transition: var(--transition-bounce);
  position: relative;
}

.chat-trigger:hover {
  transform: scale(1.08) translateY(-3px);
  background: var(--oak-hover);
  box-shadow: 0 15px 40px rgba(166, 124, 82, 0.5);
}

.chat-trigger svg {
  position: absolute;
  transition: var(--transition-bounce);
  width: 28px;
  height: 28px;
}

.chat-trigger .icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.chat-trigger.open .icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.chat-trigger.open .icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Chat notification badge */
.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--offwhite-bright);
  color: var(--charcoal-black);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: badgeBounce 3s infinite;
  border: 2px solid var(--oak-warm);
}

@keyframes badgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Chat Container window */
.chat-container {
  width: 400px;
  height: 600px;
  background: var(--charcoal-deep);
  border: 1px solid var(--charcoal-border);
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.95);
  transform-origin: bottom right;
  transition: var(--transition-bounce);
}

.chat-container.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  background: rgba(22, 25, 29, 0.85);
  backdrop-filter: var(--blur-premium);
  -webkit-backdrop-filter: var(--blur-premium);
  border-bottom: 1px solid var(--charcoal-border);
  padding: 1.2rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--walnut-deep);
  border: 1px solid var(--oak-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wood-glow);
  font-family: var(--font-serif);
  font-weight: bold;
}

.chat-agent-meta h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--offwhite-bright);
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--offwhite-muted);
}

.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulseGlow 1.5s infinite;
}

.chat-actions {
  display: flex;
  gap: 0.5rem;
}

.chat-action-btn {
  background: none;
  border: none;
  color: var(--offwhite-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  transition: var(--transition-tactile);
}

.chat-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--offwhite-bright);
}

/* Chat Content / Message History */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.chat-bubble {
  max-width: 82%;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: bubbleAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes bubbleAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble.ai {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--charcoal-border);
  color: var(--offwhite-bright);
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}

.chat-bubble.user {
  background: var(--oak-warm);
  color: var(--charcoal-black);
  font-weight: 500;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--offwhite-muted);
  margin-top: 0.4rem;
  text-align: right;
  display: block;
}

.chat-bubble.user .chat-time {
  color: rgba(13, 15, 17, 0.6);
}

/* Chat suggested chips / quick replies */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.5rem 1.5rem 1.2rem 1.5rem;
  background: var(--charcoal-deep);
  border-top: none;
}

.suggestion-chip {
  background: rgba(166, 124, 82, 0.06);
  border: 1px solid rgba(166, 124, 82, 0.25);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--wood-glow);
  cursor: pointer;
  transition: var(--transition-tactile);
}

.suggestion-chip:hover {
  background: rgba(166, 124, 82, 0.15);
  border-color: var(--oak-warm);
  transform: translateY(-1px);
}

/* Chat Input Bar */
.chat-input-bar {
  border-top: 1px solid var(--charcoal-border);
  padding: 1.2rem;
  background: rgba(22, 25, 29, 0.95);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.chat-input {
  flex: 1;
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-border);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: var(--offwhite-bright);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-tactile);
}

.chat-input:focus {
  border-color: rgba(166, 124, 82, 0.5);
  box-shadow: 0 0 10px rgba(166, 124, 82, 0.15);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--oak-warm);
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-black);
  transition: var(--transition-tactile);
}

.chat-send-btn:hover {
  background: var(--oak-hover);
  transform: scale(1.03);
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.4rem 0.2rem;
  align-self: flex-start;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--offwhite-muted);
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--charcoal-black);
  border-top: 1px solid var(--charcoal-border);
  padding: 5rem 4rem 3rem 4rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 5rem;
  margin-bottom: 4rem;
}

.footer-info p {
  color: var(--offwhite-muted);
  font-weight: 300;
  margin-top: 1.5rem;
  max-width: 320px;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--offwhite-bright);
  margin-bottom: 1.8rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--offwhite-muted);
  font-weight: 300;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--oak-warm);
  padding-left: 5px;
}

.footer-contact p {
  color: var(--offwhite-muted);
  font-weight: 300;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-contact strong {
  color: var(--offwhite-bright);
}

.footer-bottom {
  border-top: 1px solid var(--charcoal-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--offwhite-muted);
  font-size: 0.85rem;
  font-weight: 300;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a:hover {
  color: var(--oak-warm);
}

/* ==========================================================================
   Responsive Design & Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  header {
    padding: 0 2.5rem;
  }
  .hero {
    padding: 0 2.5rem;
  }
  .section {
    padding: 8rem 2.5rem;
  }
  footer {
    padding: 5rem 2.5rem 3rem 2.5rem;
  }
  .manufaktur-content {
    gap: 3rem;
  }
}

@media (max-width: 991px) {
  /* Navigation */
  header {
    padding: 0 2rem;
  }
  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--charcoal-black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 3rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 99;
  }
  nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-cta {
    display: none; /* Can merge in mobile menu if needed */
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    background-image: linear-gradient(to top, rgba(13, 15, 17, 0.98) 10%, rgba(13, 15, 17, 0.6) 100%), url('assets/hero_kitchen.png');
    background-attachment: scroll;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero-stats {
    position: relative;
    width: 100%;
    margin-top: 4rem;
    bottom: auto;
    right: auto;
    padding: 2.5rem 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--charcoal-border);
    background: transparent;
  }

  /* Portfolio */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .portfolio-item.col-5,
  .portfolio-item.col-7 {
    grid-column: span 12;
    aspect-ratio: 4/3;
  }
  .portfolio-item.col-12 {
    aspect-ratio: 4/3;
  }
  .portfolio-arrow {
    opacity: 1;
    top: auto;
    bottom: 2rem;
    right: 2rem;
    transform: scale(1) rotate(0deg);
  }

  /* Manufaktur */
  .manufaktur-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .manufaktur-images {
    height: 400px;
    order: 2;
  }
  .m-img-1 {
    height: 350px;
  }
  .m-img-2 {
    height: 250px;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .chat-container {
    width: calc(100vw - 2rem);
    height: calc(100vh - 120px);
    right: 1rem;
    bottom: 5.5rem;
  }
  .chat-widget {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 576px) {
  header {
    padding: 0 1.5rem;
  }
  .hero {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .section {
    padding: 5rem 1.5rem;
  }
  footer {
    padding: 4rem 1.5rem 2rem 1.5rem;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .portfolio-overlay {
    padding: 1.5rem;
  }
  .portfolio-item h3 {
    font-size: 1.4rem;
  }
}
