/* ==========================================================================
   Nähmaschinen Pitter — Styles
   ========================================================================== */

/* --- Local Fonts --- */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/cinzel-400.ttf') format('truetype'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/cinzel-700.ttf') format('truetype'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/cinzel-900.ttf') format('truetype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/montserrat-300.ttf') format('truetype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/montserrat-400.ttf') format('truetype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/montserrat-500.ttf') format('truetype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/montserrat-600.ttf') format('truetype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/montserrat-700.ttf') format('truetype'); }

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

:root {
  --color-primary: #A10000;
  --color-accent: #A31B1B;
  --color-dark: #5A1F1F;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-gray: #424242;
  --color-light-gray: #f5f5f5;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
  --top-bar-height: 36px;
  --header-height: 80px;
  --total-header-height: calc(var(--top-bar-height) + var(--header-height));
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--total-header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Site Top (fixed wrapper) --- */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 0;
}

.top-bar a {
  color: var(--color-white);
  text-decoration: underline;
  font-weight: 600;
}

.top-bar a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

/* --- Pinned Banner --- */
.pinned-banner {
  display: block;
  background: #FFF3CD;
  border-bottom: 2px solid #FFCC02;
  padding: 14px 0;
  font-size: 0.95rem;
  color: #664D03;
}

.pinned-banner.hidden {
  display: none;
}

.pinned-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pinned-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #664D03;
}

.pinned-banner-content svg {
  flex-shrink: 0;
  color: #664D03;
}

.pinned-banner-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #664D03;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.pinned-banner-close:hover {
  opacity: 1;
}

/* --- Announcements Section --- */
.announcements {
  background: var(--color-white);
  padding: 60px 0;
}

.announcements-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.announcement-card {
  padding: 28px 32px;
  border-left: 4px solid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Öffnungszeiten — warm/rot */
.announcement-card--hours {
  background: #FDF8F8;
  border-color: var(--color-primary);
}

/* Neuigkeiten — kühl/grau */
.announcement-card--news {
  background: #F8F9FB;
  border-color: var(--color-gray);
}

.announcement-card .announcement-label {
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.announcement-card--hours .announcement-label {
  color: var(--color-primary);
}

.announcement-card--news .announcement-label {
  color: var(--color-gray);
}

.announcement-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.announcement-card--hours h3 {
  color: var(--color-primary);
}

.announcement-card--news h3 {
  color: var(--color-black);
}

.announcement-card p {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

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

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

.btn-hero {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.1rem;
  padding: 16px 36px;
}

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

.btn-submit {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 40px;
  font-size: 1.05rem;
}

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

.icon {
  flex-shrink: 0;
}

/* --- Section Defaults --- */
.section {
  padding: 80px 0;
}

.section-label {
  display: block;
  text-align: center;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-black);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

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

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-gray);
  margin-bottom: 48px;
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.85);
}

.section-quote {
  text-align: center;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-gray);
  margin-bottom: 48px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  height: var(--header-height);
  background: var(--color-white);
  transition: box-shadow 0.3s ease;
}

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

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

.logo img {
  height: 50px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-aktuelles {
  color: var(--color-primary) !important;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

.header-cta {
  font-size: 0.85rem;
  padding: 10px 18px;
  white-space: nowrap;
}

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

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--site-top-height, var(--total-header-height));
  overflow: hidden;
}

/* Hero Slides */
.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: 3px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-weight: 300;
}

/* Slider Dots */
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-dot:hover {
  border-color: var(--color-white);
  transform: scale(1.2);
}

.hero-dot.active {
  background: var(--color-white);
  border-color: var(--color-white);
}

/* Info Boxes */
.info-boxes {
  background: var(--color-white);
  padding: 0;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.info-boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-box {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.info-box-icon {
  color: var(--color-primary);
  margin-bottom: 16px;
}

.info-box h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-black);
}

.info-box p {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.7;
}

/* ==========================================================================
   Geschichte / Timeline
   ========================================================================== */
.geschichte {
  background: var(--color-light-gray);
  overflow: hidden;
  padding: 0;
}

/* Two-column layout: image left (full edge), timeline right */
.geschichte-layout {
  display: grid;
  grid-template-columns: 45% 1fr;
  align-items: start;
}

.geschichte-image {
  position: sticky;
  top: var(--total-header-height);
  height: calc(100vh - var(--total-header-height));
  overflow: hidden;
}

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

.geschichte-right {
  padding: 48px 48px 48px 48px;
}

.section-title--left {
  text-align: left;
}

.section-quote--left {
  text-align: left;
}

.section-divider {
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  margin-bottom: 20px;
}

/* Timeline — alternating 3-column grid */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: #e0d0d0;
}

.timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--line-progress, 0%);
  background: var(--color-primary);
  transition: height 0.1s linear;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 0 16px;
  align-items: center;
}

.timeline.js-ready .timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline.js-ready .timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Left and right columns */
.timeline-left {
  text-align: right;
}

.timeline-right {
  text-align: left;
}

/* Dot */
.timeline-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  z-index: 2;
  color: var(--color-primary);
  justify-self: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(161, 0, 0, 0.1);
}

.timeline-item:hover .timeline-dot {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(161, 0, 0, 0.3);
}

.timeline-dot--highlight {
  background: var(--color-primary);
  color: var(--color-white);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(161, 0, 0, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(161, 0, 0, 0); }
}

/* Year */
.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gray);
  letter-spacing: 1px;
  line-height: 1;
}

/* Card */
.timeline-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.timeline-card p {
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* Highlight card (Heute) */
.timeline-card--highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
  border-color: var(--color-primary);
}

.timeline-card--highlight p {
  color: var(--color-white);
}

.timeline-item--highlight:hover .timeline-card--highlight {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(161, 0, 0, 0.25);
}

/* Stagger animation delays */
.timeline-item:nth-child(1) { transition-delay: 0s; }
.timeline-item:nth-child(2) { transition-delay: 0.1s; }
.timeline-item:nth-child(3) { transition-delay: 0.15s; }
.timeline-item:nth-child(4) { transition-delay: 0.2s; }
.timeline-item:nth-child(5) { transition-delay: 0.25s; }
.timeline-item:nth-child(6) { transition-delay: 0.3s; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.team-card {
  text-align: center;
}

.team-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.team-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.03);
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.team-card p {
  color: var(--color-gray);
  font-size: 1rem;
}

/* ==========================================================================
   Hersteller
   ========================================================================== */
.hersteller {
  background: var(--color-light-gray);
}

.hersteller-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.hersteller-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 32px;
  min-height: 160px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hersteller-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(161, 0, 0, 0.15);
  transform: translateY(-3px);
}

.hersteller-card picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hersteller-card img {
  max-height: 100%;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.hersteller-card:hover img {
  filter: grayscale(0%);
}

/* ==========================================================================
   Gebrauchtmaschinen
   ========================================================================== */
.gebrauchtmaschinen {
  position: relative;
  overflow: hidden;
}

.gebrauchtmaschinen-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.gebrauchtmaschinen-overlay {
  position: absolute;
  inset: 0;
  background: rgba(90, 31, 31, 0.85);
}

.gebrauchtmaschinen-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.gebrauchtmaschinen-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.btn-willhaben {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--color-white);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-willhaben:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* ==========================================================================
   Geschäft / Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: var(--color-white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ==========================================================================
   Standorte
   ========================================================================== */
.standorte {
  background: var(--color-dark);
  color: var(--color-white);
}

.standorte-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.standort-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.standort-map iframe {
  display: block;
  width: 100%;
}

.maps-consent {
  width: 100%;
  height: 250px;
  background: #e8e0dc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maps-consent-inner {
  text-align: center;
  padding: 24px;
  color: var(--color-gray);
}

.maps-consent-inner svg {
  color: var(--color-primary);
  margin-bottom: 12px;
}

.maps-consent-inner p {
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-maps-load {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-maps-load:hover {
  background: var(--color-dark);
}

.standort-info {
  padding: 28px;
}

.standort-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-white);
}

.standort-contact-name {
  font-weight: 500;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
}

.standort-info address {
  font-style: normal;
  margin-bottom: 16px;
  line-height: 1.8;
}

.standort-info a {
  color: rgba(255, 255, 255, 0.9);
}

.standort-info a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.standort-hours {
  margin-top: 12px;
}

.standort-hours strong {
  display: block;
  margin-bottom: 8px;
}

.standort-hours ul {
  padding-left: 0;
}

.standort-hours li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.kontakt {
  position: relative;
  overflow: hidden;
}

.kontakt-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

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

.kontakt-inner {
  position: relative;
  z-index: 1;
}

.kontakt-email {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  text-align: center;
}

.kontakt-email a {
  color: var(--color-white);
  text-decoration: underline;
}

.kontakt-form {
  max-width: 600px;
  margin: 40px auto 0;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-white);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

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

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-partner a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

.footer-sep {
  margin: 0 8px;
  opacity: 0.4;
}

.footer-copy {
  font-size: 0.85rem;
}

/* ==========================================================================
   Impressum
   ========================================================================== */
.impressum {
  margin-top: var(--total-header-height);
  min-height: 60vh;
}

.impressum h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 32px;
  color: var(--color-primary);
}

.impressum h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--color-black);
}

.impressum p {
  color: var(--color-gray);
  margin-bottom: 12px;
  line-height: 1.8;
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */
.error-page {
  margin-top: var(--total-header-height);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-page-inner {
  text-align: center;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.error-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--color-black);
}

.error-text {
  color: var(--color-gray);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-dark);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hersteller-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Mobile Nav Breakpoint */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    padding: calc(var(--total-header-height) + 20px) 24px 24px;
    z-index: 999;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
  }

  .header-cta {
    display: none;
  }

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

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

  .info-boxes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-boxes {
    margin-top: -30px;
  }

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

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

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

/* Small Mobile */
@media (max-width: 600px) {
  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }

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

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

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

  .gallery-item img {
    height: 160px;
  }

  .section {
    padding: 60px 0;
  }

  /* Mobile: image above timeline */
  .geschichte-layout {
    grid-template-columns: 1fr;
  }

  .geschichte-image {
    position: static;
    height: 300px;
  }

  .geschichte-right {
    padding: 40px 20px;
  }

  .section-title--left,
  .section-quote--left {
    text-align: center;
  }

  .section-divider {
    max-width: 200px;
    margin: 0 auto 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr 40px 1fr;
    gap: 0 10px;
  }

  .timeline-dot {
    width: 40px;
    height: 40px;
  }

  .timeline-year {
    font-size: 1.1rem;
  }

  .timeline-card {
    padding: 14px;
  }

  .timeline-card p {
    font-size: 0.85rem;
  }

  /* Gebrauchtmaschinen */
  .gebrauchtmaschinen-text {
    font-size: 0.95rem;
  }

  .btn-willhaben {
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  /* Standorte */
  .standort-map iframe,
  .maps-consent {
    height: 200px;
  }

  .standort-info {
    padding: 20px;
  }

  .standort-info h3 {
    font-size: 1.1rem;
  }

  /* Lightbox */
  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 2rem;
  }

  /* Footer */
  .footer {
    padding: 24px 0;
  }
}
