/*
Theme Name: LiNes
Theme URI: https://li-nes.com
Author: LiNes
Author URI: https://li-nes.com
Description: Custom Theme für LiNes – Heiz- und Kühldecken. Mit Hero-Slideshow (beliebig viele Bilder, automatischer Wechsel, Punkt-Indikator).
Version: 3.3.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lines
Tags: business, e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== ROOT VARIABLES ===== */
:root {
  --lines-blue: #1B7A9E;
  --lines-blue-deep: #155F7C;
  --lines-blue-soft: #E8F2F6;
  --lines-grey: #7B7B7D;
  --lines-grey-dark: #4A4A4C;
  --lines-grey-light: #C9C9CB;
  --ink: #1F2326;
  --paper: #FAFAF8;
  --paper-warm: #F4F2EE;
  --line: #E5E3DE;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ===== NAV ===== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px 14px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px;
  position: relative;
}
.site-nav .nav-logo-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.site-nav .brand {
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.site-nav .brand-mark {
  width: 78px; height: 36px;
  border: 1.8px solid var(--lines-grey);
  border-radius: 18px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 500; font-size: 18px;
  letter-spacing: -0.01em;
}
.site-nav .brand-mark .li { color: var(--lines-blue); }
.site-nav .brand-mark .nes { color: var(--lines-grey-dark); }
.site-nav .brand img,
.site-nav .brand img.custom-logo {
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
}

.site-nav .nav-links,
.site-nav ul.nav-links,
.site-nav #menu-primary,
.site-nav .nav-inner > ul {
  display: flex !important;
  gap: 44px;
  align-items: center;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-content: center !important;
  flex-wrap: wrap;
}
.site-nav .nav-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-nav .nav-links li a,
.site-nav .nav-links a {
  color: var(--lines-grey-dark);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
  display: inline-block;
}
.site-nav .nav-links a:hover { color: var(--lines-blue); }
.site-nav .nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1.5px;
  background: var(--lines-blue);
  transition: width 0.25s ease, left 0.25s ease;
}
.site-nav .nav-links a:hover::after { width: 100%; left: 0; }

.nav-cart {
  position: absolute;
  right: 32px;
  top: 22px;
}

.site-nav .menu-toggle {
  display: none;
  background: none; border: none;
  width: 32px; height: 32px;
  cursor: pointer;
  color: var(--ink);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== HERO ===== */
.hero { padding: 30px 0 110px; position: relative; }
.hero-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 70px 0;
}
.hero-text .eyebrow { justify-content: center; }
.hero-text .lead {
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { justify-content: center; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  overflow: hidden;
  background: white;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.15);
}
.hero-visual-top { margin-bottom: 0; }
.hero-visual-bottom { margin-top: 0; }
.hero-image {
  width: 100%;
  height: auto;
  display: block;
}
.ceiling-svg { width: 100%; height: 100%; }

/* Hero-Layout-Varianten */
.hero-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-pair .hero-visual { margin: 0; max-width: 100%; }

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-split .hero-visual { margin: 0; max-width: 100%; }
.hero-split .hero-text { padding: 0; max-width: none; text-align: left; }
.hero-split .hero-text .eyebrow { justify-content: flex-start; }
.hero-split .hero-text .lead { margin-left: 0; margin-right: 0; }
.hero-split .hero-actions { justify-content: flex-start; }

.hero-variant-text-only .hero-text { padding: 100px 0; }

/* ===== HERO SLIDESHOW (auto-only, Punkte als Indikator) ===== */
.hero-slideshow {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: white;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.15);
}
.hero-slideshow .slideshow-track {
  position: relative;
  width: 100%;
}
.hero-slideshow .slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}
.hero-slideshow .slideshow-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative; /* Aktives Bild definiert Höhe */
}
.hero-slideshow .slideshow-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Dots */
.hero-slideshow .slideshow-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
}
.hero-slideshow .slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-slideshow .slideshow-dot:hover {
  background: rgba(0, 0, 0, 0.4);
}
.hero-slideshow .slideshow-dot.is-active {
  background: var(--lines-blue);
  width: 24px;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .hero-pair, .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-split .hero-text { text-align: center; }
  .hero-split .hero-text .eyebrow { justify-content: center; }
  .hero-split .hero-actions { justify-content: center; }
}

/* Stats-Sektion (eigenständig wenn separat verwendet) */
.stats-section {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-section .hero-stats {
  border-top: none;
  border-bottom: none;
  margin-top: 0;
  padding: 0;
}

/* Über-uns Layout-Varianten */
.ueber-grid-reverse {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.ueber-centered {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.ueber-centered .eyebrow { justify-content: center; }
.ueber-centered .ueber-list { text-align: left; }

@media (max-width: 960px) {
  .ueber-grid-reverse { grid-template-columns: 1fr; gap: 50px; }
}

/* Header-Layout: inline-split (Logo mittig, Menü links + rechts) */
.site-nav.header-mode-inline-split .nav-inner {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.nav-links-half {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links-half li { list-style: none; }
.nav-links-half a {
  color: var(--lines-grey-dark);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links-half a:hover { color: var(--lines-blue); }

@media (max-width: 768px) {
  .site-nav.header-mode-inline-split .nav-inner { flex-direction: column; gap: 14px; }
  .nav-links-half { display: none; }
  .nav-links-half.open { display: flex; flex-direction: column; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lines-blue);
  margin-bottom: 28px;
}
.eyebrow::before { display: none; }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
}
h1 em, .h1 em { font-style: italic; color: var(--lines-blue); font-weight: 300; }

.hero p.lead { font-size: 19px; color: var(--lines-grey-dark); max-width: 540px; margin-bottom: 40px; line-height: 1.55; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 500; font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--lines-blue); color: white; }
.btn-primary:hover { background: var(--lines-blue-deep); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(27, 122, 158, 0.5); color: white; }
.btn-secondary { border-color: var(--lines-grey); color: var(--ink); background: transparent; }
.btn-secondary:hover { border-color: var(--ink); background: var(--ink); color: white; }
.arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-stats {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .num em { color: var(--lines-blue); font-style: normal; }
.stat .lbl { font-size: 13px; color: var(--lines-grey); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 8px; }

/* ===== SECTIONS ===== */
section { padding: 110px 0; position: relative; z-index: 1; }
.section-head { margin-bottom: 64px; max-width: 720px; }
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
h2 em, .h2 em { font-style: italic; color: var(--lines-blue); font-weight: 300; }
.section-head p { font-size: 17px; color: var(--lines-grey-dark); line-height: 1.65; }

/* ===== LEISTUNGEN ===== */
.leistungen { background: var(--paper-warm); }
.leistung-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.leistung-card {
  background: var(--paper-warm);
  padding: 38px 32px;
  transition: background 0.3s;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.leistung-card:hover { background: white; }
.leist-num {
  font-family: var(--font-display);
  font-size: 14px; color: var(--lines-blue);
  font-weight: 500; letter-spacing: 0.08em;
  margin-bottom: 50px;
}
.leist-icon { width: 44px; height: 44px; margin-bottom: 24px; color: var(--lines-blue); }
.leist-icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.leistung-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin-bottom: 12px; letter-spacing: -0.01em; }
.leistung-card p { font-size: 14.5px; color: var(--lines-grey-dark); line-height: 1.55; }

/* ===== SORTIMENT ===== */
.sortiment { background: var(--ink); color: var(--paper); }
.sortiment::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(27,122,158,0.25), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(27,122,158,0.12), transparent 60%);
  pointer-events: none;
}
.sortiment .container { position: relative; z-index: 2; }
.sortiment h2 { color: var(--paper); }
.sortiment .section-head p { color: var(--lines-grey-light); }
.sortiment .eyebrow { color: #5BB4D6; }
.sortiment .eyebrow::before { display: none; }

.produkt-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.produkt-item {
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  transition: padding 0.3s;
}
.produkt-item:nth-child(odd) { padding-right: 40px; border-right: 1px solid rgba(255,255,255,0.12); }
.produkt-item:nth-child(even) { padding-left: 40px; }
.produkt-item:hover { padding-left: 10px; }
.produkt-item:nth-child(even):hover { padding-left: 50px; }
.produkt-num { font-family: var(--font-display); color: #5BB4D6; font-size: 14px; letter-spacing: 0.08em; }
.produkt-text h4 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin-bottom: 6px; letter-spacing: -0.01em; }
.produkt-text p { font-size: 14px; color: var(--lines-grey-light); line-height: 1.5; }
.produkt-arrow { color: var(--lines-grey-light); opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.produkt-item:hover .produkt-arrow { opacity: 1; transform: translateX(4px); color: #5BB4D6; }

/* ===== ÜBER ===== */
.ueber-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.ueber-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(27,122,158,0.08), transparent 60%), var(--paper-warm);
  border: 1.5px solid var(--line);
  position: relative; overflow: hidden;
  padding: 40px;
}
.ueber-visual-inner { position: absolute; inset: 30px; border: 1.5px solid var(--lines-grey); border-radius: var(--radius-lg); }
.ueber-visual-inner::before {
  content: ""; position: absolute;
  top: 30px; bottom: 30px; left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--lines-blue), transparent);
}
.ueber-quote {
  position: absolute; bottom: 50px; left: 50px; right: 50px;
  font-family: var(--font-display);
  font-style: italic; font-size: 22px;
  line-height: 1.35; color: var(--lines-grey-dark);
}
.ueber-quote span { color: var(--lines-blue); }
.ueber-content h2 { margin-bottom: 28px; }
.ueber-content p { font-size: 16.5px; color: var(--lines-grey-dark); line-height: 1.7; margin-bottom: 20px; }
.ueber-list { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.ueber-list li {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 100px 1fr;
  gap: 20px; font-size: 15px;
}
.ueber-list li strong {
  font-family: var(--font-display);
  font-weight: 500; color: var(--lines-blue);
  font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; padding-top: 2px;
}

/* ===== KEYWORDS ===== */
.keywords-band {
  background: var(--paper-warm);
  padding: 70px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.keywords-band h3 {
  font-family: var(--font-display);
  font-weight: 400; font-style: italic;
  font-size: 17px; color: var(--lines-grey);
  margin-bottom: 24px; text-align: center;
  letter-spacing: 0.02em;
}
.keywords-flow {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  max-width: 900px; margin: 0 auto;
}
.keywords-flow span {
  padding: 9px 20px;
  border: 1px solid var(--lines-grey-light);
  border-radius: 999px;
  font-size: 14px; color: var(--lines-grey-dark);
  background: white; transition: all 0.2s;
}
.keywords-flow span:hover { border-color: var(--lines-blue); color: var(--lines-blue); transform: translateY(-2px); }

/* ===== KONTAKT ===== */
.kontakt { padding: 130px 0; }
.kontakt-center {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.kontakt-center .eyebrow { justify-content: center; }
.kontakt-center h2 { margin-bottom: 28px; }
.kontakt-center .lead {
  font-size: 18px;
  color: var(--lines-grey-dark);
  line-height: 1.65;
  margin: 0 auto 56px;
  max-width: 580px;
}

.kontakt-mail-cta {
  margin-bottom: 64px;
}
.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 40px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  box-shadow: 0 12px 30px -18px rgba(27, 122, 158, 0.25);
  max-width: 100%;
}
.mail-link svg {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  max-width: 28px;
  color: var(--lines-blue);
  fill: none !important;
  stroke: currentColor !important;
  flex-shrink: 0;
  flex-grow: 0;
  transition: transform 0.3s ease;
}
.mail-link:hover {
  border-color: var(--lines-blue);
  color: var(--lines-blue);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(27, 122, 158, 0.35);
}
.mail-link:hover svg { transform: scale(1.1); }
.mail-hint {
  margin-top: 18px;
  font-size: 14px;
  color: var(--lines-grey);
}

.kontakt-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
  max-width: 720px;
  margin: 0 auto;
}
.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.meta-lbl {
  font-size: 11.5px;
  color: var(--lines-grey);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.meta-val {
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
}
a.meta-val:hover { color: var(--lines-blue); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: var(--lines-grey-light);
  padding: 70px 0 32px;
  position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-brand .brand-mark { border-color: var(--lines-grey-light); }
.footer-brand .brand-mark .nes { color: var(--lines-grey-light); }
.footer-brand p { margin-top: 22px; font-size: 14px; line-height: 1.6; max-width: 320px; }
.site-footer h5 { color: white; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; font-weight: 600; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer ul li a { color: var(--lines-grey-light); text-decoration: none; transition: color 0.2s; }
.site-footer ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--lines-grey);
  flex-wrap: wrap; gap: 14px;
}
.footer-legal { font-size: 12px; color: var(--lines-grey); margin-top: 8px; line-height: 1.6; }

/* ===== ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ===== WOOCOMMERCE BASIC OVERRIDES ===== */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce-page a.button,
.woocommerce button.button {
  background: var(--lines-blue);
  color: white !important;
  border-radius: 999px;
  padding: 12px 24px !important;
  font-family: inherit;
  font-weight: 500;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover { background: var(--lines-blue-deep); }
.woocommerce-cart-icon { color: var(--ink); margin-left: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .ueber-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-text { padding: 50px 0; }
  .leistung-grid { grid-template-columns: repeat(2, 1fr); }
  .produkt-list { grid-template-columns: 1fr; }
  .produkt-item:nth-child(odd) { padding-right: 0; border-right: none; }
  .produkt-item:nth-child(even) { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-inner { padding: 14px 22px; gap: 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px 22px;
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }
  .menu-toggle { display: block; }
  .nav-cart { right: 64px; top: 18px; }

  section { padding: 80px 0; }
  .hero { padding: 50px 0 70px; }
}
@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .nav-inner { padding: 14px 22px; }
  .leistung-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { grid-template-columns: 1fr; gap: 22px; }
  .hero-stats .stat { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-stats .stat:last-child { border-bottom: none; }
  .kontakt { padding: 80px 0; }
  .mail-link { padding: 18px 28px; }
  .ueber-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ===== MOBILE OVERFLOW-FIX ===== */
/* Verhindert weißen Streifen rechts auf Mobile */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  width: 100%;
  position: relative;
}
* {
  max-width: 100vw;
}
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}
.container {
  width: 100%;
  box-sizing: border-box;
}

/* Kein Element kann horizontal über den Viewport hinausragen */
@media (max-width: 768px) {
  .hero-visual,
  .hero-image,
  .leistung-grid,
  .produkt-list,
  .ueber-grid,
  .ueber-grid-reverse,
  .keywords-band,
  .kontakt-meta,
  .footer-grid,
  .nav-inner {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Hero-Bilder dürfen Container voll ausfüllen */
  .hero-visual {
    width: 100%;
    max-width: 100% !important;
  }

  /* Alle Sektionen ohne Überschneidung */
  section, header, footer {
    overflow-x: hidden;
  }
}

/* Sehr kleine Bildschirme: Padding leicht reduzieren */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
}
