/* Corporate Design Work Laight – Montserrat Variable (lokal, Latin + Latin Extended für Kroatisch) */
@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/montserrat-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/montserrat-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --navy: #111b33; --text: #35415a; --blue: #245eb5; --cyan: #46bfd8;
  --bg: #f3f7fa; --line: #dbe3ed; --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Montserrat Variable', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
header { background: var(--navy); color: var(--white); display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; padding: .8rem 1.5rem; }
.brand { font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; }
.brand span { color: var(--cyan); }
.userbox { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; font-size: .85rem; min-width: 0; }
.userbox > span { overflow-wrap: anywhere; }
.userbox a, header .link { color: var(--white); }
.userbox .tenant { font-weight: 600; }
.userbox .muted { color: #b9c4d6; }
nav { background: var(--white); border-bottom: 1px solid var(--line); padding: 0 1.5rem; display: flex; flex-wrap: wrap; gap: .2rem; }
nav a { padding: .7rem .8rem; color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; border-bottom: 3px solid transparent; }
nav a.active, nav a:hover { color: var(--blue); border-bottom-color: var(--cyan); }
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
h1 { color: var(--navy); font-weight: 700; font-size: 1.6rem; margin: .2rem 0 1rem; }
h2 { color: var(--navy); font-size: 1.15rem; margin: 0 0 .8rem; }
h3, h4 { color: var(--navy); margin: 1rem 0 .4rem; }
a { color: var(--blue); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.narrow { max-width: 420px; }
label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: .8rem; }
label.radio { font-weight: 500; }
input[type=text], input[type=email], input[type=password], input:not([type]), textarea, select {
  display: block; width: 100%; margin-top: .25rem; padding: .55rem .7rem; font: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; background: var(--white);
}
input[type=file] { max-width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.checks { margin-bottom: .8rem; }
legend { font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: .3rem; }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; margin-bottom: .3rem; }
a.button { display: inline-block; background: var(--blue); color: var(--white); text-decoration: none; font-weight: 600; border-radius: 6px; padding: .55rem 1.1rem; }
a.button:hover { background: var(--navy); }
.stepper { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: step; }
.stepper li { counter-increment: step; }
.stepper a { display: inline-block; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-size: .85rem; }
.stepper a::before { content: counter(step) ". "; }
.stepper li.active a { background: var(--blue); border-color: var(--blue); color: var(--white); }
.snapshot { margin-top: 1rem; }
.snapshot summary { cursor: pointer; font-weight: 600; color: var(--navy); }
button { font: inherit; font-weight: 600; background: var(--blue); color: var(--white); border: 0; border-radius: 6px; padding: .55rem 1.1rem; cursor: pointer; }
button:hover { background: var(--navy); }
button.secondary { background: var(--white); color: var(--blue); border: 1px solid var(--blue); }
button.link { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; font-weight: 500; }
header button.link { color: var(--white); }
.danger { color: #b3261e !important; border-color: #b3261e !important; }
form.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.actions input { display: inline-block; width: auto; margin: 0 .3rem 0 0; }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .88rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--navy); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .8rem; margin: .3rem 0; }
.muted { color: #6b778c; font-size: .85rem; }
.mono { font-family: ui-monospace, monospace; }
.flash { padding: .7rem 1rem; border-radius: 6px; background: #e3f6fa; border: 1px solid var(--cyan); margin-bottom: 1rem; }
.flash.error { background: #fdecea; border-color: #e5a29c; }
.notice { background: #eef3fb; border-left: 4px solid var(--blue); padding: .5rem .8rem; font-size: .88rem; }
.warn { background: #fff6e0; border-left: 4px solid #e0a400; padding: .4rem .7rem; font-size: .85rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--line); color: var(--navy); vertical-align: middle; }
.badge.confirmed, .badge.approved, .badge.succeeded, .badge.ok { background: #d6f2e3; color: #11643a; }
.badge.rejected, .badge.failed, .badge.error { background: #fbdcd9; color: #8c1d18; }
.badge.in_review, .badge.running, .badge.queued, .badge.generating { background: #dbe8fb; color: var(--blue); }
.badge.changes_requested { background: #fff0c2; color: #6b5100; }
.suggestion { border-top: 1px solid var(--line); padding: .7rem 0; }
.suggestion.rejected { opacity: .6; }
.steps li { margin: .3rem 0; }
.steps li.done a { color: #11643a; }
.week .item { border-top: 1px solid var(--line); padding-top: .4rem; }
.facts li { margin-bottom: .4rem; }
dt { font-weight: 600; color: var(--navy); }
dd { margin: 0 0 .5rem; }
footer { text-align: center; color: #6b778c; font-size: .78rem; padding: 2rem 1rem; }
.muted, .flash, .notice, .warn, dd, h1, h2, summary { overflow-wrap: anywhere; }

/* Mobil (Abnahmebreite 390 px): kein Seitenüberlauf; breite Tabellen scrollen in sich, Navigation horizontal. */
@media (max-width: 640px) {
  header { padding: .6rem .9rem; }
  .brand { font-size: 1.15rem; }
  .userbox { width: 100%; }
  .userbox .muted { flex-basis: 100%; order: 3; }
  nav { flex-wrap: nowrap; overflow-x: auto; padding: 0 .4rem; }
  nav a { white-space: nowrap; padding: .6rem .6rem; }
  main { padding: 1rem .75rem; }
  .card { padding: 1rem .9rem; }
  h1 { font-size: 1.3rem; }
  table { display: block; max-width: 100%; overflow-x: auto; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions form.inline { display: block; }
  .actions input { width: 100%; margin: 0 0 .4rem; }
  form button:not(.link), a.button { width: 100%; text-align: center; }
  form button:not(.link) + button:not(.link) { margin-top: .5rem; }
}

.reel-player { display:block; max-width:100%; width:270px; aspect-ratio:9/16; background:#111b33; border-radius:.5rem; }
.runway-photo { display:block; max-width:100%; width:270px; max-height:360px; object-fit:contain; background:#f3f7fa; border:1px solid #dbe3ed; border-radius:.5rem; }

/* Reel-Studio: aktuelles Storyboard und Skill-Vorschlag nebeneinander, auf schmalen Bildschirmen untereinander */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare textarea { width: 100%; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.reel-frames { max-width: 100%; height: auto; }
/* Endkontrolle: je Szene erstes/letztes Bild nebeneinander, volle Breite, nie beschnitten */
.review-pairs, .review-audio { padding-left: 1.2rem; }
.review-pairs li, .review-audio li { margin-bottom: 1rem; }
.review-pairs img { display: block; width: 100%; max-width: 738px; height: auto; margin: .3rem 0; border-radius: 4px; }
.review-hint { display: block; margin-top: .3rem; }
/* Firmenrecherche: synthetische Testläufe deutlich kennzeichnen */
.badge.synthetic { background: #fff0c2; color: #6b5100; border: 1px dashed #e0a400; }
.flash.synthetic { font-weight: 700; border-style: dashed; }

@media (max-width: 640px) {
  .contact-library th, .contact-library td { min-width: 90px; }
  .contact-library th:nth-child(6), .contact-library td:nth-child(6) { min-width: 132px; }
  .contact-library td:nth-child(6) a, .contact-library td:last-child button { white-space: nowrap; }
  .campaign-contact-table th, .campaign-contact-table td { min-width: 92px; }
}
