/* ============================================================
   mediana Markenportal – Corporate Design Stylesheet
   Farben & Typografie nach mediana CD-Manual (Stand 11/2019)
   ============================================================ */

:root {
  --rot:        #AC162C;
  --dunkelrot:  #6C1B32;
  --beige:      #B8A999;
  --schwarz:    #1A1A18;
  --grau:       #878787;
  --bg:         #faf8f6;
  --bg-alt:     #ffffff;
  --line:       #ece7e2;
  --radius:     14px;
  --shadow:     0 6px 24px rgba(26,26,24,.08);
  --shadow-sm:  0 2px 8px rgba(26,26,24,.06);
  /* Geometrisch-runder Systemschrift-Stack (DSGVO-freundlich, keine externen Fonts) */
  --font-logo:  "Futura", "Century Gothic", "Avenir Next", "Avenir", "Trebuchet MS", sans-serif;
  --font-head:  "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --font-body:  Arial, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--schwarz);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rot); }

/* ---------- Logo-Bilder ---------- */
.brand-logo { height: 30px; width: auto; display: block; }
.login-logo img { height: 74px; width: auto; }
.foot-brand img { height: 30px; width: auto; display: block; }
.brand-preview-fallback img { max-width: 62%; height: auto; opacity: .9; }

/* ============================================================
   LOGIN
   ============================================================ */
body.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(172,22,44,.10), transparent 55%),
    var(--bg);
}
.login-wrap { width: 100%; max-width: 420px; padding: 24px; text-align: center; }
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 34px 34px;
  box-shadow: var(--shadow);
}
.login-logo { margin-bottom: 22px; }
.login-card h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--schwarz);
  margin: 0 0 6px;
}
.login-sub { color: var(--grau); font-size: .92rem; margin: 0 0 22px; }
.login-card form { text-align: left; }
.login-card label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grau);
  margin-bottom: 6px;
}
.login-card input[type=password] {
  width: 100%;
  padding: 13px 15px;
  font-size: 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s;
}
.login-card input[type=password]:focus { border-color: var(--rot); }
.login-card button {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--rot);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.login-card button:hover { background: var(--dunkelrot); }
.login-error {
  background: rgba(172,22,44,.08);
  border: 1px solid rgba(172,22,44,.25);
  color: var(--rot);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .9rem;
  margin-bottom: 18px;
}
.login-foot { color: var(--grau); font-size: .8rem; margin-top: 18px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(172,22,44,.12);
}
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-tag {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grau);
}
.topnav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topnav a {
  text-decoration: none;
  color: var(--schwarz);
  font-size: .88rem;
  font-weight: 600;
}
.topnav a:hover { color: var(--rot); }
.topnav a.logout {
  color: var(--grau);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}
.topnav a.logout:hover { color: var(--rot); border-color: var(--rot); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(30deg, var(--dunkelrot) 0%, var(--rot) 78%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 85% 10%, rgba(255,255,255,.10), transparent 60%);
}
.hero::after {
  content: "";
  position: absolute;
  left: -6%;
  bottom: -1px;
  width: 112%;
  height: 70px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 70px 24px 96px;
  z-index: 1;
}
.hero-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .8rem;
  opacity: .85;
  margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero-lead { max-width: 60ch; font-size: 1.05rem; opacity: .95; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform .12s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--rot); }
.btn-primary:hover { background: var(--beige); color: var(--dunkelrot); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

/* ============================================================
   CONTENT BLOCKS
   ============================================================ */
.content { }
.block { padding: 68px 24px; }
.block-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.block-head {
  max-width: 1160px;
  margin: 0 auto 34px;
  position: relative;
}
.block-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: rgba(172,22,44,.18);
  line-height: 1;
  margin-bottom: 6px;
}
.block-head h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 10px;
  color: var(--schwarz);
}
.block-head p { max-width: 70ch; color: #4a4844; margin: 0; }
.note { max-width: 1160px; margin: 22px auto 0; color: var(--grau); font-size: .88rem; }

/* ---------- Farben ---------- */
.color-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.color-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.block-alt .color-card { background: var(--bg); }
.color-chip {
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.color-hex {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  font-size: .95rem;
  background: rgba(0,0,0,.18);
  padding: 3px 8px;
  border-radius: 6px;
}
.color-chip.is-light .color-hex { color: var(--schwarz); background: rgba(255,255,255,.55); }
.color-meta { padding: 14px 16px 16px; }
.color-meta strong { display: block; font-size: .98rem; margin-bottom: 10px; }
.color-meta dl { margin: 0; display: grid; gap: 4px; }
.color-meta dl div { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; }
.color-meta dt { color: var(--grau); font-weight: 700; letter-spacing: .04em; }
.color-meta dd { margin: 0; color: var(--schwarz); font-variant-numeric: tabular-nums; }

/* ---------- Schriften ---------- */
.font-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.font-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.block-alt .font-card { background: var(--bg); }
.font-sample {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.6rem;
  color: var(--rot);
  background: linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--line);
}
.font-sample.is-serif { font-family: Georgia, "Times New Roman", serif; }
.font-sample.is-sans  { font-family: var(--font-head); font-weight: 700; }
.font-meta { padding: 16px 18px 20px; }
.font-role {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: 6px;
}
.font-meta strong { display: block; font-size: 1.15rem; margin-bottom: 8px; }
.font-meta p { margin: 0; color: #4a4844; font-size: .9rem; }

/* ---------- Verwendung ---------- */
.use-grid {
  max-width: 1160px;
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.use-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.use-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--dunkelrot);
}
.use-card p { margin: 0 0 10px; color: #4a4844; font-size: .9rem; }
.use-card ul { margin: 0; padding-left: 18px; color: var(--schwarz); font-size: .9rem; }
.use-card li { margin-bottom: 4px; }
.use-card li::marker { color: var(--rot); }
.use-rules {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.use-rules > div {
  border-left: 3px solid var(--rot);
  padding: 4px 0 4px 14px;
  font-size: .9rem;
  color: #4a4844;
}
.use-rules span {
  display: block;
  font-weight: 700;
  color: var(--schwarz);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .74rem;
  margin-bottom: 3px;
}

/* ============================================================
   DOWNLOADS
   ============================================================ */
.legend {
  max-width: 1160px;
  margin: 0 auto 24px;
  font-size: .85rem;
  color: var(--grau);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.tag-web   { background: rgba(172,22,44,.12); color: var(--rot); }
.tag-print { background: rgba(26,26,24,.10); color: var(--schwarz); }
.chip {
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px dashed var(--beige);
  color: #8a7b68;
}

.brand-list {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}
.brand-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.brand-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-preview {
  height: 150px;
  background:
    linear-gradient(45deg, #f4f1ee 25%, transparent 25%) -8px 0,
    linear-gradient(-45deg, #f4f1ee 25%, transparent 25%) -8px 0,
    linear-gradient(45deg, transparent 75%, #f4f1ee 75%),
    linear-gradient(-45deg, transparent 75%, #f4f1ee 75%),
    #fff;
  background-size: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 20px;
}
.brand-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-body { padding: 18px 20px 20px; flex: 1; }
.brand-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--schwarz);
}
.brand-note { margin: 0 0 14px; font-size: .83rem; color: var(--grau); }

.fmt-group { margin-top: 14px; }
.fmt-group-title {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.fmt-rows { display: grid; gap: 7px; }
.fmt-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 10px;
}
.fmt-label { font-size: .82rem; color: #4a4844; }
.fmt-files { display: flex; flex-wrap: wrap; gap: 6px; }
.dl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--schwarz);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 7px;
  transition: all .12s;
}
.dl:hover { background: var(--rot); color: #fff; border-color: var(--rot); }
.dl em { font-style: normal; font-weight: 600; opacity: .7; font-size: .92em; }
.dl.is-claim { border-style: dashed; border-color: var(--beige); }
.dl.is-claim:hover { background: var(--dunkelrot); border-color: var(--dunkelrot); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  background: var(--dunkelrot);
  color: #fff;
  margin-top: 0;
}
.foot-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: start;
}
.foot-contact { font-size: .9rem; line-height: 1.7; }
.foot-contact a { color: var(--beige); text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.foot-meta { font-size: .78rem; color: rgba(255,255,255,.6); text-align: right; line-height: 1.7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .topnav { gap: 14px; }
  .topnav a:not(.logout) { display: none; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-meta { text-align: left; }
}
@media (max-width: 480px) {
  .block { padding: 48px 18px; }
  .hero-inner { padding: 54px 18px 84px; }
  .fmt-row { grid-template-columns: 1fr; gap: 4px; }
  .fmt-label { font-weight: 700; }
}
