/* ==========================================================================
   PrintBrothers Gruppe – Stylesheet
   Designsystem: Papierweiss, Tiefschwarz (Key) und die drei Prozessfarben
   Cyan / Magenta / Gelb aus dem Logo. Signatur: der Druckkontrollstreifen.
   ========================================================================== */

:root {
  --paper:   #F8F7F3;
  --paper-2: #FFFFFF;
  --ink:     #161616;
  --ink-60:  #5c5c58;
  --line:    #e4e2db;
  --cyan:    #2FA6DE;
  --magenta: #D9187F;
  --yellow:  #F0CF2E;
  --key:     #161616;
  --radius:  14px;
  --max:     1120px;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Druckkontrollstreifen (Signatur) ----------------------------------- */
.cmyk-bar {
  display: flex;
  height: 6px;
  width: 100%;
}
.cmyk-bar span { flex: 1; }
.cmyk-bar span:nth-child(1) { background: var(--cyan); }
.cmyk-bar span:nth-child(2) { background: var(--magenta); }
.cmyk-bar span:nth-child(3) { background: var(--yellow); }
.cmyk-bar span:nth-child(4) { background: var(--key); }

.cmyk-bar--thin { height: 4px; max-width: 96px; }

/* --- Layout-Helfer ------------------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* --- Header --------------------------------------------------------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  height: 46px;
  width: auto;
}
.brand .brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand .brand-name b { font-weight: 700; }
.brand .brand-name span { font-weight: 300; }

nav.menu { display: flex; gap: 26px; align-items: center; }
nav.menu a {
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.menu a:hover,
nav.menu a[aria-current="page"] { border-bottom-color: var(--magenta); }
nav.menu a.cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  border-bottom: none;
}
nav.menu a.cta:hover { background: var(--magenta); }

/* Sprachumschalter */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-left: 4px;
}
.lang a {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-60);
  border-bottom: none !important;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

/* Hamburger-Button (nur mobil sichtbar) */
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.menu-toggle .bars {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  nav.menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 20, 20, 0.08);
    padding: 8px 0 14px;
  }
  nav.menu.open { display: flex; }
  nav.menu a {
    font-size: 16px;
    padding: 13px 24px;
    border-bottom: 1px solid var(--line);
  }
  nav.menu a:hover,
  nav.menu a[aria-current="page"] { border-bottom-color: var(--line); color: var(--magenta); }
  nav.menu a.cta {
    margin: 12px 24px 0;
    text-align: center;
    border-bottom: none;
  }
  .lang {
    margin: 14px 24px 0;
    justify-content: center;
  }
  .lang a { flex: 1; text-align: center; padding: 8px 10px; }
  header.site { position: sticky; }
  .nav { position: relative; }
  .brand img { height: 40px; }
}

@media (max-width: 380px) {
  .brand .brand-name { display: none; }
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero h1 b { font-weight: 700; }
.hero h1 .hl-c { color: var(--cyan); }
.hero h1 .hl-m { color: var(--magenta); }
.hero h1 .hl-y { color: #C29200; }
.hero h1 .hl-k { color: var(--key); }
.hero p.lead {
  font-size: 19px;
  color: var(--ink-60);
  max-width: 54ch;
  margin-bottom: 32px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  display: inline-block;
  border: 1.5px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--magenta); border-color: var(--magenta); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { border-color: var(--magenta); color: var(--magenta); }

.hero-logo {
  background: var(--paper);
  text-align: center;
}
.hero-logo img {
  width: min(380px, 90%);
  margin: 0 auto;
  mix-blend-mode: multiply;
}
.hero-logo .caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-60);
  margin-top: 10px;
  letter-spacing: 0.1em;
}

/* --- Kennzahlen-Leiste ------------------------------------------------------ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 860px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 26px 20px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
@media (max-width: 860px) { .stat:nth-child(3) { border-left: none; } }
.stat .num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
}
.stat .lbl { font-size: 14px; color: var(--ink-60); }

/* --- Sektionen --------------------------------------------------------------- */
section.block { padding: 84px 0; }
section.block.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
section.block .intro {
  color: var(--ink-60);
  max-width: 68ch;
  margin-bottom: 44px;
}

/* --- Unternehmenskarten --------------------------------------------------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.brand-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}
.brand-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--chip, var(--key));
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 20, 20, 0.08);
  border-color: var(--chip, var(--key));
}
.brand-card .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand-card .brand-logo {
  height: 34px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin: 2px 0 4px;
}
.brand-card .country {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.brand-card .desc { font-size: 14.5px; color: var(--ink-60); flex: 1; }
.brand-card .visit {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
}
.brand-card:hover .visit { color: var(--chip, var(--ink)); }

.subnote {
  margin-top: 26px;
  font-size: 15px;
  color: var(--ink-60);
  border-left: 3px solid var(--yellow);
  padding: 4px 0 4px 16px;
  max-width: 80ch;
}


.brand-card--more {
  border-style: dashed;
  cursor: default;
}
.brand-card--more:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* --- Leistungen ------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
section.block.alt .service { background: var(--paper-2); }
.service .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
  color: #fff;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
}
.service p { font-size: 15px; color: var(--ink-60); }
.service p a { color: var(--magenta); font-weight: 600; text-underline-offset: 3px; }
.service p a:hover { color: var(--cyan); }
.tag--cmyk {
  background: linear-gradient(90deg, var(--cyan) 0 25%, var(--magenta) 25% 50%, #C29200 50% 75%, var(--key) 75%);
}


/* --- Cimpress-Sektion -------------------------------------------------------- */
.cimpress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .cimpress { grid-template-columns: 1fr; } }
.cimpress .facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: hidden;
}
.cimpress .facts dl { padding: 8px 0; }
.cimpress .facts .row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.cimpress .facts .row:first-child { border-top: none; }
.cimpress .facts dt { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-60); padding-top: 2px; }
.cimpress p + p { margin-top: 14px; }

/* --- Formulare (Kontakt) ------------------------------------------------------ */
form.contact {
  max-width: 640px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 166, 222, 0.18);
}
.field textarea { min-height: 160px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-60); }
.consent input { margin-top: 4px; width: auto; }
form.contact button {
  justify-self: start;
  cursor: pointer;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
form.contact button:hover { background: var(--magenta); transform: translateY(-2px); }
.form-note {
  font-size: 14px;
  color: var(--ink-60);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: none;
}
.form-note.show { display: block; border-color: var(--cyan); }

/* --- Textseiten (Impressum, Datenschutz) --------------------------------------- */
.page { padding: 72px 0 90px; }
.page h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.page .lede { color: var(--ink-60); margin-bottom: 44px; max-width: 70ch; }
.page h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 40px 0 12px;
}
.page p, .page address { max-width: 72ch; font-style: normal; }
.page p + p { margin-top: 12px; }
.page a { color: var(--magenta); }
.legal-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  max-width: 640px;
  margin: 10px 0 8px;
}
.legal-card .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.legal-card .row:last-child { border-bottom: none; }
.legal-card dt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding-top: 2px;
}
@media (max-width: 640px) {
  .legal-card .row, .cimpress .facts .row { grid-template-columns: 1fr; gap: 2px; }
}

/* --- Footer ---------------------------------------------------------------------- */
footer.site {
  background: var(--ink);
  color: #d8d6cf;
  margin-top: 0;
}
footer.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 24px 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { footer.site .inner { grid-template-columns: 1fr; gap: 28px; } }
footer.site h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
}
footer.site p { font-size: 14.5px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; font-size: 14.5px; }
footer.site a { color: #d8d6cf; text-decoration: none; }
footer.site a:hover { color: var(--yellow); }
footer.site .legalline {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px 26px;
  font-size: 13px;
  color: #9a988f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- Mobile Feinschliff ---------------------------------------------------------- */
a, dd, .brand-card .country, .legal-card .row dd { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  section.block { padding: 56px 0; }
  .hero .actions .btn { width: 100%; text-align: center; }
  .legal-card { padding: 22px 20px; }
  form.contact button { justify-self: stretch; width: 100%; }
  .stat .num { font-size: 24px; }
}

/* --- Fokus-Sichtbarkeit -------------------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
