/*
Theme Name: Neukunden Gutschein
Theme URI: https://neukunden-gutschein.de/
Author: MediaMittel
Description: Gutschein-Theme für Neukunden-Gutscheine
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: neukunden-gutschein
*/

:root {
  --ng-bg: #f4f7fb;
  --ng-card: #ffffff;
  --ng-text: #111827;
  --ng-muted: #6b7280;
  --ng-border: #e5e7eb;
  --ng-primary: #e11d48;
  --ng-primary-dark: #be123c;
  --ng-dark: #101827;
  --ng-radius-xl: 32px;
  --ng-radius-md: 16px;
  --ng-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
  --ng-container: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ng-bg);
  color: var(--ng-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.ng-container {
  width: min(var(--ng-container), calc(100% - 32px));
  margin: 0 auto;
}

.ng-header {
  background: #ffffff;
  border-bottom: 1px solid var(--ng-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.ng-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ng-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 24px;
  white-space: nowrap;
}

.ng-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ng-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.ng-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-weight: 700;
  color: #374151;
}

.ng-nav a:hover {
  color: var(--ng-primary);
}

.ng-search {
  width: 280px;
  position: relative;
}

.ng-search input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--ng-border);
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  background: #f9fafb;
  outline: none;
}

.ng-search input:focus {
  border-color: var(--ng-primary);
  background: #fff;
}

.ng-hero {
  padding: 54px 0 34px;
}

.ng-hero-card {
  background: linear-gradient(135deg, #111827 0%, #253046 100%);
  color: #fff;
  border-radius: 38px;
  padding: 46px;
  box-shadow: var(--ng-shadow);
  overflow: hidden;
  position: relative;
}

.ng-hero-card:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.22);
  right: -80px;
  top: -110px;
}

.ng-eyebrow {
  display: inline-flex;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px;
  border-radius: 999px;
  color: #f3f4f6;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ng-hero h1 {
  max-width: 760px;
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: .96;
  letter-spacing: -0.065em;
}

.ng-hero p {
  max-width: 680px;
  margin: 0;
  color: #d1d5db;
  font-size: 19px;
}

.ng-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 18px;
}

.ng-section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.ng-section-head p {
  margin: 8px 0 0;
  color: var(--ng-muted);
}

.ng-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  padding-bottom: 70px;
}

.ng-coupon-list {
  display: grid;
  gap: 24px;
}

.ng-coupon-card {
  display: grid;
  grid-template-columns: 230px 24px 1fr;
  background: var(--ng-card);
  border-radius: 5px;
  box-shadow: var(--ng-shadow);
  min-height: 180px;
  position: relative;
  overflow: visible;
  --border-color: #fff;
}

.ng-coupon-brand {
  padding: 12px;
  display: grid;
  place-items: center;
}

.ng-logo-box {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111827;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: center;
  padding: 10px;
}

/* Perforation Desktop */
.ng-cut {
  position: relative;
  width: 100%;
  background:
    radial-gradient(
      circle at top center,
      transparent 8px,
      var(--border-color) 8px,
      var(--border-color) 10px,
      #fff 0
    ) top center,

    radial-gradient(
      circle at bottom center,
      transparent 8px,
      var(--border-color) 8px,
      var(--border-color) 10px,
      #fff 0
    ) bottom center;

  background-size: 100% 75%;
  background-repeat: no-repeat;
}
.ng-cut-dashed-line {
  position: absolute;
  top: 10px;
  left: 50%;
  bottom: 10px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(20,26,48,0.1) 0, rgba(20,26,48,0.1) 5px, transparent 5px, transparent 10px);
  transform: translateX(-50%);
}
.ng-coupon-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}


.ng-coupon-content h3 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.ng-coupon-content p {
  margin: 0;
  color: var(--ng-muted);
  max-width: 620px;
}


.ng-valid {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.ng-clock {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ng-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 5px;
  background: var(--ng-primary);
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.ng-button:hover {
  background: var(--ng-primary-dark);
  color: #fff;
}

.ng-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 98px;
}

.ng-box {
  background: #fff;
  border: 1px solid var(--ng-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15,23,42,.05);
}


.ng-box li:last-child a {
  border-bottom: 0;
}

.ng-box li a:hover {
  color: var(--ng-primary);
}

.ng-content-page {
  background: #fff;
  border-radius: 30px;
  padding: 42px;
  box-shadow: var(--ng-shadow);
  margin: 36px auto 70px;
}

.ng-content-page h1 {
  margin-top: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.ng-footer {
  background: var(--ng-dark);
  color: #d1d5db;
  padding: 36px 0;
  margin-top: 50px;
}

.ng-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

/* Startseite: hartes 2-Spalten-Raster ohne Sidebar */
.ng-coupon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  padding-bottom: 70px;
}

.ng-coupon-grid .ng-coupon-card {
  grid-template-columns: 180px 24px minmax(0, 1fr);
  min-height: 180px;
}

.ng-coupon-grid .ng-coupon-brand {
  padding: 12px 6px;
}

.ng-coupon-grid .ng-logo-box {
  width: 110px;
  height: 110px;
  font-size: 20px;
}

.ng-coupon-grid .ng-coupon-content {
  padding: 18px 20px;
}

.ng-coupon-grid .ng-coupon-content h3 {
  font-size: 20px;
}

.ng-coupon-grid .ng-coupon-content p {
  font-size: 15px;
}

.ng-coupon-grid .ng-coupon-bottom {
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}


.ng-coupon-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.ng-store-name {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  color: #6b7280;
  margin-bottom: 4px;
}

/* Tablet */
@media (max-width: 1080px) {
  .ng-coupon-grid {
    grid-template-columns: 1fr;
  }

  .ng-coupon-grid .ng-coupon-card {
    grid-template-columns: 210px 24px 1fr;
  }

  .ng-coupon-grid .ng-coupon-bottom {
    flex-direction: row;
    align-items: center;
  }

  .ng-coupon-grid .ng-button {
    width: auto;
  }
}

/* Mobil / schmale Ansicht */
@media (max-width: 980px) {
  .ng-header-inner {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .ng-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .ng-search {
    width: min(100%, 320px);
  }


  .ng-coupon-card,
  .ng-coupon-grid .ng-coupon-card {
grid-template-columns: 180px 32px minmax(0, 1fr);
  }

}

/* Smartphone */
@media (max-width: 640px) {
  .ng-hero-card {
    padding: 30px 24px;
    border-radius: 28px;
  }

  .ng-coupon-brand {
    padding: 12px 6px;
  }

  .ng-coupon-content,
  .ng-coupon-grid .ng-coupon-content {
    padding: 26px 24px;
  }

  .ng-coupon-bottom,
  .ng-coupon-grid .ng-coupon-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .ng-button,
  .ng-coupon-grid .ng-button {
    width: 100%;
  }

  .ng-footer-inner {
    display: grid;
  }
}
.ng-coupon-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
}

.ng-details-link {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    white-space: nowrap;
}

.ng-details-link:hover {
    color: var(--ng-primary);
}

.ng-coupon-grid .ng-coupon-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.ng-coupon-grid .ng-button {
    width: auto;
    margin-left: auto;
}
@media (max-width: 640px) {
  .ng-container {
    width: calc(100% - 24px);
  }

  .ng-hero {
    padding: 24px 0 18px;
  }

  .ng-hero-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .ng-hero h1 {
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .ng-hero p {
    font-size: 16px;
  }

  .ng-section-head {
    margin: 22px 0 14px;
  }

  .ng-section-head h2 {
    font-size: 28px;
  }

  .ng-section-head p {
    font-size: 15px;
  }

  .ng-coupon-grid {
    gap: 18px;
    padding-bottom: 40px;
  }

  .ng-coupon-card,
  .ng-coupon-grid .ng-coupon-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
  }

  .ng-coupon-brand,
  .ng-coupon-grid .ng-coupon-brand {
    padding: 20px 18px 14px;
  }

  .ng-logo-box,
  .ng-coupon-grid .ng-logo-box {
    width: 120px;
    height: 80px;
    font-size: 20px;
  }

  .ng-cut {
    width: 100%;
    height: 22px;
    min-width: 0;
    background:
      radial-gradient(
        circle at left center,
        transparent 8px,
        #fff 8px
      ) left center,
      radial-gradient(
        circle at right center,
        transparent 8px,
        #fff 8px
      ) right center;
    background-repeat: no-repeat;
    background-size: 50% 100%;
  }

  .ng-cut-dashed-line {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(
      to right,
      rgba(20,26,48,0.14) 0,
      rgba(20,26,48,0.14) 5px,
      transparent 5px,
      transparent 10px
    );
  }

  .ng-coupon-content,
  .ng-coupon-grid .ng-coupon-content {
    padding: 18px;
  }

  .ng-coupon-title,
  .ng-coupon-grid .ng-coupon-content h3 {
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .ng-store-name {
    font-size: 14px;
  }

  .ng-coupon-bottom,
  .ng-coupon-grid .ng-coupon-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ng-details-link {
    text-align: center;
    order: 2;
  }

  .ng-button,
  .ng-coupon-grid .ng-button {
    width: 100%;
    margin-left: 0;
    order: 1;
  }
}
.ng-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ng-menu li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ng-menu a {
  display: block;
  font-weight: 700;
  color: #374151;
}

.ng-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 585px;
  background: #fff;
  padding: 34px 42px;
  margin: 0;
  list-style: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 46px;
  z-index: 999;
}

.ng-menu li:hover > .sub-menu {
  display: grid;
}

.ng-menu .sub-menu a {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
}