/* Service Digitaldruck – gemeinsames Stylesheet */

:root {
  --color-primary: #0b5fa5;
  --color-primary-dark: #084a82;
  --color-accent: #f5a623;
  --color-dark: #1c2733;
  --color-text: #2b3440;
  --color-muted: #5b6573;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --color-border: #e2e8f0;
  --radius: 10px;
  --max-width: 1100px;

  /* Konfetti-Palette, abgeleitet aus dem Farbpulver-Logo */
  --c-blue: #4fa8d8;
  --c-orange: #f2994a;
  --c-green: #7cc576;
  --c-pink: #e0589e;
  --c-purple: #a47fcb;
  --c-yellow: #f5d76e;

  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span.accent { color: var(--color-primary); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--color-dark);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

nav.main-nav a:hover {
  border-bottom-color: var(--c-orange);
  text-decoration: none;
}

nav.main-nav a.active {
  color: var(--color-primary);
  border-bottom-color: var(--c-blue);
}

.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-bg-alt);
  text-decoration: none;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-dark);
}
.btn-accent:hover {
  background: #e2940f;
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 72px 24px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin: 0 0 16px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #d7e3ef;
  margin: 0 0 28px;
}

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

.hero-badges {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 24px;
}

.hero-badges h3 {
  margin-top: 0;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #cdd9e6;
}

.brand-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.brand-list li {
  background: rgba(255,255,255,0.1);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  border-bottom: 3px solid transparent;
}

.brand-list li:nth-child(1) { border-bottom-color: var(--c-blue); }
.brand-list li:nth-child(2) { border-bottom-color: var(--c-orange); }
.brand-list li:nth-child(3) { border-bottom-color: var(--c-green); }
.brand-list li:nth-child(4) { border-bottom-color: var(--c-pink); }

/* Sections */
section {
  padding: 64px 24px;
}

section.alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 1.9rem;
  text-align: center;
  margin: 0 0 12px;
  color: var(--color-dark);
}

p.section-sub {
  text-align: center;
  color: var(--color-muted);
  max-width: 680px;
  margin: 0 auto 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card:nth-child(1) { border-top-color: var(--c-blue); }
.card:nth-child(2) { border-top-color: var(--c-orange); }
.card:nth-child(3) { border-top-color: var(--c-purple); }

.card h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.card:nth-child(1) .icon-circle { background: rgba(46,134,193,0.12); }
.card:nth-child(2) .icon-circle { background: rgba(232,116,59,0.12); }
.card:nth-child(3) .icon-circle { background: rgba(142,95,191,0.12); }

/* Trust strip */
.trust-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  text-align: center;
}

.trust-item {
  flex: 1;
  min-width: 200px;
}

.trust-item .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.trust-item:nth-child(1) .num { color: var(--c-blue); }
.trust-item:nth-child(2) .num { color: var(--c-orange); }
.trust-item:nth-child(3) .num { color: var(--c-purple); }
.trust-item:nth-child(4) .num { color: var(--c-green); }

/* CTA band */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.cta-band p {
  color: #dbe9f7;
  margin: 0 0 28px;
}

.cta-band .btn-accent {
  margin: 0 8px;
}

/* Pricing table */
.pricing-table {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pricing-table th, .pricing-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table th {
  background: var(--color-dark);
  color: #fff;
  font-weight: 600;
}

.pricing-table td.price {
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.pricing-table tbody tr:nth-child(1) td.price { color: var(--c-blue); }
.pricing-table tbody tr:nth-child(2) td.price { color: var(--c-orange); }
.pricing-table tbody tr:nth-child(3) td.price { color: var(--c-green); }
.pricing-table tbody tr:nth-child(4) td.price { color: var(--c-purple); }

.pricing-note {
  max-width: var(--max-width);
  margin: 20px auto 0;
  color: var(--color-muted);
  font-size: .92rem;
}

/* Contact */
.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-box {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-box h3 {
  margin-top: 0;
}

.contact-line {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-line .label {
  font-weight: 600;
  min-width: 100px;
  color: var(--color-dark);
}

.contact-line:nth-child(1) .label { color: var(--c-blue); }
.contact-line:nth-child(2) .label { color: var(--c-orange); }
.contact-line:nth-child(3) .label { color: var(--c-pink); }
.contact-line:nth-child(4) .label { color: var(--c-green); }

form.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 16px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

form.contact-form textarea { min-height: 130px; resize: vertical; }

form.contact-form .consent {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--color-muted);
}

form.contact-form button {
  margin-top: 20px;
}

/* Footer */
footer.site-footer {
  background: var(--color-dark);
  color: #b9c4d0;
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

footer.site-footer a {
  color: #d7e3ef;
}

.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-cols h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: .95rem;
}

.footer-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-cols li { margin-bottom: 8px; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .trust-strip { flex-direction: column; }
}

/* ===== Shop & Checkout ===== */

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

.product-card .compat {
  color: var(--color-muted);
  font-size: .88rem;
  min-height: 42px;
}

.opt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.opt-row label {
  width: 64px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-muted);
  flex-shrink: 0;
}

.opt-row select,
.opt-row input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: .9rem;
  background: #fff;
  min-width: 0;
}

.price-display {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 12px 0;
}

.price-vat {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  color: var(--color-muted);
}

.cart-link { position: relative; }

.cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  font-size: .75rem;
  font-weight: 700;
  padding: 0 4px;
  margin-left: 6px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.cart-table td { vertical-align: top; }
.cart-meta { color: var(--color-muted); font-size: .85rem; }
.cart-price { font-weight: 600; white-space: nowrap; }

.cart-qty {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.cart-remove {
  background: none;
  border: none;
  color: #b00;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
}

.cart-totals {
  margin-top: 16px;
  max-width: 420px;
  margin-left: auto;
}

.cart-totals > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: .95rem;
}

.cart-totals .total-row {
  border-top: 2px solid var(--color-dark);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Shop-Kategorien */
.shop-cats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px auto 0;
}

.shop-cat-link {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.shop-cat-link:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* Tinten-Unterkategorien */
.shop-subcats { margin-bottom: 28px; }
.shop-subcats .shop-cat-link { padding: 8px 22px; background: #fff; }

.ink-subcat {
  text-align: center;
  font-size: 1.25rem;
  margin: 40px 0 18px;
  color: var(--color-dark);
}

/* ===== Aufgeräumtes Shop-Layout ===== */

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.product-grid .product-card {
  width: 320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-card h3 {
  margin-top: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.product-card .compat {
  min-height: 64px;
  margin-top: 0;
}

.product-card .opt-row {
  text-align: left;
}

.product-card .price-display {
  margin-top: auto;
  padding-top: 14px;
  min-height: 74px;
}

.product-card .btn-add {
  width: 100%;
}

@media (max-width: 720px) {
  .product-grid .product-card { width: 100%; }
  .product-card h3, .product-card .compat, .product-card .price-display { min-height: 0; }
}
