
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/fonts/open-sans-latin.woff2) format("woff2"); }
:root {
  --accent: #99221f; --text: #1a1a1a; --muted: #66666b; --bg: #fff; --soft: #f6f6f5; --line: #e3e3e0; --line-strong: #c4c4bf;
  --width: 76rem; --ok-bg: #e7f2e9; --warn-bg: #fff3d4; --error-bg: #fbeaea; --info-bg: #edf2f7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-underline-offset: .15em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
small { color: var(--muted); font-weight: 400; font-size: .85em; }
strong { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.warn { color: #a40000; }

/* Header: logo left, menu right as plain black links (the active one underlined), as on the website */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; max-width: var(--width); margin: 0 auto; padding: 1.5rem 1rem 1.25rem; }
.home { display: block; line-height: 0; }
.home img { height: 46px; width: auto; }
.brand { font-size: 1.35rem; font-weight: 300; }
.logo { display: block; max-height: 56px; max-width: 260px; object-fit: contain; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.75rem; }
.menu a, .menu button.link { color: var(--text); text-decoration: none; padding: .2rem 0; border-bottom: 1px solid transparent; font-weight: 400; }
.menu a:hover, .menu a[aria-current="page"], .menu button.link:hover { border-bottom-color: currentColor; }
.menu form, .logout { margin: 0; }
.context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; width: calc(100% - 2rem); max-width: calc(var(--width) - 2rem); margin: 0 auto; padding: .55rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.context strong { color: var(--text); }
.switch { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.switch label { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.who { overflow-wrap: anywhere; }
main { max-width: var(--width); margin: 2.25rem auto 4rem; padding: 0 1rem; }
.foot { max-width: var(--width); margin: 0 auto 2rem; padding: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* Typography: light headlines, a key word may carry the accent */
h1 { font-weight: 300; font-size: clamp(1.9rem, 1.35rem + 2vw, 2.75rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 1.25rem; }
h1 .key { color: var(--accent); }
h2 { font-weight: 400; font-size: 1.45rem; line-height: 1.3; margin: 2.5rem 0 .75rem; }
main > p, .panel > p, section > p { max-width: 50rem; }
p { overflow-wrap: break-word; } /* long supplier links on phones */
section { margin-top: 2.5rem; }
/* Privacy page (/datenschutz): a reading column, plain address, anchors clear of the top edge */
.legal { max-width: 50rem; }
.legal h2 { scroll-margin-top: 1rem; }
.legal h3 { font-weight: 600; font-size: 1.05rem; margin: 1.75rem 0 .5rem; }
.legal address { font-style: normal; margin: 0 0 1rem; }
.legal .toc { padding-left: 1.25rem; }
.legal td { hyphens: auto; } /* lang="de": long German words break at syllables */
/* Phones: each table row becomes a block, every cell headed by its column name (data-label) */
@media (max-width: 40rem) {
  .legal thead { display: none; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; }
  .legal tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .legal td { border: 0; padding: .2rem 0; }
  .legal td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
}

/* Forms */
.stack { display: grid; gap: 1.1rem; margin: 1.5rem 0; }
.stack > label, .stack > fieldset, .stack > .row { max-width: 38rem; }
.stack > p { margin: 0; }
.stack > h2 { margin: 1.25rem 0 0; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--text); padding: .6rem .75rem; border: 1px solid var(--line-strong); border-radius: 2px; background: #fff; width: 100%; }
select { width: auto; padding: .4rem .6rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input[type=color] { width: 4rem; height: 2.6rem; padding: .15rem; }
input[type=file] { padding: .45rem; background: var(--soft); }
fieldset { border: 1px solid var(--line); border-radius: 2px; padding: .75rem 1.25rem 1.25rem; display: grid; gap: 1rem; margin: 0; }
legend { font-weight: 600; padding: 0 .35rem; }
label.inline { display: inline-flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
label.inline input { width: auto; margin: .3em 0 0; }
.inline { display: inline; margin-left: .75rem; }
.row { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.row label { flex: 1 1 16rem; }
.row form { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 1.5rem; align-items: start; }

/* Buttons */
button, a.button { display: inline-block; font: inherit; font-size: .95rem; font-weight: 600; letter-spacing: .01em; line-height: 1.3; padding: .7rem 1.3rem; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; justify-self: start; }
button:hover, a.button:hover { filter: brightness(.88); }
button.secondary, a.button.secondary-link { background: #fff; color: var(--accent); }
button.secondary:hover, a.button.secondary-link:hover { filter: none; background: var(--soft); }
button.small { padding: .35rem .8rem; font-size: .85rem; }
button.link { background: none; border: 0; color: var(--accent); padding: 0; text-decoration: underline; text-underline-offset: .15em; font-weight: 400; font-size: inherit; letter-spacing: 0; }
button.link:hover { filter: none; }

/* Notices */
.notice { padding: .8rem 1rem; border-left: 3px solid; max-width: 50rem; }
.notice.error { background: var(--error-bg); border-color: #b3261e; }
.notice.info { background: var(--info-bg); border-color: #4a6f96; }
.logo-status.error { color: #a40000; font-weight: 600; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: .85rem; color: var(--muted); border-bottom-color: var(--line-strong); }
tbody tr:hover { background: #fafaf9; }
th.num, td.num { text-align: right; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.terms td.num input { text-align: right; width: 7.5rem; }
.extra { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
/* width: 100% keeps the inputs out of the cell's minimum width, so the table fits on phones */
.extra input, .extra select { flex: 1 1 8rem; width: 100%; min-width: 0; }

/* Panels, cards, status */
.panel { margin: 0 0 1.5rem; }
section.panel, details.panel { background: var(--soft); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
section.panel h2 { margin-top: 0; }
section.panel > :last-child, details.panel > :last-child { margin-bottom: 0; }
details.panel summary, details.danger summary { cursor: pointer; }
details.danger { margin: 1.5rem 0; }
details.danger summary { color: var(--accent); }
.message p { white-space: pre-wrap; margin: .5rem 0 0; }
textarea.mail-text { font-weight: 400; }
.mail-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .95rem; background: #fff; border: 1px solid var(--line); padding: .75rem 1rem; margin: .5rem 0 0; }
.actions { margin: 0 0 1rem; }
.counts { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.count { font-weight: 600; margin-right: .35rem; }
.status { display: inline-block; padding: .1rem .55rem; border-radius: 2px; font-size: .82rem; font-weight: 600; background: #ececea; white-space: nowrap; }
.status.versendet { background: var(--info-bg); }
.status.akzeptiert, .status.einigung { background: var(--ok-bg); }
.status.gegenvorschlag { background: var(--warn-bg); }
.status.abgelehnt, .status.abgelehnt_lieferant { background: var(--error-bg); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.card { background: var(--soft); padding: 1rem 1.25rem; display: grid; gap: .25rem; }
.card strong { font-size: 1.45rem; font-weight: 300; color: var(--accent); }
.logo-preview { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo-preview img { max-height: 60px; max-width: 240px; background: #fff; border: 1px solid var(--line); padding: .25rem; }
ul.plain { list-style: none; padding: 0; max-width: 38rem; }
ul.plain li { padding: .45rem 0; border-bottom: 1px solid var(--line); }

/* Login: the only page with a large photo */
.hero { margin: 0 0 2rem; }
.hero img { display: block; width: 100%; height: clamp(170px, 26vw, 360px); object-fit: cover; object-position: 50% 70%; }
.login { max-width: 34rem; }

@media (max-width: 40rem) {
  body { font-size: 16px; }
  .top { padding: 1rem 1rem .75rem; }
  .home img { height: 36px; }
  .logo { max-height: 44px; max-width: 200px; }
  .menu { gap: .25rem 1.1rem; }
  .context .who { display: none; }
  main { margin-top: 1.5rem; }
  section.panel, details.panel { padding: 1rem; }
  th, td { padding: .45rem .4rem; }
  table.terms th, table.terms td { padding: .4rem .25rem; }
  table.terms th { font-size: .8rem; }
  table.terms td.num input { width: 4.2rem; padding: .5rem .35rem; }
  /* the requested terms must stay visible on phones; the difference is secondary */
  table.supplier-terms .change { display: none; }
  table.supplier-terms th { font-size: .78rem; }
  table.supplier-terms td { font-size: .9rem; }
  table.supplier-terms th, table.supplier-terms td { padding: .4rem .25rem; }
}
.print-only { display: none; }
/* The supplier's record of the answer (printed or saved as PDF from the browser) */
@media print {
  .no-print, .logout, .notice, .foot, form, details, button { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  table.supplier-terms .change { display: table-cell; }
}
