/*
Theme Name: LDYNO Performance
Theme URI: https://www.lade-druck.de
Author: ChatGPT
Description: Dunkles Performance-Theme für LADE-DRUCK PERFORMANCE | LDYNO mit Social Icons, Menü-Buttons und angepassten Leistungsboxen, Hero-Bereich und Leistungsboxen.
Version: 2.5.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ldyno-performance
*/

:root {
  --ld-bg: #07090b;
  --ld-card: #12161a;
  --ld-red: #e30613;
  --ld-red-dark: #b70510;
  --ld-white: #ffffff;
  --ld-text: #d8d8d8;
  --ld-muted: #a5abb1;
  --ld-border: rgba(255,255,255,.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ld-bg);
  color: var(--ld-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.ld-site {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 12%, rgba(227,6,19,.12), transparent 28%),
    linear-gradient(180deg, #0b0e11 0%, #050607 100%);
}

.ld-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* Top social bar */
.ld-topbar {
  background: #060708;
  border-bottom: 1px solid var(--ld-border);
  color: var(--ld-muted);
  font-size: 14px;
}
.ld-topbar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.ld-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ld-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--ld-border);
  color: #fff;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.ld-social-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.ld-social-btn:hover {
  transform: translateY(-1px);
  background: rgba(227,6,19,.14);
  border-color: rgba(227,6,19,.55);
}
.ld-whatsapp {
  width: auto;
  gap: 8px;
  padding: 0 14px;
  background: #25D366;
  border-color: #25D366;
  color: #051008;
  font-weight: 900;
  font-size: 13px;
}
.ld-whatsapp:hover {
  background: #1fb65a;
  border-color: #1fb65a;
}
.ld-whatsapp svg {
  width: 18px;
  height: 18px;
}

.ld-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,9,11,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ld-border);
}
.admin-bar .ld-header { top: 32px; }
.ld-header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ld-logo {
  text-decoration: none;
  color: var(--ld-white);
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  text-align: center;
}
.ld-logo span { color: var(--ld-red); }
.ld-logo img { max-height: 76px; width: auto; }

/* Main CTA menu buttons */
.ld-menu-buttons {
  background: #090b0d;
  border-bottom: 1px solid var(--ld-border);
  position: relative;
  z-index: 20;
}
.ld-menu-buttons-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 12px;
  padding: 18px 0;
}
.ld-menu-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 18px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .35px;
  color: #fff;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--ld-border);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.ld-menu-button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.26);
}
.ld-menu-button-red {
  background: var(--ld-red);
  border-color: var(--ld-red);
  box-shadow: 0 12px 28px rgba(227,6,19,.24);
}
.ld-menu-button-red:hover {
  background: var(--ld-red-dark);
  border-color: var(--ld-red-dark);
}


.ld-hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: flex;
  align-items: center;
  background: #050607;
}
.ld-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.78) 36%, rgba(0,0,0,.25) 70%, rgba(0,0,0,.5) 100%),
    var(--ld-hero-image);
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}
.ld-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.95));
}
.ld-hero-content {
  position: relative;
  z-index: 2;
  max-width: 790px;
  padding: 96px 0;
}
.ld-kicker {
  color: var(--ld-red);
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-weight: 900;
  margin-bottom: 18px;
  font-size: 15px;
}
.ld-kicker::before {
  content: "////";
  margin-right: 12px;
  letter-spacing: -2px;
}
.ld-hero h1 {
  margin: 0 0 26px;
  color: var(--ld-white);
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: -2px;
  line-height: .94;
  font-size: clamp(38px, 4.9vw, 66px);
  text-shadow: 0 12px 34px rgba(0,0,0,.55);
}
.ld-slogan {
  color: #fff;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  max-width: 760px;
  margin: 0 0 18px;
}
.ld-slogan span { color: var(--ld-red); }
.ld-red-line {
  width: 180px;
  height: 4px;
  background: linear-gradient(90deg, var(--ld-red), transparent);
  margin: 0 0 26px;
}
.ld-hero p {
  font-size: clamp(18px, 1.6vw, 23px);
  color: #e2e2e2;
  max-width: 700px;
  margin: 0 0 34px;
}
.ld-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 28px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .5px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.ld-btn:hover { transform: translateY(-2px); }
.ld-btn-red {
  background: var(--ld-red);
  color: #fff;
  box-shadow: 0 14px 35px rgba(227,6,19,.28);
}
.ld-btn-red:hover { background: var(--ld-red-dark); }
.ld-btn-outline {
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
}
.ld-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
}

.ld-gallery {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ld-border);
  border-bottom: 1px solid var(--ld-border);
  background: #050607;
}
.ld-gallery-card {
  min-height: 250px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.ld-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.42));
}

.ld-features {
  background: #080a0c;
  border-bottom: 1px solid var(--ld-border);
}
.ld-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ld-feature {
  padding: 34px 28px;
  border-right: 1px solid var(--ld-border);
}
.ld-feature:last-child { border-right: 0; }
.ld-icon {
  width: 54px;
  height: 54px;
  border: 2px solid var(--ld-red);
  color: var(--ld-red);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 16px;
}
.ld-feature strong {
  display: block;
  color: #fff;
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 8px;
}
.ld-feature span {
  color: #b9bdc2;
  font-size: 15px;
}

.ld-section {
  padding: 82px 0;
  background: #0b0e11;
}
.ld-section h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  text-transform: uppercase;
}
.ld-section p {
  max-width: 760px;
  margin: 0;
  font-size: 19px;
  color: #c9cdd1;
}
.ld-footer {
  background: #050607;
  border-top: 1px solid var(--ld-border);
  color: var(--ld-muted);
  padding: 34px 0;
  font-size: 14px;
}
.ld-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.ld-footer-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ld-footer-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.ld-footer-menu a:hover { color: var(--ld-red); }

@media (max-width: 980px) {
  .ld-topbar-inner {
    justify-content: center;
    flex-direction: column;
    padding: 10px 0;
  }
  .ld-header-inner { min-height: 78px; }

  .ld-menu-buttons-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 0;
  }
  .ld-menu-button-red {
    grid-column: 1 / -1;
  }

  .ld-hero {
    min-height: 790px;
    align-items: flex-end;
  }
  .ld-hero::before {
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.58) 42%, rgba(0,0,0,.98) 78%),
      var(--ld-mobile-hero-image, var(--ld-hero-image));
    background-position: center top;
  }
  .ld-hero-content {
    padding: 335px 0 58px;
  }
  .ld-hero h1 {
    font-size: clamp(40px, 11vw, 66px);
    letter-spacing: -1px;
  }
  .ld-gallery { grid-template-columns: 1fr; }
  .ld-gallery-card { min-height: 240px; }
  .ld-features-grid { grid-template-columns: 1fr 1fr; }
  .ld-feature { border-bottom: 1px solid var(--ld-border); }
}

@media (max-width: 620px) {
  .ld-container { width: min(100% - 30px, 1240px); }
  .ld-logo {
    font-size: 22px;
    line-height: 1.15;
  }
  .ld-socials { justify-content: center; }

  .ld-menu-buttons-grid {
    grid-template-columns: 1fr;
  }
  .ld-menu-button {
    min-height: 52px;
  }

  .ld-hero { min-height: 820px; }
  .ld-hero-content { padding-bottom: 46px; }
  .ld-slogan { font-size: 21px; }
  .ld-buttons { flex-direction: column; }
  .ld-btn { width: 100%; }
  .ld-features-grid { grid-template-columns: 1fr; }
  .ld-feature { border-right: 0; }
}


/* v1.3: Hero CTA buttons removed by request */
.ld-hero .ld-buttons {
  display: none;
}


/* v1.4 Mobile Fix: kompakter Header, weniger Leerraum, bessere WordPress-Live-Vorschau */
@media (max-width: 980px) {
  .ld-header {
    position: relative;
    top: auto;
  }

  .admin-bar .ld-header {
    top: auto;
  }

  .ld-topbar-inner {
    min-height: auto;
    gap: 8px;
    padding: 8px 0;
  }

  .ld-socials {
    gap: 7px;
  }

  .ld-socials:last-child {
    font-size: 12px;
    opacity: .9;
    justify-content: center;
    text-align: center;
  }

  .ld-social-btn {
    width: 34px;
    height: 32px;
  }

  .ld-whatsapp {
    width: auto;
    height: 32px;
    padding: 0 12px;
  }

  .ld-header-inner {
    min-height: 68px;
    padding: 10px 0;
  }

  .ld-logo {
    font-size: clamp(20px, 6vw, 30px);
    line-height: 1.1;
  }

  .ld-menu-buttons-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 0;
  }

  .ld-menu-button {
    min-height: 48px;
    padding: 11px 10px;
    font-size: 13px;
    line-height: 1.18;
    letter-spacing: .15px;
  }

  .ld-menu-button-red {
    grid-column: 1 / -1;
  }

  .ld-hero {
    min-height: 620px;
    align-items: flex-end;
  }

  .ld-hero::before {
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.35) 28%, rgba(0,0,0,.82) 62%, rgba(0,0,0,.98) 100%),
      var(--ld-mobile-hero-image, var(--ld-hero-image));
    background-position: center top;
  }

  .ld-hero-content {
    padding: 235px 0 38px;
    max-width: 100%;
  }

  .ld-kicker {
    font-size: 12px;
    letter-spacing: 1.4px;
    margin-bottom: 12px;
  }

  .ld-hero h1 {
    font-size: clamp(30px, 8.8vw, 44px);
    line-height: .98;
    letter-spacing: -.8px;
    margin-bottom: 16px;
  }

  .ld-slogan {
    font-size: clamp(17px, 5.2vw, 23px);
    line-height: 1.22;
    margin-bottom: 14px;
  }

  .ld-red-line {
    width: 130px;
    margin-bottom: 16px;
  }

  .ld-hero p {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 0;
  }

  .ld-gallery-card {
    min-height: 220px;
  }
}

@media (max-width: 620px) {
  .ld-container {
    width: min(100% - 26px, 1240px);
  }

  .ld-topbar-inner {
    padding: 7px 0;
  }

  .ld-socials:last-child span {
    display: block;
    width: 100%;
  }

  .ld-header-inner {
    min-height: 62px;
  }

  .ld-menu-buttons-grid {
    grid-template-columns: 1fr;
  }

  .ld-menu-button {
    min-height: 46px;
    font-size: 13px;
  }

  .ld-hero {
    min-height: 590px;
  }

  .ld-hero-content {
    padding: 205px 0 34px;
  }

  .ld-hero h1 {
    font-size: clamp(29px, 9.5vw, 40px);
  }

  .ld-gallery-card {
    min-height: 190px;
  }

  .ld-feature {
    padding: 26px 22px;
  }

  .ld-footer-inner {
    justify-content: center;
    text-align: center;
  }

  .ld-footer-menu {
    justify-content: center;
  }
}


/* v1.6 Social Buttons: größer und in Markenfarben */
.ld-social-btn {
  width: 46px;
  height: 40px;
  color: #fff;
  border: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.ld-social-btn svg {
  width: 22px;
  height: 22px;
}
.ld-social-facebook {
  background: #1877F2;
}
.ld-social-instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 8%, #fd5949 42%, #d6249f 62%, #285AEB 100%);
}
.ld-social-tiktok {
  background: #000000;
  border: 1px solid rgba(255,255,255,.18);
}
.ld-whatsapp {
  height: 40px;
  padding: 0 18px;
  background: #25D366;
  border: 0;
  color: #06170c;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.ld-whatsapp svg {
  width: 22px;
  height: 22px;
}
.ld-social-facebook:hover { background: #166FE5; }
.ld-social-tiktok:hover { background: #111111; }
.ld-social-instagram:hover { filter: brightness(1.08); }
.ld-whatsapp:hover { background: #1fb65a; }

@media (max-width: 620px) {
  .ld-social-btn {
    width: 42px;
    height: 38px;
  }
  .ld-social-btn svg,
  .ld-whatsapp svg {
    width: 20px;
    height: 20px;
  }
  .ld-whatsapp {
    height: 38px;
    padding: 0 14px;
  }
}


/* v2.1 WhatsApp Button Textzeichen */
.ld-whatsapp strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  letter-spacing: .2px;
  line-height: 1;
}





/* v2.4 Header/Icon Fix */
.ld-topbar-inner {
  min-height: 54px;
}

.ld-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ld-contactline {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ld-muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ld-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  border: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  overflow: hidden;
}

.ld-social-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.ld-social-btn strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .2px;
}

.ld-social-facebook { background: #1877F2; }
.ld-social-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 8%, #fd5949 42%, #d6249f 62%, #285AEB 100%); }
.ld-social-tiktok { background: #000; border: 1px solid rgba(255,255,255,.18); }
.ld-whatsapp { background: #25D366; color: #06170c; }

.ld-social-facebook:hover { background: #166FE5; }
.ld-social-instagram:hover { filter: brightness(1.08); }
.ld-social-tiktok:hover { background: #111; }
.ld-whatsapp:hover { background: #1fb65a; }

@media (max-width: 980px) {
  .ld-topbar-inner {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .ld-contactline {
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  .ld-socials {
    justify-content: center;
    gap: 9px;
  }

  .ld-social-btn {
    width: 42px;
    height: 38px;
  }

  .ld-social-btn svg {
    width: 20px;
    height: 20px;
  }

  .ld-contactline span {
    display: block;
    width: 100%;
  }
}


/* v2.5 iPhone Fix */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.ld-site,
.ld-hero,
.ld-menu-buttons,
.ld-gallery,
.ld-features {
  max-width: 100%;
  overflow-x: hidden;
}

/* Keine eingebetteten Poster-Texte im Hero verwenden; Text bleibt echtes HTML */
.ld-hero::before {
  background-position: center center;
}

@media (max-width: 980px) {
  .ld-hero {
    min-height: 610px;
  }

  .ld-hero::before {
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.42) 36%, rgba(0,0,0,.92) 72%, rgba(0,0,0,1) 100%),
      var(--ld-mobile-hero-image, var(--ld-hero-image));
    background-size: cover;
    background-position: center top;
    transform: none;
  }

  .ld-hero-content {
    width: 100%;
    max-width: 100%;
    padding: 235px 0 34px;
  }

  .ld-kicker {
    font-size: 12px;
    letter-spacing: 1.1px;
    margin-bottom: 10px;
  }

  .ld-hero h1 {
    max-width: 100%;
    font-size: clamp(28px, 8.2vw, 40px);
    line-height: 1.02;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    overflow-wrap: normal;
    hyphens: auto;
  }

  .ld-slogan {
    max-width: 100%;
    font-size: clamp(18px, 5.2vw, 25px);
    line-height: 1.18;
    margin-bottom: 12px;
  }

  .ld-hero p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.42;
  }

  .ld-red-line {
    width: 120px;
    height: 3px;
    margin-bottom: 16px;
  }
}

@media (max-width: 620px) {
  .ld-container {
    width: calc(100% - 34px);
  }

  .ld-header-inner {
    min-height: 58px;
  }

  .ld-logo {
    font-size: clamp(18px, 5.5vw, 24px);
  }

  .ld-menu-buttons-grid {
    padding: 10px 0;
    gap: 8px;
  }

  .ld-menu-button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .ld-hero {
    min-height: 560px;
  }

  .ld-hero-content {
    padding: 190px 0 30px;
  }

  .ld-hero h1 {
    font-size: clamp(27px, 8.4vw, 34px);
    line-height: 1.03;
    letter-spacing: -0.3px;
  }

  .ld-slogan {
    font-size: clamp(17px, 5.2vw, 22px);
  }

  .ld-gallery-card {
    min-height: 175px;
  }
}
