/*
Theme Name: Laubengaier Druckmanufaktur
Theme URI: https://laubengaierdruck.de
Author: Laubengaier GmbH
Description: Vintage Druckmanufaktur Theme – Aged Paper Aesthetic, DM Mono & Playfair Display
Version: 1.1
License: Proprietary
Text Domain: laubengaier
*/

/* ════════════════ DESIGN TOKENS ════════════════ */
:root {
  --ink:        #13110C;
  --paper:      #F0EAD8;
  --cream:      #FAF7EF;
  --mid:        #5A5448;
  --rule:       #9A9080;
  --faint:      #D5CDBA;
  --gold:       #B8922A;
  --gold-light: #D4A84B;
}

/* ════════════════ RESET & BASE ════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: #E8E0CC;
  font-family: 'DM Mono', monospace;
  color: var(--ink);
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
  min-height: 100vh;
  overflow-x: hidden;           /* verhindert horizontales Scrollen */
  width: 100%;
}

.site-wrapper {
  background: var(--paper);
  width: 100%;
  max-width: 980px;
  box-shadow: 0 4px 40px rgba(0,0,0,.18);
  overflow-x: hidden;           /* kein Overflow aus dem Wrapper */
  min-width: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* ════════════════ TICKER ════════════════ */
.ticker {
  background: var(--ink);
  height: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tick 36s linear infinite;
  flex-shrink: 0;
}
.ticker-track span {
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 0 22px;
}
.ticker-track .dot { color: var(--gold); padding: 0 2px; letter-spacing: 0; }
@keyframes tick { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ════════════════ MASTHEAD ════════════════ */
.masthead {
  border-bottom: 3px double var(--ink);
  padding: 14px 28px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.mh-side {
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rule);
  line-height: 2;
}
.mh-side.right { text-align: right; }

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.logo-mark {
  width: 54px; height: 54px;
  background: var(--ink);
  border-radius: 50% 50% 50% 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark span {
  font-family: 'Playfair Display', serif;
  font-size: 30px; font-weight: 900;
  color: var(--paper);
  line-height: 1; transform: translateY(-1px); display: block;
}
.logo-text { text-align: center; }
.wordmark {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1; text-transform: uppercase;
}
.tagline {
  font-size: 8px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--rule); margin-top: 4px;
}

/* ════════════════ NAVIGATION ════════════════ */
.site-nav {
  border-bottom: 1px solid var(--faint);
  padding: 0 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;               /* bricht um statt überzulaufen */
  gap: 0;
  width: 100%;
}
.site-nav a {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mid); padding: 10px 14px;
  border-right: 1px solid var(--faint);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.site-nav a:first-child { border-left: 1px solid var(--faint); }
.site-nav a:hover { color: var(--ink); background: var(--cream); }

/* ════════════════ HERO ════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--ink);
  min-height: 320px;
  width: 100%;
}
.hero-text {
  padding: 36px 32px;
  border-right: 1px solid var(--faint);
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-width: 0;                  /* verhindert Grid-Overflow */
}
.hero-edition {
  font-size: 8.5px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--rule); border-top: 2px solid var(--ink);
  padding-top: 8px; margin-bottom: 16px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900; font-style: italic;
  line-height: 1.1; margin-bottom: 16px;
}
.hero-sub {
  font-size: 11px; line-height: 1.8; color: var(--mid);
  margin-bottom: 24px;
}
.hero-cta {
  display: inline-block; background: var(--ink);
  color: var(--paper); font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase; padding: 11px 22px;
  transition: background .2s;
}
.hero-cta:hover { background: var(--gold); color: var(--paper); }
.hero-visual {
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-width: 0;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero-press-svg { width: 100%; height: 100%; padding: 20px; }

/* ════════════════ SECTION HEADER ════════════════ */
.section-header {
  display: flex; align-items: baseline; gap: 16px;
  padding: 28px 28px 0; border-top: 2px solid var(--ink); margin-top: 36px;
}
.section-num { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--rule); flex-shrink: 0; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(20px, 3vw, 30px); font-weight: 900; line-height: 1.1; }
.section-rule { flex: 1; height: 1px; background: var(--faint); margin-bottom: 4px; min-width: 0; }

/* ════════════════ VEREDELUNGS-KACHELN ════════════════ */
.veredel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--faint);
  margin: 24px 28px 0;
  width: calc(100% - 56px);
}
.veredel-tile {
  padding: 18px 14px; border-right: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint); cursor: pointer;
  transition: background .2s, color .2s; overflow: hidden;
}
.veredel-tile:nth-child(4n) { border-right: none; }
.veredel-tile:hover { background: var(--ink); color: var(--paper); }
.vt-label { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.veredel-tile:hover .vt-label { color: var(--gold-light); }
.vt-name { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; line-height: 1.2; }

/* ════════════════ LEISTUNGS-BLOCK ════════════════ */
.leistung-block {
  display: grid; grid-template-columns: 1fr 2fr;
  padding: 24px 28px; border-top: 1px solid var(--faint);
  margin-top: 24px; width: 100%;
}
.lb-meta { padding-right: 28px; border-right: 1px solid var(--faint); min-width: 0; }
.lb-meta-label { font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--rule); margin-bottom: 8px; }
.lb-meta-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; line-height: 1.15; margin-bottom: 12px; }
.lb-meta-desc { font-size: 10.5px; line-height: 1.8; color: var(--mid); }
.lb-products { padding-left: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-content: start; min-width: 0; }
.lb-product { font-size: 10px; color: var(--mid); padding: 5px 0; border-bottom: 1px dotted var(--faint); line-height: 1.4; }
.lb-product strong { display: block; font-size: 11px; color: var(--ink); font-weight: 500; margin-bottom: 1px; }

/* ════════════════ VEREDELUNGS-MATRIX ════════════════ */
.matrix-section { margin: 36px 0 0; border-top: 2px solid var(--ink); width: 100%; overflow-x: hidden; }
.matrix-header {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; padding: 20px 28px 16px; gap: 12px;
}
.matrix-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.matrix-search input {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .1em;
  border: 1px solid var(--faint); background: var(--cream); color: var(--ink);
  padding: 6px 10px; width: 200px; outline: none;
}
.matrix-search input:focus { border-color: var(--ink); }
.mat-clear { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--rule); cursor: pointer; padding: 4px; }
.mat-clear:hover { color: var(--ink); }
.mat-count { font-size: 9px; letter-spacing: .15em; color: var(--rule); }

/* Tabelle: scrollt horizontal NUR wenn nötig */
.matrix-table-wrap { overflow-x: auto; width: 100%; }
.matrix-table { width: 100%; border-collapse: collapse; font-size: 10px; min-width: 580px; }
.matrix-table thead tr { background: var(--ink); color: var(--paper); }
.matrix-table th {
  padding: 8px 12px; text-align: left; font-size: 8.5px;
  letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  border-right: 1px solid rgba(255,255,255,.08);
}
.matrix-table td {
  padding: 8px 12px; border-bottom: 1px solid var(--faint);
  border-right: 1px solid var(--faint); line-height: 1.5;
  color: var(--mid); vertical-align: top;
}
.matrix-table td:first-child { color: var(--ink); font-weight: 500; }
.matrix-table tr:nth-child(even) td { background: rgba(0,0,0,.02); }
.matrix-table tr:hover td { background: var(--cream); }
.no-match-row td { text-align: center; color: var(--rule); font-style: italic; padding: 20px; }

/* ════════════════ TIMELINE ════════════════ */
.timeline-section { padding: 36px 28px; border-top: 2px solid var(--ink); margin-top: 36px; }
.timeline {
  display: flex; gap: 0; border-top: 2px solid var(--ink);
  margin-top: 24px; padding-top: 16px; overflow-x: auto;
}
.tl-item {
  flex: 1; min-width: 100px; padding: 0 16px;
  border-right: 1px solid var(--faint);
}
.tl-item:first-child { padding-left: 0; }
.tl-item:last-child { border-right: none; }
.tl-item.highlight { background: linear-gradient(to bottom, rgba(184,146,42,.06), transparent); }
.tl-year { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: var(--gold); margin-bottom: 4px; }
.tl-event { font-size: 10px; line-height: 1.6; color: var(--mid); }
.tl-item.highlight .tl-event { color: var(--ink); }
.tl-badge { display: inline-block; font-size: 8px; letter-spacing: .2em; text-transform: uppercase; background: var(--gold); color: var(--paper); padding: 2px 7px; margin-bottom: 6px; }

/* ════════════════ CTA ════════════════ */
.cta-band { background: var(--ink); color: var(--paper); padding: 40px 28px; text-align: center; margin-top: 36px; }
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: clamp(22px, 3.5vw, 36px); font-weight: 900; font-style: italic; margin-bottom: 12px; }
.cta-band p { font-size: 11px; color: rgba(240,234,216,.6); margin-bottom: 24px; letter-spacing: .08em; }
.cta-btn { display: inline-block; border: 1px solid var(--gold); color: var(--gold); font-size: 9px; letter-spacing: .25em; text-transform: uppercase; padding: 12px 28px; transition: background .2s, color .2s; }
.cta-btn:hover { background: var(--gold); color: var(--ink); }

/* ════════════════ FOOTER ════════════════ */
.site-footer { border-top: 3px double var(--ink); padding: 28px 28px 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.footer-col-title { font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--rule); border-bottom: 1px solid var(--faint); padding-bottom: 8px; margin-bottom: 12px; }
.footer-col p, .footer-col address { font-size: 10px; line-height: 1.9; color: var(--mid); font-style: normal; }
.footer-col a { color: var(--mid); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--faint); padding: 12px 28px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span { font-size: 8.5px; letter-spacing: .15em; color: var(--rule); }

/* ════════════════ WP-SEITEN-INHALT ════════════════ */
.wp-content { padding: 28px; }
.wp-content h1, .wp-content h2, .wp-content h3 { font-family: 'Playfair Display', serif; font-weight: 900; margin-bottom: 16px; line-height: 1.2; }
.wp-content h2 { font-size: 28px; margin-top: 32px; }
.wp-content h3 { font-size: 20px; margin-top: 24px; }
.wp-content p { font-size: 11px; line-height: 1.9; color: var(--mid); margin-bottom: 16px; }
.wp-content ul { margin: 12px 0 16px 20px; }
.wp-content li { font-size: 11px; line-height: 1.8; color: var(--mid); margin-bottom: 4px; }
.wp-content strong { color: var(--ink); }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 700px) {
  body { padding: 0; }
  .masthead { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .mh-side { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 200px; }
  .hero-text { border-right: none; border-bottom: 1px solid var(--faint); }
  .veredel-grid { grid-template-columns: repeat(2, 1fr); margin: 16px 16px 0; width: calc(100% - 32px); }
  .leistung-block { grid-template-columns: 1fr; padding: 20px 16px; }
  .lb-meta { border-right: none; border-bottom: 1px solid var(--faint); padding-right: 0; padding-bottom: 16px; margin-bottom: 16px; }
  .lb-products { padding-left: 0; }
  .section-header { padding: 20px 16px 0; margin-top: 24px; }
  .matrix-header { padding: 16px 16px 12px; }
  .timeline-section { padding: 24px 16px; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; padding: 10px 16px; }
}
