/* newman production – Theme über dem Basis-Design (Ubuntu, Petrol, eckig 4 px).
   Wird nur bei INSTANCE=newman geladen (src/app/layout.tsx). Farben kommen weiterhin aus dem Branding im Admin. */
@font-face {
  font-family: "Ubuntu";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/instance/fonts/ubuntu-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/instance/fonts/ubuntu-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/instance/fonts/ubuntu-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/instance/fonts/ubuntu-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/instance/fonts/ubuntu-mono-latin-400-normal.woff2") format("woff2");
}
:root {
  /* --brand/--bg/--surface/--text/--font setzt das Branding im Admin */
  --mono: 'Ubuntu Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --petrol: #1c4a52;
  --muted: color-mix(in srgb, var(--text) 62%, var(--bg));
  --faint: color-mix(in srgb, var(--text) 38%, var(--bg));
  --line: color-mix(in srgb, var(--text) 12%, var(--bg));
  --surface-2: color-mix(in srgb, var(--surface) 80%, var(--text) 6%);
  --hover: color-mix(in srgb, var(--text) 7%, transparent);
  --on-brand: #1a1f21;
  --red: #e8695f;
  --yellow: #e5b94e;
  --green: #5cc08a;
  --purple: #a99be0;
  --blue: #6aa9d8;
  --radius: 4px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.topbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.topbar .logo img {
  height: 22px;
  width: auto;
}
.topbar .logo .tag {
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.topbar nav a, .topbar nav button {
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  background: none;
  border: 0;
  cursor: pointer;
}
h1, h2, h3 {
  line-height: 1.16;
  letter-spacing: -.025em;
  margin: 0 0 .4em;
}
h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 300;
}
h2 {
  font-size: 22px;
  font-weight: 400;
}
h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
}
strong, b {
  font-weight: 500;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn.icon {
  padding: 7px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
}
.input, .select, textarea.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  outline: none;
}
input[type=color] {
  width: 44px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: none;
  padding: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  background: var(--hover);
  color: var(--muted);
  white-space: nowrap;
}
.table th {
  text-align: left;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--hover);
  font-size: 14px;
}
.modal {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow: auto;
}
.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 50;
}
.menu-pop a, .menu-pop button {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 3px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 14px;
  gap: 8px;
  align-items: center;
}
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg-image, none) center/cover no-repeat, color-mix(in srgb, var(--petrol) 55%, var(--bg));
}
.auth-card {
  width: min(420px, 100%);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.auth-card .logo img {
  height: 28px;
  width: auto;
  margin-bottom: 28px;
}
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background: var(--surface) center/cover no-repeat;
  margin-bottom: 32px;
  border: 1px solid var(--line);
}
.deliv {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s;
  display: flex;
  flex-direction: column;
}
.deliv.group .variant {
  position: relative;
  display: block;
  border-radius: 3px;
  background: var(--surface-2) center/cover no-repeat;
  outline: 1px solid var(--line);
  transition: outline-color .15s;
}
.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-around;
  opacity: .16;
  transform: rotate(-24deg) scale(1.4);
  font-weight: 500;
  font-size: clamp(12px, 1.6vw, 20px);
  color: #fff;
  text-shadow: 0 0 2px #000;
  gap: 60px 80px;
}
.timeline .track {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 10px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.timeline .marker.span {
  border-radius: 3px;
  margin-left: 0;
  height: 8px;
  top: 2px;
  opacity: .85;
}
.timeline .hover-tc {
  position: absolute;
  bottom: 100%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
}
.tc {
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  min-width: 132px;
  text-align: center;
}
.comment {
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
}
.comment .who {
  font-weight: 500;
}
.comment .tcb {
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--bg);
  color: var(--brand);
  border: 1px solid var(--line);
}
.comment .body .mention {
  color: var(--brand);
  font-weight: 500;
}
.reaction {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}
.mention-pop {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: var(--shadow);
  z-index: 40;
  min-width: 200px;
}
.mention-pop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border: 0;
  background: none;
  border-radius: 3px;
  cursor: pointer;
}
.cover-editor {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.cover-preview {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-2);
}
